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.Polynomial.Reverse |
| 4 | import Mathlib.LinearAlgebra.PiTensorProduct.Finite |
| 5 | public import Lib.Adelic.AutomorphicForms.PAdicGauge |
| 6 | public import Lib.General.LinearAlgebra.BlockEmbeddings |
| 7 | public import Lib.Weil.DualPair.KernelDecay |
| 8 | public import Lib.Weil.DualPair.KernelLaws |
| 9 | |
| 10 | /-! |
| 11 | # Level moduli, residue data as Schwartz–Bruhat functions, and descent in positive degree |
| 12 | |
| 13 | This file treats the modulus `M ^ c Q`, where `M` and `Q` are the products of two families of places |
| 14 | (the chosen places and the twist places) and `c` is a natural number. For a principal modulus |
| 15 | `(star g)` and a vector `x` with `g x` integral, it writes the translate of the vacuum by `x` as a |
| 16 | combination of the data `New.modDatum` of indicator functions of classes. Finally it proves a lemma |
| 17 | of algebra over a commutative ring: if ∏ (T - a i) = 0 with all a i invertible and |
| 18 | ∏ (S T^k - α i a i^k) = 0 for every k > 0, then |
| 19 | ∏ (S - α i) = 0. |
| 20 | |
| 21 | ## Main definitions and results |
| 22 | |
| 23 | * `New.Rows.places_levelModulus`: for `c ≠ 0` the places dividing `M ^ c Q` are the places of `M` |
| 24 | and of `Q`. |
| 25 | * `New.isSchwartzBruhat_residueDatum`: the function `New.residueDatum w f` (`f` of the reductions |
| 26 | at the places `w i` on matrices integral there, `0` elsewhere) is Schwartz–Bruhat |
| 27 | (`New.IsSchwartzBruhat`) if no `w i` is conjugate to a `w j`. |
| 28 | * `New.Rows.liftFn_eq_residueDatum`, `New.exists_modulus_places_eq`: it is the lift of a function |
| 29 | modulo a modulus `New.Modulus`, an ideal prime to its conjugate, with the same set of places; |
| 30 | such a modulus exists if no `w i` is conjugate to a `w j`. |
| 31 | * `New.exists_rho_finVec_vacElem_eq_sum_modDatum`: if `𝔪 = (star g)` and `g x` is integral, the |
| 32 | translate of the vacuum by `x` is a combination of the data `New.modDatum` of the indicator |
| 33 | functions of classes modulo `𝔪`, with values of `New.stdLattice.selfDualAddChar` as coefficients. |
| 34 | * `New.GaloisRep.eval₂_prod_eq_zero_of_mul_pow`: the lemma of algebra just stated, for S and T in a |
| 35 | ring that commute with the image of a ring homomorphism from a commutative ring K, with each a i |
| 36 | invertible. |
| 37 | |
| 38 | Notions from other files: |
| 39 | * `New.Modulus.liftFn`: A function Ψ of vectors mod 𝔪, read on finite adelic vectors: Ψ of the |
| 40 | reduction if the vector is integral at the places of 𝔪 (`New.Modulus.places`), and 0 otherwise. |
| 41 | |
| 42 | ## Relation to the literature |
| 43 | |
| 44 | Known; see `Lib.Weil.MixedModel.ZeroTerm` for sources. |
| 45 | -/ |
| 46 | |
| 47 | @[expose] public section |
| 48 | |
| 49 | namespace New |
| 50 | |
| 51 | /-! |
| 52 | ## The level modulus of a set of chosen places and its places |
| 53 | |
| 54 | For chosen places `S` (`New.LevelPlaces`: two finite families, with products `M` and `Q`, no place |
| 55 | conjugate to itself or to another), `New.LevelPlaces.levelModulus S c b` is the modulus `M ^ c Q` or |
| 56 | `M ^ c`, according to `b`. |
| 57 | -/ |
| 58 | |
| 59 | section LevelModulus |
| 60 | |
| 61 | open Matrix NumberField Ideal IsPrime Set Finset Rows |
| 62 | |
| 63 | variable {E : Type} [Field E] [NumberField E] {ι : Type*} [Fintype ι] {u : ι → FinPlace E} |
| 64 | |
| 65 | /-- The product of finitely many places `u i` of `E` is contained in the prime of a place `w` if and |
| 66 | only if `w` is one of the `u i`. -/ |
| 67 | lemma Rows.prod_places_le_iff {w : FinPlace E} : |
| 68 | ∏ i : ι, (u i).asIdeal ≤ w.asIdeal ↔ ∃ i : ι, u i = w := by |
| 69 | simp [prod_le, IsMaximal.eq_iff_le, ne_top, (u _).ext_iff] |
| 70 | |
| 71 | variable [IsCMField E] (S : LevelPlaces E) |
| 72 | |
| 73 | /-- The modulus M^c·Q if b is true and M^c otherwise, with M and Q the products of the places |
| 74 | `New.LevelPlaces.chosenPlace` and `New.LevelPlaces.twistPlace` of S. -/ |
| 75 | noncomputable def LevelPlaces.levelModulus (c : ℕ) (b := true) : Modulus E where |
| 76 | ideal := |
| 77 | (∏ i : S.ChosenIndex, (S.chosenPlace i).asIdeal) ^ c * |
| 78 | if b then ∏ i : S.TwistIndex, (S.twistPlace i).asIdeal else 1 |
| 79 | ne_bot := by simp [← absNorm_eq_zero_iff, prod_eq_zero_iff, ite_eq_iff] |
| 80 | not_le_star := by |
| 81 | -- A place that divides the modulus is a chosen place or a twist place, and none of these is |
| 82 | -- conjugate to itself or to another. |
| 83 | obtain ⟨-, h_conj⟩ := S.apart |
| 84 | have h_place : ∀ w : FinPlace E, |
| 85 | (∏ i : S.ChosenIndex, (S.chosenPlace i).asIdeal) ^ c * |
| 86 | (if b then ∏ i : S.TwistIndex, (S.twistPlace i).asIdeal else 1) ≤ w.asIdeal → |
| 87 | ∃ i : S.ChosenIndex ⊕ S.TwistIndex, (S.chosenPlace ⊕ᵥ S.twistPlace) i = w := fun w hw ↦ by |
| 88 | rw [Sum.exists] |
| 89 | exact (w.isPrime.mul_le.1 hw).imp (fun h ↦ prod_places_le_iff.1 (w.isPrime.le_of_pow_le h)) |
| 90 | fun h ↦ prod_places_le_iff.1 (by cases b <;> simp_all [w.isPrime.ne_top]) |
| 91 | intro w hw hw' |
| 92 | obtain ⟨⟨i, hi⟩, ⟨j, hj⟩⟩ := And.intro (h_place w hw) (h_place (star w) hw') |
| 93 | exact h_conj i j (by rw [hi, hj]) |
| 94 | |
| 95 | /-- The modulus M·Q is the product of the chosen places and the twist places of S. -/ |
| 96 | lemma LevelPlaces.ideal_levelModulus_one : |
| 97 | (S.levelModulus 1).ideal = |
| 98 | ∏ i : S.ChosenIndex ⊕ S.TwistIndex, ((S.chosenPlace ⊕ᵥ S.twistPlace) i).asIdeal := by |
| 99 | simp [LevelPlaces.levelModulus] |
| 100 | |
| 101 | /-- The modulus M is the product of the chosen places of S. -/ |
| 102 | lemma LevelPlaces.ideal_levelModulus_one_false : |
| 103 | (S.levelModulus 1 false).ideal = ∏ i : S.ChosenIndex, (S.chosenPlace i).asIdeal := by |
| 104 | simp [LevelPlaces.levelModulus] |
| 105 | |
| 106 | variable {S} |
| 107 | |
| 108 | /-- Let `S` be a choice of chosen places and twist places of `E`, with products `M` and `Q`. For |
| 109 | `c ≠ 0` (the instance `NeZero c`), the places that divide the modulus `S.levelModulus c = M ^ c Q` |
| 110 | are the chosen places and the twist places. -/ |
| 111 | lemma Rows.places_levelModulus {c : ℕ} [NeZero c] : |
| 112 | (S.levelModulus c).places = Set.range (S.chosenPlace ⊕ᵥ S.twistPlace) := by |
| 113 | ext w |
| 114 | -- A prime contains `M ^ c Q` iff it contains `M` or `Q`, iff it is one of their factors. |
| 115 | change (∏ i : S.ChosenIndex, (S.chosenPlace i).asIdeal) ^ c * |
| 116 | ∏ i : S.TwistIndex, (S.twistPlace i).asIdeal ≤ w.asIdeal ↔ _ |
| 117 | rw [w.isPrime.mul_le, pow_le_iff (NeZero.ne c), prod_places_le_iff, prod_places_le_iff] |
| 118 | simp |
| 119 | |
| 120 | /-- For c ≠ 0 and a place dividing M or Q, the reduction from the residue ring modulo M^c·Q to the |
| 121 | residue field at that place. -/ |
| 122 | noncomputable abbrev Rows.levelResidueAt {c : ℕ} [NeZero c] (i : S.ChosenIndex ⊕ S.TwistIndex) : |
| 123 | (S.levelModulus c).ResidueRing →+* ResField ((S.chosenPlace ⊕ᵥ S.twistPlace) i) := |
| 124 | modulusResidue (S.levelModulus c) (places_levelModulus.ge ⟨i, rfl⟩) |
| 125 | |
| 126 | /-- If the ideal of 𝔪 is the product of the primes u i, then every u i divides 𝔪. -/ |
| 127 | lemma Modulus.mem_places_of_ideal_eq_prod {𝔪 : Modulus E} |
| 128 | (h𝔪 : 𝔪.ideal = ∏ i : ι, (u i).asIdeal) (i : ι) : u i ∈ 𝔪.places := |
| 129 | h𝔪.trans_le (prod_places_le_iff.2 ⟨i, rfl⟩) |
| 130 | |
| 131 | /-- Residues at the distinct prime factors determine a class modulo their product. -/ |
| 132 | lemma Modulus.eq_iff_modulusResidue_eq {𝔪 : Modulus E} (hu : u.Injective) |
| 133 | (h𝔪 : 𝔪.ideal = ∏ i : ι, (u i).asIdeal) {x y : 𝔪.ResidueRing} : |
| 134 | x = y ↔ ∀ i, modulusResidue 𝔪 (mem_places_of_ideal_eq_prod h𝔪 i) x = |
| 135 | modulusResidue 𝔪 (mem_places_of_ideal_eq_prod h𝔪 i) y := by |
| 136 | obtain ⟨c, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 137 | obtain ⟨d, rfl⟩ := Ideal.Quotient.mk_surjective y |
| 138 | change _ ↔ ∀ i, algebraMap (𝓞 E) (ResField (u i)) c = algebraMap (𝓞 E) (ResField (u i)) d |
| 139 | simp_rw [Ideal.Quotient.eq, h𝔪, mem_prod_finPlace_iff hu, |
| 140 | ← algebraMap_ResField_eq_zero, map_sub, sub_eq_zero] |
| 141 | |
| 142 | /-- The injectivity in the Chinese remainder theorem: if the ideal of 𝔪 is the product of the |
| 143 | distinct primes u i, two matrices over O_E/𝔪 are equal if and only if their reductions at every |
| 144 | u i are equal. -/ |
| 145 | lemma Modulus.matrix_eq_iff_map_modulusResidue_eq {𝔪 : Modulus E} (hu : u.Injective) |
| 146 | (h𝔪 : 𝔪.ideal = ∏ i : ι, (u i).asIdeal) {a b : Type*} {x y : Matrix a b 𝔪.ResidueRing} : |
| 147 | x = y ↔ |
| 148 | ∀ i : ι, |
| 149 | x.map (modulusResidue 𝔪 (mem_places_of_ideal_eq_prod h𝔪 i)) = |
| 150 | y.map (modulusResidue 𝔪 (mem_places_of_ideal_eq_prod h𝔪 i)) := by |
| 151 | simp only [← ext_iff, Matrix.map_apply, forall_comm (α := ι)] |
| 152 | exact forall₂_congr fun _ _ ↦ eq_iff_modulusResidue_eq hu h𝔪 |
| 153 | |
| 154 | end LevelModulus |
| 155 | |
| 156 | /-! ## Residue data and translates of the vacuum -/ |
| 157 | |
| 158 | section ResidueDataApi |
| 159 | |
| 160 | open Matrix Set Valued Rows Modulus NumberField |
| 161 | |
| 162 | section |
| 163 | |
| 164 | variable {n n' E : Type} [Field E] [NumberField E] [IsCMField E] |
| 165 | {ι : Type*} [Fintype ι] {w : ι → FinPlace E} |
| 166 | (f : ((i : ι) → Matrix n' n (ResField (w i))) → ℂ) [Fintype n] [DecidableEq n] [Fintype n'] |
| 167 | [DecidableEq n'] {x : n' × n → 𝔸f E} {𝔪 : Modulus E} |
| 168 | |
| 169 | /-- For a place `w` dividing the modulus `𝔪` and an element `k` of the integral finite adelic |
| 170 | unitary group `stdLevel E n`, reducing `k` modulo `𝔪` (`reductionGL`) and then modulo `w` |
| 171 | (`modulusResidue`) is the reduction `stdLevel.reduceAt w k` of `k` at `w`. -/ |
| 172 | @[simp] |
| 173 | lemma Rows.reductionGL_map_modulusResidue (𝔪 : Modulus E) {w : FinPlace E} (h : w ∈ 𝔪.places) |
| 174 | (k : stdLevel E n) : |
| 175 | (reductionGL 𝔪 k).val.map (modulusResidue 𝔪 h) = (stdLevel.reduceAt w k).val := by |
| 176 | ext i j |
| 177 | exact modulusResidue_reduction 𝔪 h _ |
| 178 | |
| 179 | omit [DecidableEq n] [DecidableEq n'] in |
| 180 | /-- If the places of `𝔪` are the `w i`, then `New.residueDatum w f` (`f` of the reductions at the |
| 181 | `w i` on matrices integral there, `0` elsewhere) is the lift `New.Modulus.liftFn` to adelic vectors |
| 182 | of the function that sends a matrix `T` modulo `𝔪` to `f` of the reductions `modulusResidue` of `T` |
| 183 | at the `w i`; `vecToMatrix` reads a vector indexed by `n' × n` as a matrix. -/ |
| 184 | lemma Rows.liftFn_eq_residueDatum {𝔪 : Modulus E} (h_places : places 𝔪 = range w) |
| 185 | (f : ((i : ι) → Matrix n' n (ResField (w i))) → ℂ) : |
| 186 | 𝔪.liftFn |
| 187 | ((fun T : Matrix n' n 𝔪.ResidueRing ↦ |
| 188 | f fun i : ι ↦ T.map (modulusResidue 𝔪 (h_places.ge ⟨i, rfl⟩))) ∘ |
| 189 | vecToMatrix (m := n) (m' := n')) = |
| 190 | residueDatum w f := by |
| 191 | classical |
| 192 | ext x |
| 193 | -- Both sides test whether the entries of `x` are integral at the places `w i`. |
| 194 | have h_int : (∀ p : n' × n, idem 𝔪.places * x p ∈ Ô E) ↔ |
| 195 | ∀ (i : ι) (p : n' × n), x p (w i) ∈ LocInt (w i) := by |
| 196 | simp only [idem_mul_mem_Ô, h_places, forall_mem_range] |
| 197 | exact forall_comm |
| 198 | -- Reducing modulo `𝔪` and then modulo `w i` gives the residue of the component at `w i`. |
| 199 | have h_res (i : ι) (hi : w i ∈ 𝔪.places) (z : 𝔸f E) (hz : idem 𝔪.places * z ∈ Ô E) : |
| 200 | modulusResidue 𝔪 hi (𝔪.reduction ⟨idem 𝔪.places * z, hz⟩) = residueOrZero (z (w i)) := by |
| 201 | simp [reduceAt, ← residueOrZero_coe, RingHom.codRestrict, hi] |
| 202 | simp only [liftFn_apply, residueDatum, h_int] |
| 203 | split_ifs <;> simp [h_res, map, vecToMatrix] |
| 204 | |
| 205 | open Space stdLattice Ideal |
| 206 | |
| 207 | /-- If no `w i` is conjugate to a `w j`, there is a modulus whose places are the `w i` and which |
| 208 | contains the intersection of these primes. -/ |
| 209 | lemma exists_modulus_places_eq (hw : ∀ i j : ι, star (w i) ≠ w j) : |
| 210 | ∃ 𝔪 : Modulus E, |
| 211 | places 𝔪 = range w ∧ (Finset.univ.inf fun i : ι ↦ (w i).asIdeal) ≤ 𝔪.ideal := by |
| 212 | -- Take the intersection of the `w i`; a prime contains it exactly if it is one of them. |
| 213 | let I : Ideal (𝓞 E) := Finset.univ.inf fun i : ι ↦ (w i).asIdeal |
| 214 | have h_le (u : FinPlace E) : I ≤ u.asIdeal ↔ ∃ i : ι, w i = u := by |
| 215 | rw [u.isPrime.inf_le', ← prod_places_le_iff, u.isPrime.prod_le] |
| 216 | have h_ne : I ≠ ⊥ := fun h_bot ↦ |
| 217 | let ⟨i, _, hi⟩ := Ideal.isPrime_bot.inf_le'.1 h_bot.le; (w i).ne_bot (le_bot_iff.1 hi) |
| 218 | -- By `hw`, a prime and its conjugate do not both contain `I`. |
| 219 | refine ⟨⟨I, h_ne, fun u hu hu' ↦ ?_⟩, Set.ext h_le, le_rfl⟩ |
| 220 | obtain ⟨i, rfl⟩ := (h_le u).1 hu |
| 221 | obtain ⟨j, hj⟩ := (h_le _).1 hu' |
| 222 | exact hw i j hj.symm |
| 223 | |
| 224 | end |
| 225 | |
| 226 | open Space stdLattice Ideal |
| 227 | |
| 228 | variable {n n' E : Type} [Field E] [CMType E] {ι : Type*} [Fintype ι] {w : ι → FinPlace E} |
| 229 | (f : ((i : ι) → Matrix n' n (ResField (w i))) → ℂ) [Fintype n] [DecidableEq n] [Fintype n'] |
| 230 | [DecidableEq n'] {x : n' × n → 𝔸f E} {𝔪 : Modulus E} [WeilData E] {s : n → ℤˣ} {s' : n' → ℤˣ} |
| 231 | (V : Space E n s) (V' : Space E n' s') |
| 232 | |
| 233 | omit [WeilData E] in |
| 234 | /-- If no `w i` is conjugate to a `w j`, then `New.residueDatum w f` (`f` of the reductions at the |
| 235 | `w i` on matrices integral there, `0` elsewhere) is Schwartz–Bruhat at the places `w i`: it depends |
| 236 | only on the components there and, as a function of these, is locally constant of compact support. -/ |
| 237 | lemma isSchwartzBruhat_residueDatum (hw : ∀ i j : ι, star (w i) ≠ w j) : |
| 238 | IsSchwartzBruhat (range w) (residueDatum w f) := by |
| 239 | obtain ⟨𝔪, h𝔪, -⟩ := exists_modulus_places_eq hw |
| 240 | rw [← h𝔪, ← liftFn_eq_residueDatum h𝔪 f] |
| 241 | exact isSchwartzBruhat_liftFn 𝔪 _ |
| 242 | |
| 243 | /-- The datum `New.modDatum` of a function `Ψ` on matrices modulo `𝔪` with the Gaussian |
| 244 | `Fock.vacVector` as real part is what the operator `schrodingerOp` of the lift of `Ψ` (`vecToMatrix` |
| 245 | reads vectors as matrices) makes of the vacuum `vacElem` of `V.hom V' = Hom(V, V')`. Here |
| 246 | `V : Space E n s` and `V' : Space E n' s'` have signs `s`, `s'` (units ±1), and `E` carries a CM |
| 247 | type (`CMType E`) and Weil data (`WeilData E`). For a function `Φ` on finite adelic vectors, |
| 248 | `New.Space.schrodingerOp W P Φ` is the operator on `𝒮 W` (the space on which `W.ϱ` acts, which |
| 249 | contains the vacuum `vacElem`) that realizes `Φ` at the places `P`: the combination of Heisenberg |
| 250 | translations whose counterpart in the Schrödinger model at `P` carries the indicator of the integral |
| 251 | vectors to `Φ`, if there is one. -/ |
| 252 | @[simp↓] |
| 253 | lemma modDatum_vacVector (Ψ : Matrix n' n 𝔪.ResidueRing → ℂ) : |
| 254 | modDatum V V' 𝔪 Ψ Fock.vacVector = |
| 255 | schrodingerOp (V.hom V') 𝔪.places (𝔪.liftFn (Ψ ∘ vecToMatrix)) |
| 256 | (Space.vacElem (V.hom V')) := by |
| 257 | -- The operator of the real part commutes with `schrodingerOp` and, for the Gaussian, fixes the |
| 258 | -- vacuum. |
| 259 | simp [modDatum, integrated_schrodingerOp] |
| 260 | |
| 261 | /-- Let the ideal of the modulus `𝔪` be `(star g)`, and let `x` be a finite adelic vector of |
| 262 | `V.hom V' = Hom(V, V')` with `g x` in `Ô E` (integral). Apply the Heisenberg operator `ϱ` of |
| 263 | `New.finVec x` (finite part `α x`, where `α` is the finite idele of the Weil data; real part zero) |
| 264 | to the vacuum `vacElem`. The result is `∑_T New.stdLattice.selfDualAddChar E (z T) • New.modDatum V |
| 265 | V' 𝔪 (Pi.single T 1) Fock.vacVector` for some `z`, where `T` runs over the matrices modulo `𝔪`, and |
| 266 | each datum has real part the Gaussian `Fock.vacVector`, equals the lift of the indicator of `T` at |
| 267 | the places dividing `𝔪`, and equals the vacuum elsewhere. -/ |
| 268 | lemma exists_rho_finVec_vacElem_eq_sum_modDatum {g : 𝓞 E} (h_ideal : 𝔪.ideal = span {star g}) |
| 269 | (hx : ∀ i : n' × n, algebraMap E (𝔸f E) g * x i ∈ Ô E) : |
| 270 | ∃ z : Matrix n' n 𝔪.ResidueRing → 𝔸f E, |
| 271 | (V.hom V').ϱ (finVec x) (Space.vacElem (V.hom V')) = |
| 272 | ∑ T : Matrix n' n 𝔪.ResidueRing, |
| 273 | selfDualAddChar E (z T) • modDatum V V' 𝔪 (Pi.single T 1) Fock.vacVector := by |
| 274 | -- `x` differs by a lattice vector `y` from its part above the conjugates of the places of `𝔪`. |
| 275 | -- The operator `finHeisenbergOp y` fixes the vacuum, and the translate of the vacuum by that part |
| 276 | -- is the datum of an additive character modulo `𝔪` (`schrodingerOp_char_eq_translate_projOn`). |
| 277 | -- First: for `a = c * conj g`, `c` integral, `a * conj (x q) = c * conj (g * x q)` is integral. |
| 278 | have h_ker_mul (q : n' × n) (a : Ô E) (ha : 𝔪.reduction a = 0) : ↑a * star (x q) ∈ Ô E := by |
| 279 | obtain ⟨c, rfl⟩ : ∃ c : Ô E, c * algebraMap (𝓞 E) (Ô E) (star g) = a := by |
| 280 | simpa [𝔪.reduction_eq_zero_iff, h_ideal, map_span, mem_span_singleton'] using ha |
| 281 | simpa [mul_assoc] using mul_mem c.property (star_mem_Ô (hx q)) |
| 282 | let y : n' × n → 𝔸f E := star (idem 𝔪.places) • x - x |
| 283 | have hy : y ∈ stdLattice E (n' × n) := fun q ↦ by |
| 284 | have h_red : 𝔪.reduction (⟨idem 𝔪.places, idem_mem_Ô _⟩ - 1) = 0 := by |
| 285 | simpa [sub_eq_zero] using 𝔪.reduction_idem_mul 1 |
| 286 | simpa [y, sub_mul] using star_mem_Ô (h_ker_mul q _ h_red) |
| 287 | -- The character is `r ↦ 𝔪.primAddChar (r ⬝ᵥ 𝔪.reduction ∘ u)` for the integral vector |
| 288 | -- `u = 𝔪.generator * conj x`. |
| 289 | let u : n' × n → Ô E := fun q ↦ ⟨𝔪.generator * star (x q), |
| 290 | h_ker_mul q ⟨𝔪.generator, 𝔪.generator_spec.1⟩ (by simp [generator_spec])⟩ |
| 291 | have h_part : x + y = star (idem 𝔪.places • 𝔪.generator⁻¹.val • Subtype.val ∘ u) := by |
| 292 | ext; simp [y, u] |
| 293 | -- The translate is a multiple of the operator of that character applied to the vacuum. |
| 294 | let W := V.hom V' |
| 295 | have h_translate : W.ϱ (finVec x) W.vacElem = |
| 296 | semichar y • selfDualAddChar E (half * star y ⬝ᵥ x) • |
| 297 | schrodingerOp W 𝔪.places (𝔪.liftFn fun r ↦ 𝔪.primAddChar (r ⬝ᵥ 𝔪.reduction ∘ u)) |
| 298 | W.vacElem := calc |
| 299 | _ = semichar y • W.ϱ (finVec x) (W.ϱ (finVec y) W.vacElem) := by |
| 300 | conv_lhs => rw [← finHeisenbergOp_vacElem hy] |
| 301 | simp [W, finHeisenbergOp] |
| 302 | _ = semichar y • selfDualAddChar E (half * star y ⬝ᵥ x) • W.ϱ (finVec (x + y)) W.vacElem := by |
| 303 | rw [rho_finVec_rho_finVec] |
| 304 | _ = _ := by rw [schrodingerOp_char_eq_translate_projOn, projOn_vacElem, h_part] |
| 305 | have h_lift : (fun r : n' × n → 𝔪.ResidueRing ↦ 𝔪.primAddChar (r ⬝ᵥ 𝔪.reduction ∘ u)) = |
| 306 | (fun T ↦ 𝔪.primAddChar (matrixToVec T ⬝ᵥ 𝔪.reduction ∘ u)) ∘ vecToMatrix := rfl |
| 307 | rw [h_translate, h_lift, ← modDatum_vacVector, modDatum_eq_sum] |
| 308 | -- The scalars `semichar y`, `selfDualAddChar E (half * star y ⬝ᵥ x)` and the values of |
| 309 | -- `𝔪.primAddChar` are all values of `selfDualAddChar`. |
| 310 | have h_psi : ∀ r : 𝔪.ResidueRing, ∃ a : 𝔸f E, 𝔪.primAddChar r = selfDualAddChar E a := |
| 311 | 𝔪.reduction_surjective.forall.2 fun b ↦ ⟨_, 𝔪.primAddChar_reduction b⟩ |
| 312 | choose a ha using h_psi |
| 313 | simp only [ha, Finset.smul_sum, smul_smul, semichar, ← AddChar.map_add_eq_mul] |
| 314 | -- So `z T` is the sum of the arguments of the three scalars at `T`. |
| 315 | exact ⟨fun T ↦ traceOneAdele * half * star y ⬝ᵥ y + |
| 316 | (half * star y ⬝ᵥ x + a (matrixToVec T ⬝ᵥ 𝔪.reduction ∘ u)), rfl⟩ |
| 317 | |
| 318 | end ResidueDataApi |
| 319 | |
| 320 | end New |
| 321 | |
| 322 | /-! |
| 323 | ## Relations for S T^k in positive degree give the relation for S |
| 324 | -/ |
| 325 | |
| 326 | section PositiveDegreeDescent |
| 327 | |
| 328 | open Polynomial Finset Ideal Quotient PiTensorProduct |
| 329 | |
| 330 | /-- A unit in a finite commutative algebra satisfies a polynomial relation with constant |
| 331 | coefficient `1`: reverse a monic relation for its inverse. -/ |
| 332 | lemma New.exists_annihilating_polynomial_of_isUnit {K B : Type*} [CommRing K] [CommRing B] |
| 333 | [Algebra K B] [Module.Finite K B] (y : B) (hy : IsUnit y) : |
| 334 | ∃ p : K[X], p.coeff 0 = 1 ∧ aeval y p = 0 := by |
| 335 | obtain ⟨u, rfl⟩ := hy |
| 336 | obtain ⟨p, hp, hzero⟩ := Algebra.IsIntegral.isIntegral (R := K) (↑u⁻¹ : B) |
| 337 | refine ⟨p.reverse, by simpa using hp.leadingCoeff, ?_⟩ |
| 338 | let : Invertible (↑u⁻¹ : B) := u⁻¹.invertible |
| 339 | simpa only [invOf_units, Units.val_inv_eq_inv_val, inv_inv, aeval_def] using |
| 340 | (Polynomial.eval₂_reverse_eq_zero_iff (algebraMap K B) (↑u⁻¹ : B) p).2 hzero |
| 341 | |
| 342 | /-- Let `K` be a commutative ring, let `S`, `T` lie in a `K`-algebra `Z`, and let `α i`, `a i` |
| 343 | be scalars with each `a i` invertible. If `∏ (T - a i) = 0`, and |
| 344 | `∏ (S T ^ k - α i * a i ^ k) = 0` for all `k > 0`, then `∏ (S - α i) = 0`. -/ |
| 345 | lemma New.GaloisRep.aeval_prod_eq_zero_of_mul_pow {K Z : Type*} {n : ℕ} [CommRing K] [Ring Z] |
| 346 | [Algebra K Z] {α a : Fin n → K} (S T : Z) (hT : aeval T (∏ i : Fin n, (X - C (a i))) = 0) |
| 347 | (ha : ∀ i : Fin n, IsUnit (a i)) |
| 348 | (hST : ∀ k > (0 : ℕ), aeval (S * T ^ k) (∏ i : Fin n, (X - C (α i * a i ^ k))) = 0) : |
| 349 | aeval S (∏ i : Fin n, (X - C (α i))) = 0 := by |
| 350 | -- Work in the `n`-th tensor power of `R = K[X] / (q)`, one factor for each index `i`. |
| 351 | set q : K[X] := ∏ i, (X - C (a i)) |
| 352 | let R : Type _ := K[X] ⧸ span {q} |
| 353 | have : Module.Finite K R := (monic_prod_X_sub_C a univ).finite_quotient |
| 354 | -- The class `ξ` of `X` is a unit of `R`, as it divides `q - q(0)` and `q(0)` is a unit. |
| 355 | let ξ : R := Ideal.Quotient.mk (span {q}) X |
| 356 | have hX : IsUnit ξ := by |
| 357 | refine isUnit_of_dvd_unit (map_dvd _ q.X_dvd_sub_C) ?_ |
| 358 | have hq0 : IsUnit (q.coeff 0) := by |
| 359 | simpa [q, coeff_zero_prod] using (IsUnit.prod_univ_iff.mpr fun i : Fin n ↦ (ha i).neg) |
| 360 | have hq : Ideal.Quotient.mk (span {q}) q = 0 := Ideal.Quotient.mk_singleton_self q |
| 361 | rw [map_sub, hq, zero_sub] |
| 362 | exact ((hq0.map C).map (Ideal.Quotient.mk (span {q}))).neg |
| 363 | -- So `y = X ⊗ ⋯ ⊗ X` is a unit of a finite algebra: `p(y) = 0` for some `p` with `p(0) = 1`. |
| 364 | let y : PiTensorProduct K fun _ : Fin n ↦ R := tprodMonoidHom K (Pi.constRingHom (Fin n) R ξ) |
| 365 | have hy : IsUnit y := (hX.map (Pi.constRingHom (Fin n) R)).map (tprodMonoidHom K) |
| 366 | obtain ⟨p, hp0, hp⟩ : ∃ p : K[X], p.coeff 0 = 1 ∧ aeval y p = 0 := |
| 367 | New.exists_annihilating_polynomial_of_isUnit y hy |
| 368 | -- `ev i` sends `X` to `(T, a i)`; it is well defined on `R` as `q(T) = 0` and `q(a i) = 0`. |
| 369 | have h_vanish (i : Fin n) (r : K[X]) (hr : r ∈ span {q}) : aeval (T, a i) r = 0 := |
| 370 | aeval_eq_zero_of_dvd_aeval_eq_zero (mem_span_singleton.1 hr) <| by |
| 371 | simp [aeval_prod_apply, hT, q, prod_eq_zero (mem_univ i)] |
| 372 | let ev (i : Fin n) : R →ₐ[K] Z × K := liftₐ (span {q}) (aeval (T, a i)) (h_vanish i) |
| 373 | have hev (i : Fin n) : ev i ξ = (T, a i) := aeval_X (T, a i) |
| 374 | -- `L i` multiplies `ev i r` by `(S, -α i)` and adds the two components in `Z`. |
| 375 | let L (i : Fin n) : R →ₗ[K] Z := |
| 376 | LinearMap.coprod LinearMap.id (Algebra.linearMap K Z) ∘ₗ |
| 377 | LinearMap.mulLeft K (S, -α i) ∘ₗ (ev i).toLinearMap |
| 378 | have hL (i : Fin n) (k : ℕ) : L i (ξ ^ k) = S * T ^ k - algebraMap K Z (α i * a i ^ k) := by |
| 379 | simp [L, hev, sub_eq_add_neg] |
| 380 | -- The product of the `L i` sends `y ^ k` to `∏ (S * T ^ k - α i * a i ^ k)`, which is zero for |
| 381 | -- `k > 0`; in the image of `p(y) = 0` only `p(0) • ∏ (S - α i)` is left. |
| 382 | have h_image (k : ℕ) : lift (MultilinearMap.mkPiAlgebraFin K n Z) (map L (y ^ k)) = |
| 383 | aeval (S * T ^ k) (∏ i : Fin n, (X - C (α i * a i ^ k))) := by |
| 384 | simp_rw [y, ← map_pow] |
| 385 | simp [hL, ← List.prod_ofFn, map_list_prod, Function.comp_def] |
| 386 | have h_smul : p.coeff 0 • aeval S (∏ i : Fin n, (X - C (α i))) = 0 := calc |
| 387 | _ = lift (MultilinearMap.mkPiAlgebraFin K n Z) (map L (aeval y p)) := by |
| 388 | rw [aeval_eq_sum_range (p := p) y, sum_range_succ'] |
| 389 | simp only [map_add, map_sum, map_smul, h_image, hST _ (Nat.succ_pos _)] |
| 390 | simp |
| 391 | _ = 0 := by simp [hp] |
| 392 | simpa [hp0] using h_smul |
| 393 | |
| 394 | /-- Let `g : K →+* A` be a ring map from a commutative ring `K`, let `S`, `T` in `A` commute |
| 395 | with the image of `g`, and let `α i`, `a i` in `K` with each `a i` invertible. If |
| 396 | `∏ (T - g (a i)) = 0`, and `∏ (S T ^ k - g (α i * a i ^ k)) = 0` for all `k > 0`, then |
| 397 | `∏ (S - g (α i)) = 0`. -/ |
| 398 | lemma New.GaloisRep.eval₂_prod_eq_zero_of_mul_pow {K A : Type*} {n : ℕ} [CommRing K] [Ring A] |
| 399 | {g : K →+* A} {α a : Fin n → K} {S T : A} (hS_comm : ∀ c : K, Commute (g c) S) |
| 400 | (hT_comm : ∀ c : K, Commute (g c) T) (hT : (∏ i : Fin n, (X - C (a i))).eval₂ g T = 0) |
| 401 | (ha : ∀ i : Fin n, IsUnit (a i)) |
| 402 | (hST : ∀ k > (0 : ℕ), (∏ i : Fin n, (X - C (α i * a i ^ k))).eval₂ g (S * T ^ k) = 0) : |
| 403 | (∏ i : Fin n, (X - C (α i))).eval₂ g S = 0 := by |
| 404 | -- The centralizer `Z` of the image of `g` contains `S` and `T`. It is a `K`-algebra, in which |
| 405 | -- `eval₂ g` is `aeval`. |
| 406 | let Z : Subring A := Subring.centralizer (Set.range g) |
| 407 | let S' : Z := ⟨S, Subring.mem_centralizer_iff.2 (Set.forall_mem_range.2 hS_comm)⟩ |
| 408 | let T' : Z := ⟨T, Subring.mem_centralizer_iff.2 (Set.forall_mem_range.2 hT_comm)⟩ |
| 409 | have h_mem (x : K) : g x ∈ Z := by |
| 410 | simp +contextual [Z, Subring.mem_centralizer_iff, ← map_mul, mul_comm] |
| 411 | let : Algebra K Z := (g.codRestrict Z h_mem).toAlgebra' fun c x ↦ |
| 412 | Subtype.ext (Subring.mem_centralizer_iff.1 x.property (g c) (Set.mem_range_self c)) |
| 413 | have h_eval (P : K[X]) (x : Z) : eval₂ g x P = 0 ↔ aeval x P = 0 := by |
| 414 | have h_coe : (aeval x P : A) = eval₂ g x P := hom_eval₂ P _ Z.subtype x |
| 415 | rw [← h_coe, ZeroMemClass.coe_eq_zero] |
| 416 | exact (h_eval _ S').2 <| aeval_prod_eq_zero_of_mul_pow S' T' ((h_eval _ T').1 hT) ha |
| 417 | fun k hk ↦ (h_eval _ (S' * T' ^ k)).1 (hST k hk) |
| 418 | |
| 419 | end PositiveDegreeDescent |