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.ClassField.HeckeL.EulerProduct |
| 4 | public import Lib.ClassField.Local.ArtinMap |
| 5 | public import Lib.Weil.Construction.FiniteMultiplier |
| 6 | import Lib.Adelic.Adeles.StrongApproximation |
| 7 | import Lib.Adelic.Unitary.CongruenceLevels |
| 8 | import Lib.Cohomology.Etale.Basic |
| 9 | |
| 10 | /-! |
| 11 | # Values of algebraic Hecke characters |
| 12 | |
| 13 | An algebraic Hecke character of a number field `K` is a character of the finite ideles with open |
| 14 | kernel that is `∏ τ, τ x ^ (-n τ)` on `Kˣ`, for integers `n τ` indexed by the complex embeddings of |
| 15 | `K`. Over a CM field, a unitary Hecke character of suitable type becomes algebraic after a twist by |
| 16 | a half-integral power of the absolute value. This is applied to the base change `y ↦ μ (y / ȳ)` of a |
| 17 | character `μ` of `U(1)(𝔸)` with a weight, and to `υ |·| ^ (-1 / 2)`, with `υ` the splitting |
| 18 | character of the Weil data. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | |
| 22 | * `New.AlgHeckeChar.exists_pow_eq_prod`, `New.AlgHeckeChar.norm_map_eq_sqrt_finIdeleAbs_zpow`, |
| 23 | `New.AlgHeckeChar.norm_padic_eq_prod`: powers and complex and `p`-adic absolute values of the |
| 24 | values of an algebraic Hecke character. |
| 25 | * `New.IsHeckeOfType.toAlgebraic`: the algebraic character `ψ |·|^{k/2}` of infinity type `m`, for |
| 26 | `ψ` of type `m (Φ w) - m (Φ̄ w)` with `m (Φ w) + m (Φ̄ w) = k` at every infinite place `w`. |
| 27 | * `New.AutChar.HasWeight.isHeckeOfType`: if `ν` has weight `e`, its base change has type `2 • e`. |
| 28 | * `New.AutChar.HasWeight.baseChangeAlgebraic`: this base change as an algebraic Hecke character. |
| 29 | * `New.AutChar.HasWeight.norm_map_eq_one`, `New.AutChar.HasWeight.norm_padic_eq_prod`: at a point |
| 30 | `u` of `U(1)(𝔸)` with archimedean part `1`, the conjugates of the value `μ u` of a character of |
| 31 | weight `e` have modulus `1`, and its absolute value under `ι : ℂ →+* ℂ_[p]` is |
| 32 | `∏ τ, ‖u_τ‖ ^ (-e τ)`, with `u_τ` the component of `u` at the prime induced by `ι ∘ Φ τ`. |
| 33 | * `New.WeilData.chiFinAlgebraic`: the character `υ |·|^{-1/2}` as an algebraic Hecke character. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `New.IsHeckeOfType`: The character ψ of the finite ideles is the finite part of a Hecke character |
| 37 | of type n: its kernel is open and ψ(x) ∏_w (Φ_w(x)/|Φ_w(x)|)^{n_w} = 1 on K^×. |
| 38 | * `New.AutChar.HasWeight`: μ has weight e and tame part ψ: almost all residue characters ψ_w are |
| 39 | trivial, and μ(u) = ∏_v u_v^{e(v)} · ∏_w ψ_w(u mod w) whenever u has integral finite part. |
| 40 | * `New.adeleExtension` σ: the extension of an embedding σ of E into `ℂ_[p]` to the finite adeles, |
| 41 | through the prime that σ induces. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | Known result: the values of characters of type A₀. Source: A. Weil, On a certain type of characters |
| 46 | of the idèle-class group of an algebraic number-field, Proceedings of the International Symposium |
| 47 | on Algebraic Number Theory, Tokyo–Nikko 1955 (Science Council of Japan, 1956), pp. 1–7: p. 4, the |
| 48 | statement in italics; the power by the index `N` of the image of the principal ideals, used in |
| 49 | `New.AlgHeckeChar.exists_pow_eq_prod`, is on p. 5. Page numbers refer to these proceedings. |
| 50 | -/ |
| 51 | |
| 52 | @[expose] public section |
| 53 | |
| 54 | noncomputable section |
| 55 | |
| 56 | namespace New |
| 57 | |
| 58 | /-! |
| 59 | ## Values of algebraic Hecke characters |
| 60 | |
| 61 | An element `θ` of `New.AlgHeckeChar K` is a pair of a character `θ.val.fst` of the finite ideles |
| 62 | with open kernel and exponents `n τ = θ.val.snd.toAdd τ`, one for each complex embedding `τ` of `K`, |
| 63 | such that the character is `∏ τ, τ x ^ (-n τ)` on `Kˣ`. |
| 64 | -/ |
| 65 | |
| 66 | namespace AlgHeckeChar |
| 67 | |
| 68 | open NumberField Finset |
| 69 | |
| 70 | variable {K : Type} [Field K] [NumberField K] (θ : AlgHeckeChar K) (y : (𝔸f K)ˣ) |
| 71 | |
| 72 | /-- Let `θ` be an algebraic Hecke character with exponents `n τ` and `y` a finite idele. There are |
| 73 | `N > 0` and `γ` in `Kˣ` such that `y ^ N / γ` is a unit at all finite places and |
| 74 | `θ(y) ^ N = ∏ τ, τ γ ^ (-n τ)`. This is the key step in Weil's proof that characters of type A₀ |
| 75 | take algebraic values on finite ideles. -/ |
| 76 | theorem exists_pow_eq_prod : |
| 77 | ∃ N > (0 : ℕ), ∃ γ : Kˣ, |
| 78 | y ^ N / principalIdele γ ∈ idelesUnitOff ∅ ∧ |
| 79 | (θ.val.fst y : ℂ) ^ N = ∏ τ : K →+* ℂ, τ γ ^ (-θ.val.snd.toAdd τ) := by |
| 80 | -- The principal ideles and the units in the kernel generate an open subgroup `H` of finite index. |
| 81 | let H : Subgroup (𝔸f K)ˣ := principalIdele.range ⊔ (θ.val.fst.ker ⊓ idelesUnitOff ∅) |
| 82 | have h_fin : H.FiniteIndex := finiteIndex_idele_subgroup_of_isOpen H |
| 83 | (Subgroup.isOpen_mono le_sup_right (θ.property.1.inter (isOpen_idelesUnitOff ∅))) |
| 84 | fun x _ ↦ Subgroup.mem_sup_left ⟨x, rfl⟩ |
| 85 | obtain ⟨_, ⟨γ, rfl⟩, u, ⟨hu_ker, hu_unit⟩, h_eq⟩ := Subgroup.mem_sup.1 (H.pow_index_mem y) |
| 86 | refine ⟨H.index, h_fin.index_ne_zero.pos, γ, by rwa [← h_eq, mul_div_cancel_left], ?_⟩ |
| 87 | simpa [← Units.val_pow_eq_pow_val, ← map_pow, ← h_eq, MonoidHom.mem_ker.1 hu_ker] using |
| 88 | θ.property.2 γ |
| 89 | |
| 90 | /-- Let `γ` in `Kˣ` and the finite idele `y` be such that `y ^ N / γ` is a unit at all finite |
| 91 | places. Then the moduli of the conjugates `σ (τ γ)` have product `|y| ^ (-N)`, where `|y|` is the |
| 92 | norm of `y` and `τ` runs over the embeddings of `K`. This is the product formula for `γ`. -/ |
| 93 | theorem prod_norm_map_embeddings_eq_inv_finIdeleAbs_pow {N : ℕ} {γ : Kˣ} |
| 94 | (h_unit : y ^ N / principalIdele γ ∈ idelesUnitOff ∅) (σ : ℂ →+* ℂ) : |
| 95 | ∏ τ : K →+* ℂ, ‖σ (τ γ)‖ = (finIdeleAbs y ^ N)⁻¹ := by |
| 96 | have h_one : finIdeleAbs (y ^ N / principalIdele γ) = 1 := ideleAbs_finIdeleIncl_eq_one h_unit |
| 97 | have h_prod : ∏ τ : K →+* ℂ, τ γ = (Algebra.norm ℚ γ.val : ℚ) := |
| 98 | ((RingHom.equivRatAlgHom K ℂ).prod_comp (· γ.val)).trans |
| 99 | (Algebra.norm_eq_prod_embeddings ℚ ℂ γ.val).symm |
| 100 | rw [← map_pow, ← div_mul_cancel (y ^ N) (principalIdele γ), map_mul, h_one, one_mul, |
| 101 | finIdeleAbs_principalIdele, ← norm_prod, ← map_prod, h_prod] |
| 102 | simp |
| 103 | |
| 104 | /-- Let `K` be a CM field and `θ` an algebraic Hecke character whose exponents satisfy |
| 105 | `n τ + n τ̄ = j` for all `τ`. Then every conjugate `σ (θ y)` of a value has modulus `|y| ^ (j / 2)`, |
| 106 | where `|y|` is the norm of the finite idele `y`. -/ |
| 107 | theorem norm_map_eq_sqrt_finIdeleAbs_zpow [IsCMField K] {j : ℤ} |
| 108 | (hj : ∀ τ : K →+* ℂ, θ.val.snd.toAdd τ + θ.val.snd.toAdd (star τ) = j) (σ : ℂ →+* ℂ) : |
| 109 | ‖σ (θ.val.fst y)‖ = √(finIdeleAbs y) ^ j := by |
| 110 | -- The embeddings `σ τ` and `σ τ̄` are complex conjugate. So the square of the modulus of |
| 111 | -- `σ (θ(y) ^ N)` is `∏ τ, |σ τ γ| ^ (-j)`, and `∏ τ, |σ τ γ|`, the modulus of the norm of `γ`, is |
| 112 | -- `|y| ^ (-N)` by the product formula. |
| 113 | obtain ⟨N, hN, γ, h_unit, h_pow⟩ : ∃ N > (0 : ℕ), ∃ γ : Kˣ, |
| 114 | y ^ N / principalIdele γ ∈ idelesUnitOff ∅ ∧ |
| 115 | (θ.val.fst y : ℂ) ^ N = ∏ τ : K →+* ℂ, τ γ ^ (-θ.val.snd.toAdd τ) := |
| 116 | θ.exists_pow_eq_prod y |
| 117 | have h_conj (τ : K →+* ℂ) : ‖σ (star τ γ)‖ = ‖σ (τ γ)‖ := by |
| 118 | rw [show star τ γ = τ (star γ.val) from (map_star_complex τ γ).symm, ← σ.comp_apply, |
| 119 | map_star_complex, norm_star, σ.comp_apply] |
| 120 | have h_norm : ∏ τ : K →+* ℂ, ‖σ (τ γ)‖ = (finIdeleAbs y ^ N)⁻¹ := |
| 121 | prod_norm_map_embeddings_eq_inv_finIdeleAbs_pow y h_unit σ |
| 122 | have h_value : ‖σ (θ.val.fst y)‖ ^ N = ∏ τ : K →+* ℂ, ‖σ (τ γ)‖ ^ (-θ.val.snd.toAdd τ) := by |
| 123 | simp [← norm_pow, ← map_pow, h_pow] |
| 124 | have h_value_conj : |
| 125 | ‖σ (θ.val.fst y)‖ ^ N = ∏ τ : K →+* ℂ, ‖σ (τ γ)‖ ^ (-θ.val.snd.toAdd (star τ)) := by |
| 126 | rw [h_value, ← Equiv.prod_comp (Function.Involutive.toPerm star star_involutive)] |
| 127 | simp only [Function.Involutive.coe_toPerm, h_conj] |
| 128 | -- It is enough to compare the powers with exponent `N * 2`. |
| 129 | refine (pow_left_inj₀ (norm_nonneg _) (by positivity) (mul_ne_zero hN.ne' two_ne_zero)).1 ?_ |
| 130 | calc ‖σ (θ.val.fst y)‖ ^ (N * 2) |
| 131 | _ = ∏ τ : K →+* ℂ, ‖σ (τ γ)‖ ^ (-j) := by |
| 132 | rw [pow_mul, sq] |
| 133 | nth_rw 1 [h_value] |
| 134 | rw [h_value_conj, ← prod_mul_distrib] |
| 135 | exact prod_congr rfl fun τ _ ↦ by rw [← zpow_add₀ (by simp), ← neg_add, hj] |
| 136 | _ = finIdeleAbs y ^ ((N : ℤ) * j) := by |
| 137 | rw [prod_zpow, h_norm, inv_zpow', neg_neg, zpow_mul, zpow_natCast] |
| 138 | _ = (√(finIdeleAbs y) ^ j) ^ (N * 2) := by |
| 139 | rw [← zpow_natCast (_ ^ j), zpow_comm, zpow_natCast, pow_mul', |
| 140 | Real.sq_sqrt (show 0 ≤ finIdeleAbs y from ideleAbs_pos.le), zpow_mul, zpow_natCast] |
| 141 | |
| 142 | /-- Let `θ` be an algebraic Hecke character with exponents `n τ`, and let `ι : ℂ →+* ℂ_[p]`. Then |
| 143 | `‖ι (θ y)‖ = ∏ τ, ‖y_τ‖ ^ (-n τ)`, where `y_τ` is the image in `ℂ_[p]` of the component of the |
| 144 | finite idele `y` at the prime induced by `ι ∘ τ`. -/ |
| 145 | theorem norm_padic_eq_prod {p : ℕ} [Fact p.Prime] (ι : ℂ →+* ℂ_[p]) : |
| 146 | ‖ι (θ.val.fst y)‖ = |
| 147 | ∏ τ : K →+* ℂ, ‖adeleExtension (ι.comp τ) y.val‖ ^ (-θ.val.snd.toAdd τ) := by |
| 148 | obtain ⟨N, hN, γ, h_unit, (h_pow : (θ.val.fst y : ℂ) ^ N = |
| 149 | ∏ τ : K →+* ℂ, τ γ ^ (-θ.val.snd.toAdd τ))⟩ := θ.exists_pow_eq_prod y |
| 150 | have h_norm (τ : K →+* ℂ) : ‖ι (τ γ)‖ = ‖adeleExtension (ι.comp τ) y.val‖ ^ N := by |
| 151 | -- The quotient has valuation one at the prime induced by `ι ∘ τ`. |
| 152 | rw [← norm_pow, ← map_pow, ← Units.val_pow_eq_pow_val] |
| 153 | have h_principal : adeleExtension (ι.comp τ) (principalIdele γ).val = ι (τ γ) := |
| 154 | adeleExtension_algebraMap (ι.comp τ) γ.val |
| 155 | rw [← h_principal, norm_adeleExtension_eq_iff] |
| 156 | exact (div_mem_idelesUnitOff_iff.mp h_unit _ (Set.notMem_empty _)).symm |
| 157 | refine (pow_left_inj₀ (norm_nonneg _) (by positivity) hN.ne').1 ?_ |
| 158 | calc ‖ι (θ.val.fst y)‖ ^ N |
| 159 | _ = ∏ τ : K →+* ℂ, ‖ι (τ γ)‖ ^ (-θ.val.snd.toAdd τ) := by simp [← norm_pow, ← map_pow, h_pow] |
| 160 | _ = (∏ τ : K →+* ℂ, ‖adeleExtension (ι.comp τ) y.val‖ ^ (-θ.val.snd.toAdd τ)) ^ N := by |
| 161 | simp only [h_norm, ← zpow_natCast, zpow_comm _ (N : ℤ), prod_zpow] |
| 162 | |
| 163 | /-- If the finite idele `y` is a unit at all primes above `p`, then the value `θ y` of an algebraic |
| 164 | Hecke character is a unit at `ι : ℂ →+* ℂ_[p]`. -/ |
| 165 | theorem norm_padic_eq_one {p : ℕ} [Fact p.Prime] (ι : ℂ →+* ℂ_[p]) |
| 166 | (hy : ∀ w : FinPlace K, (p : 𝓞 K) ∈ w.asIdeal → Valued.v (y.val w) = 1) : |
| 167 | ‖ι (θ.val.fst y)‖ = 1 := by |
| 168 | have h_unit (τ : K →+* ℂ) : |
| 169 | ‖adeleExtension (ι.comp τ) y.val‖ = ‖adeleExtension (ι.comp τ) 1‖ := |
| 170 | (norm_adeleExtension_eq_iff _ _).2 (by simpa using hy _ (natCast_mem_placeOfEmb _)) |
| 171 | simp [θ.norm_padic_eq_prod y ι, h_unit] |
| 172 | |
| 173 | end AlgHeckeChar |
| 174 | |
| 175 | /-! ## Algebraic characters from unitary Hecke characters of a CM field -/ |
| 176 | |
| 177 | section ToAlgebraic |
| 178 | |
| 179 | open Finset Complex Real Variety |
| 180 | |
| 181 | -- `Type _`: the algebraic characters need `E : Type`, the lemma on `finPart` has any universe. |
| 182 | variable {E : Type _} [Field E] [CMType E] {ψ : (𝔸f E)ˣ →* ℂˣ} {m : (E →+* ℂ) → ℤ} {k : ℤ} |
| 183 | |
| 184 | /-- Let `Φ w` be the embedding of the CM type at an infinite place `w`. Suppose that |
| 185 | `m (Φ w) + m (Φ̄ w) = k` for every `w` and that the character `ψ` of the finite ideles is the finite |
| 186 | part of a Hecke character of type `m (Φ w) - m (Φ̄ w)`. This is the algebraic Hecke character |
| 187 | `ψ |·| ^ (k / 2)` of infinity type `m`. -/ |
| 188 | def IsHeckeOfType.toAlgebraic |
| 189 | (hk : ∀ w : NumberField.InfinitePlace E, m (Φ w) + m (star (Φ w)) = k) |
| 190 | (H : IsHeckeOfType ψ fun w : NumberField.InfinitePlace E ↦ m (Φ w) - m (star (Φ w))) : |
| 191 | AlgHeckeChar E where |
| 192 | val := |
| 193 | (ψ * |
| 194 | MonoidHom.toHomUnits (G := (𝔸f E)ˣ) (M := ℂ) |
| 195 | { toFun a := √(finIdeleAbs a) |
| 196 | map_one' := by simp |
| 197 | -- Without `id (…)`, `simp` cannot evaluate this homomorphism below. |
| 198 | map_mul' := id (by simp [finIdeleAbs]) } ^ k, |
| 199 | Multiplicative.ofAdd m) |
| 200 | property := by |
| 201 | obtain ⟨h_open, h_principal⟩ := H |
| 202 | refine ⟨?_, fun x ↦ ?_⟩ |
| 203 | · -- The kernel contains the open group `ψ.ker ⊓ idelesUnitOff ∅`, as `finIdeleAbs` is `1` on |
| 204 | -- `idelesUnitOff ∅`. |
| 205 | refine (ψ.ker ⊓ idelesUnitOff ∅).isOpen_mono (fun y hy ↦ ?_) |
| 206 | (h_open.and (isOpen_idelesUnitOff _)) |
| 207 | obtain ⟨hy_ker, hy_unit⟩ := hy |
| 208 | ext |
| 209 | simp [show ψ y = 1 from hy_ker, |
| 210 | show finIdeleAbs y = 1 from ideleAbs_finIdeleIncl_eq_one hy_unit] |
| 211 | · -- For `z = Φ w x` and `k = a + b`, from `z * conj z = ‖z‖ ^ 2` we get |
| 212 | -- `(z / ‖z‖) ^ (a - b) * ‖z‖ ^ (a + b) = z ^ a * conj z ^ b`. |
| 213 | have h_place (w : NumberField.InfinitePlace E) : |
| 214 | (Φ w x / ‖Φ w x‖) ^ (m (Φ w) - m (star (Φ w))) * ‖Φ w x‖ ^ k = |
| 215 | Φ w x ^ m (Φ w) * starRingEnd ℂ (Φ w x) ^ m (star (Φ w)) := by |
| 216 | simp [← hk w, div_zpow, zpow_add₀, zpow_sub₀, field, ← mul_zpow, mul_conj', sq] |
| 217 | -- On `Eˣ` the value of `ψ` is given by its type, that of `finIdeleAbs` by the product |
| 218 | -- formula. |
| 219 | have h_psi := eq_inv_of_mul_eq_one_left (h_principal x) |
| 220 | have h_sqrt : √|(Algebra.norm ℚ (x : E) : ℝ)| = |
| 221 | ∏ w : NumberField.InfinitePlace E, ‖Φ w x‖ := by |
| 222 | simp [abs_norm_eq_prod_norm_sq, sqrt_prod] |
| 223 | -- After inverting both sides we compare products over the infinite places. |
| 224 | simp [h_psi, h_sqrt, prod_embeddings_eq_prod_pairs, ← prod_zpow, ← mul_inv, |
| 225 | ← prod_mul_distrib, h_place] |
| 226 | |
| 227 | /-- At the idele `locIdele w x` (equal to `x` at `w` and `1` elsewhere), the value of |
| 228 | `ψ |·| ^ (k / 2)` is `ψ x` times the power `k` of the square root of `|x|_w`. The logarithm of the |
| 229 | valuation of `x` is minus its order, so `|x|_w = q_w ^ log (v x)`, where `q_w = w.q` is the size of |
| 230 | the residue field at `w`. -/ |
| 231 | @[simp] |
| 232 | lemma IsHeckeOfType.toAlgebraic_locIdele |
| 233 | (hk : ∀ w : NumberField.InfinitePlace E, m (Φ w) + m (star (Φ w)) = k) |
| 234 | (H : IsHeckeOfType ψ fun w : NumberField.InfinitePlace E ↦ m (Φ w) - m (star (Φ w))) |
| 235 | (w : FinPlace E) (x : (LocField w)ˣ) : |
| 236 | ((H.toAlgebraic hk).val.fst (locIdele w x)).val = |
| 237 | ψ (locIdele w x) * √w.q ^ (k * (Valued.v x.val).log) := by |
| 238 | simp [toAlgebraic, norm_locField_eq_q_zpow, sqrt_eq_rpow, zpow_mul', ← rpow_zpow_comm] |
| 239 | |
| 240 | /-- If the unitary Hecke character `χ` is `z ↦ ∏ w, (z w / ‖z w‖) ^ n w` at infinity, its finite |
| 241 | part has type `n`: it has open kernel and is inverse to `∏ w, (Φ w x / ‖Φ w x‖) ^ n w` on `Eˣ`. Here |
| 242 | `E` is a CM field and `Φ w` is the complex embedding that the CM type chooses to induce the infinite |
| 243 | place `w`. -/ |
| 244 | lemma HeckeChar.isHeckeOfType_finPart {n : NumberField.InfinitePlace E → ℤ} (χ : HeckeChar E) |
| 245 | (h_inf : ∀ z : (NumberField.InfinitePlace E → ℂ)ˣ, |
| 246 | χ.val (Units.map (MonoidHom.inl (NumberField.InfinitePlace E → ℂ) (𝔸f E)) z) = |
| 247 | ∏ w : NumberField.InfinitePlace E, (z.val w / ‖z.val w‖) ^ n w) : |
| 248 | IsHeckeOfType χ.finPart n := by |
| 249 | refine ⟨χ.finPart.ker.isOpen_of_mem_nhds (g := 1) ?_, fun x ↦ ?_⟩ |
| 250 | · -- A continuous character of a nonarchimedean group is trivial near `1`. |
| 251 | let χf : (𝔸f E)ˣ →ₜ* Circle := |
| 252 | χ.val.comp |
| 253 | ⟨Units.map (.inr (NumberField.InfinitePlace E → ℂ) (𝔸f E)), .units_map _ (.prodMk_right _)⟩ |
| 254 | refine (char_eventually_eq_one _ χf.continuous_toFun).mono fun y hy ↦ Units.ext ?_ |
| 255 | change (χf y : ℂ) = 1 |
| 256 | exact congrArg Subtype.val hy |
| 257 | · -- `χ` is trivial on the principal idele of `x`, the product of its finite and infinite parts. |
| 258 | let a : (𝔸 E)ˣ := .map (.inr (NumberField.InfinitePlace E → ℂ) (𝔸f E)) (principalIdele x) * |
| 259 | .map (.inl (NumberField.InfinitePlace E → ℂ) (𝔸f E)) (x.map (.pi fun w ↦ Φ w)) |
| 260 | -- It is the image of `x` in the adeles. |
| 261 | have h_one : χ.val a = 1 := χ.property a ⟨x.val, by aesop⟩ |
| 262 | simpa [a, h_inf, Circle.ext_iff, HeckeChar.finPart] using h_one |
| 263 | |
| 264 | end ToAlgebraic |
| 265 | |
| 266 | /-! ## Characters of U(1) with a weight -/ |
| 267 | |
| 268 | namespace AutChar.HasWeight |
| 269 | |
| 270 | open NumberField Finset Complex Variety |
| 271 | |
| 272 | section BaseChangeType |
| 273 | |
| 274 | variable {E : Type*} [Field E] [CMType E] {e : InfinitePlace E → ℤ} {ν : AutChar E} |
| 275 | {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} |
| 276 | |
| 277 | /-- At infinity the base change `x ↦ ν (x / x̄)` of a character `ν` of weight `e` is |
| 278 | `z ↦ ∏ w, (z w / ‖z w‖) ^ (2 * e w)`. -/ |
| 279 | lemma baseChange_apply_inf [h : ν.HasWeight e ψ] (z : (NumberField.InfinitePlace E → ℂ)ˣ) : |
| 280 | ν.baseChange.val (Units.map (MonoidHom.inl (NumberField.InfinitePlace E → ℂ) (𝔸f E)) z) = |
| 281 | ∏ w : NumberField.InfinitePlace E, (z.val w / ‖z.val w‖) ^ (2 • e) w := by |
| 282 | -- The idele `z / z̄` has finite part `1`, so only the factors at infinity remain, and |
| 283 | -- `z / z̄ = (z / |z|) ^ 2`. |
| 284 | set x : (𝔸 E)ˣ := Units.map (MonoidHom.inl (NumberField.InfinitePlace E → ℂ) (𝔸f E)) z with hx |
| 285 | have h_fin : (divStar x : 𝔸 E).snd ∈ Ô E := by simp [hx, coe_divStar] |
| 286 | rw [show (ν.baseChange.val x : ℂ) = ν.val (divStar x) from rfl, h.apply_eq _ h_fin] |
| 287 | suffices h_factor : ∀ v : NumberField.InfinitePlace E, |
| 288 | z.val v * (starRingEnd ℂ (z.val v))⁻¹ = (z.val v / ‖z.val v‖) ^ 2 by |
| 289 | simp [hx, coe_divStar, zpow_mul, ← OneMemClass.one_def, h_factor] |
| 290 | exact fun v ↦ by grind [Complex.mul_conj', (z.isUnit.apply v).ne_zero] |
| 291 | |
| 292 | /-- If the character `ν` of `U(1)(𝔸)` has weight `e` and tame part `ψ`, then the restriction of |
| 293 | `x ↦ ν (x / x̄)` to the finite ideles of `E` is the finite part of a Hecke character of type |
| 294 | `2 e`. -/ |
| 295 | lemma isHeckeOfType [h : ν.HasWeight e ψ] : IsHeckeOfType ν.baseChange.finPart (2 • e) := |
| 296 | ν.baseChange.isHeckeOfType_finPart h.baseChange_apply_inf |
| 297 | |
| 298 | end BaseChangeType |
| 299 | |
| 300 | variable {E : Type} [Field E] [CMType E] {μ : AutChar E} {e : InfinitePlace E → ℤ} |
| 301 | {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} |
| 302 | |
| 303 | open scoped Classical in |
| 304 | /-- The base change `y ↦ μ (y / ȳ)` of a character `μ` of `U(1)(𝔸)` of weight `e`, on finite |
| 305 | ideles, as an algebraic Hecke character: its exponents are `e` on the CM type and `-e` on its |
| 306 | conjugate. -/ |
| 307 | def baseChangeAlgebraic (h : μ.HasWeight e ψ) : AlgHeckeChar E := |
| 308 | IsHeckeOfType.toAlgebraic (k := 0) |
| 309 | (m := fun σ : E →+* ℂ ↦ |
| 310 | if σ = Φ (InfinitePlace.mk σ) then e (InfinitePlace.mk σ) else -e (InfinitePlace.mk σ)) |
| 311 | (by simp) |
| 312 | (μ.baseChange.isHeckeOfType_finPart fun z ↦ by simp [h.baseChange_apply_inf z, two_mul]) |
| 313 | |
| 314 | /-- For a character `μ` of weight `e`, the algebraic Hecke character `h.baseChangeAlgebraic`, which |
| 315 | is the base change of `μ` on finite ideles, has the exponent `e w` at the embedding `Φ w` of the CM |
| 316 | type and `-e w` at its conjugate. -/ |
| 317 | lemma baseChangeAlgebraic_exponent (h : μ.HasWeight e ψ) (w : InfinitePlace E) : |
| 318 | h.baseChangeAlgebraic.val.snd.toAdd (Φ w) = e w ∧ |
| 319 | h.baseChangeAlgebraic.val.snd.toAdd (star (Φ w)) = -e w := by |
| 320 | simp [baseChangeAlgebraic, IsHeckeOfType.toAlgebraic] |
| 321 | |
| 322 | /-- Let `μ` have weight `e` and tame part `ψ`. If `u` in `U(1)(𝔸)` has archimedean part `1`, then |
| 323 | its finite part is `y / ȳ` for a finite idele `y`, and `μ u` is the value at `y` of the base change |
| 324 | of `μ`. -/ |
| 325 | lemma exists_baseChangeAlgebraic_apply_eq (h : μ.HasWeight e ψ) (u : unitary (𝔸 E)) |
| 326 | (hu : (u : 𝔸 E).fst = 1) : |
| 327 | ∃ y : (𝔸f E)ˣ, |
| 328 | (u : 𝔸 E).snd = y.val * star (y⁻¹).val ∧ |
| 329 | (h.baseChangeAlgebraic.val.fst y : ℂ) = μ.val u := by |
| 330 | obtain ⟨y, hy⟩ := exists_snd_div_divStar_finIdeleIncl_eq_one u |
| 331 | have h_fst : ((u / divStar (finIdeleIncl y) : unitary (𝔸 E)) : 𝔸 E).fst = 1 := by |
| 332 | simp [div_eq_mul_inv, ← map_inv, hu, coe_divStar, finIdeleIncl] |
| 333 | obtain rfl : u = divStar (finIdeleIncl y) := div_eq_one.1 (Subtype.ext (Prod.ext h_fst hy)) |
| 334 | refine ⟨y, rfl, ?_⟩ |
| 335 | simp [baseChangeAlgebraic, IsHeckeOfType.toAlgebraic, HeckeChar.finPart, |
| 336 | baseChange_apply_coe_toFun] |
| 337 | |
| 338 | /-- Let `μ` have weight `e` and tame part `ψ`. If `u` in `U(1)(𝔸)` has archimedean part `1`, then |
| 339 | `|σ (μ u)| = 1` for every ring homomorphism `σ : ℂ → ℂ`. -/ |
| 340 | lemma norm_map_eq_one [h : μ.HasWeight e ψ] (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).fst = 1) |
| 341 | {F : Type*} [FunLike F ℂ ℂ] [RingHomClass F ℂ ℂ] (σ : F) : |
| 342 | ‖σ (μ.val u)‖ = 1 := by |
| 343 | obtain ⟨y, -, h_val⟩ := h.exists_baseChangeAlgebraic_apply_eq u hu |
| 344 | have h_sum (τ : E →+* ℂ) : h.baseChangeAlgebraic.val.snd.toAdd τ + |
| 345 | h.baseChangeAlgebraic.val.snd.toAdd (star τ) = 0 := by |
| 346 | obtain ⟨h_pos, h_neg⟩ := h.baseChangeAlgebraic_exponent (InfinitePlace.mk τ) |
| 347 | obtain h_eq | h_eq : Φ (InfinitePlace.mk τ) = τ ∨ star (Φ (InfinitePlace.mk τ)) = τ := |
| 348 | InfinitePlace.mk_eq_iff.1 (mk_Φ _) <;> |
| 349 | · rw [← h_eq] |
| 350 | simp [h_pos, h_neg] |
| 351 | simpa [h_val] using h.baseChangeAlgebraic.norm_map_eq_sqrt_finIdeleAbs_zpow y h_sum (σ : ℂ →+* ℂ) |
| 352 | |
| 353 | /-- Let `μ` have weight `e` and tame part `ψ`, let `ι : ℂ →+* ℂ_[p]`, and let `u` in `U(1)(𝔸)` have |
| 354 | archimedean part `1`. Then `‖ι (μ u)‖ = ∏ τ, ‖u_τ‖ ^ (-e τ)` over the infinite places `τ`, where |
| 355 | `u_τ` is the image in `ℂ_[p]` of the finite part of `u` at the prime induced by `ι ∘ Φ τ`, with `Φ` |
| 356 | the CM type. -/ |
| 357 | lemma norm_padic_eq_prod {p : ℕ} [Fact p.Prime] (h : μ.HasWeight e ψ) (ι : ℂ →+* ℂ_[p]) |
| 358 | (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).fst = 1) : |
| 359 | ‖ι (μ.val u)‖ = |
| 360 | ∏ τ : InfinitePlace E, ‖adeleExtension (ι.comp (Φ τ)) (u : 𝔸 E).snd‖ ^ (-e τ) := by |
| 361 | obtain ⟨y, h_snd, h_val⟩ := h.exists_baseChangeAlgebraic_apply_eq u hu |
| 362 | rw [← h_val, AlgHeckeChar.norm_padic_eq_prod, prod_embeddings_eq_prod_pairs, h_snd] |
| 363 | refine prod_congr rfl fun w _ ↦ ?_ |
| 364 | obtain ⟨h_pos, h_neg⟩ := h.baseChangeAlgebraic_exponent w |
| 365 | -- The conjugate embedding reads `y` at the conjugate prime. |
| 366 | have h_emb : ι.comp (star (Φ w)) = (ι.comp (Φ w)).comp (starRingEnd E) := by |
| 367 | ext x |
| 368 | simp [starRingEnd_apply (R := E)] |
| 369 | have h_star : adeleExtension (ι.comp (Φ w)) (star (y⁻¹).val) = |
| 370 | (adeleExtension (ι.comp (star (Φ w))) y.val)⁻¹ := by |
| 371 | rw [adeleExtension_star, h_emb, map_units_inv] |
| 372 | rw [map_mul, h_star, norm_mul, norm_inv, mul_zpow, inv_zpow', h_pos, h_neg] |
| 373 | |
| 374 | open scoped Classical in |
| 375 | /-- On a local idele with the valuation of `p`, the norm of the base change is `p` to the |
| 376 | sum of the weights above `l` minus their sum above its conjugate. This includes an unramified |
| 377 | uniformizer above `p`. -/ |
| 378 | theorem norm_baseChange_locIdele_of_valuation_eq_p {p : ℕ} [hp : Fact p.Prime] |
| 379 | (h : μ.HasWeight e ψ) (ι : ℂ →+* ℂ_[p]) |
| 380 | (l : FinPlace E) (u : (LocField l)ˣ) |
| 381 | (hu : Valued.v (u : LocField l) = Valued.v (p : LocField l)) : |
| 382 | ‖ι (μ.baseChange.finPart (locIdele l u) : ℂ)‖ = |
| 383 | (p : ℝ)^((∑ τ : InfinitePlace E with placeOfEmb (ι.comp (Φ τ)) = l, e τ) - |
| 384 | ∑ τ : InfinitePlace E with star (placeOfEmb (ι.comp (Φ τ))) = l, e τ) := by |
| 385 | classical |
| 386 | have hp0 : 0 < (p : ℝ) := by exact_mod_cast hp.out.pos |
| 387 | let a := locIdele l u |
| 388 | -- Only the component at the induced place sees the local element. |
| 389 | have local_norm (σ : E →+* ℂ_[p]) : |
| 390 | ‖adeleExtension σ a.val‖ = |
| 391 | ‖adeleExtension (F := ℂ_[p]) σ (if placeOfEmb σ = l then p else 1)‖ := by |
| 392 | dsimp only [a] |
| 393 | split_ifs with hσ |
| 394 | · subst l |
| 395 | simpa [↓norm_adeleExtension_eq_iff] using hu |
| 396 | · simp [hσ, ↓norm_adeleExtension_eq_iff] |
| 397 | change ‖ι (μ.val (divStar (finIdeleIncl a)) : ℂ)‖ = _ |
| 398 | have arch : ((divStar (finIdeleIncl a) : unitary (𝔸 E)) : 𝔸 E).fst = 1 := |
| 399 | (unitary _).one_mem.2 |
| 400 | rw [h.norm_padic_eq_prod ι _ arch, sum_filter, sum_filter, ← sum_sub_distrib, |
| 401 | ← Real.rpow_intCast, Int.cast_sum, Real.rpow_sum_of_pos hp0] |
| 402 | -- The denominator of base change supplies the conjugate contribution with the opposite sign. |
| 403 | refine prod_congr rfl fun τ _ ↦ ?_ |
| 404 | change ‖adeleExtension (ι.comp (Φ τ)) ((a : 𝔸f E) * star ((a⁻¹ : (𝔸f E)ˣ) : 𝔸f E))‖ ^ _ = _ |
| 405 | rw [Real.rpow_intCast, map_mul, adeleExtension_star, map_units_inv, norm_mul, norm_inv, |
| 406 | local_norm, local_norm, placeOfEmb_comp_star] |
| 407 | split_ifs <;> simp_all [norm_p_eq_inv, zpow_neg, hp0.ne'] |
| 408 | |
| 409 | |
| 410 | end AutChar.HasWeight |
| 411 | |
| 412 | /-! ## The character `υ |·| ^ (-1 / 2)` on finite ideles -/ |
| 413 | |
| 414 | namespace WeilData |
| 415 | |
| 416 | open NumberField Finset Variety |
| 417 | |
| 418 | variable {E : Type} [Field E] [CMType E] [WeilData E] |
| 419 | |
| 420 | open scoped Classical in |
| 421 | /-- The character `υ |·| ^ (-1 / 2)` of the finite ideles, with `υ` the splitting character, as an |
| 422 | algebraic Hecke character: its exponents are `0` on the CM type and `-1` on its conjugate. -/ |
| 423 | def chiFinAlgebraic : AlgHeckeChar E := |
| 424 | IsHeckeOfType.toAlgebraic (k := -1) |
| 425 | (m := fun σ : E →+* ℂ ↦ if σ = Φ (InfinitePlace.mk σ) then 0 else -1) |
| 426 | (by simp) |
| 427 | ((υ : HeckeChar E).isHeckeOfType_finPart fun z ↦ by |
| 428 | simpa using υ_unit (z.map (MonoidHom.inl (InfinitePlace E → ℂ) (𝔸f E))) |
| 429 | ⟨one_mem _, one_mem _⟩) |
| 430 | |
| 431 | /-- Let `E` be a CM field with a chosen CM type and Weil data, and let `υ` be the splitting |
| 432 | character. For every finite idele `x`, the finite-idele character underlying the algebraic Hecke |
| 433 | character `chiFinAlgebraic`, evaluated at `x` and read in `ℂ`, equals |
| 434 | `chiFin x = υ(x)|x|^(-1/2)`. -/ |
| 435 | lemma chiFinAlgebraic_apply (x : (𝔸f E)ˣ) : |
| 436 | (chiFinAlgebraic.val.fst x : ℂ) = chiFin x := by |
| 437 | simp [chiFinAlgebraic, IsHeckeOfType.toAlgebraic, HeckeChar.finPart, chiFin, chiAdelic, |
| 438 | finIdeleAbs] |
| 439 | |
| 440 | /-- The algebraic Hecke character `υ |·| ^ (-1 / 2)` has the exponent `0` at the embedding `Φ w` of |
| 441 | the CM type and `-1` at its conjugate. -/ |
| 442 | lemma chiFinAlgebraic_exponent (w : InfinitePlace E) : |
| 443 | chiFinAlgebraic.val.snd.toAdd (Φ w) = 0 ∧ |
| 444 | chiFinAlgebraic.val.snd.toAdd (star (Φ w)) = -1 := by |
| 445 | simp [chiFinAlgebraic, IsHeckeOfType.toAlgebraic] |
| 446 | |
| 447 | /-- For Weil data on `E` and a finite idele `x`, there are `n > 0` and `y` in `Eˣ` such that `x ^ n` |
| 448 | and `y` have the same valuation at every finite place and |
| 449 | `(υ(x) |x| ^ (-1 / 2)) ^ n = ∏ v, Φ v ȳ`, over the embeddings `Φ v` of the CM type. -/ |
| 450 | lemma exists_chiFin_pow_eq_prod (x : (𝔸f E)ˣ) : |
| 451 | ∃ n > (0 : ℕ), ∃ y : Eˣ, |
| 452 | (∀ w : FinPlace E, Valued.v ((x ^ n).val w) = Valued.v ((principalIdele y).val w)) ∧ |
| 453 | chiFin x ^ n = ∏ v : InfinitePlace E, Φ v (starRingEnd E y) := by |
| 454 | obtain ⟨n, hn, y, h_unit, (h_pow : (chiFinAlgebraic.val.fst x : ℂ) ^ n = |
| 455 | ∏ τ : E →+* ℂ, τ y ^ (-(chiFinAlgebraic (E := E)).val.snd.toAdd τ))⟩ := |
| 456 | chiFinAlgebraic.exists_pow_eq_prod x |
| 457 | refine ⟨n, hn, y, fun w ↦ div_mem_idelesUnitOff_iff.mp h_unit w (Set.notMem_empty w), ?_⟩ |
| 458 | -- The exponents are `0` on the CM type and `-1` on its conjugate. |
| 459 | rw [← chiFinAlgebraic_apply, h_pow, prod_embeddings_eq_prod_pairs] |
| 460 | refine prod_congr rfl fun v _ ↦ ?_ |
| 461 | simp [chiFinAlgebraic_exponent v, starRingEnd_apply (R := E), map_star_complex] |
| 462 | |
| 463 | /-- For an embedding `ι` of `ℂ` into `ℂ_[p]`, the `p`-adic absolute value of |
| 464 | `υ(x) |x| ^ (-1 / 2)` is the product over the infinite places `v` of the absolute values of `x` |
| 465 | under the extension to the finite adeles of `y ↦ ι (Φ v ȳ)`, the embedding `weightEmbedding ι v`. -/ |
| 466 | lemma norm_map_chiFin {p : ℕ} [Fact p.Prime] (ι : ℂ →+* ℂ_[p]) (x : (𝔸f E)ˣ) : |
| 467 | ‖ι (chiFin x)‖ = ∏ v : InfinitePlace E, ‖adeleExtension (weightEmbedding ι v) x.val‖ := by |
| 468 | rw [← chiFinAlgebraic_apply, chiFinAlgebraic.norm_padic_eq_prod, prod_embeddings_eq_prod_pairs] |
| 469 | refine prod_congr rfl fun v _ ↦ ?_ |
| 470 | -- The exponents are `0` on the CM type and `-1` on its conjugate. |
| 471 | have h_emb : ι.comp (star (Φ v)) = weightEmbedding ι v := by |
| 472 | ext y |
| 473 | simp [starRingEnd_apply (R := E), map_star_complex] |
| 474 | simp [chiFinAlgebraic_exponent v, h_emb] |
| 475 | |
| 476 | end WeilData |
| 477 | |
| 478 | end New |
| 479 | |
| 480 | end |