Main depth-2 theorem: the rigidity gap for shallow product coins.
ProvedCatalog.Geometry.ShallowProductCoin.productCoin_amplitude_sq_le_of_not_boxaether-cataloggeometry
Main depth-2 theorem: the rigidity gap for shallow product coins.
If the resonance set R ⊆ A × B is not a combinatorial box, then no unit product coin
f ⊗ g comes within 1/(9|R|) of the Cauchy–Schwarz optimum |R|.
theorem Catalog.Geometry.ShallowProductCoin.productCoin_amplitude_sq_le_of_not_box(R : Finset (A × B))
(f : A → ℝ) (g : B → ℝ) (hf : ∑ a, f a ^ 2 = 1) (hg : ∑ b, g b ^ 2 = 1)
(hbox : ¬ IsBox R) :
resonanceAmplitude R (prodCoin f g) ^ 2 ≤ (R.card : ℝ) - 1 / (9 * R.card) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Geometry/ShallowProductCoinRigidity.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Geometry/ShallowProductCoinRigidity.lean
import Mathlib
import Definitions.Def_Geometry_ShallowProductCoinRigidity
/-
Copyright (c) 2026. Released under Apache 2.0 license.
-/
/-!
# Rigidity gap for shallow product coins
## Setting
A *resonance set* is a finite set `R` of states inside a finite state space `X`.
A *coin* is a real weight function `psi : X → ℝ` normalised so that `∑ x, psi x ^ 2 = 1`.
Its *resonance amplitude* is
`A(psi) = ∑ x ∈ R, psi x`.
Cauchy–Schwarz gives `A(psi) ^ 2 ≤ |R|`, with equality exactly for the (normalised)
indicator of `R`. This file makes that rigidity **quantitative** for the class of
*product coins*, i.e. coins that factor over the coordinates of the state and hence
cannot "see" the global shape of `R`.
## Main results
* `resonanceAmplitude_defect_identity` — the exact identity
`|R| - A(psi)^2 = |R| * ∑ x, (psi x - (A/|R|) * 1_R x)^2`.
* `resonanceAmplitude_sq_le` — `A(psi)^2 ≤ |R|`.
* `resonanceAmplitude_sq_eq_iff` — equality holds iff `psi` is a scalar multiple of `1_R`.
* `productCoin_amplitude_sq_le_of_not_box` — **depth-2 rigidity gap.** If `R ⊆ A × B`
is not a combinatorial box, then *every* unit product coin `f ⊗ g` satisfies
`A(f ⊗ g)^2 ≤ |R| - 1/(9 |R|)`.
* `productCoin_amplitude_sq_le_mul_of_not_box` — the same in the form
`A(f ⊗ g)^2 ≤ (1 - c) |R|` with `c = 1/(9|R|^2) > 0`.
* `productCoin_depth_amplitude_sq_le_of_not_box`,
`productCoin_depth_amplitude_sq_le_mul_of_not_box` — **depth-`n` rigidity gap** with
the *same* constant `c = 1/(9|R|^2)`, uniform in the depth `n`.
The constant is explicit and depends only on `|R|`; the hypothesis `|R| ≥ 2` is
automatic from the non-box witness (`two_le_card_of_not_box`).
## Proof mechanism
Write `M` for the 0/1 indicator matrix of `R ⊆ A × B` and `t` for the amplitude of a
unit product coin `f ⊗ g`. Then `E := M - t · f gᵀ` obeys the exact Pythagoras identity
`‖E‖_F^2 = |R| - t^2` (`prod_defect_identity`). Failure of `R` to be a box produces a
`2 × 2` submatrix of `M` of determinant `1`, while the corresponding `2 × 2` submatrix of
the rank-one matrix `t · f gᵀ` has determinant `0`. Expanding the determinant of `M`
along `E` and applying the four-term Cauchy–Schwarz inequality forces
`‖E‖_F^2 ≥ 1/(9|R|)` (`rigidity_gap_core`).
-/
open Catalog.Geometry.ShallowProductCoin
open Finset
/-! ## 1. Resonance amplitude and the exact Cauchy–Schwarz defect -/
variable {X : Type*} [Fintype X] [DecidableEq X]
/-! ## 2. The algebraic core of the gap
A purely real-algebraic statement: a `2 × 2` integer block of determinant `1` cannot be
approximated too well, in Frobenius norm, by a `2 × 2` block of a rank-one matrix. -/
/-! ## 3. Depth-2 product coins: the rigidity gap -/
variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]Formal statement
theorem Catalog.Geometry.ShallowProductCoin.productCoin_amplitude_sq_le_of_not_box(R : Finset (A × B))
(f : A → ℝ) (g : B → ℝ) (hf : ∑ a, f a ^ 2 = 1) (hg : ∑ b, g b ^ 2 = 1)
(hbox : ¬ IsBox R) :
resonanceAmplitude R (prodCoin f g) ^ 2 ≤ (R.card : ℝ) - 1 / (9 * R.card) := by sorrySource