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.Tactic.Linter.Style |
| 4 | public import Lib.Weil.DualPair.FiniteAction |
| 5 | public import Lib.Weil.Periods.PointLattice |
| 6 | public import New.UpperBound.Seesaw.AdmissibleCombinations |
| 7 | import Lib.Weil.Periods.GradedLattice |
| 8 | import New.UpperBound.Seesaw.StandardLines |
| 9 | |
| 10 | /-! |
| 11 | # Bounds for the lattices of points on graded spaces |
| 12 | |
| 13 | Let `Λ'` be the lattice `V.lattice x` of a finite point `x` of a graded space and `Λ` the lattice |
| 14 | of the point `1`. The file proves lattice steps of the induction for the bounds |
| 15 | `Q̄ ^ k Λ⁻ ⊆ Λ'⁻ ⊆ Q ^ (-k) Λ⁻`, where `q` generates `Q`. |
| 16 | |
| 17 | * `New.Grading.smul_latticeMinus_le_of_map_latticePlus`: if `sh Λ⁺` is `a` times the `Λ⁻` of the |
| 18 | next space, then the upper bound on one space and an inclusion `(q̄ / a) sh Λ'⁺ ⊆ Λ''⁻`, with |
| 19 | `Λ''` the lattice of a point on the next space, give the lower bound on the next space. |
| 20 | * `New.Grading.SpansLattice.hasLatticeBounds_or_latticeSplitsAt`: for a grading over `X ⊕ Unit`, |
| 21 | duality turns the lower bound into both bounds, unless `s` is odd and `Λ'` splits along `X ⊕ Unit` |
| 22 | at a place above `N`. |
| 23 | * `New.Grading.LatticeSplitsAt.conj_scalarFin_mem`: if `Λ'` splits along `X` at a place `w ≠ w̄`, |
| 24 | then the integral scalings of `X` supported at `w` and `w̄` preserve `Λ'`. |
| 25 | |
| 26 | Notions from other files: |
| 27 | |
| 28 | * `Gf E ι`: the finite adelic unitary group in the variables `ι`, whose elements are the finite |
| 29 | points. The lattice `V.lattice x` is spanned over `Ô E` by the columns of `V.xFin * x`, where |
| 30 | `V.xFin` is the finite frame of the hermitian space `V`. |
| 31 | * `New.Grading V N X s`: a splitting of the basis `ι` of `V` into an orthonormal part `X` of grade |
| 32 | `0` and a string of `s` vectors, where vector `i` pairs only with vector `s - 1 - i`, to `1`, |
| 33 | except that the middle vector (for odd `s`) pairs with itself to `-N`. |
| 34 | * `Y.latticePlus x`, `Y.latticeMinus x`: the projection `Λ'⁺` of the lattice of `x` to `X^⊥` and |
| 35 | its intersection `Λ'⁻` with `X^⊥`, the span of the string. |
| 36 | * `Y.stringMapFin Y'`: the shift `sh` from the vectors of one graded space to those of the next. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | See `New.UpperBound.Seesaw.SeesawIdentity` for related work. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | open Matrix Pointwise Valued |
| 46 | |
| 47 | noncomputable section |
| 48 | |
| 49 | namespace New |
| 50 | |
| 51 | open Seesaw Gf Space |
| 52 | |
| 53 | variable {E X X' ι ι' : Type} [Field E] [CMType E] [Fintype ι] [DecidableEq ι] [Fintype ι'] |
| 54 | [DecidableEq ι'] [Fintype X] [DecidableEq X] [DecidableEq X'] |
| 55 | {ε : ι → ℤˣ} {ε' : ι' → ℤˣ} {s : ℕ} {N : E} {V : Space E ι ε} {V' : Space E ι' ε'} |
| 56 | |
| 57 | namespace Grading |
| 58 | |
| 59 | section Splitting |
| 60 | |
| 61 | /-- Let `Y` split the basis of `V` into `X` and a string spanning `X^⊥`, and let `Λ' = V.lattice x` |
| 62 | be the lattice of the point `x` of the finite adelic unitary group. Then `Λ'` splits along `X` at |
| 63 | the place `w` if there the projection `Λ'⁺` of `Λ'` to `X^⊥` lies in the intersection `Λ'⁻` of `Λ'` |
| 64 | with `X^⊥`, so the two are equal. The idempotent `idem {w}` cuts out the component at `w`. -/ |
| 65 | def LatticeSplitsAt (Y : Grading V N X s) (w : FinPlace E) (x : Gf E ι) : Prop := |
| 66 | (idem {w} : 𝔸f E) • Y.latticePlus x ≤ Y.latticeMinus x |
| 67 | |
| 68 | /-- If the lattice of `x` splits along `X` at the place `w`, then it splits at the complex conjugate |
| 69 | place `star w` too. -/ |
| 70 | lemma LatticeSplitsAt.conj {Y : Grading V N X s} {w : FinPlace E} {x : Gf E ι} |
| 71 | (h_split : Y.LatticeSplitsAt w x) : Y.LatticeSplitsAt (star w) x := by |
| 72 | have h_idem : (idem {star w} : 𝔸f E) = star (idem {w}) := by |
| 73 | rw [star_idem] |
| 74 | congr with u |
| 75 | exact eq_star_iff_eq_star.trans eq_comm |
| 76 | simpa only [LatticeSplitsAt, h_idem] using star_smul_latticePlus_le_latticeMinus h_split |
| 77 | |
| 78 | /-- In rational coordinates, the finite point `Y.inclXFin (scalarFin X z)` of `U(V)`, which scales |
| 79 | `X` by `z`, sends a vector `y` to `y + (z - 1) (y - p y)`, where `p = Y.stringProj` is the |
| 80 | projection to `X^⊥`. -/ |
| 81 | lemma inclXFin_scalarFin_mulVec {Y : Grading V N X s} (z : unitary (𝔸f E)) (y : ι → 𝔸f E) : |
| 82 | V.ratCoordMatrixFin (Y.inclXFin (scalarFin X z)) *ᵥ y = |
| 83 | y + (z.val - 1) • (y - Y.stringProj y) := by |
| 84 | ext1 i |
| 85 | obtain ⟨a | b, rfl⟩ := Y.indexEquiv.surjective i <;> |
| 86 | simp [ratCoordMatrixFin_inclXFin, submatrix_mulVec_equiv, fromBlocks_mulVec, |
| 87 | stringProj_apply_inl, stringProj_apply_inr, sub_mul, scalarFin] |
| 88 | |
| 89 | omit [Fintype X] in |
| 90 | /-- Let the lattice of `x` split along `X` at the place `w`: there its projection to `X^⊥` lies in |
| 91 | the lattice. For every vector `y` of the lattice, the component at `w` (cut out by `idem {w}`) of |
| 92 | the part `y - Y.stringProj y` of `y` in `X` lies in the lattice. -/ |
| 93 | lemma LatticeSplitsAt.idem_smul_sub_stringProj_mem {Y : Grading V N X s} {w : FinPlace E} |
| 94 | {x : Gf E ι} (h_split : Y.LatticeSplitsAt w x) {y : ι → 𝔸f E} (hy : y ∈ V.lattice x) : |
| 95 | (idem {w} : 𝔸f E) • (y - Y.stringProj y) ∈ V.lattice x := by |
| 96 | have h_minus : (idem {w} : 𝔸f E) • Y.stringProj y ∈ Y.latticeMinus x := |
| 97 | smul_le_iff_forall.1 h_split _ (Submodule.mem_map_of_mem hy) |
| 98 | rw [smul_sub] |
| 99 | exact sub_mem ((V.lattice x).smul_mem ⟨_, idem_mem_Ô _⟩ hy) (mem_latticeMinus.1 h_minus).1 |
| 100 | |
| 101 | /-- At a place `u` where the unitary adele `z` is `1`, the finite point that scales `X` by `z`, |
| 102 | conjugated by the finite frame `V.xFin` into rational coordinates, has the identity matrix. -/ |
| 103 | lemma inclXFin_scalarFin_map_evalAt {Y : Grading V N X s} {z : unitary (𝔸f E)} {u : FinPlace E} |
| 104 | (hz : z.val u = 1) : |
| 105 | (V.xFin * Y.inclXFin (scalarFin X z) * V.xFin⁻¹).map (evalAt u) = 1 := by |
| 106 | refine Units.ext ?_ |
| 107 | change (V.ratCoordMatrixFin (Y.inclXFin (scalarFin X z))).map (evalAt u) = 1 |
| 108 | ext i j : 1 |
| 109 | have h := congrArg (fun v : ι → 𝔸f E ↦ evalAt u (v i)) |
| 110 | (inclXFin_scalarFin_mulVec (Y := Y) z (Pi.single j 1)) |
| 111 | by_cases hij : i = j <;> |
| 112 | simpa [Matrix.mulVec_single_one, Matrix.col, hz, Pi.single_apply, Matrix.one_apply, hij, |
| 113 | eq_comm] using h |
| 114 | |
| 115 | /-- For a place `w : FinPlace E` with `star w ≠ w` and an integral unitary adele `z` |
| 116 | that is `1` off `w` and `star w`, `z.val - 1` factors through `idem {w} + idem {star w}`. -/ |
| 117 | private lemma sub_one_eq_mul_idem_add_star_idem {E : Type} [Field E] [CMType E] |
| 118 | {w : FinPlace E} (hw : star w ≠ w) {z : unitary (𝔸f E)} |
| 119 | (hz_off : ∀ u : FinPlace E, u ≠ w → star u ≠ w → z.val u = 1) : |
| 120 | z.val - 1 = (z.val - 1) * (idem {w} + idem {star w}) := by |
| 121 | ext u |
| 122 | by_cases hu : u = w |
| 123 | · simp [hu, hw.symm] |
| 124 | by_cases hu' : u = star w |
| 125 | · simp [hu', hw] |
| 126 | -- At a place other than `w` and `w̄` both sides are `0`. |
| 127 | have h_off : z.val u = 1 := hz_off u hu fun h_eq ↦ hu' (eq_star_of_eq_star h_eq.symm) |
| 128 | simp [h_off] |
| 129 | |
| 130 | /-- Let `x` be a point of the finite adelic unitary group `Gf E ι` whose lattice, spanned by the |
| 131 | columns of `V.xFin * x`, splits along `X` at a place `w ≠ w̄`: there its projection to `X^⊥` lies in |
| 132 | the lattice. Let `z` be an integral unitary adele that is `1` off `w` and `w̄`. Then the conjugate |
| 133 | by `x` of the scaling `Y.inclXFin (scalarFin X z)` of `X` by `z` lies in `maxCompactAt ι w`: it is |
| 134 | integral and trivial off `w` and `w̄`. -/ |
| 135 | lemma LatticeSplitsAt.conj_scalarFin_mem {Y : Grading V N X s} {w : FinPlace E} {x : Gf E ι} |
| 136 | (h_split : Y.LatticeSplitsAt w x) (hw : star w ≠ w) |
| 137 | {z : unitary (𝔸f E)} (hz_int : z.val ∈ Ô E) |
| 138 | (hz_off : ∀ u : FinPlace E, u ≠ w → star u ≠ w → z.val u = 1) : |
| 139 | x⁻¹ * (Y.inclXFin (scalarFin X z) * x) ∈ maxCompactAt ι w := by |
| 140 | refine ⟨V.conj_mem_stdLevel_of_mapsTo_lattice fun y hy ↦ ?_, mem_supportedOn.2 fun u hu hu' ↦ ?_⟩ |
| 141 | · -- The conjugate is integral, as the scaling by `z` maps the lattice of `x` into itself. |
| 142 | show V.ratCoordMatrixFin (Y.inclXFin (scalarFin X z)) *ᵥ y ∈ V.lattice x |
| 143 | have h_supp : z.val - 1 = (z.val - 1) * (idem {w} + idem {star w}) := |
| 144 | sub_one_eq_mul_idem_add_star_idem hw hz_off |
| 145 | rw [inclXFin_scalarFin_mulVec, h_supp, mul_smul, add_smul] |
| 146 | -- The two components of the part of `y` in `X`, at `w` and at `w̄`, lie in the lattice. |
| 147 | exact add_mem hy ((V.lattice x).smul_mem ⟨_, sub_mem hz_int (one_mem _)⟩ (add_mem |
| 148 | (h_split.idem_smul_sub_stringProj_mem hy) (h_split.conj.idem_smul_sub_stringProj_mem hy))) |
| 149 | · -- The conjugate is trivial at a place other than `w` and `w̄`, where `z` is `1`. |
| 150 | have h_scaling : atPlace u (Y.inclXFin (scalarFin X z)) = 1 := by |
| 151 | simpa [atPlace] using inclXFin_scalarFin_map_evalAt (hz_off u hu hu') |
| 152 | simp [h_scaling] |
| 153 | |
| 154 | end Splitting |
| 155 | |
| 156 | /-- Write `Λ⁺` and `Λ'⁺` for the projections to `X^⊥` of the lattices of `1` and `x`, `Λ⁻` and `Λ'⁻` |
| 157 | for their intersections with `X^⊥`, and `M⁻` and `M'⁻` for the intersections with `X'^⊥` of the |
| 158 | lattices of `1` and `x'` in `V'`. Let `sh Λ⁺ = a M⁻` and `(q̄ / a) sh Λ'⁺ ⊆ M'⁻` for finite ideles |
| 159 | `a`, `q`. Then the upper bound `q ^ k Λ'⁻ ⊆ Λ⁻` on `V` gives `q̄ ^ (k + 1) M⁻ ⊆ M'⁻` on `V'`. -/ |
| 160 | lemma smul_latticeMinus_le_of_map_latticePlus {Y : Grading V N X s} {Y' : Grading V' N X' (s - 1)} |
| 161 | {a q : (𝔸f E)ˣ} {k : ℕ} {x : Gf E ι} {x' : Gf E ι'} |
| 162 | (h_shift_one_eq : (Y.latticePlus 1).map ((Y.stringMapFin Y').restrictScalars (Ô E)) = |
| 163 | a.val • Y'.latticeMinus 1) |
| 164 | (h_upper : q.val ^ k • Y.latticeMinus x ≤ Y.latticeMinus 1) |
| 165 | (h_shift_le : (star q / a).val • |
| 166 | (Y.latticePlus x).map ((Y.stringMapFin Y').restrictScalars (Ô E)) ≤ Y'.latticeMinus x') : |
| 167 | star q.val ^ (k + 1) • Y'.latticeMinus 1 ≤ Y'.latticeMinus x' := by |
| 168 | refine smul_le_iff_forall.2 fun y hy ↦ ?_ |
| 169 | obtain ⟨z, hz, hzy⟩ : ∃ z ∈ Y.latticePlus 1, Y.stringMapFin Y' z = a.val • y := |
| 170 | h_shift_one_eq.ge (Submodule.smul_mem_pointwise_smul y a.val _ hy) |
| 171 | -- The dual `q̄ ^ k Λ⁺ ⊆ Λ'⁺` of the upper bound puts `q̄ ^ k z` into `Λ'⁺`. |
| 172 | have h_mem : star (q.val ^ k) • z ∈ Y.latticePlus x := |
| 173 | smul_le_iff_forall.1 (smul_latticeMinus_le_iff.1 h_upper) z hz |
| 174 | have h_eq : star q.val ^ (k + 1) • y = |
| 175 | (star q / a).val • Y.stringMapFin Y' (star (q.val ^ k) • z) := by |
| 176 | rw [map_smul, hzy, smul_smul, smul_smul, mul_right_comm, ← Units.val_mul, div_mul_cancel, |
| 177 | Units.coe_star, star_pow, pow_succ'] |
| 178 | rw [h_eq] |
| 179 | exact smul_le_iff_forall.1 h_shift_le _ (Submodule.mem_map_of_mem h_mem) |
| 180 | |
| 181 | omit [Fintype X] in |
| 182 | /-- Write `Λ±` and `Λ'±` for the projection to `X^⊥` (`+`) and the intersection with it (`-`) of the |
| 183 | lattices of `1` and `x`, and `v` for the valuation at a place. Let `q` and `q̄` be units at `w`, let |
| 184 | `q̄ ^ k Λ⁻ ⊆ Λ'⁻` and `q ^ k Λ'⁺ ⊆ Λ⁺`, and let `y ∈ Λ'⁻` be such that `q ^ k y` generates `Λ⁺` over |
| 185 | `Λ⁻` at `w`. Then the lattice of `x` splits at `w`: there `Λ'⁺ ⊆ Λ⁺ = Λ⁻ + Ô y ⊆ Λ'⁻`. -/ |
| 186 | lemma latticeSplitsAt_of_generates {Y : Grading V N X s} {q : (𝔸f E)ˣ} {k : ℕ} {x : Gf E ι} |
| 187 | {w : FinPlace E} {y : ι → 𝔸f E} |
| 188 | (h_lower : star q.val ^ k • Y.latticeMinus 1 ≤ Y.latticeMinus x) |
| 189 | (h_dual : q.val ^ k • Y.latticePlus x ≤ Y.latticePlus 1) |
| 190 | (hy : y ∈ Y.latticeMinus x) (hq : v (q.val w) = 1) (hq_star : v (q.val (star w)) = 1) |
| 191 | (h_gen : ∀ z ∈ Y.latticePlus 1, |
| 192 | ∃ c ∈ Ô E, (idem {w} : 𝔸f E) • (z - c • q.val ^ k • y) ∈ Y.latticeMinus 1) : |
| 193 | Y.LatticeSplitsAt w x := by |
| 194 | refine smul_le_iff_forall.2 fun z hz ↦ ?_ |
| 195 | obtain ⟨c, hc, h_sub⟩ : ∃ c ∈ Ô E, |
| 196 | (idem {w} : 𝔸f E) • (q.val ^ k • z - c • q.val ^ k • y) ∈ Y.latticeMinus 1 := |
| 197 | h_gen (q.val ^ k • z) (smul_le_iff_forall.1 h_dual z hz) |
| 198 | -- The norm `n = (q̄ q) ^ k` is a unit at `w`, so its inverse is integral there. |
| 199 | let n : (𝔸f E)ˣ := (star q * q) ^ k |
| 200 | have hn : idem {w} * n⁻¹.val ∈ Ô E := by |
| 201 | simp [idem_mul_mem_Ô, n, ← inv_pow, idele_inv_apply_and_ne_zero, hq, hq_star] |
| 202 | have h_inv : n⁻¹.val * (star q.val ^ k * q.val ^ k) = 1 := by |
| 203 | rw [← mul_pow] |
| 204 | exact n.inv_mul |
| 205 | -- Split the component of `z` at `w` into its parts from `Λ⁻` and from `y`. |
| 206 | have h_eq : (idem {w} : 𝔸f E) • z = (idem {w} * n⁻¹.val) • star q.val ^ k • |
| 207 | (idem {w} : 𝔸f E) • (q.val ^ k • z - c • q.val ^ k • y) + (idem {w} * c) • y := by |
| 208 | linear_combination (norm := module) |
| 209 | (-(idem {w} * idem {w}) * h_inv - idem_mul_self (E := E) {w}) • (z - c • y) |
| 210 | have h_sub_mem : star q.val ^ k • (idem {w} : 𝔸f E) • (q.val ^ k • z - c • q.val ^ k • y) ∈ |
| 211 | Y.latticeMinus x := |
| 212 | smul_le_iff_forall.1 h_lower _ h_sub |
| 213 | rw [h_eq] |
| 214 | exact add_mem ((Y.latticeMinus x).smul_mem ⟨_, hn⟩ h_sub_mem) |
| 215 | ((Y.latticeMinus x).smul_mem ⟨_, mul_mem (idem_mem_Ô _) hc⟩ hy) |
| 216 | |
| 217 | /-- A vector of `Λ'⁻` whose `q ^ k` multiple is not in `Λ⁻` forces `s` odd and a |
| 218 | place `w ∈ P` where the lattice of `x` splits. -/ |
| 219 | private lemma odd_and_exists_mem_latticeSplitsAt_of_notMem {E X ι : Type} |
| 220 | [Field E] [CMType E] [Fintype ι] [DecidableEq ι] [Fintype X] [DecidableEq X] |
| 221 | {ε : ι → ℤˣ} {s : ℕ} {N : E} {V : Space E ι ε} {Y : Grading V N (X ⊕ Unit) s} |
| 222 | {a π q : (𝔸f E)ˣ} {u : unitary (𝔸f E)} {P : Finset (FinPlace E)} {k : ℕ} |
| 223 | {x : Gf E ι} (hL : Y.SpansLattice a π u) (hπ : IsSplitSquarefree P N π) |
| 224 | (hq : ∀ w : FinPlace E, w ∈ P ∨ star w ∈ P → v (q.val w) = 1) |
| 225 | (h_lower : star q.val ^ k • Y.latticeMinus 1 ≤ Y.latticeMinus x) |
| 226 | (h_dual : q.val ^ k • Y.latticePlus x ≤ Y.latticePlus 1) |
| 227 | {y : ι → 𝔸f E} (hy : y ∈ Y.latticeMinus x) (hy_notMem : q.val ^ k • y ∉ Y.latticeMinus 1) : |
| 228 | Odd s ∧ ∃ w ∈ P, Y.LatticeSplitsAt w x := by |
| 229 | have h_plus : q.val ^ k • y ∈ Y.latticePlus 1 := |
| 230 | smul_le_iff_forall.1 h_dual y (latticeMinus_le_latticePlus hy) |
| 231 | obtain ⟨hs, w, hw, h_gen⟩ : Odd s ∧ ∃ w : FinPlace E, (w ∈ P ∨ star w ∈ P) ∧ |
| 232 | ∀ z ∈ Y.latticePlus 1, |
| 233 | ∃ c ∈ Ô E, (idem {w} : 𝔸f E) • (z - c • q.val ^ k • y) ∈ Y.latticeMinus 1 := |
| 234 | hL.odd_and_exists_place_of_notMem_latticeMinus hπ h_plus hy_notMem |
| 235 | have hw_star : star w ∈ P ∨ star (star w) ∈ P := by simpa [or_comm] using hw |
| 236 | have h_split : Y.LatticeSplitsAt w x := |
| 237 | latticeSplitsAt_of_generates h_lower h_dual hy (hq w hw) (hq (star w) hw_star) h_gen |
| 238 | rcases hw with hw | hw |
| 239 | · exact ⟨hs, w, hw, h_split⟩ |
| 240 | · exact ⟨hs, star w, hw, h_split.conj⟩ |
| 241 | |
| 242 | /-- Let the lattice of `1` have the basis `gradedLatticeBasis` built from the ideles `a`, `π` and |
| 243 | the unitary adele `u`. Let `N = π π̄` with `π` a uniformiser at the places of `P`, none of which has |
| 244 | its conjugate in `P`, and a unit elsewhere, and let `q` be a unit at the places of `P` and their |
| 245 | conjugates. Write `Λ⁻` and `Λ'⁻` for the intersections of the lattices of `1` and `x` with |
| 246 | `(X ⊕ Unit)^⊥`, and assume the lower bound `q̄ ^ k Λ⁻ ⊆ Λ'⁻`. Then the upper bound `q ^ k Λ'⁻ ⊆ Λ⁻` |
| 247 | holds too, or `s` is odd and the lattice of `x` splits at some `w ∈ P`: there its projection to |
| 248 | `(X ⊕ Unit)^⊥` lies in `Λ'⁻`. -/ |
| 249 | lemma SpansLattice.hasLatticeBounds_or_latticeSplitsAt {Y : Grading V N (X ⊕ Unit) s} |
| 250 | {a π q : (𝔸f E)ˣ} {u : unitary (𝔸f E)} {P : Finset (FinPlace E)} {k : ℕ} {x : Gf E ι} |
| 251 | (hL : Y.SpansLattice a π u) (hπ : IsSplitSquarefree P N π) |
| 252 | (hq : ∀ w : FinPlace E, w ∈ P ∨ star w ∈ P → v (q.val w) = 1) |
| 253 | (h_lower : star q.val ^ k • Y.latticeMinus 1 ≤ Y.latticeMinus x) : |
| 254 | Y.HasLatticeBounds q.val k x ∨ Odd s ∧ ∃ w ∈ P, Y.LatticeSplitsAt w x := by |
| 255 | have h_dual : q.val ^ k • Y.latticePlus x ≤ Y.latticePlus 1 := by |
| 256 | simpa only [star_pow, star_star] using smul_latticeMinus_le_iff.1 h_lower |
| 257 | refine or_iff_not_imp_left.2 fun h_fail ↦ ?_ |
| 258 | obtain ⟨y, hy, hy_notMem⟩ : ∃ y ∈ Y.latticeMinus x, q.val ^ k • y ∉ Y.latticeMinus 1 := by |
| 259 | by_contra! h_upper |
| 260 | exact h_fail ⟨h_lower, smul_le_iff_forall.2 h_upper⟩ |
| 261 | -- The vector `q ^ k y` of `Λ⁺` is not in `Λ⁻`, so it generates `Λ⁺` over `Λ⁻` at some `w ∣ N`. |
| 262 | exact odd_and_exists_mem_latticeSplitsAt_of_notMem hL hπ hq h_lower h_dual |
| 263 | hy hy_notMem |
| 264 | |
| 265 | /-- Suppose that each translate `r x` by the finite Bessel subgroup `Y.besselFin` whose lattice is |
| 266 | graded (closed under the projections to the grades) has the bounds `Y.HasLatticeBounds q k`. Then |
| 267 | the orbit of `x` is bounded: some translate has both properties, as every orbit has a graded |
| 268 | lattice. The field `E` is assumed to contain a primitive root of unity of order `5040`. -/ |
| 269 | lemma HasBoundedOrbit.of_forall [HasPrimitiveRoot5040 E] {Y : Grading V N X s} {q : 𝔸f E} {k : ℕ} |
| 270 | {x : Gf E ι} (h_bounds : ∀ r ∈ Y.besselFin, |
| 271 | Y.IsGraded (V.lattice (r * x)) → Y.HasLatticeBounds q k (r * x)) : |
| 272 | Y.HasBoundedOrbit q k x := by |
| 273 | obtain ⟨u, hu, h_graded⟩ : |
| 274 | ∃ u : Gf E ι, ((1, u) : G E ε) ∈ Y.unipotent ∧ Y.IsGraded (V.lattice (u * x)) := |
| 275 | Y.exists_isGraded x |
| 276 | have hu_bessel : u ∈ Y.besselFin := Y.unipotent_le_besselGroup hu |
| 277 | exact ⟨u, hu_bessel, h_graded, h_bounds u hu_bessel h_graded⟩ |
| 278 | |
| 279 | /-- Let the lattice of `1`, spanned by the finite frame `V.xFin`, have the basis |
| 280 | `gradedLatticeBasis` with parameters `a`, `π`, `u`. If the orbit of the finite point `x` under the |
| 281 | finite Bessel subgroup `Y.besselFin` has an integral point `r x ∈ stdLevel E ι`, then some point of |
| 282 | the orbit has a graded lattice with the bounds for `k = 0`: the lattice of `r x` is the one of |
| 283 | `1`. -/ |
| 284 | lemma SpansLattice.hasBoundedOrbit_zero {Y : Grading V N (X ⊕ Unit) s} {a π : (𝔸f E)ˣ} |
| 285 | {u : unitary (𝔸f E)} (hL : Y.SpansLattice a π u) (q : 𝔸f E) {r x : Gf E ι} |
| 286 | (hr : r ∈ Y.besselFin) (hx : r * x ∈ stdLevel E ι) : Y.HasBoundedOrbit q 0 x := by |
| 287 | have h_lattice : V.lattice (r * x) = V.lattice 1 := (lattice_eq_iff.2 (by simpa using hx)).symm |
| 288 | have h_minus : Y.latticeMinus (r * x) = Y.latticeMinus 1 := by simp [latticeMinus, h_lattice] |
| 289 | refine ⟨r, hr, ?_, ?_, ?_⟩ |
| 290 | · simpa [h_lattice] using hL.isGraded |
| 291 | · simp [h_minus] |
| 292 | · simp [h_minus] |
| 293 | |
| 294 | end Grading |
| 295 | |
| 296 | end New |
| 297 | |
| 298 | end |