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 Lib.SiegelWeil.SingularForms.CentreCoefficients |
| 4 | public import Lib.Weil.DualPair.KernelDecay |
| 5 | public import Lib.Weil.DualPair.KernelLaws |
| 6 | public import Lib.Adelic.Unitary.CongruenceLevels |
| 7 | import Lib.ClassField.HeckeCharacter.SplittingCharacters |
| 8 | import Lib.ClassField.Local.ArtinMap |
| 9 | import Lib.Cohomology.Etale.Basic |
| 10 | import Lib.General.LinearAlgebra.PartnerAlgebra |
| 11 | |
| 12 | /-! |
| 13 | # Characters on determinants, local values and characters tame for a modulus |
| 14 | |
| 15 | This file evaluates characters of U(1)(𝔸), the norm-one ideles of the CM field E, on determinants of |
| 16 | elements of K₀ = `New.stdLevel E n`. Here `New.stdLevel E n` is the stabiliser of the standard |
| 17 | lattice in the finite adelic unitary group `New.Gf E n`. A character of weight `e` and residue |
| 18 | characters `ψ` (`New.AutChar.HasWeight`) takes at `det k`, for `k` in K₀, the product of the `ψ w` |
| 19 | at the determinants of the reductions of `k`. Local values are read through `New.atPlaces P`, the |
| 20 | map to the components at the places of a finite set `P`, and through `New.Exchange.localChar P ξ k`, |
| 21 | the character `ξ |·| ^ (k / 2)` of the product of the completions at `P`. For a modulus 𝔪 |
| 22 | (`New.Modulus`, an ideal of O_E prime to its conjugate), the reduction K₀ → GL_n(O_E/𝔪) is onto, and |
| 23 | a character tame for 𝔪 is given on determinants of K₀ by a character of O_E/𝔪. |
| 24 | |
| 25 | ## Main definitions and results |
| 26 | |
| 27 | * `New.Exchange.SplitTameChar.character_detFin_eq_of_mem_stdLevel`, |
| 28 | `New.Exchange.upsilonU1_detFin_eq_one_of_mem_stdLevel`: on determinants of `stdLevel E n`, a tame |
| 29 | character is its local character at the ramified places, and `New.WeilData.upsilonU1` is trivial. |
| 30 | * `New.Rows.exists_reductionGL_eq`, `New.Rows.liftMod`: reduction `New.Modulus.reductionGL` : |
| 31 | K₀ → GL_n(O_E/𝔪) is onto, with lifts supported at the places dividing 𝔪 and their conjugates. |
| 32 | * `New.Modulus.charOfTamePart`: the character of O_E/𝔪 with given components at the residue fields. |
| 33 | * `New.Exchange.IsTameFor`, `New.Exchange.IsTameFor.apply_det`: ν is tame for 𝔪 with character χ; |
| 34 | then ν(det k) = χ(det(k mod 𝔪)) for k in K₀. |
| 35 | |
| 36 | Notions from other files: |
| 37 | * `New.AutChar`: The group of continuous circle-valued characters of U(1)(𝔸), the norm-one adeles of |
| 38 | the CM field E, trivial on elements coming from E. |
| 39 | * `New.Gf`: The finite adelic unitary group G_f: matrices g in GL_n(𝔸_f) with gᴴg = 1; K₀ = G_f ∩ |
| 40 | GL_n(Ô) is the stabiliser of the standard lattice. |
| 41 | * `New.G.det`: The determinant, from the adelic unitary group of signs s (pairs of an archimedean |
| 42 | and a finite part) to the adeles x of E with x x̄ = 1. |
| 43 | * `New.Exchange.SplitTameChar.semilocalChar`: The character t ↦ ν(t/t̄) of ∏_{w∈S} E_w, t read as an |
| 44 | idele supported on S, extended by 0 to non-invertible elements. |
| 45 | |
| 46 | ## Relation to the literature |
| 47 | |
| 48 | Known; see `Lib.ClassField.Global.CMSplittingCharacters` for sources. |
| 49 | -/ |
| 50 | |
| 51 | @[expose] public section |
| 52 | |
| 53 | noncomputable section |
| 54 | |
| 55 | /-! |
| 56 | ## Values of the local characters at determinants |
| 57 | |
| 58 | * `New.Exchange.spaceChar_rankTwist`: in even rank the two twists by the splitting character cancel. |
| 59 | -/ |
| 60 | |
| 61 | namespace New.Exchange |
| 62 | |
| 63 | open Matrix Fintype WeilData Gf Finset |
| 64 | |
| 65 | variable {E : Type} [Field E] [CMType E] {n : Type _} [Fintype n] [DecidableEq n] |
| 66 | {s : n → ℤˣ} {P : Finset (FinPlace E)} {μ : NumberField.InfinitePlace E → ℤ} |
| 67 | (𝔠 : SplitTameChar E μ) {k : Gf E n} |
| 68 | |
| 69 | /-- Given Weil data on E, `upsilonU1` is the restriction of its splitting character υ to the |
| 70 | norm-one ideles, a character of U(1)(𝔸) trivial on E, with trivial tame part. It is trivial on |
| 71 | `detFin s k`, the determinant of (1, k) in G, for every `k` in the stabiliser `stdLevel E n` of the |
| 72 | standard lattice Ô^n. -/ |
| 73 | @[simp] |
| 74 | lemma upsilonU1_detFin_eq_one_of_mem_stdLevel [WeilData E] (hk : k ∈ stdLevel E n) : |
| 75 | upsilonU1.val (detFin s k) = 1 := |
| 76 | upsilonU1_hasWeight.apply_det_eq_one hk |
| 77 | |
| 78 | omit [DecidableEq n] in |
| 79 | /-- In even rank `n`, multiplying `ν` by `upsilonU1 ^ (n / 2)`, taking the base change and dividing |
| 80 | by `υ ^ n`, for the splitting character `υ`, gives the base change `ν.baseChange`, the character |
| 81 | t ↦ ν(t/t̄) of the ideles of E: the two twists by the splitting character cancel. -/ |
| 82 | lemma spaceChar_rankTwist [WeilData E] {ν : AutChar E} (hn : 2 ∣ card n) : |
| 83 | (rankTwist ν n).spaceChar (card n) = ν.baseChange := by |
| 84 | rw [ν.spaceChar_rankTwist_eq_ite, ite_eq_left (even_iff_two_dvd.mpr hn)] |
| 85 | |
| 86 | lemma atPlaces_eq_one_of_mem_trivialOn (hk : k ∈ Gf.trivialOn n P) : atPlaces P k = 1 := by |
| 87 | -- The entries of `k` are those of `1` at every place of `P`, so are their components at `P`. |
| 88 | have h_entry : ∀ w ∈ P, ∀ i j : n, (k.val.val i j) w = if i = j then 1 else 0 := by |
| 89 | simpa [GeneralLinearGroup.ext_iff, atPlace, Matrix.one_apply] using hk |
| 90 | ext i j w |
| 91 | simp [atPlaces, evalPlaces, Matrix.one_apply, ite_apply, h_entry w.val w.property i j] |
| 92 | |
| 93 | /-- The local character `localChar P ξ k` at the determinant of the components of `g` at `P` is |
| 94 | `ξ t * |t| ^ (k / 2)`, for the idele `t = detOn P g.val` that is `det g` at `P` and `1` |
| 95 | elsewhere. -/ |
| 96 | @[simp] |
| 97 | lemma localChar_det (ξ : HeckeChar E) (k : ℤ) (g : Gf E n) : |
| 98 | localChar P ξ k (atPlaces P g).val.det = |
| 99 | ξ.val (detOn P g.val) * √(ideleAbs (detOn P g.val)) ^ k := by |
| 100 | -- Both sides are products over the places `w` of `P` of `ξ (t w) * √‖t w‖ ^ k`, where `t w` is |
| 101 | -- the idele with the component of the determinant of `g` at `w` and `1` elsewhere. |
| 102 | let t (w : P) : (𝔸 E)ˣ := locFullIdele w.val (GeneralLinearGroup.det (atPlace w.val g)) |
| 103 | -- The inclusion of the circle into `ℂ` is multiplicative. |
| 104 | have h_coe (s : Finset P) (f : P → Circle) : ((∏ w ∈ s, f w : Circle) : ℂ) = ∏ w ∈ s, (f w : ℂ) := |
| 105 | map_prod Circle.coeHom f s |
| 106 | calc localChar P ξ k (atPlaces P g).val.det |
| 107 | _ = ∏ w : P, (ξ.val (t w) * √(ideleAbs (t w)) ^ k : ℂ) := by |
| 108 | rw [← GeneralLinearGroup.val_det_apply, localChar, MulChar.ofUnitHom_coe] |
| 109 | simp [t, g.val.map_det, atPlaces, atPlace, ideleAbs_locFullIdele, prod_mul_distrib] |
| 110 | -- The values of `ξ` agree factor by factor, by the definitions of `finPart` and |
| 111 | -- `locFullIdele`. |
| 112 | exact .inl rfl |
| 113 | _ = ξ.val (∏ w, t w) * √(ideleAbs (∏ w, t w)) ^ k := by |
| 114 | simp [t, h_coe, Real.sqrt_prod, ideleAbs_locFullIdele, prod_zpow, prod_mul_distrib] |
| 115 | _ = _ := by rw [detOn_eq_prod, ← P.prod_coe_sort] |
| 116 | |
| 117 | /-- Every invertible matrix over the product of the completions at the ramified places |
| 118 | `𝔠.ramifiedPlaces` is the family of components at `𝔠.ramifiedPlaces` of an element of the finite |
| 119 | adelic unitary group supported on `𝔠.ramifiedPlaces` and its conjugate |
| 120 | (`supportedOn n 𝔠.ramifiedPlaces`). -/ |
| 121 | lemma SplitTameChar.exists_atPlaces_eq (g : GL n (LocProd 𝔠.ramifiedPlaces)) : |
| 122 | ∃ k ∈ supportedOn n 𝔠.ramifiedPlaces, atPlaces 𝔠.ramifiedPlaces k = g := by |
| 123 | -- Place the component `c w` of `g` at each `w ∈ 𝔠.ramifiedPlaces` by `ofSplitPlaces`. |
| 124 | let c (w : 𝔠.ramifiedPlaces) : GL n (LocField w.val) := g.map (Pi.evalRingHom _ w) |
| 125 | refine ⟨ofSplitPlaces 𝔠.star_notMem c, ofSplitPlaces_mem_supportedOn 𝔠.star_notMem c, ?_⟩ |
| 126 | ext i j w : 3 |
| 127 | -- At `w` the element `ofSplitPlaces c` has the component `c w`. |
| 128 | exact congrArg (fun A : GL n (LocField w.val) ↦ A i j) (atPlace_ofSplitPlaces 𝔠.star_notMem c w) |
| 129 | |
| 130 | /-- On the determinant of an integral finite point `k`, the character `𝔠.character` of the tame |
| 131 | character `𝔠` of weight `μ`, ramified at the finite set `𝔠.ramifiedPlaces` of split places, is the |
| 132 | local character `𝔠.semilocalChar` at the determinant of the components of `k` at |
| 133 | `𝔠.ramifiedPlaces`. -/ |
| 134 | lemma SplitTameChar.character_detFin_eq_of_mem_stdLevel (hk : k ∈ stdLevel E n) : |
| 135 | 𝔠.character.val (detFin s k) = 𝔠.semilocalChar (atPlaces 𝔠.ramifiedPlaces k).val.det := by |
| 136 | simp [character_apply_of_integral, IsIntMatrix.det_mem (mem_stdLevel.mp hk), RingHom.map_det, |
| 137 | atPlaces] |
| 138 | |
| 139 | end New.Exchange |
| 140 | |
| 141 | /-! ## Reduction of K₀ modulo 𝔪 and characters tame for a modulus -/ |
| 142 | |
| 143 | namespace New |
| 144 | |
| 145 | open Ideal MulChar NumberField stdLevel Rows Set Modulus Function AutChar Finset Subgroup |
| 146 | |
| 147 | attribute [local instance low] Fintype.ofFinite |
| 148 | |
| 149 | section |
| 150 | |
| 151 | variable {E n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype n] [DecidableEq n] |
| 152 | {𝔪 : Modulus E} {a : 𝓞 E} (g : GL n 𝔪.ResidueRing) {H : Subgroup (GL n 𝔪.ResidueRing)} |
| 153 | |
| 154 | /-! ### Reduction modulo 𝔪 -/ |
| 155 | |
| 156 | /-- Let `𝔪` be a modulus of the CM field `E`, that is, a nonzero ideal of O_E that no prime divides |
| 157 | together with its conjugate. Then every `g` in GL_n(O_E/𝔪) is the reduction modulo `𝔪` of some `k` |
| 158 | in K₀ = `stdLevel E n`, the stabiliser of Ô^n in the finite adelic unitary group `Gf`. Moreover `k` |
| 159 | can be chosen supported on the places dividing `𝔪` and their conjugates, meaning its component is 1 |
| 160 | at every other place. -/ |
| 161 | lemma Rows.exists_reductionGL_eq : |
| 162 | ∃ k : stdLevel E n, k.val ∈ Gf.supportedOn n 𝔪.places ∧ 𝔪.reductionGL k = g := by |
| 163 | -- Lift the entries of `g` to `Ô` and glue their local components at `𝔪.places` via |
| 164 | -- `ofSplitPlaces`. |
| 165 | choose M hM using fun i j ↦ 𝔪.reduction_surjective (g i j) |
| 166 | obtain ⟨S, hS⟩ := 𝔪.places.toFinite.exists_finset_coe |
| 167 | have h_split (w : FinPlace E) (hw : w ∈ S) : star w ∉ S := |
| 168 | fun hw' ↦ 𝔪.isConjDisjoint_places.le_compl_right (hS.le hw) (hS.le hw') |
| 169 | let Mloc (w : S) : Matrix n n (LocInt w.val) := |
| 170 | fun i j ↦ ⟨(M i j).val w, mem_Ô.mp (M i j).property w⟩ |
| 171 | -- The residue of `Mloc w` is the invertible matrix `g` read modulo `w`. |
| 172 | have h_unit (w : S) : IsUnit (Mloc w) := |
| 173 | isUnit_of_mapMatrix (IsLocalRing.residue _) |
| 174 | ⟨g.map (modulusResidue 𝔪 (hS.le w.property)), by |
| 175 | ext i j |
| 176 | have h_res : reduceAt w.val (M i j) = IsLocalRing.residue _ (Mloc w i j) := rfl |
| 177 | simp [← hM, h_res]⟩ |
| 178 | let γ (w : S) : GL n (LocField w.val) := .map (LocInt w.val).subtype (h_unit w).unit |
| 179 | refine ⟨⟨ofSplitPlaces h_split γ, |
| 180 | (ofSplitPlaces_mem_stdLevel h_split γ).mpr fun w ↦ ⟨(h_unit w).unit, rfl⟩⟩, |
| 181 | by simpa only [← hS] using ofSplitPlaces_mem_supportedOn h_split γ, ?_⟩ |
| 182 | -- Reduction modulo `𝔪` only sees the components at `𝔪.places`, where the entries agree with `M`. |
| 183 | ext i j |
| 184 | rw [← hM] |
| 185 | exact reduction_congr 𝔪 fun w hw ↦ |
| 186 | congrArg (fun A : GL n (LocField w) ↦ A i j) (atPlace_ofSplitPlaces h_split γ ⟨w, hS.ge hw⟩) |
| 187 | |
| 188 | /-- A chosen lift of g ∈ GL_n(O_E/𝔪) to K₀, with component 1 outside the places dividing 𝔪 and their |
| 189 | conjugates. -/ |
| 190 | def Rows.liftMod : stdLevel E n := (exists_reductionGL_eq g).choose |
| 191 | |
| 192 | @[simp] |
| 193 | lemma Rows.reductionGL_liftMod : 𝔪.reductionGL (liftMod g) = g := |
| 194 | (exists_reductionGL_eq g).choose_spec.right |
| 195 | |
| 196 | @[simp] |
| 197 | lemma Rows.reductionGL_surjective : Surjective (𝔪.reductionGL (n := n)) := |
| 198 | fun g ↦ ⟨liftMod g, reductionGL_liftMod g⟩ |
| 199 | |
| 200 | /-- The level cut out by a subgroup H of GL_n(O_E/𝔪): the elements of K_0 (`New.stdLevel`) whose |
| 201 | reduction modulo 𝔪 lies in H, as a subgroup of G_f. -/ |
| 202 | abbrev Modulus.levelOfSubgroup (𝔪 : Modulus E) (H : Subgroup (GL n 𝔪.ResidueRing)) : |
| 203 | Subgroup (Gf E n) := |
| 204 | (Subgroup.comap (reductionGL 𝔪) H).map (stdLevel E n).subtype |
| 205 | |
| 206 | /-- If `a ∈ 𝔪`, the principal level of `a` (the elements of `K₀` congruent to `1` modulo `a`) lies |
| 207 | in the level `𝔪.levelOfSubgroup H` of every subgroup `H`. -/ |
| 208 | lemma Modulus.principalLevel_le_levelOfSubgroup (ha : a ∈ 𝔪.ideal) : |
| 209 | principalLevel n a ≤ 𝔪.levelOfSubgroup H := by |
| 210 | -- An element of level `a` reduces to `1` modulo `𝔪`, because `a` reduces to `0`. |
| 211 | intro k hk |
| 212 | have hk_int : k ∈ stdLevel E n := hk.left |
| 213 | have h_red : 𝔪.reduction (algebraMap (𝓞 E) (Ô E) a) = 0 := by simpa [← RingHom.mem_ker] using ha |
| 214 | have h_one : 𝔪.reductionGL ⟨k, hk_int⟩ = 1 := map_eq_one_of_mem_principalLevel hk h_red |
| 215 | exact ⟨⟨k, hk_int⟩, H.ker_le_comap _ h_one, rfl⟩ |
| 216 | |
| 217 | /-- `𝔪.levelOfSubgroup H` is a level: it lies in `K₀` and is open. -/ |
| 218 | instance : IsLevel (𝔪.levelOfSubgroup H) where |
| 219 | le := map_subtype_le _ |
| 220 | -- it contains the open principal level of the norm of `𝔪` |
| 221 | isOpen := isOpen_mono (principalLevel_le_levelOfSubgroup 𝔪.ideal.absNorm_mem) |
| 222 | (isOpen_principalLevel (by simp [ne_bot, absNorm_eq_zero_iff])) |
| 223 | |
| 224 | /-- Let `𝔪` be a modulus of the CM field `E` and `H` a subgroup of `GL_n(O_E/𝔪)`. Let |
| 225 | `𝔪.levelOfSubgroup H` be the preimage of `H` under reduction mod `𝔪` inside `K₀ = stdLevel`, the |
| 226 | stabiliser G_f ∩ GL_n(Ô) of the standard lattice. Then the index of `𝔪.levelOfSubgroup H` in `K₀` |
| 227 | equals the index of `H` in `GL_n(O_E/𝔪)`. -/ |
| 228 | lemma Modulus.stdLevelIndex_levelOfSubgroup : stdLevelIndex (𝔪.levelOfSubgroup H) = H.index := by |
| 229 | simp [relIndex, subgroupOf, comap_map_eq, index_comap_of_surjective] |
| 230 | |
| 231 | /-- If 𝔪 = (a), an element of K₀ has principal level a exactly when it reduces to 1 modulo 𝔪. -/ |
| 232 | lemma Modulus.mem_principalLevel_iff (h𝔪 : 𝔪.ideal = span {a}) (k : stdLevel E n) : |
| 233 | k.val ∈ principalLevel n a ↔ 𝔪.reductionGL k = 1 := by |
| 234 | -- both sides say that the entries of `k - 1` are multiples of `a` in `Ô E` |
| 235 | -- `↓` applies `reduction_eq_zero_iff` before simp splits `reduction (k - 1)` into a difference. |
| 236 | simpa [principalLevel, h𝔪, reductionGL, stdLevel.map_eq_one, ↓reduction_eq_zero_iff, map_span, |
| 237 | mem_span_singleton, dvd_def, Subtype.ext_iff, Subgroup.copy] using .rfl |
| 238 | |
| 239 | /-! ### Tame characters -/ |
| 240 | |
| 241 | /-- The multiplicative character x ↦ ∏_{w∣𝔪} ψ_w(x mod w) of O_E/𝔪, for characters ψ_w of the |
| 242 | residue fields. -/ |
| 243 | @[simps -isSimp] |
| 244 | def Modulus.charOfTamePart (𝔪 : Modulus E) (ψ : ∀ w : FinPlace E, MulChar (ResField w) ℂ) : |
| 245 | MulChar 𝔪.ResidueRing ℂ := |
| 246 | MulChar.mk |
| 247 | { toFun x := ∏ᶠ w : places 𝔪, ψ w (modulusResidue 𝔪 w.property x) |
| 248 | map_one' := by simp |
| 249 | map_mul' := by simp [finprod_eq_prod_of_fintype, Finset.prod_mul_distrib] } |
| 250 | (by |
| 251 | -- a non-unit lies in a maximal ideal `M`; the factor at the place under `M` vanishes |
| 252 | rintro ⟨x⟩ hx |
| 253 | obtain ⟨M, hM_max, hM⟩ := exists_max_ideal_of_mem_nonunits hx |
| 254 | let w : places 𝔪 := ⟨⟨M.under _, inferInstance, NeZero.out⟩, le_comap_of_map_le (by simp)⟩ |
| 255 | refine finprod_eq_zero _ w ?_ (toFinite _) |
| 256 | -- The residue of `x` at `w` is `0`, as `x` lies in the maximal ideal `M` over `w`. |
| 257 | change ψ w.val (algebraMap (𝓞 E) (ResField w.val) x) = 0 |
| 258 | rw [algebraMap_ResField_eq_zero.mpr hM, MulChar.map_zero]) |
| 259 | |
| 260 | /-- ν is tame for 𝔪 with weight e and character χ: 𝔪 ≠ (1), ν has weight e and a tame part (ψ_w) |
| 261 | that is nontrivial exactly at the primes w dividing 𝔪, and χ = ∏_{w∣𝔪} ψ_w on O_E/𝔪. -/ |
| 262 | def Exchange.IsTameFor {E : Type} [Field E] [CMType E] (𝔪 : Modulus E) (ν : AutChar E) |
| 263 | (e : InfinitePlace E → ℤ) (χ : MulChar 𝔪.ResidueRing ℂ) : Prop := |
| 264 | Nonempty 𝔪.places ∧ ∃ ψ : (w : FinPlace E) → MulChar (ResField w) ℂ, |
| 265 | ν.HasWeight e ψ ∧ (∀ w : FinPlace E, ψ w ≠ 1 ↔ w ∈ 𝔪.places) ∧ χ = 𝔪.charOfTamePart ψ |
| 266 | |
| 267 | end |
| 268 | |
| 269 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] {𝔪 : Modulus E} {a : 𝓞 E} |
| 270 | {ν : AutChar E} {e : InfinitePlace E → ℤ} {χ : MulChar 𝔪.ResidueRing ℂ} {s : n → ℤˣ} |
| 271 | |
| 272 | /-- Let `ν` be a character of `[U(1)]`, that is, an `AutChar E`, a character of U(1)(𝔸) trivial on |
| 273 | elements coming from E, that has weight `e` and tame part `ψ` (`HasWeight`), where `ψ` is a family |
| 274 | of residue-field characters ψ_w that are trivial for every finite place w not dividing the modulus |
| 275 | `𝔪`. Then for `k` in K₀ = `stdLevel E n`, the value of `ν` at the norm-one adele `detFin s k` is |
| 276 | `𝔪.charOfTamePart ψ` at the determinant of `k` mod `𝔪`. Here `𝔪.charOfTamePart ψ` is the character |
| 277 | x ↦ ∏_{w∣𝔪} ψ_w(x mod w) of O_E/𝔪. -/ |
| 278 | lemma AutChar.HasWeight.apply_det_eq_charOfTamePart {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} |
| 279 | (hν : HasWeight ν e ψ) (hψ : ∀ w : FinPlace E, w ∉ 𝔪.places → ψ w = 1) (k : stdLevel E n) : |
| 280 | ν.val (detFin s k.val) = 𝔪.charOfTamePart ψ (𝔪.reductionGL k).val.det := by |
| 281 | -- `apply_det_eq_prod`: `ν (det k)` is the product over `w ∣ 𝔪` of `ψ w (det (k mod w))`. |
| 282 | rw [hν.apply_det_eq_prod (ι := 𝔪.places) Subtype.val_injective (by simpa using hψ)] |
| 283 | simp [charOfTamePart, Matrix.det_apply, stdLevel.reduceAt, finprod_eq_prod_of_fintype, |
| 284 | reductionGL] |
| 285 | |
| 286 | namespace Exchange.IsTameFor |
| 287 | |
| 288 | /-- If ν is tame for 𝔪 with weight e and character χ, then ν⁻¹ is so with -e and χ⁻¹. -/ |
| 289 | lemma inv (h : IsTameFor 𝔪 ν e χ) : IsTameFor 𝔪 ν⁻¹ (-e) χ⁻¹ := by |
| 290 | obtain ⟨h_ne, ψ, hν, h_ram, rfl⟩ := h |
| 291 | refine ⟨h_ne, ψ⁻¹, hν.inv, by simpa using h_ram, ?_⟩ |
| 292 | ext x |
| 293 | simp [charOfTamePart_apply, inv_apply_eq_inv, finprod_eq_prod_of_fintype] |
| 294 | |
| 295 | /-- Multiplying by a character of weight d with trivial tame part keeps ν tame with the same χ. -/ |
| 296 | lemma mul (h : IsTameFor 𝔪 ν e χ) {μ : AutChar E} {d : InfinitePlace E → ℤ} |
| 297 | (hμ : μ.HasWeight d 1) : IsTameFor 𝔪 (ν * μ) (e + d) χ := by |
| 298 | obtain ⟨h_ne, ψ, hν, h_ram, rfl⟩ := h |
| 299 | exact ⟨h_ne, ψ, by simpa using hν.mul hμ, h_ram, rfl⟩ |
| 300 | |
| 301 | /-- If ν is tame for 𝔪 with character χ, then ν(det k) = χ(det(k mod 𝔪)) for k in K₀. -/ |
| 302 | lemma apply_det (h : IsTameFor 𝔪 ν e χ) (k : stdLevel E n) : |
| 303 | ν.val (detFin s k.val) = χ (𝔪.reductionGL k).val.det := by |
| 304 | obtain ⟨-, ψ, hν, h_ram, rfl⟩ := h |
| 305 | exact hν.apply_det_eq_charOfTamePart (fun w hw ↦ by simpa [hw] using h_ram w) k |
| 306 | |
| 307 | end Exchange.IsTameFor |
| 308 | |
| 309 | end New |
| 310 | |
| 311 | /-! |
| 312 | ## The tame character on unit ideles and the idele of the uniformisers |
| 313 | |
| 314 | Two facts on ideles for a tame character 𝔠 (`New.Exchange.SplitTameChar`) ramified at a finite set S |
| 315 | of split places. |
| 316 | -/ |
| 317 | |
| 318 | namespace New.Exchange |
| 319 | |
| 320 | open Finset SemilocalField |
| 321 | |
| 322 | variable {E : Type} [Field E] [CMType E] {μ : NumberField.InfinitePlace E → ℤ} |
| 323 | (𝔠 : SplitTameChar E μ) |
| 324 | |
| 325 | /-- For a finite idele `u` that is a unit at every place, `χ(u_S)⁻¹ · ν(u/ū) / χ(ū_S)⁻¹ = 1`. |
| 326 | Here `χ` is `New.Exchange.SplitTameChar.semilocalChar`, `u_S = evalPlaces 𝔠.ramifiedPlaces u` |
| 327 | denotes the components of `u` at `S`, and `invOnUnits χ x` is `(χ x)⁻¹` when `x` is a unit at every |
| 328 | place of `S`. -/ |
| 329 | lemma SplitTameChar.invOnUnits_mul_finPart_div_star_eq_one {u : (𝔸f E)ˣ} |
| 330 | (hu : u ∈ idelesUnitOff ∅) : |
| 331 | invOnUnits 𝔠.semilocalChar (evalPlaces 𝔠.ramifiedPlaces u) * 𝔠.character.baseChange.finPart u / |
| 332 | invOnUnits 𝔠.semilocalChar (evalPlaces 𝔠.ramifiedPlaces (star u)) = 1 := by |
| 333 | obtain ⟨u_mem, inv_mem⟩ : u.val ∈ Ô E ∧ u⁻¹.val ∈ Ô E := idelesUnitOff_empty.le hu |
| 334 | -- The base change of `ν` at `u` is `ν` at the integral idele `u / star u`, whose archimedean |
| 335 | -- components are `1`, so it is a value of `𝔠.semilocalChar`. |
| 336 | have h_bc : 𝔠.character.baseChange.finPart u = |
| 337 | (∏ v, (1 * star 1) ^ μ v) * 𝔠.semilocalChar |
| 338 | (evalPlaces 𝔠.ramifiedPlaces (u * star u⁻¹.val)) := |
| 339 | 𝔠.character_apply_of_integral (divStar (finIdeleIncl u)) (mul_mem u_mem (star_mem_Ô inv_mem)) |
| 340 | -- `u` and `star u` are units at every place, so both `invOnUnits` factors are values of `χ⁻¹`. |
| 341 | suffices (𝔠.semilocalChar (evalPlaces 𝔠.ramifiedPlaces u))⁻¹ * |
| 342 | (𝔠.semilocalChar (evalPlaces 𝔠.ramifiedPlaces u) * |
| 343 | 𝔠.semilocalChar (evalPlaces 𝔠.ramifiedPlaces (star u⁻¹.val))) * 𝔠.semilocalChar |
| 344 | (evalPlaces 𝔠.ramifiedPlaces (star u.val)) = 1 by |
| 345 | simpa [h_bc, invOnUnits, isIntegralUnit_iff_v_eq_one, mem_idelesUnitOff.mp hu] |
| 346 | -- `star u⁻¹ * star u = 1`, and `χ (u_S) ≠ 0` since `u_S` is a unit. |
| 347 | simp [mul_assoc, ← map_mul, ← star_mul, MulChar.apply_eq_zero_iff, IsUnit.map] |
| 348 | |
| 349 | /-- There is a finite idele `c` with component `1` outside `S̄` (the conjugates of |
| 350 | `S = 𝔠.ramifiedPlaces`), whose conjugate has at `S` the chosen uniformisers `ϖ` (the uniformiser |
| 351 | `SemilocalField.ϖ` of the product `LocProd S` of the completions at `S`), and whose inverse has |
| 352 | absolute value `finIdeleAbs c⁻¹ = ∏_{w∈S} q_w`, with `q_w` the order of the residue field at `w`. -/ |
| 353 | lemma exists_idele_star_eq_uniformizer : |
| 354 | ∃ c : (𝔸f E)ˣ, (∀ v : FinPlace E, star v ∉ 𝔠.ramifiedPlaces → c.val v = 1) ∧ |
| 355 | evalPlaces 𝔠.ramifiedPlaces (star c.val) = (ϖ : (LocProd 𝔠.ramifiedPlaces)ˣ).val ∧ |
| 356 | finIdeleAbs c⁻¹ = ∏ i : 𝔠.ramifiedPlaces, ↑i.val.q := by |
| 357 | classical |
| 358 | let b : (𝔸f E)ˣ := ∏ v ∈ 𝔠.ramifiedPlaces, locIdele v (uniformizer v) |
| 359 | -- The unconjugated idele has the chosen uniformisers at the ramified places. |
| 360 | have h_at (v : FinPlace E) : |
| 361 | ideleAt v b = if v ∈ 𝔠.ramifiedPlaces then uniformizer v else 1 := |
| 362 | ideleAt_prod_locIdele 𝔠.ramifiedPlaces uniformizer |
| 363 | -- Take the conjugate of the uniformiser idele `b`. |
| 364 | refine ⟨star b, fun v hv ↦ ?_, funext fun i ↦ ?_, ?_⟩ |
| 365 | · -- The component of `star b` at `v` is the conjugate of the component of `b` at `star v`, |
| 366 | -- which is `1` since `star v` is outside `𝔠.ramifiedPlaces`. |
| 367 | rw [show (star b).val = star b.val from rfl, finAdele_star_apply] |
| 368 | simpa [ideleAt, hv] using congrArg (fun x : (LocField (star v))ˣ ↦ |
| 369 | conjLoc (star_star v) x.val) (h_at (star v)) |
| 370 | · simpa [evalPlaces, ideleAt, ϖ, i.property] using |
| 371 | congrArg Units.val (h_at i.val) |
| 372 | · rw [Finset.prod_coe_sort 𝔠.ramifiedPlaces (fun v ↦ (v.q : ℝ))] |
| 373 | simp [b, star_locIdele, norm_locField_eq_q_zpow] |
| 374 | |
| 375 | end New.Exchange |
| 376 | |
| 377 | end |