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 Mathlib.Analysis.Complex.Circle |
| 4 | import Mathlib.NumberTheory.MulChar.Duality |
| 5 | import Mathlib.RingTheory.PiTensorProduct |
| 6 | import Mathlib.Topology.Algebra.Star.Unitary |
| 7 | public import Lib.ClassField.Places.Ideles |
| 8 | import Lib.Adelic.Adeles.StrongApproximation |
| 9 | import Lib.General.Algebra.AbsIntegrallyClosed |
| 10 | import Lib.General.Groups.ProfiniteCharacters |
| 11 | import Lib.GaloisRep.Hilbert90.UnitaryGroups |
| 12 | |
| 13 | /-! |
| 14 | # Characters of U(1) of a CM field: existence, weights and conjugates |
| 15 | |
| 16 | This file studies characters of the idele group and of the unitary group `U(1)` of a CM field `E`. |
| 17 | Here `U(1)(𝔸)` is `unitary (𝔸 E)`, the group of adeles `u` with `u ū = 1`, and `(u : 𝔸 E).fst` and |
| 18 | `(u : 𝔸 E).snd` are the archimedean and finite components of `u`. `New.integralU1 S` denotes the |
| 19 | points with integral finite part that are 1 modulo the places of a finite set `S`. `μ.HasWeight e ψ` |
| 20 | says that `μ(u) = ∏_v u_v^{e(v)} · ∏_w ψ_w(u mod w)` for integral `u` and that `ψ_w = 1` for almost |
| 21 | all `w`. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | * `New.AutChar`: continuous unitary characters of `U(1)(𝔸) = {u | u ū = 1}` trivial on the elements |
| 26 | that come from `E`. |
| 27 | * `New.AdelicU1ClassGroup`, `New.finite_u1_classGroup`: the class group of level `S`, the quotient |
| 28 | of `U(1)(𝔸)` by the join of the rational points `New.rationalU1` and `New.integralU1 S`, is |
| 29 | finite. |
| 30 | * `New.AutChar.exists_hasWeight_of_prod_eq_one`: a character of weight `e` and tame part `ψ` exists |
| 31 | if the formula defining `μ.HasWeight e ψ` is trivial on the integers of `E` of norm one (these |
| 32 | integers are roots of unity, by `New.pow_torsionOrder_eq_one`). |
| 33 | * `New.AutChar.tameChars`, `New.AutChar.exists_mem_tameChars`, |
| 34 | `New.AutChar.exists_classGroup_char_eq_of_hasWeight_zero`, `New.AutChar.finite_tameChars`: the |
| 35 | characters of weight 0 and level `S` are those of the class group, and they are finitely many. |
| 36 | * `New.AutChar.finite_setOf_hasWeight`: there are finitely many characters of a given weight and |
| 37 | tame part. |
| 38 | * `New.AutChar.HasWeight.exists_conj`: for an automorphism σ of ℂ that permutes the embeddings of |
| 39 | the CM type, σ ∘ μ on points with archimedean component 1 extends to a character with permuted |
| 40 | weight and tame part σ ∘ ψ. |
| 41 | |
| 42 | Notions from other files: |
| 43 | * `New.𝔸`: The ring ℂ^f × 𝔸_f, one copy of ℂ for each infinite place of E times the ring `𝔸f E` of |
| 44 | finite adeles (whose units are the finite ideles): the adele ring of E when E is totally complex. |
| 45 | * `New.Ô`: The ring of finite adeles of E that are integral at every finite place. |
| 46 | |
| 47 | ## Relation to the literature |
| 48 | |
| 49 | Known; see `Lib.ClassField.Global.CMSplittingCharacters` for sources. |
| 50 | -/ |
| 51 | |
| 52 | @[expose] public section |
| 53 | |
| 54 | noncomputable section |
| 55 | |
| 56 | /-! |
| 57 | ## Hecke characters and characters of U(1), with base change |
| 58 | |
| 59 | * `New.HeckeChar`: unitary Hecke characters, trivial on principal ideles. |
| 60 | -/ |
| 61 | |
| 62 | namespace New |
| 63 | |
| 64 | variable (E : Type*) [Field E] [CMType E] |
| 65 | (G : Type*) [Monoid G] [TopologicalSpace G] |
| 66 | |
| 67 | /-- The inverse of a continuous circle character evaluated at `x` is the inverse of its value. -/ |
| 68 | @[simp] |
| 69 | lemma circleChar_inv_apply (χ : G →ₜ* Circle) (x : G) : χ⁻¹ x = (χ x)⁻¹ := rfl |
| 70 | |
| 71 | /-- The group of continuous circle-valued characters of a topological monoid `G` that are trivial at |
| 72 | every `x` whose image under `f` lies in the diagonal copy of `E` in its adeles. -/ |
| 73 | def charsTrivialOnPrincipal (f : G → 𝔸 E) : Subgroup (G →ₜ* Circle) where |
| 74 | carrier := {χ : G →ₜ* Circle | ∀ x : G, f x ∈ toAdele.range → χ x = 1} |
| 75 | mul_mem' hχ hχ' x hx := by simp [hχ x hx, hχ' x hx] |
| 76 | one_mem' := by simp |
| 77 | inv_mem' hχ x hx := by simp [hχ x hx] |
| 78 | |
| 79 | /-- The group of unitary Hecke characters of E: continuous circle-valued characters of the idele |
| 80 | group trivial on principal ideles. -/ |
| 81 | abbrev HeckeChar : Type _ := ↥(charsTrivialOnPrincipal E (𝔸 E)ˣ Units.val) |
| 82 | |
| 83 | /-- The group of continuous circle-valued characters of U(1)(𝔸), the norm-one adeles of the CM |
| 84 | field E, trivial on elements coming from E. -/ |
| 85 | abbrev AutChar : Type _ := ↥(charsTrivialOnPrincipal E (unitary (𝔸 E)) Subtype.val) |
| 86 | |
| 87 | variable {E} |
| 88 | {R : Type*} [CommMonoid R] [StarMul R] [TopologicalSpace R] [ContinuousMul R] [ContinuousStar R] |
| 89 | |
| 90 | /-- The homomorphism sending a unitary Hecke character of E to its restriction to the finite |
| 91 | ideles, with values in ℂ^×. -/ |
| 92 | def HeckeChar.finPart : HeckeChar E →* (𝔸f E)ˣ →* ℂˣ := |
| 93 | MonoidHom.mk' (fun χ ↦ Circle.toUnits.comp (χ.val.toMonoidHom.comp finIdeleIncl)) (by aesop) |
| 94 | |
| 95 | /-- The value of the Hecke character χ at the local idele given by the chosen uniformiser at the |
| 96 | finite place w. -/ |
| 97 | def HeckeChar.atUniformizer (χ : HeckeChar E) (w : FinPlace E) : ℂ := |
| 98 | (χ.finPart (locIdele w (uniformizer w))).val |
| 99 | |
| 100 | /-- The continuous homomorphism x ↦ x/x̄ from the units of a commutative topological monoid R |
| 101 | with involution to the elements u with uū = 1. -/ |
| 102 | def divStar : Rˣ →ₜ* unitary R where |
| 103 | toMonoidHom := |
| 104 | MonoidHom.mk' (fun x ↦ |
| 105 | ⟨x * star ↑x⁻¹, (x.mul_inv_mem_unitary (star x)).2 (by simp [mul_comm])⟩) <| by |
| 106 | simp |
| 107 | grind |
| 108 | continuous_toFun := by exact Continuous.subtype_mk (by fun_prop) _ |
| 109 | |
| 110 | /-- The underlying value of `divStar x` is `x * x̄⁻¹`. -/ |
| 111 | lemma coe_divStar (x : Rˣ) : (divStar x).val = x * star ↑x⁻¹ := rfl |
| 112 | |
| 113 | /-- If `μ` is trivial on the rational points of `U(1)`, then `x ↦ μ(x / x̄)` is trivial on the |
| 114 | rational ideles. -/ |
| 115 | lemma comp_divStar_mem_charsTrivialOnPrincipal (μ : AutChar E) : |
| 116 | μ.val.comp divStar ∈ charsTrivialOnPrincipal E (𝔸 E)ˣ Units.val := by |
| 117 | rintro x ⟨y, hy⟩ |
| 118 | -- `x / x̄` is the image of `y / ȳ` |
| 119 | refine μ.prop _ ⟨y / star y, (star x).eq_mul_inv_iff_mul_eq.mpr ?_⟩ |
| 120 | simp [← hy, ← map_mul, div_mul_cancel_of_imp] |
| 121 | |
| 122 | /-- Base change: the homomorphism sending a character μ of U(1)(𝔸), trivial on rational points, |
| 123 | to the Hecke character x ↦ μ(x/x̄) of E. -/ |
| 124 | @[simps! -isSimp] |
| 125 | def AutChar.baseChange : AutChar E →* HeckeChar E := |
| 126 | MonoidHom.mk' (fun μ ↦ ⟨μ.val.comp divStar, comp_divStar_mem_charsTrivialOnPrincipal μ⟩) fun _ _ ↦ |
| 127 | rfl |
| 128 | |
| 129 | /-- On a unitary adele `w`, where `w / w̄ = w * w`, the base change of `ν` is `ν (w * w)`. -/ |
| 130 | lemma AutChar.baseChange_toUnits (ν : AutChar E) (w : unitary (𝔸 E)) : |
| 131 | ν.baseChange.val (Unitary.toUnits w) = ν.val (w * w) := by |
| 132 | have h_div : divStar (Unitary.toUnits w) = w * w := |
| 133 | Subtype.ext (congrArg (w.val * ·) (star_star w.val)) |
| 134 | exact congrArg ν.val h_div |
| 135 | |
| 136 | /-- μ has weight e and tame part ψ: almost all residue characters ψ_w are trivial, and μ(u) = ∏_v |
| 137 | u_v^{e(v)} · ∏_w ψ_w(u mod w) whenever u has integral finite part. -/ |
| 138 | class AutChar.HasWeight (μ : AutChar E) (e : outParam (NumberField.InfinitePlace E → ℤ)) |
| 139 | (ψ : outParam (∀ w : FinPlace E, MulChar (ResField w) ℂ)) where |
| 140 | /-- Only finitely many of the residue characters `ψ w` are nontrivial. -/ |
| 141 | finite_ramification : {w : FinPlace E | ψ w ≠ 1}.Finite |
| 142 | /-- If `u` has integral finite part, then `μ u` is the product of the powers `u_v ^ e v` over the |
| 143 | infinite places and of the values of `ψ w` at the reductions `reduceAt w` of the finite part of |
| 144 | `u` modulo the finite places `w` (in the residue field `ResField w`). -/ |
| 145 | apply_eq (u : unitary (𝔸 E)) (h : (u : 𝔸 E).snd ∈ Ô E) : |
| 146 | μ.val u = (∏ v : NumberField.InfinitePlace E, (u : 𝔸 E).fst v ^ e v) * |
| 147 | ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, h⟩) |
| 148 | |
| 149 | end New |
| 150 | |
| 151 | /-! |
| 152 | ## Rational and integral points of U(1) and its class group |
| 153 | |
| 154 | * `New.integralU1`: the points with integral finite part that are 1 modulo each place of a finite |
| 155 | set S; an open subgroup (`New.isOpen_integralU1`). |
| 156 | * `New.exists_snd_div_divStar_finIdeleIncl_eq_one`: by Hilbert 90, the finite part of every point is |
| 157 | y / ȳ for a finite idele y. |
| 158 | * `New.exists_eq_mul_star`, `New.divStar_surjective`: Hilbert 90 for a field with an involution, |
| 159 | and for the ideles. |
| 160 | -/ |
| 161 | |
| 162 | section CharacterLevels |
| 163 | |
| 164 | open NumberField IsCMField Subgroup QuotientGroup |
| 165 | |
| 166 | namespace New |
| 167 | |
| 168 | variable {E : Type*} [Field E] [CMType E] |
| 169 | (S : Finset (FinPlace E)) (u : unitary (𝔸 E)) |
| 170 | |
| 171 | /-- The subgroup of rational points of U(1)(𝔸): the adeles u with uū = 1 that come from E. -/ |
| 172 | def rationalU1 : Subgroup (unitary (𝔸 E)) where |
| 173 | toSubmonoid := Submonoid.comap (unitary (𝔸 E)).subtype toAdele.range.toSubsemiring.toSubmonoid |
| 174 | -- The inverse of a unitary element is its conjugate. |
| 175 | inv_mem' := fun ⟨x, hx⟩ ↦ ⟨star x, (star_toAdele x).symm.trans (congrArg star hx)⟩ |
| 176 | |
| 177 | open Prod |
| 178 | |
| 179 | /-- For a finite set S of finite places, the subgroup of U(1)(𝔸) of elements whose finite part is |
| 180 | integral and congruent to 1 modulo every place of S. -/ |
| 181 | def integralU1 {E : Type*} [Field E] [NumberField E] [IsCMField E] (S : Finset (FinPlace E)) : |
| 182 | Subgroup (unitary (𝔸 E)) := |
| 183 | ofDiv {u : unitary (𝔸 E) | ∃ h : (u : 𝔸 E).2 ∈ Ô E, ∀ w ∈ S, reduceAt w ⟨(u : 𝔸 E).2, h⟩ = 1} |
| 184 | ⟨1, one_mem (Ô E), fun w _ ↦ map_one (reduceAt w)⟩ (by |
| 185 | -- The finite part of `u / v` is that of `u v̄`; reduce `u v̄ * v = u` modulo `w`. |
| 186 | rintro u ⟨hu, hu_red⟩ v ⟨hv, hv_red⟩ |
| 187 | have h_int : (u : 𝔸 E).2 * star (v : 𝔸 E).2 ∈ Ô E := mul_mem hu (star_mem_Ô hv) |
| 188 | refine ⟨h_int, fun w hw ↦ ?_⟩ |
| 189 | simpa [Unitary.star_mul_self_of_mem, hu_red, hv_red, hw, mul_assoc, ← snd_mul, |
| 190 | ← snd_star] using! (map_mul (reduceAt w) ⟨_, h_int⟩ ⟨_, hv⟩).symm) |
| 191 | |
| 192 | /-- Membership in `integralU1 S`: the finite part of `u` is integral and reduces to `1` modulo every |
| 193 | place of `S`. -/ |
| 194 | private lemma mem_integralU1_iff {S : Finset (FinPlace E)} {u : unitary (𝔸 E)} : |
| 195 | u ∈ integralU1 S ↔ |
| 196 | ∃ h : (u : 𝔸 E).snd ∈ Ô E, ∀ w : FinPlace E, w ∈ S → reduceAt w ⟨(u : 𝔸 E).snd, h⟩ = 1 := |
| 197 | Iff.rfl |
| 198 | |
| 199 | variable {E : Type*} [Field E] [NumberField E] in |
| 200 | private lemma reduceAt_eq_one_iff {w : FinPlace E} {x : Ô E} : |
| 201 | reduceAt w x = 1 ↔ Valued.v (x.val w - 1) < 1 := by |
| 202 | rw [← sub_eq_zero, ← map_one (reduceAt w), ← map_sub, reduceAt_eq_zero] |
| 203 | simp |
| 204 | |
| 205 | /-- The subgroup `integralU1 S` of U(1)(𝔸) is open. -/ |
| 206 | lemma isOpen_integralU1 : (integralU1 S).IsOpen := by |
| 207 | -- An integral `x` reduces to `1` modulo `w` exactly if `v (x_w - 1) < 1`, an open condition. |
| 208 | have h_eq : SetLike.coe (integralU1 S) = (fun u : unitary (𝔸 E) ↦ (u : 𝔸 E).snd) ⁻¹' |
| 209 | (Ô E ∩ ⋂ w ∈ S, {x : 𝔸f E | Valued.v (x w - 1) < 1}) := by |
| 210 | ext u |
| 211 | simp [mem_integralU1_iff, reduceAt_eq_one_iff] |
| 212 | rw [Subgroup.IsOpen, h_eq] |
| 213 | exact (isOpen_Ô.inter (isOpen_biInter_finset fun w _ ↦ |
| 214 | (isOpen_v_lt w 1).preimage ((continuous_evalAt w).sub continuous_one))).preimage (by fun_prop) |
| 215 | |
| 216 | /-- A point of U(1)(𝔸) with finite part `1` lies in `integralU1 S`. -/ |
| 217 | lemma mem_integralU1_of_snd_eq_one {S : Finset (FinPlace E)} (hu : (u : 𝔸 E).snd = 1) : |
| 218 | u ∈ integralU1 S := by |
| 219 | simp [mem_integralU1_iff, reduceAt_eq_one_iff, hu] |
| 220 | |
| 221 | /-- Every `u` in U(1)(𝔸) has a finite idele `y` such that `u / divStar (finIdeleIncl y)` has finite |
| 222 | part `1`. In other words, the finite part of `u` equals y / ȳ; here `finIdeleIncl y` is the idele |
| 223 | with archimedean part 1 and finite part `y`. |
| 224 | |
| 225 | A consequence of Hilbert's Theorem 90. Only finite parts are matched, for norm-one adeles of a CM |
| 226 | field over its real subfield. -/ |
| 227 | lemma exists_snd_div_divStar_finIdeleIncl_eq_one : |
| 228 | ∃ y : (𝔸f E)ˣ, ((u / divStar (finIdeleIncl y) : unitary (𝔸 E)) : 𝔸 E).snd = 1 := by |
| 229 | -- Hilbert 90 for the finite part of `u`, whose norm `u ū` is `1`, gives an idele `c` with |
| 230 | -- `u c̄ = c`. |
| 231 | have h_norm : adeleMap (complexConj E) (u : 𝔸 E).snd * (u : 𝔸 E).snd = 1 := |
| 232 | congrArg Prod.snd (Unitary.star_mul_self_of_mem u.property) |
| 233 | obtain ⟨c, hc_unit, hc⟩ : ∃ c : 𝔸f E, |
| 234 | IsUnit c ∧ (u : 𝔸 E).snd * adeleMap (complexConj E : E →+* E) c = c := |
| 235 | hilbert90_finite_idele |
| 236 | (by simpa [orderOf_complexConj, Finset.range, AlgEquiv.aut_one] using h_norm) |
| 237 | refine ⟨hc_unit.unit, ?_⟩ |
| 238 | -- The finite part of `u / (c / c̄)` is `u c̄ c⁻¹ = c c⁻¹`. |
| 239 | have h_fin : ((divStar (finIdeleIncl hc_unit.unit) : unitary (𝔸 E)) : 𝔸 E).snd = |
| 240 | c * star (↑(hc_unit.unit⁻¹) : 𝔸f E) := rfl |
| 241 | change (u : 𝔸 E).snd * star ((divStar (finIdeleIncl hc_unit.unit)).val : 𝔸 E).snd = 1 |
| 242 | have h_star_c : star c = adeleMap (complexConj E : E →+* E) c := rfl |
| 243 | rw [h_fin, star_mul', star_star, ← mul_assoc, h_star_c, hc] |
| 244 | exact hc_unit.mul_val_inv |
| 245 | |
| 246 | /-- If an idele `y` satisfies `y = u * ȳ` for some `u` in `U(1)(𝔸)`, then `y / ȳ = u`. -/ |
| 247 | lemma divStar_eq_of_eq_mul_star {y : (𝔸 E)ˣ} {u : unitary (𝔸 E)} |
| 248 | (h_eq : (y : 𝔸 E) = (u : 𝔸 E) * star (y : 𝔸 E)) : |
| 249 | divStar y = u := |
| 250 | Subtype.ext <| (Units.mul_inv_eq_iff_eq_mul (star y)).mpr h_eq |
| 251 | |
| 252 | /-- Hilbert's Theorem 90 for a field with an involution that negates some nonzero element `j`: an |
| 253 | element `a` with `a * star a = 1` satisfies `b = a * star b`, that is `a = b / star b`, for some |
| 254 | nonzero `b`. -/ |
| 255 | theorem exists_eq_mul_star {K : Type*} [Field K] [StarRing K] {j : K} (hj_ne : j ≠ 0) |
| 256 | (hj_star : star j = -j) {a : K} (ha_norm : a * star a = 1) : |
| 257 | ∃ b : K, b ≠ 0 ∧ b = a * star b := by |
| 258 | by_cases h_one_add : 1 + a = 0 |
| 259 | · exact ⟨j, hj_ne, by linear_combination (-a) * hj_star + j * h_one_add⟩ |
| 260 | · exact ⟨1 + a, h_one_add, by simp [mul_add, ha_norm, add_comm]⟩ |
| 261 | |
| 262 | /-- Hilbert's Theorem 90 for the ideles: every `u` with `u ū = 1` is `y / ȳ` for an idele `y`. -/ |
| 263 | lemma divStar_surjective : Function.Surjective (divStar : (𝔸 E)ˣ →ₜ* unitary (𝔸 E)) := by |
| 264 | intro u |
| 265 | -- `exists_snd_div_divStar_finIdeleIncl_eq_one` settles the finite part; at each infinite place |
| 266 | -- use the theorem for `ℂ`. |
| 267 | obtain ⟨y, hy⟩ := exists_snd_div_divStar_finIdeleIncl_eq_one u |
| 268 | set w : unitary (𝔸 E) := u / divStar (finIdeleIncl y) with hw |
| 269 | have h_circle (τ : InfinitePlace E) : ∃ b : ℂ, b ≠ 0 ∧ b = (w : 𝔸 E).fst τ * star b := by |
| 270 | have h_norm : (w : 𝔸 E).fst τ * star ((w : 𝔸 E).fst τ) = 1 := |
| 271 | congrFun (congrArg Prod.fst (Unitary.mul_star_self_of_mem w.property)) τ |
| 272 | exact exists_eq_mul_star Complex.I_ne_zero Complex.conj_I h_norm |
| 273 | choose b hb_ne hb using h_circle |
| 274 | let z : (𝔸 E)ˣ := .mkOfMulEqOne (b, 1) (fun τ ↦ (b τ)⁻¹, 1) |
| 275 | (Prod.ext (funext fun τ ↦ mul_inv_cancel₀ (hb_ne τ)) (one_mul 1)) |
| 276 | have h_finite : (1 : 𝔸f E) = (w : 𝔸 E).snd * star 1 := by rw [hy, star_one, one_mul] |
| 277 | have h_z_eq : (z : 𝔸 E) = (w : 𝔸 E) * star (z : 𝔸 E) := Prod.ext (funext hb) h_finite |
| 278 | refine ⟨z * finIdeleIncl y, ?_⟩ |
| 279 | rw [map_mul, divStar_eq_of_eq_mul_star h_z_eq, hw, div_mul_cancel] |
| 280 | |
| 281 | /-- Base change is injective: a character `μ` of `U(1)(𝔸)` is determined by `x ↦ μ(x / x̄)`, since |
| 282 | every point of `U(1)(𝔸)` is of the form `y / ȳ` (`divStar_surjective`). -/ |
| 283 | lemma AutChar.baseChange_injective : |
| 284 | Function.Injective (AutChar.baseChange : AutChar E →* HeckeChar E) := fun _ _ h_eq ↦ |
| 285 | Subtype.ext <| DFunLike.coe_injective <| |
| 286 | divStar_surjective.injective_comp_right (congrArg (fun χ : HeckeChar E ↦ ⇑χ.val) h_eq) |
| 287 | |
| 288 | /-- Reduction modulo w: the homomorphism from the elements of U(1)(𝔸) with integral finite part |
| 289 | to the multiplicative group of the residue field at w. -/ |
| 290 | def reduceU1 {E : Type*} [Field E] [NumberField E] [IsCMField E] |
| 291 | (w : FinPlace E) : integralU1 (∅ : Finset (FinPlace E)) →* (ResField w)ˣ := |
| 292 | ((reduceAt w).toMonoidHom.comp |
| 293 | { toFun (u : integralU1 ∅) := ⟨u.val.val.snd, u.property.fst⟩ |
| 294 | map_one' := rfl |
| 295 | map_mul' := by simp }).toHomUnits |
| 296 | |
| 297 | /-- For `x` in `Eˣ` with finite idele `y`, the point `y / ȳ` of U(1)(𝔸) is a rational point times a |
| 298 | point that has integral finite part and is 1 modulo the places of `S`. -/ |
| 299 | lemma divStar_principalIdele_mem_sup (x : Eˣ) : |
| 300 | divStar (finIdeleIncl (principalIdele x)) ∈ rationalU1 ⊔ integralU1 S := by |
| 301 | -- It is the rational point `x / x̄` times a point with finite part `1`. |
| 302 | have h_rat : divStar (x.map toAdele.toMonoidHom) ∈ rationalU1 := |
| 303 | (toAdele (E := E)).range.mul_mem ⟨x, rfl⟩ (by simp) |
| 304 | have h_snd : ((divStar (finIdeleIncl (principalIdele x)) / |
| 305 | divStar (x.map toAdele.toMonoidHom) : unitary (𝔸 E)) : 𝔸 E).2 = 1 := by |
| 306 | rw [← map_div, coe_divStar] |
| 307 | simp [toAdele, div_eq_mul_inv, ← map_mul] |
| 308 | exact mem_sup.2 ⟨_, h_rat, _, mem_integralU1_of_snd_eq_one _ h_snd, mul_div_cancel _ _⟩ |
| 309 | |
| 310 | /-- The class group of `U(1)` of tame level `S`: the quotient of U(1)(𝔸) by the subgroup generated |
| 311 | by the rational points and the points with integral finite part that are 1 modulo every place of |
| 312 | the finite set `S`. -/ |
| 313 | abbrev AdelicU1ClassGroup {E : Type*} [Field E] [CMType E] (S : Finset (FinPlace E)) : |
| 314 | Type _ := |
| 315 | unitary (𝔸 E) ⧸ rationalU1 ⊔ integralU1 S |
| 316 | |
| 317 | /-- Every class in the class group of `U(1)` of tame level `S`, the quotient of U(1)(𝔸) by the join |
| 318 | of `New.rationalU1` and `New.integralU1 S`, is the class of `y / ȳ` for a finite idele `y`. -/ |
| 319 | lemma exists_mk_divStar_eq (q : unitary (𝔸 E) ⧸ rationalU1 ⊔ integralU1 S) : |
| 320 | ∃ y : (𝔸f E)ˣ, (divStar (finIdeleIncl y) : unitary (𝔸 E) ⧸ rationalU1 ⊔ integralU1 S) = q := by |
| 321 | -- By Hilbert 90, every `u` has the finite part of some `y / ȳ`. |
| 322 | obtain ⟨u, rfl⟩ := mk_surjective q |
| 323 | obtain ⟨y, hy⟩ := exists_snd_div_divStar_finIdeleIncl_eq_one u |
| 324 | exact ⟨y, (eq_iff_div_mem.2 (mem_sup_right (mem_integralU1_of_snd_eq_one _ hy))).symm⟩ |
| 325 | |
| 326 | /-- The class group of `U(1)` of tame level `S` is finite. |
| 327 | |
| 328 | This is the analogue for `U(1)` of a CM field of the finiteness of ray class groups of a number |
| 329 | field, for a tame level given by a finite set of finite places. -/ |
| 330 | instance finite_u1_classGroup : Finite (unitary (𝔸 E) ⧸ rationalU1 ⊔ integralU1 S) := by |
| 331 | -- `f x = x / x̄` maps the finite ideles onto the class group, through a finite quotient. |
| 332 | let f : (𝔸f E)ˣ →* unitary (𝔸 E) := divStar.toMonoidHom.comp finIdeleIncl |
| 333 | have h_cont : Continuous f := divStar.continuous_toFun.comp (.units_map _ (.prodMk_right 1)) |
| 334 | have h_open : IsOpen (SetLike.coe ((rationalU1 ⊔ integralU1 S).comap f)) := |
| 335 | (isOpen_mono le_sup_right (isOpen_integralU1 S)).preimage h_cont |
| 336 | -- An open subgroup of the finite ideles that contains `Eˣ` has finite index. |
| 337 | have h_index : ((rationalU1 ⊔ integralU1 S).comap f).FiniteIndex := |
| 338 | finiteIndex_idele_subgroup_of_isOpen _ h_open fun x _ ↦ divStar_principalIdele_mem_sup S x |
| 339 | refine .of_surjective (map _ _ f le_rfl) fun q ↦ ?_ |
| 340 | obtain ⟨y, hy⟩ := exists_mk_divStar_eq S q |
| 341 | exact ⟨y, hy⟩ |
| 342 | |
| 343 | end New |
| 344 | |
| 345 | end CharacterLevels |
| 346 | |
| 347 | /-! |
| 348 | ## Characters of given weight and tame part |
| 349 | |
| 350 | * `New.AutChar.HasWeight.exists_pow_eq_prod`: a power of a value at a finite idele is algebraic, |
| 351 | explicitly. |
| 352 | -/ |
| 353 | |
| 354 | section CharacterExistence |
| 355 | |
| 356 | open NumberField Units QuotientGroup Unitary Subgroup Circle CStarRing Function |
| 357 | |
| 358 | namespace New |
| 359 | |
| 360 | section |
| 361 | |
| 362 | variable {E : Type*} [Field E] [NumberField E] [IsCMField E] |
| 363 | {ψ ψ' : ∀ w : FinPlace E, MulChar (ResField w) ℂ} (u : unitary (𝔸 E)) {S : Finset (FinPlace E)} |
| 364 | |
| 365 | /-! ### Elements of norm one -/ |
| 366 | |
| 367 | /-- A point `u` of `U(1)(𝔸)` with integral finite part lies in `New.integralU1 ∅`. -/ |
| 368 | lemma mem_integralU1_empty_of_snd_mem_Ô {u : unitary (𝔸 E)} (h : (u : 𝔸 E).snd ∈ Ô E) : |
| 369 | u ∈ integralU1 (∅ : Finset (FinPlace E)) := ⟨h, nofun⟩ |
| 370 | |
| 371 | /-- The finite part of a point `u` of `New.integralU1 S` is integral. -/ |
| 372 | lemma snd_mem_Ô_of_mem_integralU1 {S : Finset (FinPlace E)} {u : unitary (𝔸 E)} |
| 373 | (hu : u ∈ integralU1 S) : (u : 𝔸 E).snd ∈ Ô E := hu.1 |
| 374 | |
| 375 | /-- A point `u` of `New.integralU1 S` reduces to `1` modulo every place `w` of `S`. -/ |
| 376 | lemma reduceAt_eq_one_of_mem_integralU1 {S : Finset (FinPlace E)} {u : unitary (𝔸 E)} |
| 377 | (hu : u ∈ integralU1 S) {w : FinPlace E} (hw : w ∈ S) : |
| 378 | reduceAt w ⟨(u : 𝔸 E).snd, snd_mem_Ô_of_mem_integralU1 hu⟩ = 1 := |
| 379 | hu.2 w hw |
| 380 | |
| 381 | /-- The unit `New.reduceU1 w u` of the residue field at `w` is the reduction modulo `w` of the |
| 382 | finite part of `u`. -/ |
| 383 | lemma val_reduceU1 (w : FinPlace E) {u : unitary (𝔸 E)} |
| 384 | (hu : u ∈ integralU1 (∅ : Finset (FinPlace E))) : |
| 385 | (reduceU1 w ⟨u, hu⟩ : ResField w) = |
| 386 | reduceAt w ⟨(u : 𝔸 E).snd, snd_mem_Ô_of_mem_integralU1 hu⟩ := rfl |
| 387 | |
| 388 | /-- If the finite part of `u` in `U(1)(𝔸)` is integral, its reduction modulo `w` is a unit of the |
| 389 | residue field at `w`. -/ |
| 390 | @[simp↓] |
| 391 | lemma isUnit_reduceAt_unitary (u : unitary (𝔸 E)) (h : (u : 𝔸 E).snd ∈ Ô E) (w : FinPlace E) : |
| 392 | IsUnit (reduceAt w ⟨(u : 𝔸 E).snd, h⟩) := by |
| 393 | rw [← val_reduceU1 w (mem_integralU1_empty_of_snd_mem_Ô h)] |
| 394 | exact Units.isUnit _ |
| 395 | |
| 396 | /-- Every complex embedding `φ` of `E` sends an element `γ` of `E` with `γ γ̄ = 1` to the unit |
| 397 | circle. -/ |
| 398 | lemma norm_map_unitary (φ : E →+* ℂ) (γ : unitary E) : ‖φ (γ : E)‖ = 1 := by |
| 399 | -- `φ` commutes with complex conjugation, so it maps `U(1)(E)` to `U(1)(ℂ)`. |
| 400 | let φ_star : E →⋆* ℂ := ⟨φ.toMonoidHom, fun x ↦ by simp⟩ |
| 401 | exact norm_coe_unitary (map φ_star γ) |
| 402 | |
| 403 | /-- At every infinite place `v`, the component of a point `u` of `U(1)(𝔸)` has absolute value 1. -/ |
| 404 | @[simp] |
| 405 | lemma norm_unitary_fst (u : unitary (𝔸 E)) (v : InfinitePlace E) : ‖(u : 𝔸 E).fst v‖ = 1 := by |
| 406 | have h_mul : star ((u : 𝔸 E).fst v) * (u : 𝔸 E).fst v = 1 := |
| 407 | congrFun (congrArg Prod.fst (star_mul_self_of_mem u.property)) v |
| 408 | exact norm_of_mem_unitary (mem_iff_star_mul_self.mpr h_mul) |
| 409 | |
| 410 | /-- Kronecker's theorem in a CM field `E`: an algebraic integer `γ` of `E` with `γ γ̄ = 1` satisfies |
| 411 | `γ ^ n = 1`, where `n = torsionOrder E` is the number of roots of unity in `E`. -/ |
| 412 | lemma pow_torsionOrder_eq_one (γ : unitary E) (h : IsIntegral ℤ (γ : E)) : |
| 413 | (γ : E) ^ torsionOrder E = 1 := by |
| 414 | -- Read γ as a unit of the ring of integers; it has absolute value 1 at every infinite place, |
| 415 | -- so it is a torsion unit. |
| 416 | let γ_int : 𝓞 E := ⟨γ, h⟩ |
| 417 | have h_unitary : γ_int ∈ unitary (𝓞 E) := |
| 418 | mem_iff_star_mul_self.mpr (Subtype.ext (star_mul_self_of_mem γ.property)) |
| 419 | let ε : (𝓞 E)ˣ := toUnits ⟨γ_int, h_unitary⟩ |
| 420 | have h_tors : ε ∈ torsion E := |
| 421 | (mem_torsion E).mpr fun w ↦ (w.norm_embedding_eq _).symm.trans (norm_map_unitary _ γ) |
| 422 | have h_pow : (⟨ε, h_tors⟩ : torsion E) ^ torsionOrder E = 1 := pow_card_eq_one' |
| 423 | exact congrArg (fun x : torsion E ↦ ((x.val : 𝓞 E) : E)) h_pow |
| 424 | |
| 425 | /-- If `ψ` is trivial outside `S`, the product of the `ψ_w(u mod w)` over all finite places is the |
| 426 | finite product over `S`, with `u mod w` written as the unit `New.reduceU1 w u`. -/ |
| 427 | lemma finprod_tame_eq_prod_reduceU1 {ψ : ∀ w : FinPlace E, MulChar (ResField w) ℂ} |
| 428 | (u : unitary (𝔸 E)) {S : Finset (FinPlace E)} (hS : ∀ w : FinPlace E, w ∉ S → ψ w = 1) |
| 429 | (h : (u : 𝔸 E).snd ∈ Ô E) : |
| 430 | ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, h⟩) = |
| 431 | ∏ w ∈ S, ψ w (reduceU1 w ⟨u, mem_integralU1_empty_of_snd_mem_Ô h⟩) := by |
| 432 | have h_support : |
| 433 | mulSupport (fun w : FinPlace E ↦ ψ w (reduceAt w ⟨(u : 𝔸 E).snd, h⟩)) ⊆ S := by |
| 434 | intro w hw |
| 435 | by_contra h_notMem |
| 436 | simp [hS w h_notMem, MulChar.one_apply (isUnit_reduceAt_unitary u h w)] at hw |
| 437 | rw [finprod_eq_prod_of_mulSupport_subset _ h_support] |
| 438 | simp only [val_reduceU1] |
| 439 | |
| 440 | end |
| 441 | |
| 442 | variable {E : Type*} [Field E] [CMType E] {ψ ψ' : ∀ w : FinPlace E, MulChar (ResField w) ℂ} |
| 443 | (u : unitary (𝔸 E)) {S : Finset (FinPlace E)} {μ ν : AutChar E} {e e' : InfinitePlace E → ℤ} |
| 444 | |
| 445 | /-- A rational point `u` of `U(1)(𝔸)` is the image of an element `y` of `E` with `y ȳ = 1`. -/ |
| 446 | lemma exists_unitary_of_mem_rationalU1 {u : unitary (𝔸 E)} (hu : u ∈ rationalU1) : |
| 447 | ∃ y : unitary E, toAdele (y : E) = (u : 𝔸 E) := by |
| 448 | obtain ⟨y, hy⟩ : ∃ y : E, toAdele y = (u : 𝔸 E) := hu |
| 449 | -- `toAdele` is injective and commutes with conjugation, so `y` is unitary with its image. |
| 450 | have h_image : toAdele (star y * y) = toAdele 1 := by |
| 451 | rw [map_mul, ← star_toAdele, hy, star_mul_self_of_mem u.property, map_one] |
| 452 | exact ⟨⟨y, mem_iff_star_mul_self.mpr (toAdele.injective h_image)⟩, hy⟩ |
| 453 | |
| 454 | namespace AutChar |
| 455 | |
| 456 | /-! ### Weight and tame part under the group operations -/ |
| 457 | |
| 458 | /-- Let `ψ` be a family of residue characters, trivial outside the finite set `S` of places. If |
| 459 | `f u = g u * ∏_w ψ_w(u mod w)` for all `u` with integral finite part, then `f u = g u` for `u` in |
| 460 | `New.integralU1 S`. -/ |
| 461 | lemma eq_of_mem_integralU1 {f g : unitary (𝔸 E) → ℂ} (hS : ∀ w : FinPlace E, w ∉ S → ψ w = 1) |
| 462 | (h_eq : ∀ (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).snd ∈ Ô E), |
| 463 | f u = g u * ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, hu⟩)) |
| 464 | (u : unitary (𝔸 E)) (hu : u ∈ integralU1 S) : |
| 465 | f u = g u := by |
| 466 | have h_int : (u : 𝔸 E).snd ∈ Ô E := snd_mem_Ô_of_mem_integralU1 hu |
| 467 | -- Each factor `ψ_w(u mod w)` is 1: outside `S` as `ψ_w = 1`, on `S` as `u ≡ 1` modulo `w`. |
| 468 | have h_tame : ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, h_int⟩) = 1 := by |
| 469 | rw [finprod_tame_eq_prod_reduceU1 u hS h_int] |
| 470 | refine Finset.prod_eq_one fun w hw ↦ ?_ |
| 471 | rw [val_reduceU1, reduceAt_eq_one_of_mem_integralU1 hu hw, map_one] |
| 472 | rw [h_eq u h_int, h_tame, mul_one] |
| 473 | |
| 474 | /-- The trivial character has weight 0 and trivial tame part. -/ |
| 475 | instance HasWeight.one : HasWeight (1 : AutChar E) 0 1 where |
| 476 | finite_ramification := by simp |
| 477 | apply_eq := by simp [MulChar.one_apply] |
| 478 | |
| 479 | /-- If `μ` has weight `e` and tame part `ψ`, and `ν` has weight `e'` and tame part `ψ'`, then `μ ν` |
| 480 | has weight `e + e'` and tame part `ψ ψ'`. -/ |
| 481 | lemma HasWeight.mul (h : μ.HasWeight e ψ) (h' : ν.HasWeight e' ψ') : |
| 482 | (μ * ν).HasWeight (e + e') (ψ * ψ') := by |
| 483 | have h_fin : ({w | ψ w ≠ 1} ∪ {w | ψ' w ≠ 1} : Set (FinPlace E)).Finite := |
| 484 | h.finite_ramification.union h'.finite_ramification |
| 485 | refine ⟨h_fin.subset (by grind [Pi.mul_def]), fun u hu ↦ ?_⟩ |
| 486 | -- Write all three tame products over the finite set `T` where `ψ` or `ψ'` is nontrivial. |
| 487 | set T : Finset (FinPlace E) := h_fin.toFinset |
| 488 | have hψ : ∀ w : FinPlace E, w ∉ T → ψ w = 1 := by simp +contextual [T] |
| 489 | have hψ' : ∀ w : FinPlace E, w ∉ T → ψ' w = 1 := by simp +contextual [T] |
| 490 | have hψψ' : ∀ w : FinPlace E, w ∉ T → (ψ * ψ') w = 1 := by simp +contextual [hψ, hψ'] |
| 491 | have h_ne (v : InfinitePlace E) : (u : 𝔸 E).fst v ≠ 0 := by simp [← norm_ne_zero_iff] |
| 492 | have h_μν : ((μ * ν).val u : ℂ) = μ.val u * ν.val u := rfl |
| 493 | -- Both products of the weight `e + e'` and of the tame part `ψ ψ'` split into two. |
| 494 | have h_arch : ∏ v, (u : 𝔸 E).fst v ^ (e + e') v = |
| 495 | (∏ v, (u : 𝔸 E).fst v ^ e v) * ∏ v, (u : 𝔸 E).fst v ^ e' v := by |
| 496 | simp [zpow_add₀ (h_ne _), Finset.prod_mul_distrib] |
| 497 | have h_tame (r : ∀ w : FinPlace E, ResField w) : |
| 498 | ∏ w ∈ T, (ψ * ψ') w (r w) = (∏ w ∈ T, ψ w (r w)) * ∏ w ∈ T, ψ' w (r w) := by |
| 499 | simp only [Pi.mul_apply, MulChar.mul_apply, Finset.prod_mul_distrib] |
| 500 | rw [h_μν, h.apply_eq u hu, h'.apply_eq u hu, finprod_tame_eq_prod_reduceU1 u hψ hu, |
| 501 | finprod_tame_eq_prod_reduceU1 u hψ' hu, finprod_tame_eq_prod_reduceU1 u hψψ' hu, h_arch, |
| 502 | h_tame fun w ↦ reduceU1 w ⟨u, mem_integralU1_empty_of_snd_mem_Ô hu⟩] |
| 503 | ring |
| 504 | |
| 505 | /-- If `μ` has weight `e` and tame part `ψ`, then `μ⁻¹` has weight `-e` and tame part `ψ⁻¹`. -/ |
| 506 | instance HasWeight.inv [h : μ.HasWeight e ψ] : μ⁻¹.HasWeight (-e) ψ⁻¹ where |
| 507 | finite_ramification := by simpa using h.finite_ramification |
| 508 | apply_eq := by simp +contextual [apply_eq, MulChar.inv_apply_eq_inv', finprod_inv_distrib, field] |
| 509 | |
| 510 | /-- The `n`-th power of a character has `n` times the weight and the `n`-th power of the tame |
| 511 | part. -/ |
| 512 | lemma HasWeight.zpow (h : μ.HasWeight e ψ) (n : ℤ) : (μ ^ n).HasWeight (n • e) (ψ ^ n) := by |
| 513 | induction n with |
| 514 | | zero => simpa using HasWeight.one |
| 515 | | succ k ih => simpa [zpow_add_one, add_smul] using ih.mul h |
| 516 | | pred k ih => |
| 517 | rw [zpow_sub_one, zpow_sub_one, sub_smul, one_smul, sub_eq_add_neg] |
| 518 | exact ih.mul (HasWeight.inv (h := h)) |
| 519 | |
| 520 | /-! ### Existence and finiteness -/ |
| 521 | |
| 522 | /-- Let ψ be trivial off a finite set S. A homomorphism χ : U(1)(𝔸) → ℂ, trivial on rational |
| 523 | points and equal to ∏_v u_v^{e(v)} · ∏_w ψ_w(u mod w) on integral u, is a continuous unitary |
| 524 | character of weight e and tame part ψ. -/ |
| 525 | lemma exists_hasWeight (χ : unitary (𝔸 E) →* ℂ) (h_rat : rationalU1 ≤ χ.ker) |
| 526 | (hS : ∀ w : FinPlace E, w ∉ S → ψ w = 1) |
| 527 | (hχ : ∀ (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).snd ∈ Ô E), |
| 528 | χ u = (∏ v : InfinitePlace E, (u : 𝔸 E).fst v ^ e v) * |
| 529 | ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, hu⟩)) : |
| 530 | ∃ μ : AutChar E, HasWeight μ e ψ ∧ ∀ u : unitary (𝔸 E), μ.val u = χ u := by |
| 531 | -- On the open subgroup `integralU1 S` the tame part is trivial and χ is the archimedean monomial. |
| 532 | have h_arch : ∀ u ∈ integralU1 S, χ u = ∏ v, (u : 𝔸 E).fst v ^ e v := |
| 533 | eq_of_mem_integralU1 hS hχ |
| 534 | -- So |χ| = 1 on `integralU1 S` as on `rationalU1`: |χ| factors through the finite class group, |
| 535 | -- and a nonnegative real of finite order is 1. |
| 536 | have h_ker : rationalU1 ⊔ integralU1 S ≤ (normHom.toMonoidHom.comp χ).ker := |
| 537 | sup_le (fun u hu ↦ by simp [MonoidHom.mem_ker.mp (h_rat hu)]) |
| 538 | (fun u hu ↦ by simp [h_arch u hu]) |
| 539 | have h_norm (u : unitary (𝔸 E)) : ‖χ u‖ = 1 := by |
| 540 | have h_order : IsOfFinOrder ‖χ u‖ := |
| 541 | (lift (rationalU1 ⊔ integralU1 S) (normHom.toMonoidHom.comp χ) h_ker).isOfFinOrder |
| 542 | (isOfFinOrder_of_finite (u : AdelicU1ClassGroup S)) |
| 543 | exact h_order.eq_one (norm_nonneg _) |
| 544 | -- χ agrees with the monomial near 1, so it is continuous at 1, hence everywhere. |
| 545 | have h_cont : Continuous χ := by |
| 546 | have h_near : χ =ᶠ[nhds 1] fun u ↦ ∏ v, (u : 𝔸 E).fst v ^ e v := |
| 547 | .mono ((isOpen_integralU1 S).mem_nhds (one_mem _)) h_arch |
| 548 | have h_monomial : ContinuousAt (fun u : unitary (𝔸 E) ↦ ∏ v, (u : 𝔸 E).fst v ^ e v) 1 := by |
| 549 | fun_prop (disch := simp) |
| 550 | exact continuous_of_continuousAt_one χ (h_monomial.congr h_near.symm) |
| 551 | let χ' : unitary (𝔸 E) →ₜ* Circle := |
| 552 | ⟨χ.codRestrict _ fun u ↦ mem_sphere_zero_iff_norm.mpr (h_norm u), h_cont.subtype_mk _⟩ |
| 553 | have h_trivial : χ' ∈ charsTrivialOnPrincipal E (unitary (𝔸 E)) Subtype.val := |
| 554 | fun u hu ↦ ext (h_rat hu) |
| 555 | have h_finite : {w : FinPlace E | ψ w ≠ 1}.Finite := |
| 556 | S.finite_toSet.subset fun w hw ↦ by_contra fun h_notMem ↦ hw (hS w h_notMem) |
| 557 | exact ⟨⟨χ', h_trivial⟩, ⟨h_finite, hχ⟩, fun _ ↦ rfl⟩ |
| 558 | |
| 559 | /-- Let ψ be trivial off a finite set S. If ∏_v Φ_v(u)^{e(v)} · ∏_{w∈S} ψ_w(u mod w) = 1 for every |
| 560 | integer u of E with uū = 1 (Φ_v the embedding of E chosen at v), then some character of U(1)(𝔸), |
| 561 | trivial on rational points, has weight e and tame part ψ. -/ |
| 562 | lemma exists_hasWeight_of_prod_eq_one (hS : ∀ w : FinPlace E, w ∉ S → ψ w = 1) |
| 563 | (h_one : ∀ (u : unitary E) (hu : algebraMap E (𝔸f E) u ∈ Ô E), |
| 564 | (∏ v : InfinitePlace E, Φ v (u : E) ^ e v) * |
| 565 | ∏ w ∈ S, ψ w (reduceAt w ⟨algebraMap E (𝔸f E) u, hu⟩) = 1) : |
| 566 | ∃ μ : AutChar E, HasWeight μ e ψ := by |
| 567 | -- The formula defines a character θ of the points with integral finite part. |
| 568 | let θ : integralU1 (∅ : Finset (FinPlace E)) →* ℂ := |
| 569 | { toFun u := (∏ v, ((u : unitary (𝔸 E)) : 𝔸 E).fst v ^ e v) * ∏ w ∈ S, ψ w (reduceU1 w u) |
| 570 | map_one' := by simp |
| 571 | map_mul' := by simp [mul_zpow, Finset.prod_mul_distrib, field] } |
| 572 | -- By `h_one` it kills the rational integral points, so it extends to a character χ of U(1)(𝔸) |
| 573 | -- that kills all rational points. |
| 574 | have h_θ_rat : ∀ u : integralU1 (∅ : Finset (FinPlace E)), |
| 575 | (u : unitary (𝔸 E)) ∈ rationalU1 → θ.toHomUnits u = 1 := by |
| 576 | rintro ⟨⟨x, hx_unitary⟩, hx_int⟩ hx_rat |
| 577 | obtain ⟨y, rfl⟩ := exists_unitary_of_mem_rationalU1 hx_rat |
| 578 | exact ext (h_one y (snd_mem_Ô_of_mem_integralU1 hx_int)) |
| 579 | obtain ⟨χ, h_rat, hχ⟩ : ∃ χ : unitary (𝔸 E) →* ℂˣ, rationalU1 ≤ χ.ker ∧ |
| 580 | ∀ u : integralU1 (∅ : Finset (FinPlace E)), χ u = θ.toHomUnits u := |
| 581 | exists_monoidHom_extend (integralU1 ∅).subtype θ.toHomUnits rationalU1 h_θ_rat |
| 582 | have h_rat_ℂ : rationalU1 ≤ ((coeHom ℂ).comp χ).ker := |
| 583 | fun u hu ↦ by simp [MonoidHom.mem_ker.mp (h_rat hu)] |
| 584 | have h_formula : ∀ (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).snd ∈ Ô E), |
| 585 | (coeHom ℂ).comp χ u = (∏ v : InfinitePlace E, (u : 𝔸 E).fst v ^ e v) * |
| 586 | ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, hu⟩) := fun u hu ↦ by |
| 587 | rw [finprod_tame_eq_prod_reduceU1 u hS hu] |
| 588 | -- At `u`, `χ` is `θ`, which is the formula. |
| 589 | exact congrArg Units.val (hχ ⟨u, mem_integralU1_empty_of_snd_mem_Ô hu⟩) |
| 590 | obtain ⟨μ, hμ, -⟩ := exists_hasWeight (e := e) ((coeHom ℂ).comp χ) h_rat_ℂ hS h_formula |
| 591 | exact ⟨μ, hμ⟩ |
| 592 | |
| 593 | /-- For a finite set S of finite places, the group of pairs (μ, ψ): μ a character of U(1)(𝔸) of |
| 594 | weight 0 with tame part ψ, and ψ trivial outside S. -/ |
| 595 | noncomputable def tameChars (S : Finset (FinPlace E)) : |
| 596 | Subgroup (AutChar E × ∀ w : FinPlace E, MulChar (ResField w) ℂ) := |
| 597 | ofDiv {μ : AutChar E × ((w : FinPlace E) → MulChar (ResField w) ℂ) | |
| 598 | HasWeight μ.1 0 μ.2 ∧ ∀ w ∉ S, μ.2 w = 1} ⟨1, HasWeight.one, by simp⟩ |
| 599 | fun _ ⟨hμ, _⟩ _ ⟨hν, _⟩ ↦ ⟨(hμ.mul hν.inv :), by simp_all⟩ |
| 600 | |
| 601 | /-- Let `χ` be a complex character of the class group `U(1)(𝔸) / (rationalU1 ⊔ integralU1 S)` of |
| 602 | level `S`. Its pullback to `U(1)(𝔸)` is a continuous unitary character of weight 0 whose tame part |
| 603 | is trivial outside `S`. That is, some pair `(μ, ψ)` in `New.AutChar.tameChars S` has `μ u = χ ↑u` |
| 604 | for all `u`, where `↑u` is the class of `u`. -/ |
| 605 | lemma exists_mem_tameChars (χ : unitary (𝔸 E) ⧸ (rationalU1 ⊔ integralU1 S) →* ℂ) : |
| 606 | -- `μ.val.fst` is the character of the pair `μ`, and `↑u` is the class of `u` |
| 607 | ∃ μ : tameChars S, ∀ u : unitary (𝔸 E), |
| 608 | ((μ.val.fst : unitary (𝔸 E) →ₜ* Circle) u : ℂ) = χ ↑u := by |
| 609 | classical |
| 610 | -- χ kills the integral points that are 1 modulo `S`, so on integral points it comes from a |
| 611 | -- character θ of the product of the residue unit groups at `S`, that is, from a family φ. |
| 612 | obtain ⟨θ, -, hθ⟩ : |
| 613 | ∃ θ : (∀ w : S, (ResField (w : FinPlace E))ˣ) →* ℂˣ, |
| 614 | ⊥ ≤ θ.ker ∧ |
| 615 | ∀ u : integralU1 (∅ : Finset (FinPlace E)), |
| 616 | θ (fun w ↦ reduceU1 (w : FinPlace E) u) = χ.toHomUnits (u : unitary (𝔸 E)) := by |
| 617 | refine exists_monoidHom_extend (.pi fun w : S ↦ reduceU1 (w : FinPlace E)) |
| 618 | ((χ.toHomUnits.comp (mk' _)).domRestrict _) ⊥ fun u hu ↦ ?_ |
| 619 | -- `u` reduces to 1 at every place of `S`, so it lies in `integralU1 S`, which χ kills. |
| 620 | have h_mem : (u : unitary (𝔸 E)) ∈ integralU1 S := ⟨snd_mem_Ô_of_mem_integralU1 u.property, |
| 621 | fun w hw ↦ congrArg Units.val (congrFun (Subgroup.mem_bot.1 hu) ⟨w, hw⟩)⟩ |
| 622 | exact ext (le_comap_mk' _ χ.ker (mem_sup_right h_mem)) |
| 623 | let e_pi := Pi.monoidHomMulEquiv (fun w : S ↦ (ResField (w : FinPlace E))ˣ) ℂˣ |
| 624 | obtain ⟨φ, rfl⟩ := e_pi.symm.surjective θ |
| 625 | -- The tame part is φ on `S` and trivial elsewhere. |
| 626 | let ψ : ∀ w : FinPlace E, MulChar (ResField w) ℂ := updateFinset 1 S fun w ↦ .ofUnitHom (φ w) |
| 627 | have hψ : ∀ w : FinPlace E, w ∉ S → ψ w = 1 := by simp +contextual [ψ, updateFinset] |
| 628 | have h_rat : rationalU1 ≤ (χ.comp (mk' _)).ker := le_sup_left.trans (le_comap_mk' _ χ.ker) |
| 629 | have h_formula : ∀ (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).snd ∈ Ô E), |
| 630 | χ.comp (mk' _) u = (∏ v : InfinitePlace E, (u : 𝔸 E).fst v ^ (0 : InfinitePlace E → ℤ) v) * |
| 631 | ∏ᶠ w : FinPlace E, ψ w (reduceAt w ⟨(u : 𝔸 E).snd, hu⟩) := by |
| 632 | intro u hu |
| 633 | -- At `u`, χ is θ at the reductions of `u`, that is, the product of the `φ_w` over `S`. |
| 634 | have hu_int : u ∈ integralU1 (∅ : Finset (FinPlace E)) := mem_integralU1_empty_of_snd_mem_Ô hu |
| 635 | have h_χ_u : χ.comp (mk' _) u = |
| 636 | (e_pi.symm φ (fun w ↦ reduceU1 (w : FinPlace E) ⟨u, hu_int⟩) : ℂ) := |
| 637 | (congrArg Units.val (hθ ⟨u, hu_int⟩)).symm |
| 638 | rw [finprod_tame_eq_prod_reduceU1 u hψ, h_χ_u] |
| 639 | simp [e_pi, ψ, updateFinset, ← S.prod_coe_sort, Pi.monoidHomMulEquiv] |
| 640 | obtain ⟨μ, hμ, hμχ⟩ := exists_hasWeight (e := 0) _ h_rat hψ h_formula |
| 641 | exact ⟨⟨(μ, ψ), hμ, hψ⟩, hμχ⟩ |
| 642 | |
| 643 | /-- Let `μ` be a character of `U(1)(𝔸)` of weight 0 whose tame part `ψ` is trivial outside a finite |
| 644 | set `S` of finite places. Then `μ` is the pullback of a character `χ` of the class group |
| 645 | `U(1)(𝔸) / (rationalU1 ⊔ integralU1 S)` of level `S`: `χ ↑u = μ u` for all `u`, where `↑u` is the |
| 646 | class of `u`. This is the converse of `New.AutChar.exists_mem_tameChars`. -/ |
| 647 | lemma exists_classGroup_char_eq_of_hasWeight_zero {S : Finset (FinPlace E)} |
| 648 | {ψ : ∀ w : FinPlace E, MulChar (ResField w) ℂ} {μ : AutChar E} (hμ : μ.HasWeight 0 ψ) |
| 649 | (hS : ∀ w : FinPlace E, w ∉ S → ψ w = 1) : |
| 650 | ∃ χ : unitary (𝔸 E) ⧸ (rationalU1 ⊔ integralU1 S) →* Circle, |
| 651 | ∀ u : unitary (𝔸 E), χ ↑u = μ.val u := by |
| 652 | -- On integral points `μ` is the product of the `ψ_w` at the reductions, which is 1 if the point |
| 653 | -- is 1 modulo the places of `S`. |
| 654 | have h_int : integralU1 S ≤ μ.val.toMonoidHom.ker := fun u hu ↦ |
| 655 | Circle.ext (by simpa using eq_of_mem_integralU1 hS hμ.apply_eq u hu) |
| 656 | have h_ker : rationalU1 ⊔ integralU1 S ≤ μ.val.toMonoidHom.ker := sup_le μ.property h_int |
| 657 | exact ⟨lift _ μ.val.toMonoidHom h_ker, lift_mk _ h_ker⟩ |
| 658 | |
| 659 | /-- There are finitely many characters of weight `0` and given tame level. -/ |
| 660 | instance finite_tameChars : Finite (tameChars S) := by |
| 661 | -- Such a character comes from a character of the finite class group of level `S`; its tame part |
| 662 | -- is determined by its finitely many components at the places of `S`. |
| 663 | choose θ hθ using fun χ : tameChars S ↦ |
| 664 | exists_classGroup_char_eq_of_hasWeight_zero χ.property.1 χ.property.2 |
| 665 | let data (χ : tameChars S) : |
| 666 | (AdelicU1ClassGroup S →* ℂˣ) × ∀ w : S, MulChar (ResField w.val) ℂ := |
| 667 | (toUnits.comp (θ χ), S.restrict χ.val.2) |
| 668 | refine .of_injective data fun χ χ' h ↦ ?_ |
| 669 | ext w |
| 670 | · rw [← hθ χ w, ← hθ χ' w] |
| 671 | congrm $h.1 w |
| 672 | · by_cases hw : w ∈ S |
| 673 | · congrm $h.2 ⟨w, hw⟩ _ |
| 674 | · rw [χ.property.2 w hw, χ'.property.2 w hw] |
| 675 | |
| 676 | /-- There are finitely many characters `μ` of `U(1)(𝔸)` of a given weight `e` and tame part `ψ`. |
| 677 | These satisfy `μ u = ∏_v u_v^{e(v)} · ∏_w ψ_w(u mod w)` for all `u` with integral finite part. -/ |
| 678 | lemma finite_setOf_hasWeight (e : InfinitePlace E → ℤ) |
| 679 | (ψ : ∀ w : FinPlace E, MulChar (ResField w) ℂ) : |
| 680 | {μ : AutChar E | μ.HasWeight e ψ}.Finite := by |
| 681 | -- Division by one such character `ν` gives characters of weight `0` and trivial tame part. |
| 682 | obtain h_empty | ⟨ν, hν⟩ := {μ : AutChar E | μ.HasWeight e ψ}.eq_empty_or_nonempty |
| 683 | · rw [h_empty] |
| 684 | exact Set.finite_empty |
| 685 | have h_quot (μ : {μ : AutChar E | μ.HasWeight e ψ}) : |
| 686 | (μ.val * ν⁻¹, 1) ∈ tameChars (∅ : Finset (FinPlace E)) := |
| 687 | ⟨by simpa using HasWeight.mul μ.prop (HasWeight.inv (h := hν)), fun _ _ ↦ rfl⟩ |
| 688 | let quot (μ : {μ : AutChar E | μ.HasWeight e ψ}) : tameChars (∅ : Finset (FinPlace E)) := |
| 689 | ⟨_, h_quot μ⟩ |
| 690 | refine Finite.of_injective quot fun μ μ' h_eq ↦ ?_ |
| 691 | have h_mul : μ.val * ν⁻¹ = μ'.val * ν⁻¹ := congrArg (fun χ ↦ χ.val.fst) h_eq |
| 692 | exact Subtype.ext (mul_right_cancel h_mul) |
| 693 | |
| 694 | /-- Let `μ` have weight `e` and tame part `ψ`, and let `u` in `U(1)(𝔸)` have archimedean part 1. |
| 695 | There are `n > 0` and `γ` in `E` with `γ γ̄ = 1` such that (a) `uⁿ γ` is a unit at every finite |
| 696 | place, and (b) `μ(u)ⁿ = ∏_v Φ_v(γ)^{e v}`, with `Φ` the CM type. -/ |
| 697 | lemma HasWeight.exists_pow_eq_prod (h : μ.HasWeight e ψ) (hu : (u : 𝔸 E).fst = 1) : |
| 698 | ∃ n : ℕ, n > 0 ∧ ∃ γ : unitary E, |
| 699 | -- (a) |
| 700 | (∀ w : IsDedekindDomain.HeightOneSpectrum (𝓞 E), |
| 701 | Valued.v (((u : 𝔸 E).snd ^ n * ((γ : E) : 𝔸f E)) w) = 1) ∧ |
| 702 | -- (b) |
| 703 | (μ.val u : ℂ) ^ n = ∏ v : InfinitePlace E, Φ v (γ : E) ^ e v := by |
| 704 | -- Let n be the order of the class group of the level `T` of ψ; then uⁿ = g z with g rational |
| 705 | -- and z integral and 1 modulo `T`. Take γ = g⁻¹, so that z = uⁿγ. |
| 706 | set T : Finset (FinPlace E) := h.finite_ramification.toFinset |
| 707 | let H : Subgroup (unitary (𝔸 E)) := rationalU1 ⊔ integralU1 T |
| 708 | obtain ⟨g, hg, z, hz, hgz⟩ : ∃ g ∈ rationalU1, ∃ z ∈ integralU1 T, g * z = u ^ H.index := |
| 709 | mem_sup.mp (pow_index_mem H u) |
| 710 | obtain ⟨γ, hγ⟩ := exists_unitary_of_mem_rationalU1 (inv_mem hg) |
| 711 | have hz_eq : z = g⁻¹ * u ^ H.index := eq_inv_mul_of_mul_eq hgz |
| 712 | refine ⟨H.index, Nat.pos_of_ne_zero index_ne_zero_of_finite, γ, fun w ↦ ?_, ?_⟩ |
| 713 | · -- z is integral with nonzero reduction at w. |
| 714 | have hz_int : (z : 𝔸 E).snd ∈ Ô E := snd_mem_Ô_of_mem_integralU1 hz |
| 715 | have h_val : Valued.v ((z : 𝔸 E).snd w) = 1 := (mem_Ô.mp hz_int w).eq_of_not_lt fun h_lt ↦ |
| 716 | (isUnit_reduceAt_unitary z hz_int w).ne_zero (reduceAt_eq_zero.mpr h_lt) |
| 717 | have hz_snd : (z : 𝔸 E).snd = (u : 𝔸 E).snd ^ H.index * ((γ : E) : 𝔸f E) := by |
| 718 | simp [hz_eq, ← hγ, mul_comm] |
| 719 | rwa [hz_snd] at h_val |
| 720 | · -- μ(z) is the archimedean monomial, μ(g) = 1, and z and γ have the same archimedean part. |
| 721 | have h_arch : (μ.val z : ℂ) = ∏ v, (z : 𝔸 E).fst v ^ e v := |
| 722 | eq_of_mem_integralU1 (fun w hw ↦ by simpa [T] using hw) h.apply_eq z hz |
| 723 | have hμ_g : μ.val g = 1 := μ.property _ hg |
| 724 | have hμ_z : (μ.val z : ℂ) = (μ.val u : ℂ) ^ H.index := by simp [hz_eq, hμ_g] |
| 725 | have hz_fst (v : InfinitePlace E) : (z : 𝔸 E).fst v = Φ v (γ : E) := by |
| 726 | simp [hz_eq, ← hγ, hu] |
| 727 | simp only [← hμ_z, h_arch, hz_fst] |
| 728 | |
| 729 | end AutChar |
| 730 | |
| 731 | end New |
| 732 | |
| 733 | end CharacterExistence |
| 734 | |
| 735 | /-! ## Galois conjugates of characters of U(1) -/ |
| 736 | |
| 737 | namespace New.AutChar.HasWeight |
| 738 | |
| 739 | variable {E : Type*} [Field E] [CMType E] |
| 740 | {μ : AutChar E} {e : NumberField.InfinitePlace E → ℤ} |
| 741 | {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} |
| 742 | |
| 743 | /-- Let μ have weight e and tame part ψ, and let σ be an automorphism of ℂ that permutes the |
| 744 | embeddings of the CM type through a permutation p of the infinite places: σ ∘ Φ_v = Φ_{p(v)}. |
| 745 | Then some character ν has weight e ∘ p⁻¹ and tame part w ↦ σ ∘ ψ_w, and ν(u) = σ(μ(u)) for every |
| 746 | u with archimedean component 1. -/ |
| 747 | lemma exists_conj (h : μ.HasWeight e ψ) {σ : ℂ ≃+* ℂ} |
| 748 | {p : NumberField.InfinitePlace E ≃ NumberField.InfinitePlace E} |
| 749 | (hσp : ∀ (v : NumberField.InfinitePlace E) (x : E), σ (Φ v x) = Φ (p v) x) : |
| 750 | ∃ ν : AutChar E, |
| 751 | -- (a) the weight is permuted by p and the tame part is composed with σ |
| 752 | HasWeight ν (e ∘ p.symm) (fun w : FinPlace E ↦ (ψ w).ringHomComp σ) ∧ |
| 753 | -- (b) where the archimedean part is 1, the values are those of μ moved by σ |
| 754 | ∀ u : unitary (𝔸 E), (u : 𝔸 E).fst = 1 → ν.val u = σ (μ.val u) := by |
| 755 | -- Permute the archimedean monomial by p and apply σ to the rest of μ. |
| 756 | let χ : unitary (𝔸 E) →* ℂ := |
| 757 | { toFun u := (∏ v, (u : 𝔸 E).fst (p v) ^ e v) * σ (μ.val u / ∏ v, (u : 𝔸 E).fst v ^ e v) |
| 758 | map_one' := by simp |
| 759 | map_mul' x y := by |
| 760 | simp [mul_zpow, Finset.prod_mul_distrib] |
| 761 | ring } |
| 762 | have hχ (u : unitary (𝔸 E)) : |
| 763 | χ u = (∏ v, (u : 𝔸 E).fst (p v) ^ e v) * σ (μ.val u / ∏ v, (u : 𝔸 E).fst v ^ e v) := |
| 764 | rfl |
| 765 | -- On a rational point μ is 1 and σ permutes the embeddings, so the two monomials cancel. |
| 766 | have h_rat : rationalU1 ≤ χ.ker := by |
| 767 | intro u hu |
| 768 | obtain ⟨y, hy⟩ := exists_unitary_of_mem_rationalU1 hu |
| 769 | have hμ_u : μ.val u = 1 := μ.property u hu |
| 770 | have h_arch (v : NumberField.InfinitePlace E) : (u : 𝔸 E).fst v = Φ v (y : E) := by |
| 771 | simp [← hy] |
| 772 | simp [hχ, hμ_u, h_arch, hσp, norm_map_unitary _ y, ← norm_ne_zero_iff] |
| 773 | have h_level : ∀ w : FinPlace E, w ∉ h.finite_ramification.toFinset → |
| 774 | (ψ w).ringHomComp (σ : ℂ →+* ℂ) = 1 := by |
| 775 | simp +contextual |
| 776 | -- `exists_hasWeight` makes χ a unitary character once it has the right formula on integral |
| 777 | -- points; there μ divided by its monomial is the tame product. |
| 778 | have h_formula : ∀ (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).snd ∈ Ô E), |
| 779 | χ u = (∏ v : NumberField.InfinitePlace E, (u : 𝔸 E).fst v ^ (e ∘ p.symm) v) * |
| 780 | ∏ᶠ w : FinPlace E, (ψ w).ringHomComp (σ : ℂ →+* ℂ) (reduceAt w ⟨(u : 𝔸 E).snd, hu⟩) := by |
| 781 | intro u hu |
| 782 | rw [hχ, ← p.symm.prod_comp] |
| 783 | simp [h.apply_eq u hu, ← norm_ne_zero_iff, MulEquivClass.map_finprod] |
| 784 | obtain ⟨ν, hν, hνχ⟩ := exists_hasWeight (e := e ∘ p.symm) χ h_rat h_level h_formula |
| 785 | exact ⟨ν, hν, fun u hu ↦ by simp [hνχ, hχ, hu]⟩ |
| 786 | |
| 787 | end New.AutChar.HasWeight |
| 788 | |
| 789 | end |