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.UpperBound.Seesaw.IntegralAsCosetSum |
| 4 | public import New.UpperBound.Seesaw.UnfoldingStages |
| 5 | import Lib.Weil.Periods.LatticeBounds |
| 6 | import New.UpperBound.Seesaw.GluedLevel |
| 7 | import New.UpperBound.Seesaw.LevelIdeles |
| 8 | |
| 9 | /-! |
| 10 | # The outer variables: finitely many classes, with weights |
| 11 | |
| 12 | Let `G_j = Gf D.E (D.Y j)` be the finite adelic unitary group of the hermitian space `Y_j` over the |
| 13 | CM field `D.E`. For each `j ≤ 2ϱ + 1` and each tame character `ϑ` we choose a finite set `Ω_j` of |
| 14 | classes of `G_j` modulo the level `levelY ϑ j`, with multiplicities that divide a power of |
| 15 | `q = ϑ.normQ`. The file defines the weighted sum of a function over `Ω_0 × ⋯ × Ω_{k-1}` and proves |
| 16 | that it is invariant under the levels `D.levelX j` and has coefficients integral away from `q`. |
| 17 | |
| 18 | Notions from other files: |
| 19 | * A tame character `ϑ` is an automorphic character of `U(1)` of weight `0` with a finite set `ϑ.Q` |
| 20 | of places as modulus, and `ϑ.normQ` is the product of the norms of these places. |
| 21 | * The chosen places are the prime divisors of `D.piM`; they lie above the primes `p₀` and `p₁` of |
| 22 | the data `D`. |
| 23 | * `stdLevel D.E (D.Y j)` is the stabiliser in `G_j` of the standard lattice, and `levelY ϑ j` its |
| 24 | subgroup of elements that reduce to `1` at the chosen places and at the places of `ϑ.Q`. |
| 25 | * `localLevel n S` is the group of points that are integral at every place in `S`. |
| 26 | |
| 27 | ## Relation to the literature |
| 28 | |
| 29 | See `New.UpperBound.Seesaw.SeesawIdentity` for related work. |
| 30 | -/ |
| 31 | |
| 32 | @[expose] public section |
| 33 | |
| 34 | open Function Finset MulAction |
| 35 | noncomputable section |
| 36 | namespace New.Data |
| 37 | open Gf Seesaw IsTopologicalGroup |
| 38 | variable {P : Parameters} {D : Data P} (ϑ : D.TameChar) |
| 39 | |
| 40 | /-- Since the number `D.m` of lifts equals `2 ϱ + 2`, an index `j ≤ 2 ϱ + 1` satisfies `j < D.m`. -/ |
| 41 | lemma lt_m_of_le {j : ℕ} (hj : j ≤ 2 * D.ϱ + 1) : j < D.m := by |
| 42 | grind [D.m_eq_two_mul_varrho_add_two] |
| 43 | |
| 44 | /-! ### The cuts -/ |
| 45 | |
| 46 | /-- Let `x` be a finite adelic point of the unitary group of the space `Y_j` whose component |
| 47 | `x.atPlace w` is in `localIntGL = GL(O_w)` at every place `w` outside `ϑ.Q` and its conjugate. Then |
| 48 | there is an `n` such that, for all `u` in `levelY ϑ j`, the `q ^ n`-th power of `x u x⁻¹` lies in |
| 49 | the stabiliser `stdLevel` of the standard lattice. -/ |
| 50 | lemma exists_conj_pow_mem_stdLevel {j : ℕ} {x : Gf D.E (D.Y j)} |
| 51 | (hx : ∀ w : FinPlace D.E, ¬(w ∈ ϑ.Q ∨ star w ∈ ϑ.Q) → x.atPlace w ∈ localIntGL (D.Y j) w) : |
| 52 | ∃ n : ℕ, ∀ u ∈ levelY ϑ j, (x * u * x⁻¹) ^ ϑ.normQ ^ n ∈ stdLevel D.E (D.Y j) := by |
| 53 | -- At `w ∈ ϑ.Q`, conjugation by `x` keeps elements close to `1` integral, and high powers of |
| 54 | -- `u ≡ 1` are close to `1` by lifting the exponent. |
| 55 | obtain ⟨n, hn⟩ := (ϑ.Q.eventually_all.2 fun w _ ↦ eventually_localCongruence_subset |
| 56 | (((isOpen_localIntGL w).preimage (continuous_conj (x.atPlace w))).mem_nhds (by simp))).exists |
| 57 | refine ⟨n, fun u hu ↦ ?_⟩ |
| 58 | have hu_int := mem_stdLevel_iff.1 (levelOf_le_stdLevel hu) |
| 59 | have h_off : (x * u * x⁻¹) ^ ϑ.normQ ^ n ∈ |
| 60 | localLevel (D.Y j) (ϑ.Q : Set (FinPlace D.E)).conjClosureᶜ := by |
| 61 | intro w hw |
| 62 | simp [hx w hw, mul_mem, pow_mem (hu_int w)] |
| 63 | refine (mem_stdLevel_iff_of_integral_off h_off).2 fun w hw ↦ ?_ |
| 64 | have := pow_pow_mem_localCongruence (D.normQ_mem_and_notMem_of_mem_Q ϑ (.inl hw)).1 |
| 65 | (mem_localCongruence_zero.2 ⟨hu_int w, congrFun (mem_levelOf.1 hu).2 (.inr ⟨w, hw⟩)⟩) n |
| 66 | simpa using hn w hw (by simpa using this) |
| 67 | |
| 68 | /-- A cut for the `j`-th outer variable: a finite set `T` of classes of `G_j = Gf D.E (D.Y j)` |
| 69 | modulo the level `levelY ϑ j`, used to write integrals over `R_j \ G_j` as finite sums. Here `R_j` |
| 70 | is the finite Bessel subgroup `(D.gradingY j hj).besselFin`. The multiplicity of a class is the |
| 71 | number of translates of `T` under `R_j / (R_j ∩ stdLevel)` that contain it, `stdLevel` the lattice |
| 72 | stabiliser. -/ |
| 73 | structure IsStageCut (j : ℕ) (hj : j ≤ 2 * D.ϱ + 1) (T : Finset (Gf D.E (D.Y j) ⧸ levelY ϑ j)) : |
| 74 | Prop where |
| 75 | /-- The group `R_j ∩ stdLevel` permutes `T`. -/ |
| 76 | mem_iff_smul_mem : ∀ p : (D.gradingY j hj).besselFin, |
| 77 | ↑p ∈ stdLevel D.E (D.Y j) → ∀ c : Gf D.E (D.Y j) ⧸ levelY ϑ j, c ∈ T ↔ p • c ∈ T |
| 78 | /-- The points over `T` are integral at the places that do not divide `ϑ.normQ`. -/ |
| 79 | integral : ∀ x : Gf D.E (D.Y j), ↑x ∈ T → |
| 80 | x ∈ localLevel (D.Y j) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal} |
| 81 | /-- On `T` the multiplicity divides a power of `ϑ.normQ`. -/ |
| 82 | multiplicity_dvd_pow : ∀ x : Gf D.E (D.Y j), ↑x ∈ T → |
| 83 | ∃ n : ℕ, |
| 84 | coverMultiplicity (D.gradingY j hj).besselFin (stdLevel D.E (D.Y j)) T x ∣ ϑ.normQ ^ n |
| 85 | /-- The multiplicity is nonzero at the points whose `R_j`-orbit meets the lattice bounds. -/ |
| 86 | ne_zero_of_hasBoundedOrbit : ∀ x : Gf D.E (D.Y j), |
| 87 | (D.gradingY j hj).HasBoundedOrbit (twistIdele ϑ).val j x → |
| 88 | coverMultiplicity (D.gradingY j hj).besselFin (stdLevel D.E (D.Y j)) T x ≠ 0 |
| 89 | |
| 90 | open scoped Pointwise in |
| 91 | /-- For `C : Set (Gf D.E (D.Y j))` supported on `ϑ.Q`, any point of |
| 92 | `C * (stdLevel D.E (D.Y j) : Set (Gf D.E (D.Y j)))` lies in `localIntGL (D.Y j) w` at every |
| 93 | place `w` outside `ϑ.Q` and its conjugate. -/ |
| 94 | private lemma atPlace_mul_stdLevel_mem_localIntGL {j : ℕ} |
| 95 | {C : Set (Gf D.E (D.Y j))} (hC_supp : C ⊆ Gf.supportedOn (D.Y j) (ϑ.Q : Set (FinPlace D.E))) |
| 96 | {x : Gf D.E (D.Y j)} (hx : x ∈ C * (stdLevel D.E (D.Y j) : Set (Gf D.E (D.Y j)))) |
| 97 | {w : FinPlace D.E} (hw : ¬(w ∈ ϑ.Q ∨ star w ∈ ϑ.Q)) : |
| 98 | x.atPlace w ∈ localIntGL (D.Y j) w := by |
| 99 | rcases hx with ⟨c, hc, z, hz, rfl⟩ |
| 100 | obtain ⟨hw_q, hw_star⟩ := not_or.1 hw |
| 101 | simp [mem_supportedOn.1 (hC_supp hc) w hw_q hw_star, mem_stdLevel_iff.1 hz] |
| 102 | |
| 103 | open scoped Pointwise in |
| 104 | /-- For every `j ≤ 2 D.ϱ + 1` there is a finite set `T` of classes of `Gf D.E (D.Y j)` modulo |
| 105 | `levelY ϑ j` with `IsStageCut ϑ j hj T`. Let `R_j` be the finite Bessel subgroup |
| 106 | `(D.gradingY j hj).besselFin`, and let `stdLevel` be the lattice stabiliser. The multiplicity of a |
| 107 | class is the number of translates of `T` under `R_j / (R_j ∩ stdLevel)` that contain it. Being a cut |
| 108 | means four things. First, `T` is stable under `R_j ∩ stdLevel`. Second, its points are integral at |
| 109 | the places prime to `q = ϑ.normQ`. Third, on `T` the multiplicity divides a power of `q`. Fourth, |
| 110 | the multiplicity is nonzero at each `x` such that some point of the orbit `R_j x` has a graded |
| 111 | lattice satisfying `HasLatticeBounds` for `twistIdele ϑ`, a generator of the ideal `ϑ.Q` |
| 112 | (`HasBoundedOrbit`). -/ |
| 113 | lemma exists_isStageCut (j : ℕ) (hj : j ≤ 2 * D.ϱ + 1) : |
| 114 | ∃ T : Finset (Gf D.E (D.Y j) ⧸ levelY ϑ j), IsStageCut ϑ j hj T := by |
| 115 | -- Finitely many cosets `c stdLevel`, with `c` supported on `Q ∪ Q̄`, meet all orbits with the |
| 116 | -- bounds. |
| 117 | obtain ⟨C, hC_finite, hC_supp, hC_meets⟩ := |
| 118 | (D.gradingY j hj).exists_finite_representatives (Q := (ϑ.Q : Set (FinPlace D.E))) |
| 119 | (twistIdele ϑ) j fun w hw ↦ (valued_twistIdele ϑ w).trans (ite_eq_right hw) |
| 120 | have h_int : ∀ x ∈ C * (stdLevel D.E (D.Y j) : Set (Gf D.E (D.Y j))), |
| 121 | x ∈ localLevel (D.Y j) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal} := fun x hx w hw ↦ |
| 122 | atPlace_mul_stdLevel_mem_localIntGL (ϑ := ϑ) hC_supp hx |
| 123 | (fun hwQ ↦ hw (D.normQ_mem_and_notMem_of_mem_Q ϑ hwQ).1) |
| 124 | -- A cut on these points: its multiplicity divides a power of `q` also where the bounds are met. |
| 125 | obtain ⟨T, h_stable, h_integral, h_dvd⟩ := |
| 126 | exists_finset_coverMultiplicity_dvd_pow (J := levelY ϑ j) levelOf_le_stdLevel |
| 127 | (hC_finite.isCompact.mul isCompact_stdLevel) stdLevel_le_localLevel |
| 128 | (fun x hx ↦ ⟨h_int x hx, exists_conj_pow_mem_stdLevel ϑ |
| 129 | (fun _ hw ↦ atPlace_mul_stdLevel_mem_localIntGL (ϑ := ϑ) hC_supp hx hw)⟩) hC_meets |
| 130 | refine ⟨T, h_stable, h_integral, fun x hx ↦ h_dvd x (.inl hx), fun x hx ↦ ?_⟩ |
| 131 | obtain ⟨n, hn⟩ := h_dvd x (.inr hx) |
| 132 | exact ne_zero_of_dvd_ne_zero |
| 133 | (pow_ne_zero n (by simp [prod_eq_zero_iff, IsDedekindDomain.HeightOneSpectrum.ne_bot])) hn |
| 134 | |
| 135 | /-- The classes `Ω_j` modulo `levelY ϑ j` over which the `j`-th outer variable is summed: the |
| 136 | classes of the elements of `D.chosenLevel` (integral points that reduce to `1` at the chosen places) |
| 137 | for `j = 0`, and a chosen cut (`IsStageCut`) for `j > 0`. -/ |
| 138 | def cutPoints : ∀ j : ℕ, j ≤ 2 * D.ϱ + 1 → Finset (Gf D.E (D.Y j) ⧸ levelY ϑ j) |
| 139 | | 0, _ => (finite_quotient_image_of_isCompact (IsLevel.isOpen (K := levelY ϑ 0)) |
| 140 | (IsLevel.isCompact (K := D.chosenLevel))).toFinset |
| 141 | | k + 1, hk => (exists_isStageCut ϑ (k + 1) hk).choose |
| 142 | |
| 143 | /-- For `k + 1 ≤ 2 ϱ + 1` the set `cutPoints ϑ (k + 1)` is a cut (`IsStageCut`). -/ |
| 144 | lemma isStageCut_cutPoints (k : ℕ) (hk : k + 1 ≤ 2 * D.ϱ + 1) : |
| 145 | IsStageCut ϑ (k + 1) hk (cutPoints ϑ (k + 1) hk) := |
| 146 | (exists_isStageCut ϑ (k + 1) hk).choose_spec |
| 147 | |
| 148 | /-- The multiplicity of a class modulo `levelY ϑ j`: it is `1` for `j = 0`, and for `j > 0` the |
| 149 | number of translates of `cutPoints ϑ j` under `R_j / (R_j ∩ stdLevel)` that contain the class, with |
| 150 | `R_j` the finite Bessel subgroup and `stdLevel` the lattice stabiliser. -/ |
| 151 | def cutMultiplicity : ∀ j : ℕ, j ≤ 2 * D.ϱ + 1 → Gf D.E (D.Y j) ⧸ levelY ϑ j → ℕ |
| 152 | | 0, _ => fun _ ↦ 1 |
| 153 | | k + 1, hk => coverMultiplicity (D.gradingY (k + 1) hk).besselFin (stdLevel D.E (D.Y (k + 1))) |
| 154 | (cutPoints ϑ (k + 1) hk) |
| 155 | |
| 156 | /-- The set `cutPoints ϑ 0` consists of the classes modulo `levelY ϑ 0` of the elements of |
| 157 | `D.chosenLevel`, the integral points that reduce to `1` at every prime divisor of `D.piM`: the class |
| 158 | of a finite adelic point `x` of the unitary group of `Y_0` lies in it if and only if |
| 159 | `x ∈ D.chosenLevel`. -/ |
| 160 | lemma mk_mem_cutPoints_zero {hj : 0 ≤ 2 * D.ϱ + 1} {x : Gf D.E (D.Y 0)} : |
| 161 | ↑x ∈ cutPoints ϑ 0 hj ↔ x ∈ D.chosenLevel := by |
| 162 | rw [cutPoints, Set.Finite.mem_toFinset] |
| 163 | exact ⟨fun ⟨x', hx', h_eq⟩ ↦ (mul_mem_cancel_left (inv_mem hx')).1 |
| 164 | (levelY_le_chosenLevel ϑ 0 (QuotientGroup.eq.1 h_eq)), fun hx ↦ ⟨x, hx, rfl⟩⟩ |
| 165 | |
| 166 | /-- A point whose class lies in `cutPoints ϑ j` is integral at every place that does not divide |
| 167 | `ϑ.normQ`. -/ |
| 168 | lemma mem_localLevel_of_mem_cutPoints {j : ℕ} {hj : j ≤ 2 * D.ϱ + 1} {x : Gf D.E (D.Y j)} |
| 169 | (hx : ↑x ∈ cutPoints ϑ j hj) : |
| 170 | x ∈ localLevel (D.Y j) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal} := by |
| 171 | cases j with |
| 172 | | zero => exact stdLevel_le_localLevel (levelOf_le_stdLevel ((mk_mem_cutPoints_zero ϑ).1 hx)) |
| 173 | | succ k => exact (isStageCut_cutPoints ϑ k hj).integral x hx |
| 174 | |
| 175 | /-- If the class of a point `x` lies in `cutPoints ϑ j`, then its multiplicity |
| 176 | `cutMultiplicity ϑ j hj x` divides some power `ϑ.normQ ^ n` of `ϑ.normQ`. -/ |
| 177 | lemma exists_cutMultiplicity_dvd {j : ℕ} {hj : j ≤ 2 * D.ϱ + 1} {x : Gf D.E (D.Y j)} |
| 178 | (hx : ↑x ∈ cutPoints ϑ j hj) : ∃ n : ℕ, cutMultiplicity ϑ j hj x ∣ ϑ.normQ ^ n := by |
| 179 | cases j with |
| 180 | | zero => exact ⟨0, one_dvd _⟩ |
| 181 | | succ k => exact (isStageCut_cutPoints ϑ k hj).multiplicity_dvd_pow x hx |
| 182 | |
| 183 | /-- The image in `U(Y_j)` of a finite point of `U(X_j)` lies in the finite Bessel subgroup. -/ |
| 184 | lemma inclXFin_gradingY_mem_besselFin {j : ℕ} (hj : j ≤ 2 * D.ϱ + 1) (b : Gf D.E (D.X j)) : |
| 185 | (D.gradingY j hj).inclXFin b ∈ (D.gradingY j hj).besselFin := |
| 186 | (D.gradingY j hj).snd_mem_besselFin ((D.gradingY j hj).inclX_mem_besselGroup (1, b)) |
| 187 | |
| 188 | /-- Let `X_j` be the space that `D.gradingY j` embeds in the hermitian space `Y_j`, and let |
| 189 | `cutPoints ϑ j` be the finite set of classes of the finite adelic unitary group of `Y_j` modulo |
| 190 | `levelY ϑ j` over which the `j`-th variable is summed. If `b` lies in the level `D.levelX j` of |
| 191 | `U(X_j)`, then a class `c` lies in `cutPoints ϑ j` if and only if its translate by the image of `b` |
| 192 | in `U(Y_j)` does. -/ |
| 193 | lemma smul_mem_cutPoints_iff {j : ℕ} {hj : j ≤ 2 * D.ϱ + 1} {b : Gf D.E (D.X j)} |
| 194 | (hb : b ∈ D.levelX j) (c : Gf D.E (D.Y j) ⧸ levelY ϑ j) : |
| 195 | c ∈ cutPoints ϑ j hj ↔ (D.gradingY j hj).inclXFin b • c ∈ cutPoints ϑ j hj := by |
| 196 | cases j with |
| 197 | | zero => |
| 198 | induction c using QuotientGroup.induction_on with | H x => |
| 199 | rw [Quotient.smul_mk, mk_mem_cutPoints_zero, mk_mem_cutPoints_zero] |
| 200 | exact (mul_mem_cancel_left (inclXFin_mem_chosenLevel hb)).symm |
| 201 | | succ k => |
| 202 | have hb_stdLevel : (D.gradingY (k + 1) hj).inclXFin b ∈ stdLevel D.E (D.Y (k + 1)) := |
| 203 | (D.gradingY (k + 1) hj).inclXFin_mem_stdLevel (D.spansLattice_gradingY (k + 1) hj) |
| 204 | D.isSplitSquarefree_piNIdele (Subgroup.mem_inf.1 hb).2 |
| 205 | exact (isStageCut_cutPoints ϑ k hj).mem_iff_smul_mem ⟨_, inclXFin_gradingY_mem_besselFin hj b⟩ |
| 206 | hb_stdLevel c |
| 207 | |
| 208 | /-- For a finite point `b` of `U(X_j)` and a class `c` modulo `levelY ϑ j`, moving `c` by the image |
| 209 | `(D.gradingY j hj).inclXFin b` of `b` in `U(Y_j)` does not change `cutMultiplicity ϑ j hj c`. -/ |
| 210 | lemma cutMultiplicity_smul {j : ℕ} {hj : j ≤ 2 * D.ϱ + 1} (b : Gf D.E (D.X j)) |
| 211 | (c : Gf D.E (D.Y j) ⧸ levelY ϑ j) : |
| 212 | cutMultiplicity ϑ j hj ((D.gradingY j hj).inclXFin b • c) = cutMultiplicity ϑ j hj c := by |
| 213 | cases j with |
| 214 | | zero => rfl |
| 215 | | succ k => exact coverMultiplicity_smul _ ⟨_, inclXFin_gradingY_mem_besselFin hj b⟩ c |
| 216 | |
| 217 | variable {ϑ} in |
| 218 | /-- Suppose that the modulus `ϑ.Q` of `ϑ` is empty (`hQ`) and that `k < D.m`. Let `T` be a finite |
| 219 | set of classes of `Gf D.E (D.Y k)` modulo `levelY ϑ k`, and suppose (`hT`) that every point over `T` |
| 220 | lies in `localLevel` at the places not dividing `ϑ.normQ = 1`. Then `T` has at most |
| 221 | `D.residueMatrixCount = M ^ (f n²)` elements, where `M = D.M = p₀ p₁` (the primes of `D`), `f = D.f` |
| 222 | is the number of infinite places of `E`, and `n = D.n D.m`. -/ |
| 223 | lemma card_le_residueMatrixCount (hQ : ϑ.Q = ∅) {k : ℕ} (hk : k < D.m) |
| 224 | {T : Finset (Gf D.E (D.Y k) ⧸ levelY ϑ k)} |
| 225 | (hT : ∀ x : Gf D.E (D.Y k), |
| 226 | ↑x ∈ T → x ∈ localLevel (D.Y k) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal}) : |
| 227 | T.card ≤ D.residueMatrixCount := by |
| 228 | -- As `Q = ∅`, the points over `T` lie in `stdLevel` and the principal level of `D.piM` lies in |
| 229 | -- `levelY ϑ k`. So `T` injects into `stdLevel` modulo that principal level. |
| 230 | have h_out (t : T) : t.val.out ∈ stdLevel D.E (D.Y k) := by |
| 231 | simpa [hQ, mem_stdLevel_iff, localLevel, Ideal.one_notMem] using hT t.val.out (by simp) |
| 232 | have h_level : principalLevel (D.Y k) D.piM ≤ levelY ϑ k := fun g hg ↦ |
| 233 | D.chosenLevel_inf_trivialOn_le ϑ ⟨D.principalLevel_le_chosenLevel dvd_rfl hg, by simp [hQ]⟩ |
| 234 | have h_inj (t t' : T) (h_quot : t.val.out⁻¹ * t'.val.out ∈ principalLevel (D.Y k) D.piM) : |
| 235 | t = t' := by |
| 236 | simpa using QuotientGroup.eq.2 (h_level h_quot) |
| 237 | have : Fact (D.piM ≠ 0) := ⟨D.piM_ne_zero⟩ |
| 238 | calc T.card = Nat.card T := by simp |
| 239 | _ ≤ (principalLevel (D.Y k) D.piM).relIndex (stdLevel D.E (D.Y k)) := |
| 240 | Finite.card_le_of_injective' (f := fun t : T ↦ QuotientGroup.mk ⟨t.val.out, h_out t⟩) |
| 241 | (fun t t' h_eq ↦ h_inj t t' (Subgroup.mem_subgroupOf.1 (QuotientGroup.eq.1 h_eq))) |
| 242 | fun h_zero ↦ absurd h_zero (relIndex_ne_zero_of_isLevel _) |
| 243 | _ ≤ Ideal.absNorm (Ideal.span {D.piM}) ^ Fintype.card (D.Y k) ^ 2 := |
| 244 | relIndex_principalLevel_le D.piM_ne_zero |
| 245 | _ = D.M ^ (D.f * Fintype.card (D.Y k) ^ 2) := by rw [absNorm_piM, ← pow_mul] |
| 246 | _ ≤ D.M ^ (D.f * D.n D.m ^ 2) := |
| 247 | Nat.pow_le_pow_right NeZero.one_le (by grw [D.card_Y_le hk.le]) |
| 248 | _ = D.residueMatrixCount := rfl |
| 249 | |
| 250 | /-! ### Sums over the cuts -/ |
| 251 | |
| 252 | section CutSum |
| 253 | variable {M M' : Type*} [AddCommGroup M] [Module ℂ M] [AddCommGroup M'] [Module ℂ M'] |
| 254 | |
| 255 | /-- The sum of `S` over the tuples obtained from `c` by letting the `j`-th coordinate run over |
| 256 | `cutPoints ϑ j`, each term divided by the multiplicity of that coordinate. -/ |
| 257 | def cutSumAt (j : ℕ) (hj : j ≤ 2 * D.ϱ + 1) (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) |
| 258 | (c : ∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) : M := |
| 259 | ∑ x ∈ cutPoints ϑ j hj, (cutMultiplicity ϑ j hj x : ℂ)⁻¹ • S (update c j x) |
| 260 | |
| 261 | /-- The sum of `S` over `Ω_0 × ⋯ × Ω_{k-1}`, `Ω_j = cutPoints ϑ j`, each term divided by the |
| 262 | multiplicities of its coordinates; the coordinates from `k` on are the class of `1`. -/ |
| 263 | def cutSum : ∀ k : ℕ, k ≤ 2 * D.ϱ + 2 → ((∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) → M |
| 264 | | 0, _, S => S fun i ↦ (1 : Gf D.E (D.Y i)) |
| 265 | | k + 1, hk, S => cutSum k (by omega) (cutSumAt ϑ k (by omega) S) |
| 266 | |
| 267 | /-- A ℂ-linear map `L : M → M'` commutes with `cutSum ϑ k`: the sum of `S` over `Ω_0 × ⋯ × Ω_{k-1}`, |
| 268 | `Ω_i = cutPoints ϑ i`, with each term divided by the multiplicities of its coordinates. -/ |
| 269 | lemma map_cutSum (L : M →ₗ[ℂ] M') (k : ℕ) (hk : k ≤ 2 * D.ϱ + 2) |
| 270 | (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) : |
| 271 | L (cutSum ϑ k hk S) = |
| 272 | cutSum ϑ k hk fun c : ∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i ↦ L (S c) := by |
| 273 | induction k generalizing S with |
| 274 | | zero => rfl |
| 275 | | succ k ih => |
| 276 | simp only [cutSum, ih, cutSumAt, map_sum, _root_.map_smul] |
| 277 | rfl |
| 278 | |
| 279 | /-- Let `S` be a function on tuples of classes modulo the levels `levelY ϑ i` with values in a |
| 280 | complex vector space `M`, and `h` a tuple of group elements whose `k`-th entry is the image of an |
| 281 | element `b` of the level `D.levelX k` of `U(X_k)`. Then `h k` drops out of `cutSumAt ϑ k`, the sum |
| 282 | over the `k`-th coordinate in `cutPoints ϑ k` weighted by the inverses of the multiplicities: this |
| 283 | sum of `S` translated by `h` at `c` is the same sum of `S` at the translate of `c` by `h` with |
| 284 | `k`-th entry replaced by `1`. -/ |
| 285 | lemma cutSumAt_smul {k : ℕ} (hk : k ≤ 2 * D.ϱ + 1) |
| 286 | (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) {h : ∀ i : ℕ, Gf D.E (D.Y i)} |
| 287 | {b : Gf D.E (D.X k)} (hb : b ∈ D.levelX k) (h_eq : h k = (D.gradingY k hk).inclXFin b) |
| 288 | (c : ∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) : |
| 289 | cutSumAt ϑ k hk (fun c' : ∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i ↦ S fun i : ℕ ↦ h i • c' i) c = |
| 290 | cutSumAt ϑ k hk S fun i : ℕ ↦ update h k 1 i • c i := by |
| 291 | -- `h k` permutes `cutPoints ϑ k` and keeps the multiplicities. |
| 292 | refine sum_equiv (toPerm (h k)) (fun x ↦ ?_) fun x _ ↦ ?_ |
| 293 | · simpa [h_eq] using smul_mem_cutPoints_iff ϑ hb x |
| 294 | · have h_update : (fun i : ℕ ↦ h i • update c k x i) = |
| 295 | update (fun i : ℕ ↦ update h k 1 i • c i) k (h k • x) := by |
| 296 | ext i |
| 297 | obtain rfl | hi := eq_or_ne i k <;> simp [*] |
| 298 | simp only [toPerm_apply, h_update, h_eq, cutMultiplicity_smul] |
| 299 | |
| 300 | /-- Let `S` be a function on tuples of classes modulo the levels `levelY ϑ i` with values in a |
| 301 | complex vector space `M`. The sum `cutSum` of `S` over `Ω_0 × ⋯ × Ω_{k-1}`, `Ω_i = cutPoints ϑ i`, |
| 302 | weighted by the inverses of the multiplicities of the coordinates, is invariant under translation |
| 303 | of `S` by a tuple `h` of group elements such that `h i` is the image of an element of the level |
| 304 | `D.levelX i` of `U(X_i)` for `i < k` and `h i = 1` for `i ≥ k`. -/ |
| 305 | lemma cutSum_comp_smul (k : ℕ) (hk : k ≤ 2 * D.ϱ + 2) |
| 306 | (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) {h : ∀ i : ℕ, Gf D.E (D.Y i)} |
| 307 | (h_low : ∀ (i : ℕ) (hi : i < k), |
| 308 | ∃ b ∈ D.levelX i, h i = (D.gradingY i (by omega)).inclXFin b) |
| 309 | (h_high : ∀ i : ℕ, k ≤ i → h i = 1) : |
| 310 | (cutSum ϑ k hk fun c : ∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i ↦ S fun i : ℕ ↦ h i • c i) = |
| 311 | cutSum ϑ k hk S := by |
| 312 | induction k generalizing S h with |
| 313 | | zero => simp [h_high] |
| 314 | | succ k ih => |
| 315 | obtain ⟨b, hb, h_eq⟩ := h_low k k.lt_succ_self |
| 316 | -- `h k` drops out of the last sum; the induction hypothesis applies to `update h k 1`. |
| 317 | rw [cutSum, cutSum, funext (cutSumAt_smul ϑ (by omega) S hb h_eq)] |
| 318 | have h_high' (i : ℕ) (hi : k ≤ i) : update h k 1 i = 1 := by |
| 319 | obtain rfl | hi' := hi.eq_or_lt |
| 320 | · simp |
| 321 | · simpa [hi'.ne'] using h_high i hi' |
| 322 | exact ih _ _ (fun i hi ↦ by simpa [hi.ne] using h_low i (by omega)) h_high' |
| 323 | |
| 324 | /-- Let `k ≤ 2 ϱ + 1`, let `S` be a function from tuples of classes modulo the levels `levelY ϑ i` |
| 325 | to a complex vector space `M`, and let `y` be a tuple of points integral at the places that do not |
| 326 | divide `q = ϑ.normQ`. Let `cutSumAt` be the sum of `S` over the tuples got from `y` by letting the |
| 327 | `k`-th coordinate run over the finite set `cutPoints ϑ k`, each term divided by the multiplicity of |
| 328 | that coordinate. It is an admissible combination of the values of `S` at all such tuples `y'`: a |
| 329 | finite linear combination with coefficients integral away from `q` (denominator `1`) that, if the |
| 330 | modulus `ϑ.Q` is empty, have absolute sum at most `D.residueMatrixCount` under every automorphism of |
| 331 | `ℂ`. -/ |
| 332 | lemma isAdmissibleCombination_cutSumAt {k : ℕ} (hk : k ≤ 2 * D.ϱ + 1) |
| 333 | (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) |
| 334 | (y : ∀ i : ℕ, localLevel (D.Y i) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal}) : |
| 335 | IsAdmissibleCombination |
| 336 | (fun y' : ∀ i : ℕ, localLevel (D.Y i) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal} ↦ |
| 337 | S fun i : ℕ ↦ ⟦(y' i).val⟧) |
| 338 | Set.univ ϑ.normQ 1 (ϑ.Q = ∅) D.residueMatrixCount |
| 339 | (cutSumAt ϑ k hk S fun i : ℕ ↦ ⟦(y i).val⟧) := by |
| 340 | have h_integral : ∀ c ∈ cutPoints ϑ k hk, |
| 341 | ((1 : ℕ) : ℂ) * (cutMultiplicity ϑ k hk c : ℂ)⁻¹ ∈ integralAway ϑ.normQ := by |
| 342 | intro c hc |
| 343 | induction c using QuotientGroup.induction_on with | H x => |
| 344 | obtain ⟨n, hn⟩ : ∃ n : ℕ, cutMultiplicity ϑ k hk x ∣ ϑ.normQ ^ n := |
| 345 | exists_cutMultiplicity_dvd ϑ hc |
| 346 | simpa [div_eq_mul_inv] using div_mem_integralAway (hn.mul_left 1) |
| 347 | have h_size (hQ : ϑ.Q = ∅) (σ : ℂ ≃+* ℂ) : |
| 348 | ∑ c ∈ cutPoints ϑ k hk, ‖σ (cutMultiplicity ϑ k hk c : ℂ)⁻¹‖ ≤ D.residueMatrixCount := by |
| 349 | have h_card : (cutPoints ϑ k hk).card ≤ D.residueMatrixCount := |
| 350 | card_le_residueMatrixCount hQ (lt_m_of_le hk) fun x ↦ mem_localLevel_of_mem_cutPoints ϑ |
| 351 | grw [sum_le_card_nsmul _ _ (1 : ℝ) (by simp [Nat.cast_inv_le_one]), nsmul_one, h_card] |
| 352 | refine .of_eq_isOfFinOrder_smul (.of_sum h_integral h_size) fun c hc ↦ ?_ |
| 353 | -- Each term is `1` times the value of `S` at `y` updated by a point `x` integral away from `q`. |
| 354 | induction c using QuotientGroup.induction_on with | H x => |
| 355 | refine ⟨1, .one, update y k ⟨x, mem_localLevel_of_mem_cutPoints ϑ hc⟩, Set.mem_univ _, ?_⟩ |
| 356 | rw [one_smul] |
| 357 | congr! with i |
| 358 | obtain rfl | hi := eq_or_ne i k <;> simp [*, QuotientGroup.mk] |
| 359 | |
| 360 | /-- Let `k ≤ 2 ϱ + 2` and let `S` be a function from tuples of classes modulo the levels |
| 361 | `levelY ϑ i` to a complex vector space `M`. Let `cutSum` be the sum of `S` over `Ω_0 × ⋯ × Ω_{k-1}`, |
| 362 | `Ω_i = cutPoints ϑ i`, each term divided by the multiplicities of its coordinates, the other |
| 363 | coordinates being the class of `1`. It is an admissible combination of the values of `S` at all |
| 364 | tuples of points integral at the places that do not divide `q = ϑ.normQ`: a finite linear |
| 365 | combination with coefficients integral away from `q` (denominator `1`) that, if the modulus `ϑ.Q` is |
| 366 | empty, have absolute sum at most `D.residueMatrixCount ^ k` under every automorphism of `ℂ`. -/ |
| 367 | lemma isAdmissibleCombination_cutSum (k : ℕ) (hk : k ≤ 2 * D.ϱ + 2) |
| 368 | (S : (∀ i : ℕ, Gf D.E (D.Y i) ⧸ levelY ϑ i) → M) : |
| 369 | IsAdmissibleCombination |
| 370 | (fun y : ∀ i : ℕ, localLevel (D.Y i) {w : FinPlace D.E | ↑ϑ.normQ ∉ w.asIdeal} ↦ |
| 371 | S fun i : ℕ ↦ ⟦(y i).val⟧) |
| 372 | Set.univ ϑ.normQ 1 (ϑ.Q = ∅) (D.residueMatrixCount ^ k) (cutSum ϑ k hk S) := by |
| 373 | induction k generalizing S with |
| 374 | | zero => simpa only [pow_zero, cutSum] using .single 1 (Set.mem_univ 1) |
| 375 | | succ k ih => |
| 376 | exact (ih (by omega) (cutSumAt ϑ k (by omega) S)).bind 1 D.residueMatrixCount |
| 377 | (fun y _ ↦ isAdmissibleCombination_cutSumAt ϑ (by omega) S y) (one_mul 1).dvd |
| 378 | fun _ ↦ by rw [Nat.abs_cast, pow_succ] |
| 379 | |
| 380 | end CutSum |
| 381 | |
| 382 | end New.Data |
| 383 | |
| 384 | end |