Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import New.Spanning.Frames.Densities |
| 4 | import New.Spanning.Frames.Gains |
| 5 | import New.Spanning.Frames.OneFrame |
| 6 | |
| 7 | /-! |
| 8 | # The sum over the shells |
| 9 | |
| 10 | The positions are cut into shells by their height. On one shell the bound for one frame loses a |
| 11 | power of the height. Below a threshold this loss is affordable. Above it every position has a deep |
| 12 | vector, whose gain pays for the loss. The argument is the same at a real place and at the finite |
| 13 | places; the shells that are summed have the powers of 2 as heights. |
| 14 | |
| 15 | Notions from other files: |
| 16 | * A `PlaceData` `F` at the place is its data: a unit `F.levelUnit`, the positions, a compact box and |
| 17 | measures. |
| 18 | * A gauge `Γ` is a notion of size at the place, with a scale `Γ.loss ≥ 2` that bounds volumes. |
| 19 | * `F.formMajorant` is the integral of the moduli of the two correlations of `W` at a position, and |
| 20 | `Γ.weightedSquareProduct` is the product of their second moments, with a constant. |
| 21 | * `F.FloorMassLe j V 1` says that the mass of floor `j` near the next floor is at most `V`. |
| 22 | |
| 23 | Contents of this file: |
| 24 | * `New.Floors.Gauge.IsShell`: a set of positions with a finite height at least 1. It is covered by |
| 25 | few position balls (`New.Floors.Gauge.positionsOfSize`, each for its own gauge). |
| 26 | * `New.Floors.Gauge.IsShell.setLIntegral_le`: one shell. |
| 27 | * `New.Floors.Gauge.IsShell.setLIntegral_formMajorant_le`: the gain on a remote shell. |
| 28 | * `New.Floors.Gauge.IsShell.setLIntegral_le_inv_height`: a few factors of the gain pay for the |
| 29 | growth in the height. |
| 30 | * `New.Floors.Gauge.lintegral_le_of_shells`: the sum over the shells. The integral over a shell is |
| 31 | at most a common bound times the inverse of the height, and `∑ 2⁻¹ ^ i = 2`. |
| 32 | -/ |
| 33 | |
| 34 | @[expose] public section |
| 35 | |
| 36 | noncomputable section |
| 37 | |
| 38 | namespace New.Floors |
| 39 | |
| 40 | open MeasureTheory ENNReal Fintype PlaceData Finset Place |
| 41 | |
| 42 | variable {A : Type} [CommRing A] [StarRing A] [TopologicalSpace A] [MeasureSpace A] [P : Place A] |
| 43 | {ι : Type} [Fintype ι] [DecidableEq ι] {m : ℕ} {𝔰 : Shape} {T : 𝔰.Form A} |
| 44 | [IsHermitianUnit T.splitGram] {F : PlaceData ι T m} {I : Type} [Fintype I] |
| 45 | |
| 46 | /-- The unit in which integrals over positions are measured: the product of the moduli |
| 47 | `F.floorModulus l` of the level `F.levelUnit` on the Heisenberg groups (at finite places the volume |
| 48 | of the congruence subgroup of the unipotent group), times a power of the constant `P.kernelBound` of |
| 49 | Plancherel's formula, times the squared `L²` norm `F.pairingNormSq W` of the correlation of `W`. -/ |
| 50 | def PlaceData.shellNormalization (F : PlaceData ι T m) (W : T.G → EuclideanSpace ℂ I) : ℝ≥0∞ := |
| 51 | (∏ l ∈ range 𝔰.ϱ, F.floorModulus l) * P.kernelBound ^ (card F.FreeIndex * 𝔰.ϱ) * F.pairingNormSq W |
| 52 | |
| 53 | /-- For a gauge `Γ`, heads `p`, `q` of length `j` and the function `W`, a set `S` is a shell of the |
| 54 | given finite height at least 1 if it is covered by few position balls, and if a large height forces |
| 55 | a deep vector at each of its points. -/ |
| 56 | structure Gauge.IsShell (Γ : Gauge F) (j : ℕ) (p q : ℕ → Aˣ) (W : T.G → EuclideanSpace ℂ I) |
| 57 | (S : Set T.G) (height : ℝ≥0∞) : Prop where |
| 58 | /-- The height is at least 1. -/ |
| 59 | one_le_height : 1 ≤ height |
| 60 | /-- The height is finite. -/ |
| 61 | height_ne_top : height ≠ ∞ |
| 62 | /-- `S` is covered by few position balls: for `x` in `S` the matrix `(x - 1) / F.levelUnit` has |
| 63 | size 1 in the sense of one of at most `2 height ^ (9 n)` gauges `Γ'`, that is, `x` is in |
| 64 | `Γ'.positionsOfSize`, and the scales `Γ'.loss` are at most `Γ.loss height²`. -/ |
| 65 | exists_cover : ∃ 𝒢 : Finset (Gauge F), (#𝒢 : ℝ≥0∞) ≤ 2 * height ^ (9 * 𝔰.n) ∧ |
| 66 | S ⊆ ⋃ Γ' ∈ 𝒢, Γ'.positionsOfSize ∧ ∀ Γ' ∈ 𝒢, Γ'.loss ≤ Γ.loss * height ^ 2 |
| 67 | /-- Far means deep: if `σ < 1` and `Γ.loss ^ (1200 n²) ≤ σ^(400 n²) height`, every active point |
| 68 | has a vector of depth at least `σ⁻²` after the head. -/ |
| 69 | hasDeepVector : ∀ x ∈ S, ∀ σ : ℝ≥0∞, σ < 1 → Γ.loss ^ (1200 * 𝔰.n ^ 2) ≤ σ ^ (400 * 𝔰.n ^ 2) * |
| 70 | height → |
| 71 | F.HasDeepVector j p q W x (σ ^ 2)⁻¹ |
| 72 | |
| 73 | /-- A shell lies in the set `F.positions` of positions of the level. -/ |
| 74 | lemma Gauge.IsShell.subset_positions {Γ : Gauge F} {j : ℕ} {p q : ℕ → Aˣ} |
| 75 | {W : T.G → EuclideanSpace ℂ I} {S : Set T.G} {height : ℝ≥0∞} |
| 76 | (hS : Γ.IsShell j p q W S height) : S ⊆ F.positions := by |
| 77 | obtain ⟨𝒢, -, h_subset, -⟩ := hS.exists_cover |
| 78 | exact h_subset.trans (Set.iUnion₂_subset fun Γ' _ ↦ Set.sep_subset _ _) |
| 79 | |
| 80 | /-- The height of a shell is finite and not zero, so it cancels against its inverse. -/ |
| 81 | lemma Gauge.IsShell.inv_height_mul_height {Γ : Gauge F} {j : ℕ} {p q : ℕ → Aˣ} |
| 82 | {W : T.G → EuclideanSpace ℂ I} {S : Set T.G} {height : ℝ≥0∞} |
| 83 | (hS : Γ.IsShell j p q W S height) : height⁻¹ * height = 1 := |
| 84 | ENNReal.inv_mul_cancel (one_pos.trans_le hS.one_le_height).ne' hS.height_ne_top |
| 85 | |
| 86 | /-- Let `S` be a shell of height `height`, let `e ≤ 1` and `9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ |
| 87 | F.volumeExponent`. If `a` is bounded with the gain `V * g ^ F.volumeExponent` for some `g ≤ e` such |
| 88 | that `g ^ (9 * 10 ^ 7 * 𝔰.n ^ 4)` pays for `height ^ (1 + 10 ^ 5 * 𝔰.n ^ 2)`, then `a` is at most |
| 89 | `height⁻¹ * (V * e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W)`. -/ |
| 90 | private lemma Gauge.IsShell.le_inv_height_of_exists_gain {Γ : Gauge F} {j r : ℕ} |
| 91 | {p q : ℕ → Aˣ} {W : T.G → EuclideanSpace ℂ I} {S : Set T.G} {height V e a : ℝ≥0∞} |
| 92 | (hS : Γ.IsShell j p q W S height) (he : e ≤ 1) |
| 93 | (hr : 9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ F.volumeExponent) |
| 94 | (h_split : ∃ g : ℝ≥0∞, g ≤ e ∧ |
| 95 | g ^ (9 * 10 ^ 7 * 𝔰.n ^ 4) * height ^ (1 + 10 ^ 5 * 𝔰.n ^ 2) ≤ |
| 96 | Γ.loss ^ (29 * 10 ^ 7 * 𝔰.n ^ 4) ∧ |
| 97 | a ≤ V * g ^ F.volumeExponent * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * |
| 98 | F.shellNormalization W) : |
| 99 | a ≤ height⁻¹ * (V * e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W) := by |
| 100 | obtain ⟨g, hg, h_pay, h_bound⟩ := h_split |
| 101 | have h_exp : g ^ F.volumeExponent ≤ g ^ (9 * 10 ^ 7 * 𝔰.n ^ 4) * e ^ r := by |
| 102 | grw [pow_le_pow_right_of_le_one' (hg.trans he) hr, pow_add, ← hg] |
| 103 | have h_scale : Γ.loss ^ (29 * 10 ^ 7 * 𝔰.n ^ 4) * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) ≤ |
| 104 | Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) := by |
| 105 | rw [← pow_add] |
| 106 | exact pow_le_pow_right₀ Γ.one_le_loss (by lia) |
| 107 | calc a |
| 108 | = height⁻¹ * height * a := by rw [hS.inv_height_mul_height, one_mul] |
| 109 | _ ≤ height⁻¹ * (V * e ^ r * |
| 110 | (g ^ (9 * 10 ^ 7 * 𝔰.n ^ 4) * height ^ (1 + 10 ^ 5 * 𝔰.n ^ 2) * |
| 111 | Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3)) * F.shellNormalization W) := by |
| 112 | grw [h_bound, h_exp] |
| 113 | exact le_of_eq (by ring) |
| 114 | _ ≤ height⁻¹ * (V * e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W) := by |
| 115 | grw [h_pay, h_scale] |
| 116 | |
| 117 | variable [F.groupMeasure.IsHaarMeasure] {Γ : Gauge F} {j r : ℕ} {p q : ℕ → Aˣ} |
| 118 | {W : T.G → EuclideanSpace ℂ I} {f : T.G → ℝ≥0∞} {e V : ℝ≥0∞} |
| 119 | |
| 120 | /-- Let `S ⊆ T.G` be a shell of height `height` for the gauge `Γ` and the sequences of units `p`, |
| 121 | `q`. Let `j ≤ 𝔰.ϱ`, and let `W` be a cut Bessel function (`F.IsCut W`). Only `q` is assumed to be a |
| 122 | head of length `j` for `Γ`. Suppose `f` has the gain `e` at each `x ∈ S`, that is, `f x ^ 2 ≤ e ^ |
| 123 | 2 * Γ.weightedSquareProduct j p q W x`. Then `F.headDensity j p q` times the integral of `f` over |
| 124 | `S` is at most `e * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * |
| 125 | F.shellNormalization W`. -/ |
| 126 | theorem Gauge.IsShell.setLIntegral_le {S : Set T.G} {height : ℝ≥0∞} |
| 127 | (hS : Γ.IsShell j p q W S height) (hW : F.IsCut W) (hj : j ≤ 𝔰.ϱ) (hq : Γ.IsHead j q) |
| 128 | (h_gain : ∀ x ∈ S, f x ^ 2 ≤ e ^ 2 * Γ.weightedSquareProduct j p q W x) : |
| 129 | F.headDensity j p q * ∫⁻ x in S, f x ∂F.groupMeasure ≤ |
| 130 | e * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * F.shellNormalization |
| 131 | W := by |
| 132 | obtain ⟨𝒢, h_card, h_subset, h_lambda⟩ : ∃ 𝒢 : Finset (Gauge F), |
| 133 | (#𝒢 : ℝ≥0∞) ≤ 2 * height ^ (9 * 𝔰.n) ∧ S ⊆ ⋃ Γ' ∈ 𝒢, Γ'.positionsOfSize ∧ |
| 134 | ∀ Γ' ∈ 𝒢, Γ'.loss ≤ Γ.loss * height ^ 2 := hS.exists_cover |
| 135 | let B : ℝ≥0∞ := e * (Γ.loss ^ (1500000 * 𝔰.n ^ 3) * Γ.loss ^ (25000 * 𝔰.n ^ 2) * Γ.loss) * |
| 136 | height ^ (50000 * 𝔰.n ^ 2) * F.shellNormalization W |
| 137 | -- Cauchy–Schwarz and the bound for one frame cost powers of `Γ.loss` and `Γ'.loss`. |
| 138 | have h_piece (Γ' : 𝒢) : |
| 139 | F.headDensity j p q * ∫⁻ x in S ∩ Γ'.val.positionsOfSize, f x ∂F.groupMeasure ≤ B := by |
| 140 | have h_gain_piece : ∀ x ∈ S ∩ Γ'.val.positionsOfSize, |
| 141 | f x ^ 2 ≤ e ^ 2 * Γ.weightedSquareProduct j p q W x := fun x hx ↦ h_gain x hx.1 |
| 142 | grw [Γ.headDensity_mul_lintegral_le_mul_pairingNormSq Γ' hW hj hq Set.inter_subset_right |
| 143 | h_gain_piece, |
| 144 | h_lambda Γ' Γ'.prop] |
| 145 | simp only [B, shellNormalization] |
| 146 | exact le_of_eq (by ring) |
| 147 | have h_cover : S ⊆ ⋃ Γ' : 𝒢, S ∩ Γ'.val.positionsOfSize := fun x hx ↦ by |
| 148 | obtain ⟨Γ', hΓ', h_close⟩ := Set.mem_iUnion₂.1 (h_subset hx) |
| 149 | exact Set.mem_iUnion.2 ⟨⟨Γ', hΓ'⟩, hx, h_close⟩ |
| 150 | have h_scale : Γ.loss ^ (1500000 * 𝔰.n ^ 3) * Γ.loss ^ (25000 * 𝔰.n ^ 2) * Γ.loss * Γ.loss ≤ |
| 151 | Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) := by |
| 152 | rw [← pow_add, ← pow_succ, ← pow_succ] |
| 153 | exact pow_le_pow_right₀ Γ.one_le_loss (by lia) |
| 154 | have h_height : height ^ (50000 * 𝔰.n ^ 2) * height ^ (9 * 𝔰.n) ≤ |
| 155 | height ^ (10 ^ 5 * 𝔰.n ^ 2) := by |
| 156 | rw [← pow_add] |
| 157 | exact pow_le_pow_right₀ hS.one_le_height (by lia) |
| 158 | calc F.headDensity j p q * ∫⁻ x in S, f x ∂F.groupMeasure |
| 159 | ≤ ∑' Γ' : 𝒢, F.headDensity j p q * |
| 160 | ∫⁻ x in S ∩ Γ'.val.positionsOfSize, f x ∂F.groupMeasure := by |
| 161 | grw [lintegral_mono_set h_cover, lintegral_iUnion_le, ENNReal.tsum_mul_left] |
| 162 | _ ≤ #𝒢 * B := by |
| 163 | grw [tsum_le_tsum h_piece] |
| 164 | simp |
| 165 | _ ≤ e * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * F.shellNormalization |
| 166 | W := by |
| 167 | grw [h_card, Γ.two_le_loss, ← h_scale, ← h_height] |
| 168 | simp only [B] |
| 169 | exact le_of_eq (by ring) |
| 170 | |
| 171 | /-- Let `S` be a shell of height `height` for the gauge `Γ` and `p`, `q`. Let `j ≤ 𝔰.ϱ`, and let |
| 172 | `p`, `q` be heads of length `j` (`Γ.IsHead`). Let `W` be a cut Bessel function (`F.IsCut W`), and |
| 173 | let `V ≥ 1` with `F.FloorMassLe j V 1`. Let `height > Γ.loss ^ (2400 * 𝔰.n ^ 2)`, and let |
| 174 | `τ ^ (800 * 𝔰.n ^ 2) = height⁻¹`. Then `F.headDensity j p q` times the integral of |
| 175 | `F.formMajorant j p q W` over `S` is at most `V * τ ^ F.volumeExponent * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n |
| 176 | ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * F.shellNormalization W`. -/ |
| 177 | theorem Gauge.IsShell.setLIntegral_formMajorant_le {S : Set T.G} {height τ : ℝ≥0∞} |
| 178 | (hS : Γ.IsShell j p q W S height) (hW : F.IsCut W) (hj : j ≤ 𝔰.ϱ) (hp : Γ.IsHead j p) |
| 179 | (hq : Γ.IsHead j q) (h_mass : F.FloorMassLe j V 1) (hV : 1 ≤ V) |
| 180 | (h_remote : Γ.loss ^ (2400 * 𝔰.n ^ 2) < height) (hτ : τ ^ (800 * 𝔰.n ^ 2) = height⁻¹) : |
| 181 | F.headDensity j p q * ∫⁻ x in S, F.formMajorant j p q W x ∂F.groupMeasure ≤ |
| 182 | V * τ ^ F.volumeExponent * Γ.loss ^ (2 * 10 ^ 6 * 𝔰.n ^ 3) * height ^ (10 ^ 5 * 𝔰.n ^ 2) * |
| 183 | F.shellNormalization W := by |
| 184 | have τ_lt : τ < 1 := lt_of_pow_lt_pow_left' (800 * 𝔰.n ^ 2) <| by |
| 185 | rw [hτ, one_pow, ENNReal.inv_lt_one] |
| 186 | exact (one_le_pow₀ Γ.one_le_loss).trans_lt h_remote |
| 187 | -- This inequality gives every active point a vector of depth at least `τ⁻²` after the head. |
| 188 | have h_root : Γ.loss ^ (1200 * 𝔰.n ^ 2) ≤ τ ^ (400 * 𝔰.n ^ 2) * height := by |
| 189 | rw [← ENNReal.pow_le_pow_left_iff two_ne_zero] |
| 190 | calc (Γ.loss ^ (1200 * 𝔰.n ^ 2)) ^ 2 |
| 191 | = Γ.loss ^ (2400 * 𝔰.n ^ 2) := by ring |
| 192 | _ ≤ τ ^ (800 * 𝔰.n ^ 2) * height * height := by |
| 193 | rw [hτ, hS.inv_height_mul_height, one_mul] |
| 194 | exact h_remote.le |
| 195 | _ = (τ ^ (400 * 𝔰.n ^ 2) * height) ^ 2 := by ring |
| 196 | refine hS.setLIntegral_le hW hj hq fun x hx ↦ ?_ |
| 197 | have h_deep : F.HasDeepVector j p q W x (τ ^ 2)⁻¹ := hS.hasDeepVector x hx τ τ_lt h_root |
| 198 | grw [Γ.formMajorant_sq_le_of_hasDeepVector hW hj hp (hS.subset_positions hx) h_mass hV h_deep] |
| 199 | exact le_of_eq (by ring) |
| 200 | |
| 201 | /-- Let `S` be a shell of height `height` for `Γ` and `p`, `q`. Let `j ≤ 𝔰.ϱ`, and let `p`, `q` be |
| 202 | heads of length `j` (`Γ.IsHead`). Let `W` be a cut Bessel function (`F.IsCut W`), and let `V ≥ 1` |
| 203 | with `F.FloorMassLe j V 1`. Suppose `f x ≤ F.formMajorant j p q W x` for all `x`, and `f x ^ |
| 204 | 2 ≤ (V * e ^ F.volumeExponent) ^ 2 * Γ.weightedSquareProduct j p q W x` on `S`. Suppose also `e ≤ 1` |
| 205 | and `9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ F.volumeExponent`. Then `F.headDensity j p q` times the integral of |
| 206 | `f` over `S` is at most `height⁻¹ * (V * e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * |
| 207 | F.shellNormalization W)`. -/ |
| 208 | theorem Gauge.IsShell.setLIntegral_le_inv_height {S : Set T.G} {height : ℝ≥0∞} |
| 209 | (hS : Γ.IsShell j p q W S height) (hW : F.IsCut W) (hj : j ≤ 𝔰.ϱ) (hp : Γ.IsHead j p) |
| 210 | (hq : Γ.IsHead j q) (h_mass : F.FloorMassLe j V 1) (hV : 1 ≤ V) (he : e ≤ 1) |
| 211 | (hf : ∀ x : T.G, f x ≤ F.formMajorant j p q W x) |
| 212 | (h_gain : ∀ x ∈ S, |
| 213 | f x ^ 2 ≤ (V * e ^ F.volumeExponent) ^ 2 * Γ.weightedSquareProduct j p q W x) |
| 214 | (hr : 9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ F.volumeExponent) : |
| 215 | F.headDensity j p q * ∫⁻ x in S, f x ∂F.groupMeasure ≤ |
| 216 | height⁻¹ * (V * e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W) := by |
| 217 | have h_cancel : height⁻¹ * height = 1 := hS.inv_height_mul_height |
| 218 | -- It suffices to find `g ≤ e` such that the integral has the bound with the gain |
| 219 | -- `V * g ^ F.volumeExponent` and `g ^ (9 · 10⁷ n⁴) height ^ (1 + 10⁵ n²) ≤ Γ.loss ^ (29 · 10⁷ |
| 220 | -- n⁴)`. |
| 221 | refine hS.le_inv_height_of_exists_gain he hr ?_ |
| 222 | let τ : ℝ≥0∞ := height⁻¹ ^ ((800 * 𝔰.n ^ 2 : ℕ) : ℝ)⁻¹ |
| 223 | have hτ : τ ^ (800 * 𝔰.n ^ 2) = height⁻¹ := rpow_inv_natCast_pow (by positivity) _ |
| 224 | have hτ_pay : τ ^ (9 * 10 ^ 7 * 𝔰.n ^ 4) * height ^ (1 + 10 ^ 5 * 𝔰.n ^ 2) ≤ 1 := by |
| 225 | have h_exp : 1 + 10 ^ 5 * 𝔰.n ^ 2 ≤ 112500 * 𝔰.n ^ 2 := by lia |
| 226 | rw [show 9 * 10 ^ 7 * 𝔰.n ^ 4 = 800 * 𝔰.n ^ 2 * (112500 * 𝔰.n ^ 2) by ring, pow_mul] |
| 227 | grw [pow_le_pow_right₀ hS.one_le_height h_exp, hτ, ← mul_pow, h_cancel, one_pow] |
| 228 | -- If the height is beyond `Γ.loss ^ (2400 n²)` and `τ < e`, take `g = τ`; otherwise take |
| 229 | -- `g = e`, which pays either because the height is small or because `e ≤ τ`. |
| 230 | by_cases h_remote : Γ.loss ^ (2400 * 𝔰.n ^ 2) < height ∧ τ < e |
| 231 | · refine ⟨τ, h_remote.2.le, hτ_pay.trans (one_le_pow₀ Γ.one_le_loss), ?_⟩ |
| 232 | grw [lintegral_mono hf] |
| 233 | exact hS.setLIntegral_formMajorant_le hW hj hp hq h_mass hV h_remote.1 hτ |
| 234 | · refine ⟨e, le_rfl, ?_, hS.setLIntegral_le hW hj hq h_gain⟩ |
| 235 | rcases not_and_or.1 h_remote with h_close | h_le |
| 236 | · grw [he, one_pow, one_mul, le_of_not_gt h_close, ← pow_mul] |
| 237 | exact pow_le_pow_right₀ Γ.one_le_loss (by lia) |
| 238 | · grw [le_of_not_gt h_le, hτ_pay] |
| 239 | exact one_le_pow₀ Γ.one_le_loss |
| 240 | |
| 241 | /-- **The sum over the shells.** Let each `S i` be a shell of height `2 ^ i` for the gauge `Γ` and |
| 242 | `p`, `q`. Let the `S i` cover the support of `f`. Let `j ≤ 𝔰.ϱ`, and let `p`, `q` be heads of length |
| 243 | `j` (`Γ.IsHead`). Let `W` be a cut Bessel function (`F.IsCut W`), and let `V ≥ 1` with |
| 244 | `F.FloorMassLe j V 1`. Suppose `f x ≤ F.formMajorant j p q W x` for all `x`. Suppose also that if |
| 245 | `e < 1`, then `f x ^ 2 ≤ (V * e ^ F.volumeExponent) ^ 2 * Γ.weightedSquareProduct j p q W x` for |
| 246 | `x ∈ F.positions`. Let `9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ F.volumeExponent`. Then `F.headDensity j p q` |
| 247 | times the integral of `f` over `T.G` is at most `V * min 1 e ^ r * Γ.loss ^ (4 * 10 ^ 8 * 𝔰.n ^ 4) * |
| 248 | F.shellNormalization W`. -/ |
| 249 | theorem Gauge.lintegral_le_of_shells {S : ℕ → Set T.G} |
| 250 | (hS : ∀ i : ℕ, Γ.IsShell j p q W (S i) (2 ^ i)) (h_cover : f.support ⊆ ⋃ i : ℕ, S i) |
| 251 | (hW : F.IsCut W) (hj : j ≤ 𝔰.ϱ) (hp : Γ.IsHead j p) |
| 252 | (hq : Γ.IsHead j q) (h_mass : F.FloorMassLe j V 1) (hV : 1 ≤ V) |
| 253 | (hf : ∀ x : T.G, f x ≤ F.formMajorant j p q W x) |
| 254 | (h_gain : e < 1 → ∀ x ∈ F.positions, |
| 255 | f x ^ 2 ≤ (V * e ^ F.volumeExponent) ^ 2 * Γ.weightedSquareProduct j p q W x) |
| 256 | (hr : 9 * 10 ^ 7 * 𝔰.n ^ 4 + r ≤ F.volumeExponent) : |
| 257 | F.headDensity j p q * ∫⁻ x : T.G, f x ∂F.groupMeasure ≤ |
| 258 | V * min 1 e ^ r * Γ.loss ^ (4 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W := by |
| 259 | have h_sum : ∑' i : ℕ, ((2 : ℝ≥0∞) ^ i)⁻¹ ≤ 2 := by |
| 260 | simp [ENNReal.inv_pow, ENNReal.tsum_geometric] |
| 261 | set B : ℝ≥0∞ := V * min 1 e ^ r * Γ.loss ^ (3 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W with hB |
| 262 | have h_shell (i : ℕ) : |
| 263 | F.headDensity j p q * ∫⁻ x in S i, f x ∂F.groupMeasure ≤ (2 ^ i)⁻¹ * B := by |
| 264 | have h_gain_min : ∀ x ∈ S i, |
| 265 | f x ^ 2 ≤ (V * min 1 e ^ F.volumeExponent) ^ 2 * Γ.weightedSquareProduct j p q W x := by |
| 266 | intro x hx |
| 267 | obtain he_lt | he_ge := lt_or_ge e 1 |
| 268 | · rw [min_eq_right he_lt.le] |
| 269 | exact h_gain he_lt x ((hS i).subset_positions hx) |
| 270 | · grw [min_eq_left he_ge, one_pow, mul_one, hf] |
| 271 | exact Γ.formMajorant_sq_le_of_floorMassLe hW hj hp ((hS i).subset_positions hx) h_mass |
| 272 | exact (hS i).setLIntegral_le_inv_height hW hj hp hq h_mass hV (min_le_left 1 e) hf h_gain_min hr |
| 273 | calc F.headDensity j p q * ∫⁻ x : T.G, f x ∂F.groupMeasure |
| 274 | = F.headDensity j p q * ∫⁻ x in ⋃ i, S i, f x ∂F.groupMeasure := by |
| 275 | rw [setLIntegral_eq_of_support_subset h_cover] |
| 276 | _ ≤ ∑' i : ℕ, F.headDensity j p q * ∫⁻ x in S i, f x ∂F.groupMeasure := by |
| 277 | grw [lintegral_iUnion_le, ENNReal.tsum_mul_left] |
| 278 | _ ≤ ∑' i : ℕ, (2 ^ i)⁻¹ * B := tsum_le_tsum h_shell |
| 279 | _ ≤ Γ.loss ^ (10 ^ 8 * 𝔰.n ^ 4) * B := by |
| 280 | have h_two : (2 : ℝ≥0∞) ≤ Γ.loss ^ (10 ^ 8 * 𝔰.n ^ 4) := |
| 281 | Γ.two_le_loss.trans (le_self_pow₀ Γ.one_le_loss (by positivity)) |
| 282 | grw [ENNReal.tsum_mul_right, h_sum, h_two] |
| 283 | _ = V * min 1 e ^ r * Γ.loss ^ (4 * 10 ^ 8 * 𝔰.n ^ 4) * F.shellNormalization W := by |
| 284 | rw [hB] |
| 285 | ring |
| 286 | |
| 287 | end New.Floors |
| 288 | |
| 289 | end |