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 | import Mathlib.MeasureTheory.Constructions.Polish.EmbeddingReal |
| 4 | import Mathlib.Tactic.Linter.Style |
| 5 | import TauCeti.NumberTheory.NumberField.Countable |
| 6 | import TauCeti.NumberTheory.NumberField.RingOfIntegers.BoundedConjugates |
| 7 | public import New.Spanning.Unfolding.Setup |
| 8 | import Lib.Adelic.Adeles.SemilocalProducts |
| 9 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 10 | |
| 11 | /-! |
| 12 | # The box |
| 13 | |
| 14 | Let `S : Filling E 𝔰` be admissible data for a CM field `E` and a shape `𝔰`, with `M = S.M` the |
| 15 | level and `b = S.b`. Consider the tuples of complex numbers, one for each infinite place, modulo |
| 16 | `M 𝓞_E`, and fix a measurable set `D` of representatives, each coordinate of each point of `D` |
| 17 | having modulus at most `b ^ 26`. |
| 18 | |
| 19 | An archimedean point `y` is reduced if the entries above the diagonal of its triangular matrix |
| 20 | `S.ratTriangle y` lie in `D`. It is boxed if it is reduced and lies in the cut at every place `v`, |
| 21 | that is, `besselLength (y v) ≤ b ^ (6 n + 2)`, where `n = 𝔰.n = 𝔰.ϱ + 1`. |
| 22 | |
| 23 | Notions from other files: |
| 24 | * `frameVector z a`: for `z` in `𝔰.G₁`, the image of the `a`-th frame vector under `z⁻¹`; |
| 25 | `orthoFrame z` is the result of the Gram–Schmidt process on these vectors. |
| 26 | * `gramSchmidtMatrix z`: the unitriangular matrix of the coefficients of `frameVector z` in |
| 27 | `orthoFrame z`; `S.ratTriangle` reads it in the rational frame. |
| 28 | * `besselLength z`: the infimum of `‖s * z‖ + 1` over `s` in the Bessel subgroup. |
| 29 | * `frameBox r`: the points at which all frame vectors have length at most `r`. |
| 30 | |
| 31 | ## Main definitions and results |
| 32 | |
| 33 | * `New.Filling.exists_isResidueDomain`: such a set `D` exists. |
| 34 | * `New.Filling.boxedPoints`: the boxed points. |
| 35 | * `New.Filling.mul_mem_boxedPoints_iff`: invariance under the unipotent elements fixing the frame. |
| 36 | * `New.Filling.mem_frameBox_of_mem_boxedPoints`: at a boxed point the frame vectors have length at |
| 37 | most `b ^ (37 n)`. |
| 38 | -/ |
| 39 | |
| 40 | @[expose] public section |
| 41 | |
| 42 | open NumberField Matrix Set ENNReal |
| 43 | |
| 44 | namespace New.Filling |
| 45 | |
| 46 | /-- Let `V` be an abelian group and a standard Borel space with measurable translations. Let `L` be |
| 47 | a countable subgroup and `B` a measurable set that meets every coset of `L` in a finite nonempty |
| 48 | set. Then `B` contains a measurable set of representatives of the cosets. -/ |
| 49 | lemma _root_.New.exists_measurableSet_existsUnique_add_mem {V : Type*} [AddCommGroup V] |
| 50 | [MeasurableSpace V] [StandardBorelSpace V] [MeasurableAdd V] (L : AddSubgroup V) [Countable L] |
| 51 | {B : Set V} (hB : MeasurableSet B) (h_nonempty : ∀ w : V, ∃ l : L, l.val + w ∈ B) |
| 52 | (h_finite : ∀ w : V, {l : L | l.val + w ∈ B}.Finite) : |
| 53 | ∃ D ⊆ B, MeasurableSet D ∧ ∀ w : V, ∃! l : L, l.val + w ∈ D := by |
| 54 | -- In each coset take the point of `B` at which a measurable injection `f` to `ℝ` is least. |
| 55 | let f : V → ℝ := MeasureTheory.embeddingReal V |
| 56 | have hf : MeasurableEmbedding f := MeasureTheory.measurableEmbedding_embeddingReal V |
| 57 | let least (l : L) : Set V := {w : V | l.val + w ∈ B → f w ≤ f (l.val + w)} |
| 58 | have h_meas (l : L) : MeasurableSet (least l) := |
| 59 | .imp (measurable_const_add _ hB) |
| 60 | (measurableSet_le hf.measurable (hf.measurable.comp (measurable_const_add _))) |
| 61 | refine ⟨B ∩ ⋂ l : L, least l, inter_subset_left, hB.inter (.iInter h_meas), fun w ↦ ?_⟩ |
| 62 | obtain ⟨l₀, hl₀, h_least⟩ := |
| 63 | exists_min_image _ (fun l : L ↦ f (l.val + w)) (h_finite w) (h_nonempty w) |
| 64 | refine ⟨l₀, ⟨hl₀, mem_iInter.2 fun l hl ↦ ?_⟩, ?_⟩ |
| 65 | · -- `l₀ + w` is least in its coset. |
| 66 | rw [← add_assoc, ← AddSubgroup.coe_add] at hl ⊢ |
| 67 | exact h_least (l + l₀) hl |
| 68 | · -- Any least point of the coset has the same value of `f`. |
| 69 | rintro l ⟨hl, hl_least⟩ |
| 70 | have h_least_l := mem_iInter.1 hl_least (l₀ - l) |
| 71 | simp only [least, mem_ofPred_eq, AddSubgroup.coe_sub, ← add_assoc, sub_add_cancel] at h_least_l |
| 72 | have h_eq : l.val + w = l₀.val + w := |
| 73 | hf.injective ((h_least_l hl₀).antisymm (h_least l hl)) |
| 74 | exact Subtype.ext (add_right_cancel h_eq) |
| 75 | |
| 76 | /-- Few integral vectors have bounded conjugates. If `f` maps `A` injectively to vectors in `E^ι` |
| 77 | whose entries are algebraic integers of absolute value at most `r` under the embedding `Φ v` of |
| 78 | every infinite place `v` (chosen by the instance `PlaceEmbedding E`), then `A` has at most |
| 79 | `(1 + 2 r) ^ (2 |ι| m)` elements, where `m = Core.numInfPlaces E` is the number of infinite |
| 80 | places. -/ |
| 81 | lemma encard_le_of_isIntegral_norm_le {α ι E : Type*} [Fintype ι] {A : Set α} [Field E] |
| 82 | [NumberField E] [PlaceEmbedding E] {r : ℝ} (f : α → ι → E) |
| 83 | (hf : ∀ a ∈ A, ∀ i : ι, IsIntegral ℤ (f a i) ∧ ∀ v : InfinitePlace E, ‖Φ v (f a i)‖ ≤ r) |
| 84 | (h_inj : InjOn f A) : |
| 85 | A.encard ≤ ENNReal.ofReal ((1 + 2 * r) ^ (Fintype.card ι * Core.numInfPlaces E * 2)) := by |
| 86 | classical |
| 87 | let S : Set (ι → 𝓞 E) := {v | ∀ i (w : InfinitePlace E), w (v i) ≤ r} |
| 88 | have hS : ∀ v ∈ S, ∀ i (w : InfinitePlace E), w (v i) ≤ r := fun _ hv ↦ hv |
| 89 | let g : α → ι → 𝓞 E := fun a i ↦ if ha : a ∈ A then ⟨f a i, (hf a ha i).1⟩ else 0 |
| 90 | have h_maps : MapsTo g A S := fun a ha i w ↦ by |
| 91 | simp only [g, ha, ↓reduceDIte] |
| 92 | rw [← PlaceEmbedding.norm_apply] |
| 93 | exact (hf a ha i).2 w |
| 94 | have h_inj_g : InjOn g A := fun a ha b hb h_eq ↦ h_inj ha hb <| funext fun i ↦ by |
| 95 | simpa [g, ha, hb] using congrArg Subtype.val (congrFun h_eq i) |
| 96 | have hfin : S.Finite := NumberField.RingOfIntegers.finite_of_forall_infinitePlace_le hS |
| 97 | have h_enc : A.encard ≤ S.ncard := |
| 98 | (Set.encard_le_encard_of_injOn h_maps h_inj_g).trans_eq hfin.cast_ncard_eq.symm |
| 99 | have h_real : (S.ncard : ℝ) ≤ (1 + 2 * r) ^ (Fintype.card ι * Core.numInfPlaces E * 2) := by |
| 100 | simpa only [Nat.card_eq_fintype_card, Core.numInfPlaces, mul_comm, mul_left_comm, mul_assoc] |
| 101 | using NumberField.RingOfIntegers.ncard_le_one_add_two_mul_pow hS |
| 102 | exact (ENat.toENNReal_le.mpr h_enc).trans <| by |
| 103 | simpa [ENat.toENNReal_coe, ENNReal.ofReal_natCast] using ENNReal.ofReal_le_ofReal h_real |
| 104 | |
| 105 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} |
| 106 | {D : Set (InfinitePlace E → ℂ)} |
| 107 | |
| 108 | /-- A tuple of complex numbers, one for each infinite place, lies in `S.levelMultiples`, the |
| 109 | multiples of the level `M = S.M`, if and only if it consists of the images of `M x` for an integer |
| 110 | `x` of `E`. -/ |
| 111 | lemma mem_levelMultiples {w : InfinitePlace E → ℂ} : |
| 112 | w ∈ S.levelMultiples ↔ ∃ x : 𝓞 E, (fun v : InfinitePlace E ↦ Φ v (S.M * (x : E))) = w := |
| 113 | .rfl |
| 114 | |
| 115 | /-- For any real radius `r` and any tuple `w` over the infinite places, only finitely many |
| 116 | `l` in `S.levelMultiples` make all coordinates of `l + w` have modulus at most `r`. |
| 117 | Here `S.levelMultiples` consists of the tuples `M x` for integers `x` of `E`, where `M = S.M`. -/ |
| 118 | lemma finite_setOf_levelMultiples_add_le {r : ℝ} (w : InfinitePlace E → ℂ) : |
| 119 | {l : S.levelMultiples | ∀ v : InfinitePlace E, ‖(l.val + w) v‖ ≤ r}.Finite := by |
| 120 | have h_fin := (Embeddings.finite_of_norm_le E ℂ (r + ‖w‖)).image |
| 121 | (fun z : E ↦ fun v : InfinitePlace E ↦ Φ v z) |
| 122 | refine (h_fin.preimage Subtype.val_injective.injOn).subset ?_ |
| 123 | intro l hl |
| 124 | obtain ⟨x, hx⟩ := mem_levelMultiples.1 l.property |
| 125 | refine ⟨S.M * (x : E), ⟨(isIntegral_natCast _).mul x.isIntegral_coe, fun φ ↦ ?_⟩, hx⟩ |
| 126 | rw [← PlaceEmbedding.norm_mk_eq, |
| 127 | congrFun hx (InfinitePlace.mk φ), ← add_sub_cancel_right (l.val _) (w _)] |
| 128 | exact norm_sub_le_of_le (hl _) (norm_le_pi_norm w _) |
| 129 | |
| 130 | /-- For an admissible filling datum `S` of shape `𝔰` over a CM field `E` and any tuple `w` of |
| 131 | complex numbers over the infinite places of `E`, some `l` in `S.levelMultiples` makes every |
| 132 | coordinate of `l + w` have modulus at most `S.b ^ 26`. -/ |
| 133 | private lemma exists_levelMultiples_add_norm_le [S.IsAdmissible] (w : InfinitePlace E → ℂ) : |
| 134 | ∃ l : S.levelMultiples, ∀ v : InfinitePlace E, ‖(l.val + w) v‖ ≤ S.b ^ 26 := by |
| 135 | -- Every tuple is within `M (2 f) ^ 2 |ϖ| ≤ b ^ 26` of a tuple in `S.levelMultiples`, where |
| 136 | -- `M = S.M` is the level, `ϖ = S.deltaE` and `f = numInfPlaces E`. |
| 137 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 138 | have h_ne : S.deltaE ≠ 0 := mod_cast S.deltaE_ne_zero |
| 139 | have h_different : S.deltaE ∈ differentIdeal ℤ (𝓞 E) := by simp [S.span_deltaE] |
| 140 | obtain ⟨a, ha_int, ha_near⟩ := |
| 141 | exists_principal_near_of_mem_differentIdeal h_ne h_different (fun v ↦ -w v / S.M) 0 |
| 142 | rw [zero_sub, neg_mem_iff, algebraMap_mem_Ô] at ha_int |
| 143 | refine ⟨⟨fun v ↦ Φ v (S.M * a), mem_levelMultiples.2 ⟨⟨a, ha_int⟩, rfl⟩⟩, fun v ↦ ?_⟩ |
| 144 | have hM_ne : (S.M : ℂ) ≠ 0 := by simp [Nat.Prime.ne_zero] |
| 145 | have h_places : 2 * (numInfPlaces E : ℝ) ≤ S.b := by linarith [S.numInfPlaces_le_div] |
| 146 | calc ‖Φ v (S.M * a) + w v‖ = ‖(S.M : ℂ)‖ * ‖-w v / S.M - Φ v a‖ := by |
| 147 | rw [← norm_mul, ← norm_neg, map_mul, map_natCast] |
| 148 | congr 1 |
| 149 | field |
| 150 | _ ≤ S.b ^ 23 * (S.b ^ 2 * S.b) := by |
| 151 | grw [ha_near, RCLike.norm_natCast, M_le_b_pow, IsAdmissible.norm_deltaE_le, h_places] |
| 152 | _ = S.b ^ 26 := by ring |
| 153 | |
| 154 | variable (S) in |
| 155 | /-- Let `S : Filling E 𝔰`, the data of the filling theorem over `E`, satisfy the standing hypotheses |
| 156 | `S.IsAdmissible`, which bound the data by powers of `b = S.b`. Then there is a set `D` with |
| 157 | `S.IsResidueDomain D`: a measurable set of representatives for the tuples of complex numbers, one |
| 158 | for each infinite place, modulo `M 𝓞_E`. -/ |
| 159 | lemma exists_isResidueDomain [S.IsAdmissible] : |
| 160 | ∃ D : Set (InfinitePlace E → ℂ), S.IsResidueDomain D := by |
| 161 | have : Countable (𝓞 E) := RingOfIntegers.coe_injective.countable |
| 162 | have : Countable S.levelMultiples := (countable_range _).to_subtype |
| 163 | let B : Set (InfinitePlace E → ℂ) := {w | ∀ v, ‖w v‖ ≤ S.b ^ 26} |
| 164 | -- Every tuple lies within `S.b ^ 26` of some element of `S.levelMultiples`. |
| 165 | have h_nonempty (w : InfinitePlace E → ℂ) : ∃ l : S.levelMultiples, l.val + w ∈ B := |
| 166 | exists_levelMultiples_add_norm_le w |
| 167 | -- Only finitely many integers have bounded conjugates. |
| 168 | have h_finite (w : InfinitePlace E → ℂ) : {l : S.levelMultiples | l.val + w ∈ B}.Finite := |
| 169 | finite_setOf_levelMultiples_add_le w |
| 170 | have hB : MeasurableSet B := by measurability |
| 171 | obtain ⟨D, hDB, hD_meas, hD⟩ := |
| 172 | exists_measurableSet_existsUnique_add_mem S.levelMultiples hB h_nonempty h_finite |
| 173 | exact ⟨D, { measurableSet := hD_meas, norm_le := fun w v hw ↦ hDB hw v, |
| 174 | existsUnique_add_mem := hD }⟩ |
| 175 | |
| 176 | /-- For any set `D` of tuples over the infinite places, let `S.reducedPoints D` be the set of points |
| 177 | whose matrix has all its entries above the diagonal in `D`. This set is left invariant by the fixer |
| 178 | `besselFixer` of the frame, the elements fixing each frame vector: if every `s v` lies in |
| 179 | `besselFixer`, then `s * y` is in `S.reducedPoints D` if and only if `y` is. -/ |
| 180 | lemma mul_mem_reducedPoints_iff {s y : InfinitePlace E → 𝔰.G₁} |
| 181 | (hs : ∀ v : InfinitePlace E, s v ∈ besselFixer) : |
| 182 | s * y ∈ S.reducedPoints D ↔ y ∈ S.reducedPoints D := by |
| 183 | have h_triangle : S.ratTriangle (s * y) = S.ratTriangle y := by |
| 184 | funext a b v |
| 185 | simp only [ratTriangle, gramSchmidtMatrix, orthoFrame, Pi.mul_apply, |
| 186 | frameVector_mul_of_mem_besselFixer (hs v)] |
| 187 | simp only [reducedPoints, mem_ofPred_eq, h_triangle] |
| 188 | |
| 189 | variable (S) in |
| 190 | /-- The chosen set of representatives modulo the level lattice at the infinite places. -/ |
| 191 | noncomputable def residueDomain : Set (InfinitePlace E → ℂ) := Classical.epsilon S.IsResidueDomain |
| 192 | |
| 193 | /-- The standard residue domain of an admissible structure is a residue domain. -/ |
| 194 | lemma isResidueDomain_residueDomain [S.IsAdmissible] : S.IsResidueDomain S.residueDomain := |
| 195 | Classical.epsilon_spec S.exists_isResidueDomain |
| 196 | |
| 197 | variable (S) in |
| 198 | /-- The boxed points: the archimedean points `y` that are reduced for a chosen set satisfying |
| 199 | `New.Filling.IsResidueDomain` (one exists for admissible data) and lie in the cut at every infinite |
| 200 | place `v`, that is, `besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2)`. -/ |
| 201 | def boxedPoints : Set (InfinitePlace E → 𝔰.G₁) := |
| 202 | {y ∈ S.reducedPoints S.residueDomain | |
| 203 | ∀ v : InfinitePlace E, InCut (y v) S.b} |
| 204 | |
| 205 | /-- A boxed point `y` lies in the cut at every infinite place `v`, that is, |
| 206 | `besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2)`. -/ |
| 207 | lemma inCut_of_mem_boxedPoints {y : InfinitePlace E → 𝔰.G₁} (hy : y ∈ S.boxedPoints) |
| 208 | (v : InfinitePlace E) : InCut (y v) S.b := |
| 209 | hy.2 v |
| 210 | |
| 211 | /-- If `S.reducedIndicator`, the indicator of the reduced points for the chosen set of |
| 212 | representatives, is nonzero at `y` and `y` lies in the cut at every infinite place |
| 213 | (`besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2)`), then `y` is boxed. -/ |
| 214 | lemma mem_boxedPoints_of_reducedIndicator_ne_zero {y : InfinitePlace E → 𝔰.G₁} |
| 215 | (hy : S.reducedIndicator y ≠ 0) (h_cut : ∀ v : InfinitePlace E, InCut (y v) S.b) : |
| 216 | y ∈ S.boxedPoints := |
| 217 | ⟨mem_of_indicator_ne_zero hy, h_cut⟩ |
| 218 | |
| 219 | /-- The group `New.Shape.Form.besselU0` consists of the elements of the Bessel unipotent group |
| 220 | `besselU` that fix each frame vector. If every component of `u` lies in `besselU0`, then `u * y` is |
| 221 | boxed if and only if `y` is. -/ |
| 222 | lemma mul_mem_boxedPoints_iff {y u : InfinitePlace E → 𝔰.G₁} |
| 223 | (hu : ∀ v : InfinitePlace E, u v ∈ besselU0) : |
| 224 | u * y ∈ S.boxedPoints ↔ y ∈ S.boxedPoints := by |
| 225 | have h_besselLength (v : InfinitePlace E) : besselLength (u v * y v) = besselLength (y v) := by |
| 226 | obtain ⟨hu_unipotent, -⟩ := Subgroup.mem_inf.1 (hu v) |
| 227 | exact besselLength_besselS_mul (mem_partialUnitriangularGroup_of_mem_besselU hu_unipotent) |
| 228 | simp [boxedPoints, mul_mem_reducedPoints_iff fun v ↦ mem_besselFixer_of_mem_besselU0 (hu v), |
| 229 | h_besselLength] |
| 230 | |
| 231 | /-- On and below the diagonal, at every infinite place, the matrix `S.ratTriangle y` (the triangular |
| 232 | matrix of the frame at `y`, read in the rational frame) agrees with the identity matrix. -/ |
| 233 | lemma ratTriangle_eq_one_apply_of_le (y : InfinitePlace E → 𝔰.G₁) {row col : Fin (𝔰.ϱ + 1)} |
| 234 | (h_col_le_row : col ≤ row) (v : InfinitePlace E) : |
| 235 | S.ratTriangle y row col v = (1 : Matrix (Fin (𝔰.ϱ + 1)) (Fin (𝔰.ϱ + 1)) ℂ) row col := by |
| 236 | rw [ratTriangle, gramSchmidtMatrix, RealPlace.unitriangularMatrix, of_apply, |
| 237 | dite_eq_right h_col_le_row.not_gt, Matrix.one_apply] |
| 238 | split_ifs with h_diagonal |
| 239 | · rw [h_diagonal, div_self (S.basisScale_ne_zero v _), mul_one] |
| 240 | · rw [zero_mul] |
| 241 | |
| 242 | /-- If `D` is a set of representatives modulo `S.M 𝓞_E` as in `New.Filling.IsResidueDomain`, in |
| 243 | particular measurable, then the set of points whose triangular matrix has its entries above the |
| 244 | diagonal in `D` is measurable. -/ |
| 245 | lemma IsResidueDomain.measurableSet_reducedPoints (hD : S.IsResidueDomain D) : |
| 246 | MeasurableSet (S.reducedPoints D) := by |
| 247 | have h_entry (a b : Fin (𝔰.ϱ + 1)) : |
| 248 | Measurable fun y : InfinitePlace E → 𝔰.G₁ ↦ S.ratTriangle y a b := |
| 249 | measurable_pi_iff.2 fun v ↦ |
| 250 | ((measurable_gramSchmidtMatrix a b).comp (measurable_pi_apply v)).mul_const _ |
| 251 | simp only [reducedPoints, ofPred_forall] |
| 252 | exact .iInter fun a ↦ .iInter fun b ↦ .iInter fun _ ↦ h_entry a b hD.measurableSet |
| 253 | |
| 254 | /-- At an infinite place `v` the scale `S.basisScale v` of the normalised basis is |
| 255 | `κ_v ^ (ϱ - a) / √N` at the `a`-th frame vector `𝔰.besselFrame a`. Here `ϱ = 𝔰.ϱ` is the number of |
| 256 | hyperbolic planes, `N = S.N` is the prime of the data, and `κ_v = S.realM v` is the real number |
| 257 | `S.M * Φ v S.deltaE / (2 π i)`. For admissible `S` one has `1 ≤ |κ_v|`, so the scale does not grow |
| 258 | along the frame: for `a ≤ b` the scale at `b` divided by the scale at `a` has modulus at most |
| 259 | one. -/ |
| 260 | lemma norm_basisScale_div_le_one [S.IsAdmissible] (v : InfinitePlace E) {a b : Fin (𝔰.ϱ + 1)} |
| 261 | (hab : a ≤ b) : |
| 262 | ‖S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)‖ ≤ 1 := by |
| 263 | simp only [basisScale_besselFrame, norm_div, norm_pow, Complex.norm_real, Real.norm_eq_abs] |
| 264 | have h_pow : |S.realM v| ^ (𝔰.ϱ - (b : ℕ)) ≤ |S.realM v| ^ (𝔰.ϱ - (a : ℕ)) := |
| 265 | pow_le_pow_right₀ (IsAdmissible.one_le_abs_realM v) (Nat.sub_le_sub_left hab 𝔰.ϱ) |
| 266 | refine div_le_one_of_le₀ ?_ (by positivity) |
| 267 | gcongr |
| 268 | |
| 269 | /-- Let `S` be admissible and `D` a measurable set of representatives modulo `S.M 𝓞_E` whose points |
| 270 | have modulus at most `S.b ^ 26` at every place. If `y` is reduced for `D`, that is, the entries |
| 271 | above the diagonal of `S.ratTriangle y` lie in `D`, then all entries of `gramSchmidtMatrix (y v)` |
| 272 | have modulus at most `S.b ^ 26`. -/ |
| 273 | lemma IsResidueDomain.norm_gramSchmidtMatrix_le [S.IsAdmissible] (hD : S.IsResidueDomain D) |
| 274 | {y : InfinitePlace E → 𝔰.G₁} (hy : y ∈ S.reducedPoints D) (v : InfinitePlace E) |
| 275 | (a b : Fin (𝔰.ϱ + 1)) : ‖gramSchmidtMatrix (y v) a b‖ ≤ S.b ^ 26 := by |
| 276 | have h_scale : gramSchmidtMatrix (y v) a b = S.ratTriangle y a b v * |
| 277 | (S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)) := by |
| 278 | rw [ratTriangle, mul_assoc, div_mul_div_cancel₀ (S.basisScale_ne_zero v _), |
| 279 | div_self (S.basisScale_ne_zero v _), mul_one] |
| 280 | rw [h_scale] |
| 281 | obtain hab | rfl | hba : a < b ∨ a = b ∨ b < a := lt_trichotomy a b |
| 282 | · grw [norm_mul, norm_basisScale_div_le_one v hab.le, mul_one, hD.norm_le _ v (hy a b hab)] |
| 283 | · simp [ratTriangle_eq_one_apply_of_le y le_rfl, one_le_pow₀ S.one_le_b] |
| 284 | · simp [ratTriangle_eq_one_apply_of_le y hba.le, hba.ne', |
| 285 | pow_nonneg (zero_le_one.trans S.one_le_b)] |
| 286 | |
| 287 | /-- Let `S` be admissible, let `D` be a measurable set of representatives modulo `S.M 𝓞_E`, the |
| 288 | points of `D` having modulus at most `S.b ^ 26` at every place, and let `y` be reduced for `D`: the |
| 289 | entries of the triangular matrix `S.ratTriangle y` above the diagonal lie in `D`. Then at every |
| 290 | infinite place `v` the point `y v` is in the `frameBox` of radius |
| 291 | `S.b ^ 27 * besselLength (y v)`. -/ |
| 292 | lemma IsResidueDomain.mem_frameBox [S.IsAdmissible] (hD : S.IsResidueDomain D) |
| 293 | {y : InfinitePlace E → 𝔰.G₁} (hy : y ∈ S.reducedPoints D) (v : InfinitePlace E) : |
| 294 | y v ∈ frameBox (S.b ^ 27 * besselLength (y v)) := by |
| 295 | -- A frame vector is a sum of `ϱ + 1 ≤ b` orthogonal vectors, each no longer than the Bessel |
| 296 | -- length, with coefficients of modulus at most `b ^ 26`. |
| 297 | intro l |
| 298 | have hb_pos : 0 < S.b := zero_lt_one.trans_le S.one_le_b |
| 299 | have h_nonneg : 0 ≤ besselLength (y v) := besselLength_nonneg (y v) |
| 300 | calc ‖frameVector (y v) l‖ |
| 301 | _ = ‖∑ a : Fin (𝔰.ϱ + 1), gramSchmidtMatrix (y v) a l • orthoFrame (y v) a‖ := by |
| 302 | rw [← frameVector_eq_sum_orthoFrame] |
| 303 | _ ≤ ∑ _ : Fin (𝔰.ϱ + 1), S.b ^ 26 * besselLength (y v) := norm_sum_le_of_le _ fun a _ ↦ by |
| 304 | grw [norm_smul, hD.norm_gramSchmidtMatrix_le hy, (norm_orthoFrame_mem_Icc (y v) a le_rfl).2] |
| 305 | _ ≤ S.b ^ 27 * besselLength (y v) := by |
| 306 | simpa [pow_succ', mul_assoc] using mul_le_mul_of_nonneg_right S.succ_le_b (by positivity) |
| 307 | |
| 308 | /-- Let `S` be admissible, that is, satisfy the standing hypotheses `New.Filling.IsAdmissible`, |
| 309 | `n = 𝔰.n`, and let `y` be boxed: the entries above the diagonal of `S.ratTriangle y` lie in the set |
| 310 | of representatives modulo `S.M 𝓞_E` chosen in `S.boxedPoints`, and |
| 311 | `besselLength (y v) ≤ S.b ^ (6 n + 2)` at every infinite place `v`, where `besselLength g` is the |
| 312 | infimum of `‖s * g‖ + 1` over `s` in the Bessel subgroup `besselS` of `𝔰.G₁`. Then `y v` lies in the |
| 313 | `frameBox` of radius `S.frameBoxRadius = S.b ^ (37 n)`. -/ |
| 314 | lemma mem_frameBox_of_mem_boxedPoints [S.IsAdmissible] {y : InfinitePlace E → 𝔰.G₁} |
| 315 | (hy : y ∈ S.boxedPoints) (v : InfinitePlace E) : y v ∈ frameBox S.frameBoxRadius := by |
| 316 | have hy_reduced : y ∈ S.reducedPoints S.residueDomain := hy.left |
| 317 | have hy_cut : besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2) := inCut_of_mem_boxedPoints hy v |
| 318 | intro (a : Fin (𝔰.ϱ + 1)) |
| 319 | show ‖frameVector (y v) a‖ ≤ S.frameBoxRadius |
| 320 | have hb : 1 ≤ S.b := S.one_le_b |
| 321 | -- The norm is at most `b ^ 27 * b ^ (6 n + 2) ≤ b ^ (37 n)`. |
| 322 | grw [isResidueDomain_residueDomain.mem_frameBox hy_reduced v a, hy_cut, frameBoxRadius, ← pow_add] |
| 323 | exact pow_le_pow_right₀ hb (by lia) |
| 324 | |
| 325 | /-- For admissible data the set of boxed points is measurable. -/ |
| 326 | lemma measurableSet_boxedPoints [S.IsAdmissible] : MeasurableSet S.boxedPoints := by |
| 327 | change MeasurableSet (S.reducedPoints S.residueDomain ∩ |
| 328 | {y : InfinitePlace E → 𝔰.G₁ | ∀ v, InCut (y v) S.b}) |
| 329 | refine isResidueDomain_residueDomain.measurableSet_reducedPoints.inter ?_ |
| 330 | change MeasurableSet {y : InfinitePlace E → 𝔰.G₁ | ∀ v, besselLength (y v) ≤ S.b ^ (6 * 𝔰.n + 2)} |
| 331 | measurability |
| 332 | |
| 333 | end New.Filling |