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.Algebra.Order.Star.Int |
| 4 | public import New.UpperBound.Divisibility.MarkedPrimes |
| 5 | |
| 6 | /-! |
| 7 | # The places `Σ_N` above N and the set-up at p = N |
| 8 | |
| 9 | This file sets up the case `p = N`. It defines the set `Σ_N` of the conjugates of the places above |
| 10 | `N` that `ιₚ` induces, and shows that it is a split level for `N`. Levels, forms and the operator |
| 11 | `Up` are described at the places of `Σ_N`, in bases of the lattices `L_j` (see |
| 12 | `New.Data.diagPointN`). The file ends with the module `𝒜'` of forms that `Up ^ (ϱ + 1)` sends to |
| 13 | source forms with values integral for `L_0`. |
| 14 | |
| 15 | ## Main definitions and results |
| 16 | |
| 17 | * `New.Data.nonInducedPlaces`, `New.Data.upIntegralForms`: the places `Σ_N` and the module `𝒜'`. |
| 18 | * `New.Data.upOperator_mem_sourceForm`: the operator `Up = upOperator (D.formRepAtN 0)` preserves |
| 19 | the source forms `D.SourceForm`, the forms on `X_0` fixed by its level. |
| 20 | |
| 21 | Notions from other files: |
| 22 | * `New.Data.piNPlaces`: the set of primes dividing `π`, where `π π̄ = N`. |
| 23 | -/ |
| 24 | |
| 25 | @[expose] public section |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | section PlacesAtLevel |
| 30 | |
| 31 | open Matrix Finset Valued WithZero New IsSplitLevel Gf |
| 32 | |
| 33 | namespace New.Data |
| 34 | |
| 35 | variable {P : Parameters} (D : Data P) [PadicPlace D.N] |
| 36 | |
| 37 | open scoped Classical in |
| 38 | /-- The set `Σ_N` of the conjugates of the places above `N` that `ιₚ` induces. -/ |
| 39 | def nonInducedPlaces : Finset (FinPlace D.E) := |
| 40 | univ.image fun τ : D.Φ ↦ star (D.inducedPlace τ) |
| 41 | |
| 42 | lemma star_inducedPlace_mem_nonInducedPlaces (τ : D.Φ) : |
| 43 | star (D.inducedPlace τ) ∈ D.nonInducedPlaces := by |
| 44 | classical exact mem_image_of_mem _ (mem_univ τ) |
| 45 | |
| 46 | /-- The places of `Σ_N = D.nonInducedPlaces` lie above `N`. -/ |
| 47 | lemma natCast_mem_of_mem_nonInducedPlaces {w : FinPlace D.E} (hw : w ∈ D.nonInducedPlaces) : |
| 48 | ↑D.N ∈ w.asIdeal := by |
| 49 | grind [p_mem_inducedPlace, mem_star_place, star_natCast, nonInducedPlaces] |
| 50 | |
| 51 | /-- The set `Σ_N = D.nonInducedPlaces` is a split level for `N`: it contains exactly one place of |
| 52 | each pair `w, w̄` above `N`, and these places are unramified of degree one. -/ |
| 53 | instance isSplitLevel_nonInducedPlaces : IsSplitLevel D.nonInducedPlaces D.N where |
| 54 | star_notMem := by |
| 55 | -- The induced places form one orbit of `Φ`, which contains no conjugate pair as `N` splits. |
| 56 | have h_ne (τ σ : D.Φ) : (σ / τ) • D.inducedPlace τ ≠ star (D.inducedPlace τ) := |
| 57 | P.smul_ne_star D.N_modEq_one (D.p_mem_inducedPlace τ) |
| 58 | simpa [nonInducedPlaces, ← inducedPlace_mul] using h_ne |
| 59 | q_eq w hw := P.q_eq_of_modEq_one D.N_modEq_one (D.natCast_mem_of_mem_nonInducedPlaces hw) |
| 60 | v_natCast w hw := D.v_N_eq_exp_neg_one (D.natCast_mem_of_mem_nonInducedPlaces hw) |
| 61 | natCast_mem_iff w := by |
| 62 | refine ⟨fun hw ↦ ?_, ?_⟩ |
| 63 | · -- Every place above `N` is an induced place or the conjugate of one. |
| 64 | obtain ⟨τ, hτ⟩ : ∃ τ : D.Φ, τ • D.inducedPlace 1 = w ∨ star (τ • D.inducedPlace 1) = w := |
| 65 | P.exists_smul_eq_or_star (D.p_mem_inducedPlace 1) hw |
| 66 | rw [← inducedPlace_mul, one_mul] at hτ |
| 67 | rcases hτ with rfl | rfl <;> simp [D.star_inducedPlace_mem_nonInducedPlaces τ] |
| 68 | · rintro (hw | hw) <;> simpa using D.natCast_mem_of_mem_nonInducedPlaces hw |
| 69 | |
| 70 | /-- The point supported above `N` that is `diag (1, …, 1, N)` at the places of `Σ_N` in `S`, and `1` |
| 71 | at the other places of `Σ_N`. -/ |
| 72 | abbrev diagPoint (j : ℕ) (S : Finset (FinPlace D.E)) : Gf D.E (D.X j) := |
| 73 | embedGL (diagN (P := D.nonInducedPlaces) (N := D.N) (D.InitIndex j) S) |
| 74 | |
| 75 | /-- The point `δ_j`, which is `diag (1, …, 1, N)` at the places of `Σ_N` that divide `π` and `1` at |
| 76 | the others. It takes the standard lattice at `Σ_N` to `L_j`, the lattice of integral vectors whose |
| 77 | last coordinate is divisible by `π`. -/ |
| 78 | abbrev diagPointN (j : ℕ) : Gf D.E (D.X j) := D.diagPoint j D.piNPlaces |
| 79 | |
| 80 | /-- The point `δ_j^∨`, which takes the standard lattice to the dual lattice `L_j^∨` at `Σ_N`. -/ |
| 81 | abbrev dualPointN (j : ℕ) : Gf D.E (D.X j) := |
| 82 | D.diagPointN j * (D.diagPoint j D.nonInducedPlaces)⁻¹ |
| 83 | |
| 84 | /-- A matrix `a` over `LocProd D.nonInducedPlaces`, the product of the completions at `Σ_N`, goes to |
| 85 | `δ_j * embedGL a * δ_j⁻¹`. Here `embedGL a` is the unitary adelic point supported above `N` with |
| 86 | components `a` at `Σ_N`, and `δ_j = D.diagPointN j`. So `a` is read in a basis of `L_j`. -/ |
| 87 | def conjEmbedGL (j : ℕ) : GL (D.X j) (LocProd D.nonInducedPlaces) →* Gf D.E (D.X j) := |
| 88 | (MulAut.conj (D.diagPointN j)).toMonoidHom.comp embedGL |
| 89 | |
| 90 | /-- Forms on `X_j` as a representation of `GL` at `Σ_N`, in a basis of `L_j`. -/ |
| 91 | abbrev formRepAtN (j : ℕ) : Rep ℂ (GL (D.X j) (LocProd D.nonInducedPlaces)) := |
| 92 | Rep.of (X := D.FormX j) ((smoothFormRep (stdSpace D.E (D.X j)).embFin _).comp (D.conjEmbedGL j)) |
| 93 | |
| 94 | open scoped Classical in |
| 95 | /-- The point `D.diagPoint j S` is supported above `N`, and is `diag (1, …, 1, N)` at the places of |
| 96 | `Σ_N` in `S` and `1` at the other places of `Σ_N`. For an infinite place `τ`, the map |
| 97 | `adeleExtension (weightEmbedding ιₚ τ)` reads an adele in `ℂ_[N]` through its component at the |
| 98 | conjugate `w̄` of the place `w = inducedPlace τ`. It sends the point to `diag (1, …, 1, N)` if `w̄` |
| 99 | lies in `S`, and to `1` otherwise. -/ |
| 100 | lemma map_adeleExtension_diagPoint (j : ℕ) (S : Finset (FinPlace D.E)) (τ : D.Φ) : |
| 101 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) (D.diagPoint j S).val = |
| 102 | diagGL fun i : D.X j ↦ if i.isLeft then 1 else |
| 103 | if star (inducedPlace τ) ∈ S then .mk0 ↑D.N NeZero.out else 1 := by |
| 104 | -- The embedding factors through the completion at `star (inducedPlace τ)`, a place of `Σ_N`. |
| 105 | let w : FinPlace D.E := placeOfEmb (weightEmbedding ιₚ τ) |
| 106 | let φ : LocField w →+* ℂ_[D.N] := (exists_placeOfEmb_extension (weightEmbedding ιₚ τ)).choose |
| 107 | have h_place : w = star (D.inducedPlace τ) := by simp [w, inducedPlace, placeOfEmb_comp_star] |
| 108 | have h_factor (g : Gf D.E (D.X j)) : |
| 109 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) g.val = |
| 110 | GeneralLinearGroup.map φ (g.atPlace w) := rfl |
| 111 | have h_at : (D.diagPoint j S).atPlace w = diagGL fun i : D.X j ↦ |
| 112 | if i.isLeft then 1 else if w ∈ S then .mk0 (D.N : LocField w) NeZero.out else 1 := |
| 113 | atPlace_embedGL_diagN (n := D.InitIndex j) (S := S) |
| 114 | ⟨w, by simpa [h_place] using D.star_inducedPlace_mem_nonInducedPlaces τ⟩ |
| 115 | rw [h_factor, h_at, ← h_place, Units.ext_iff] |
| 116 | by_cases hS : w ∈ S <;> simp [hS, apply_ite Units.val, apply_ite φ] |
| 117 | |
| 118 | /-- The direct datum is non-zero at a matrix `M` over the completions at `Σ_N` exactly if at each |
| 119 | place `w` of `Σ_N` the matrix `M` is integral and its last column is that of `1` modulo `w`. Here |
| 120 | `v` is the valuation of the completion at `w`, with `v N = exp (-1)`. -/ |
| 121 | lemma directDatum_ne_zero_iff {j : ℕ} (M : Matrix (D.X j) (D.X j) (LocProd D.nonInducedPlaces)) : |
| 122 | directDatum M ≠ 0 ↔ ∀ w : D.nonInducedPlaces, |
| 123 | (∀ b c : D.X j, v (M b c w) ≤ 1) ∧ |
| 124 | ∀ b : D.X j, v (M b (.inr ()) w - if b.isLeft then 0 else 1) ≤ exp (-1) := by |
| 125 | -- non-vanishing means integral entries and last column `lastBasisVector` after reduction |
| 126 | have h_lift : directDatum M ≠ 0 ↔ ∃ h : ∀ b c : D.X j, M b c ∈ SemilocalField.O, |
| 127 | ∀ b : D.X j, D.isSplitLevel_nonInducedPlaces.reduction ⟨M b (.inr ()), h b (.inr ())⟩ = |
| 128 | lastBasisVector b := by |
| 129 | simp only [directDatum, lastColDatum, funext_iff (α := D.X j), transpose_apply, liftFn_apply, |
| 130 | of_apply, ne_eq, dite_eq_right_iff, not_forall] |
| 131 | exact exists_congr fun _ ↦ by split_ifs <;> simp [*] |
| 132 | simp [h_lift, mem_O_locProd, reduction_eq_iff, D.isSplitLevel_nonInducedPlaces.v_natCast, |
| 133 | div_le_one₀, ZMod.val_one, ← forall_and, forall_comm (β := D.nonInducedPlaces), |
| 134 | -Subtype.forall, -ZMod.natCast_val] |
| 135 | |
| 136 | /-- Let `M` be a matrix on `α ⊕ Unit` over a field `K` equipped with a `WithZero (Multiplicative ℤ)` |
| 137 | valuation `v`, and let `c : K` satisfy `v c = exp (-1)`. Conjugating `M` by `diag (1, …, 1, c)` |
| 138 | produces an integral matrix whose last column is congruent to that of `1` modulo `exp (-1)` if and |
| 139 | only if `M` is integral and its last row is congruent to that of `1` modulo `exp (-1)`. -/ |
| 140 | private lemma conj_diag_integrality_iff {α K : Type*} [DecidableEq α] [Field K] |
| 141 | [Valued K (WithZero (Multiplicative ℤ))] |
| 142 | (M : Matrix (α ⊕ Unit) (α ⊕ Unit) K) {c : K} (hc : v c = exp (-1)) : |
| 143 | ((∀ b d : α ⊕ Unit, |
| 144 | v ((if b.isLeft then 1 else c)⁻¹ * M b d * (if d.isLeft then 1 else c)) ≤ 1) ∧ |
| 145 | ∀ b : α ⊕ Unit, |
| 146 | v ((if b.isLeft then 1 else c)⁻¹ * M b (.inr ()) * c - if b.isLeft then 0 else 1) ≤ |
| 147 | exp (-1)) ↔ |
| 148 | (∀ b d : α ⊕ Unit, v (M b d) ≤ 1) ∧ |
| 149 | ∀ b : α ⊕ Unit, v ((M - 1) (.inr ()) b) ≤ exp (-1) := by |
| 150 | -- Integrality of the conjugate is the congruence on the last row off the corner entry; the |
| 151 | -- congruence on its last column covers the corner entry and otherwise says that the last |
| 152 | -- column of `M` is integral. |
| 153 | have hc_ne : c ≠ 0 := fun h ↦ by |
| 154 | rw [h, map_zero] at hc |
| 155 | exact WithZero.exp_ne_zero hc.symm |
| 156 | have h_exp : exp (-1 : ℤ) ≤ 1 := exp_le_exp.2 (by norm_num : (-1 : ℤ) ≤ 0) |
| 157 | -- Both sides entry by entry: upper block, last row, last column, corner, then the congruences. |
| 158 | suffices h_entries : (∀ a a', v (M (.inl a) (.inl a')) ≤ 1) ∧ |
| 159 | (∀ a, v (M (.inr ()) (.inl a)) ≤ exp (-1)) ∧ |
| 160 | (∀ a, exp (-1) * v (M (.inl a) (.inr ())) ≤ 1) ∧ v (M (.inr ()) (.inr ())) ≤ 1 ∧ |
| 161 | (∀ a, v (M (.inl a) (.inr ())) ≤ 1) ∧ v (M (.inr ()) (.inr ()) - 1) ≤ exp (-1) ↔ |
| 162 | (∀ a a', v (M (.inl a) (.inl a')) ≤ 1) ∧ (∀ a, v (M (.inr ()) (.inl a)) ≤ 1) ∧ |
| 163 | (∀ a, v (M (.inl a) (.inr ())) ≤ 1) ∧ v (M (.inr ()) (.inr ())) ≤ 1 ∧ |
| 164 | (∀ a, v (M (.inr ()) (.inl a)) ≤ exp (-1)) ∧ v (M (.inr ()) (.inr ()) - 1) ≤ exp (-1) by |
| 165 | simpa [hc, inv_mul_le_one₀, mul_right_comm, Unique.forall_iff, inv_mul_cancel₀ hc_ne, |
| 166 | forall_and, and_assoc, -WithZero.inv_exp] using h_entries |
| 167 | constructor |
| 168 | · rintro ⟨h_block, h_row, -, h_corner, h_col, h_cong⟩ |
| 169 | exact ⟨h_block, fun a ↦ (h_row a).trans h_exp, h_col, h_corner, h_row, h_cong⟩ |
| 170 | · rintro ⟨h_block, -, h_col, h_corner, h_row, h_cong⟩ |
| 171 | exact ⟨h_block, h_row, fun a ↦ mul_le_one' h_exp (h_col a), h_corner, h_col, h_cong⟩ |
| 172 | |
| 173 | /-- Let `Σ_N = D.nonInducedPlaces` be the conjugates of the places above `N` induced by the |
| 174 | embedding of `[PadicPlace D.N]`, let `D.piNPlaces` be the primes dividing `π = D.piN` (where |
| 175 | `π π̄ = N`), and let `δ_j = D.diagPointN j` be `diag (1, …, 1, N)` at the places of `Σ_N` that |
| 176 | divide `π` and `1` at the others. The matrix of `δ_j⁻¹ k δ_j` at `Σ_N` is integral with last column |
| 177 | that of `1` modulo `N` exactly if, for each `w` in `Σ_N`, `k` is integral at `w`, the last row of |
| 178 | `k⁻¹` is that of `1` modulo `w̄` if `w̄ ∣ π`, and the last row of `k` is that of `1` modulo `w` if |
| 179 | `w ∣ π`. -/ |
| 180 | lemma directDatum_conj_ne_zero_iff {j : ℕ} (k : Gf D.E (D.X j)) : |
| 181 | directDatum (atPlaces D.nonInducedPlaces ((D.diagPointN j)⁻¹ * k * D.diagPointN j)).val ≠ 0 ↔ |
| 182 | ∀ w ∈ D.nonInducedPlaces, |
| 183 | (∀ b c : D.X j, v (k.atPlace w b c) ≤ 1) ∧ |
| 184 | (star w ∈ D.piNPlaces → ∀ b : D.X j, |
| 185 | v (((k⁻¹.atPlace (star w)).val - 1) (.inr ()) b) ≤ exp (-1)) ∧ |
| 186 | (w ∈ D.piNPlaces → ∀ b : D.X j, v (((k.atPlace w).val - 1) (.inr ()) b) ≤ exp (-1)) := by |
| 187 | classical |
| 188 | rw [directDatum_ne_zero_iff, Subtype.forall'] |
| 189 | refine forall_congr' fun w ↦ ?_ |
| 190 | -- Conjugation multiplies the last column by `t` and divides the last row by `t`, where `t = N` |
| 191 | -- at `w ∣ π` and `t = 1` otherwise. |
| 192 | let t (i : D.X j) : LocField w.val := |
| 193 | if i.isLeft then 1 else if w.val ∈ D.piNPlaces then D.N else 1 |
| 194 | have h_conj (b c : D.X j) : |
| 195 | (atPlaces D.nonInducedPlaces ((D.diagPointN j)⁻¹ * k * D.diagPointN j)).val b c w = |
| 196 | (t b)⁻¹ * k.atPlace w b c * t c := by |
| 197 | have h_entry : atPlaces D.nonInducedPlaces k b c w = k.atPlace w b c := rfl |
| 198 | cases b <;> cases c <;> simp [t, ← map_inv, diagN, h_entry, apply_ite Units.val] |
| 199 | -- The last row of `k⁻¹` at `w̄` is the conjugate of the last column of `k` at `w`. |
| 200 | have h_star (b : D.X j) : v (((k⁻¹.atPlace (star w.val)).val - 1) (.inr ()) b) = |
| 201 | v (k.atPlace w b (.inr ()) - if b.isLeft then 0 else 1) := by |
| 202 | rw [← v_conjLoc rfl (k.atPlace w b (.inr ()) - _)] |
| 203 | cases b <;> simp [k⁻¹.atPlace_star rfl, ← map_inv] |
| 204 | simp only [h_conj, h_star] |
| 205 | by_cases hw : w.val ∈ D.piNPlaces |
| 206 | · simpa only [t, hw, ↓reduceIte, Sum.isLeft_inr, Bool.false_eq_true, |
| 207 | D.isSplitLevel_piNPlaces.star_notMem _ hw, IsEmpty.forall_iff, true_and, forall_const] using |
| 208 | conj_diag_integrality_iff (k.atPlace w).val |
| 209 | (D.isSplitLevel_nonInducedPlaces.v_natCast w w.prop) |
| 210 | · -- Both sides ask for integrality and the congruence on the last column. |
| 211 | have h_star_mem : star w.val ∈ D.piNPlaces := |
| 212 | ((D.isSplitLevel_piNPlaces.natCast_mem_iff _).1 (natCast_level_mem _ w.prop)).resolve_left hw |
| 213 | simp [t, hw, h_star_mem] |
| 214 | |
| 215 | /-- Let `Σ_N = D.nonInducedPlaces` be the conjugates of the places of `E` above `N = D.N` induced by |
| 216 | the embedding `ιₚ` of `[PadicPlace D.N]`, and let `δ_j = D.diagPointN j` be the point supported |
| 217 | above `N` that is `diag (1, …, 1, N)` at the places of `Σ_N` dividing `π = D.piN` (where `π π̄ = N`) |
| 218 | and `1` at the other places of `Σ_N`. Let `k` lie in `D.levelX j`, the group of finite adelic points |
| 219 | of the unitary group of the hermitian space `X_j` (basis `D.X j`) that lie in the integral subgroup |
| 220 | `D.chosenLevel` and have last row that of `1` modulo `π`. Then the components of `δ_j⁻¹ k δ_j` at |
| 221 | `Σ_N` lie in `mirabolic`, the group of integral invertible matrices whose last column is that of |
| 222 | `1` modulo `N`. -/ |
| 223 | lemma atPlaces_conj_mem_mirabolic {j : ℕ} (k : D.levelX j) : |
| 224 | atPlaces D.nonInducedPlaces ((D.diagPointN j)⁻¹ * k.val * D.diagPointN j) ∈ mirabolic := by |
| 225 | have h_ne (k' : D.levelX j) : directDatum |
| 226 | (atPlaces D.nonInducedPlaces ((D.diagPointN j)⁻¹ * k'.val * D.diagPointN j)).val ≠ 0 := |
| 227 | (D.directDatum_conj_ne_zero_iff _).2 fun w _ ↦ |
| 228 | ⟨(mem_stdLevel_iff.1 (levelOf_le_stdLevel (D.mem_levelX.1 k'.prop).1) w).isIntMatrix, |
| 229 | (D.mem_levelX.1 k'⁻¹.prop).2 (star w), (D.mem_levelX.1 k'.prop).2 w⟩ |
| 230 | obtain ⟨a, h_col, ha⟩ := exists_inclGL_eq (h_ne k) |
| 231 | (show directDatum _ ≠ 0 by simpa [mul_assoc] using h_ne k⁻¹) |
| 232 | -- `h_col`: the indicator of "the last column is the last basis vector" is non-zero at `a` |
| 233 | exact ⟨a, (mulVec_single_one ..).trans (ite_ne_right_iff.1 h_col).1, ha⟩ |
| 234 | |
| 235 | /-- Let `Σ_N = D.nonInducedPlaces` be the conjugates of the places of `E` above `N = D.N` induced by |
| 236 | the embedding `ιₚ` of `[PadicPlace D.N]`, and let `δ_j = D.diagPointN j` be the point supported |
| 237 | above `N` that is `diag (1, …, 1, N)` at the places of `Σ_N` dividing `π = D.piN` (where `π π̄ = N`) |
| 238 | and `1` at the other places of `Σ_N`. Let `g` be a finite adelic point of the unitary group of the |
| 239 | hermitian space `X_j` (basis `D.X j`). Suppose that `g` is `1` at every place outside `Σ_N` and its |
| 240 | conjugates (`supportedOn`), and that the components of `δ_j⁻¹ g δ_j` at `Σ_N` lie in `mirabolic`: |
| 241 | they are integral and invertible, with last column that of `1` modulo `N`. Then `g` lies in |
| 242 | `D.levelX j`, the elements of the integral subgroup `D.chosenLevel` with last row that of `1` |
| 243 | modulo `π`. -/ |
| 244 | lemma mem_levelX_of_mem_mirabolic {j : ℕ} {g : Gf D.E (D.X j)} |
| 245 | (h_supp : g ∈ supportedOn (D.X j) D.nonInducedPlaces) |
| 246 | (h_mir : atPlaces D.nonInducedPlaces ((D.diagPointN j)⁻¹ * g * D.diagPointN j) ∈ mirabolic) : |
| 247 | g ∈ D.levelX j := by |
| 248 | choose h_int _ h_row using (D.directDatum_conj_ne_zero_iff g).1 |
| 249 | (directDatum_ne_zero_of_mem_mirabolic h_mir) |
| 250 | choose h_int_inv h_row_inv _ using (D.directDatum_conj_ne_zero_iff g⁻¹).1 |
| 251 | (directDatum_ne_zero_of_mem_mirabolic (by simpa [mul_assoc] using inv_mem h_mir)) |
| 252 | have h_std : g ∈ stdLevel D.E (D.X j) := |
| 253 | (mem_stdLevel_iff_of_supportedOn h_supp).2 fun w hw ↦ mem_intGL.2 ⟨h_int w hw, h_int_inv w hw⟩ |
| 254 | refine D.mem_levelX.2 |
| 255 | ⟨D.inf_supportedOn_le_chosenLevel natCast_level_mem ⟨h_std, h_supp⟩, fun w hw ↦ ?_⟩ |
| 256 | obtain hw_mem | hw_star : w ∈ D.nonInducedPlaces ∨ star w ∈ D.nonInducedPlaces := |
| 257 | (natCast_mem_iff w).1 (D.isSplitLevel_piNPlaces.natCast_level_mem w hw) |
| 258 | · exact h_row w hw_mem hw |
| 259 | · -- If `w̄ ∈ Σ_N`, use the condition on `g⁻¹` at `w̄`. |
| 260 | specialize h_row_inv (star w) hw_star |
| 261 | rw [star_star, inv_inv] at h_row_inv |
| 262 | exact h_row_inv hw |
| 263 | |
| 264 | /-- The representation `ρ = D.formRepAtN 0` is the action of matrices at `Σ_N` on algebraic |
| 265 | automorphic forms for the unitary group of the hermitian space `X_0`, by right translation after |
| 266 | conjugation by `D.diagPointN 0`. Let `φ` be a source form, one fixed by the level subgroup |
| 267 | `D.levelX 0`, and let it be ramified: at each prime `u` dividing `π = D.piN` (where `π π̄ = N`), its |
| 268 | mean over the powers of the scaling `D.scalingGenerator u` is `0`. Then `φ` is a ramified vector of |
| 269 | `ρ`: for each `w` in `Σ_N` it has the form `ψ - ρ x ψ`, with `x` an integral unit scalar matrix that |
| 270 | is `1` modulo `N` at the other places of `Σ_N`. -/ |
| 271 | lemma mem_ramified_of_mem_ramifiedSourceForms {φ : D.SourceForm} (hφ : φ ∈ D.ramifiedSourceForms) : |
| 272 | φ.val ∈ ramified (D.formRepAtN 0) := by |
| 273 | intro w |
| 274 | -- One of `w`, `w̄` is a place `u ∣ π`, and the scaling at `u` is an integral unit scalar at `w`. |
| 275 | obtain ⟨u, hu⟩ : ∃ u : D.piNPlaces, w.val = u ∨ star w.val = u := by |
| 276 | simpa [and_or_left, exists_or] using |
| 277 | (D.isSplitLevel_piNPlaces.natCast_mem_iff _).1 (natCast_level_mem _ w.prop) |
| 278 | obtain ⟨h_int, h_supp⟩ := D.isScalingAt_scalingGenerator u |
| 279 | have h_supp_w : ∀ u' ≠ w.val, star u' ≠ w → (D.scalingGenerator u).val u' = 1 := by aesop |
| 280 | obtain ⟨x, hx_one, hx⟩ := exists_embedGL_scalar_eq_scalarFin (n := D.X 0) w h_int h_supp_w |
| 281 | -- A scalar is not changed by the passage to a basis of `L_0`. |
| 282 | have h_conj : D.conjEmbedGL 0 (inclGL (GeneralLinearGroup.scalar (D.X 0) x)) = |
| 283 | scalarFin (D.X 0) (D.scalingGenerator u) := by |
| 284 | simp [conjEmbedGL, hx, ← (Seesaw.commute_scalarFin _).eq] |
| 285 | obtain ⟨ψ, hψ⟩ : ∃ ψ : D.SourceForm, φ.val = ψ.val - |
| 286 | algFormRep D.columnCount (D.lastEntry 0) (scalarFin (D.X 0) (D.scalingGenerator u)) ψ := |
| 287 | D.exists_eq_sub_scalingGenerator u hφ |
| 288 | exact ⟨x, hx_one, ψ, by simp [h_conj, hψ]⟩ |
| 289 | |
| 290 | /-- For a matrix `a` over the completions at `Σ_N = D.nonInducedPlaces`, the adelic point |
| 291 | `D.conjEmbedGL j a` (`a` read in a basis of the lattice `L_j`) lies in |
| 292 | `supportedOn (D.X j) D.nonInducedPlaces`. That is, its component is `1` at every place outside `Σ_N` |
| 293 | and the conjugate places. -/ |
| 294 | lemma conjEmbedGL_mem_supportedOn (j : ℕ) (a : GL (D.X j) (LocProd D.nonInducedPlaces)) : |
| 295 | D.conjEmbedGL j a ∈ supportedOn (D.X j) D.nonInducedPlaces := |
| 296 | mul_mem (mul_mem (embedGL_mem_supportedOn _) (embedGL_mem_supportedOn a)) |
| 297 | (inv_mem (embedGL_mem_supportedOn _)) |
| 298 | |
| 299 | /-- The stabiliser `mirabolic` of the standard marked lattice, read in a basis of `L_j`, lies in the |
| 300 | level of `X_j`. -/ |
| 301 | lemma conjEmbedGL_mem_levelX {j : ℕ} {a : GL (D.X j) (LocProd D.nonInducedPlaces)} |
| 302 | (ha : a ∈ mirabolic) : D.conjEmbedGL j a ∈ D.levelX j := |
| 303 | D.mem_levelX_of_mem_mirabolic (D.conjEmbedGL_mem_supportedOn j a) |
| 304 | (by simpa [conjEmbedGL, mul_assoc] using ha) |
| 305 | |
| 306 | /-- The operator `Up = upOperator (D.formRepAtN 0)` acts on `D.FormX 0`, the algebraic automorphic |
| 307 | forms for the unitary group of the hermitian space `X_0`, and preserves `D.SourceForm`, the forms |
| 308 | fixed by the level subgroup `D.levelX 0`. -/ |
| 309 | lemma upOperator_mem_sourceForm {φ : D.FormX 0} (hφ : φ ∈ D.SourceForm) : |
| 310 | upOperator (D.formRepAtN 0) φ ∈ D.SourceForm := by |
| 311 | -- Write an element `k` of the level as its part above `N`, with matrix `a` in a basis of `L_0`, |
| 312 | -- times a part `b` away from `N`. Both parts lie in the level. `Up` commutes with `b`, which |
| 313 | -- fixes `φ`, and preserves the forms fixed by the part of the level above `N`. |
| 314 | intro k |
| 315 | let a : GL (D.X 0) (LocProd D.nonInducedPlaces) := |
| 316 | atPlaces D.nonInducedPlaces ((D.diagPointN 0)⁻¹ * k.val * D.diagPointN 0) |
| 317 | have ha : a ∈ mirabolic := D.atPlaces_conj_mem_mirabolic k |
| 318 | let b : Gf D.E (D.X 0) := (D.conjEmbedGL 0 a)⁻¹ * k.val |
| 319 | have hb_away : b ∈ trivialOn (D.X 0) D.nonInducedPlaces := by |
| 320 | have h_one : atPlaces D.nonInducedPlaces b = 1 := by simp [a, b, conjEmbedGL, mul_assoc] |
| 321 | refine mem_trivialOn.2 fun w hw ↦ Units.ext (Matrix.ext fun i j ↦ ?_) |
| 322 | rw [show b.atPlace w i j = atPlaces D.nonInducedPlaces b i j ⟨w, hw⟩ from rfl, h_one] |
| 323 | by_cases hij : i = j <;> simp [hij] |
| 324 | have h_fix {g : Gf D.E (D.X 0)} (hg : g ∈ D.levelX 0) : |
| 325 | algFormRep D.columnCount (D.lastEntry 0) g φ = φ := by simpa using hφ ⟨g, hg⟩ |
| 326 | have h_commute : Commute (algFormRep D.columnCount (D.lastEntry 0) b) |
| 327 | (upOperator (D.formRepAtN 0)) := |
| 328 | commute_upOperator (π := D.formRepAtN 0) fun g ↦ |
| 329 | (commute_supportedOn_trivialOn (D.conjEmbedGL_mem_supportedOn 0 g) hb_away).symm.map _ |
| 330 | have hb_fix : algFormRep D.columnCount (D.lastEntry 0) b (upOperator (D.formRepAtN 0) φ) = |
| 331 | upOperator (D.formRepAtN 0) φ := by |
| 332 | rw [← mul_apply_eq_comp, h_commute.eq, mul_apply_eq_comp, |
| 333 | h_fix (mul_mem (inv_mem (D.conjEmbedGL_mem_levelX ha)) k.prop)] |
| 334 | -- The character of the level in the definition of `D.SourceForm` is trivial. |
| 335 | rw [show k.val = D.conjEmbedGL 0 a * b from (mul_inv_cancel_left _ _).symm, map_mul, |
| 336 | mul_apply_eq_comp, hb_fix, MonoidHom.one_apply, one_smul] |
| 337 | exact mirabolic_fix_upOperator (π := D.formRepAtN 0) |
| 338 | (fun _ hg ↦ h_fix (D.conjEmbedGL_mem_levelX hg)) ha |
| 339 | |
| 340 | /-- The module `𝒜'` of the forms `φ` on `X_0` such that `Up ^ (ϱ + 1) φ` is a source form with |
| 341 | values integral for `L_0`, over the ring `embValRing` of complex numbers that `ιₚ` sends to `N`-adic |
| 342 | integers. Here `Up` is the operator `upOperator` at `Σ_N` (see `upOperator_mem_sourceForm`), and |
| 343 | `ϱ = D.ϱ` with `ϱ + 1 = m / 2`. The module does not depend on the twist. -/ |
| 344 | abbrev upIntegralForms : Submodule embValRing (D.FormX 0) := |
| 345 | (integralFormsAt D.SourceForm (D.diagPointN 0)).comap |
| 346 | ((upOperator (D.formRepAtN 0) ^ (D.ϱ + 1)).restrictScalars embValRing) |
| 347 | |
| 348 | end New.Data |
| 349 | |
| 350 | end PlacesAtLevel |
| 351 | |
| 352 | end |