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.RingTheory.RootsOfUnity.AlgebraicallyClosed |
| 4 | import Mathlib.RingTheory.Valuation.Algebraic |
| 5 | import Mathlib.NumberTheory.Multiplicity |
| 6 | import Mathlib.RingTheory.Polynomial.Cyclotomic.Roots |
| 7 | import TauCeti.NumberTheory.Cyclotomic.Surjectivity |
| 8 | import TauCeti.RingTheory.RootsOfUnity.Basic |
| 9 | public import Lib.General.Topology |
| 10 | public import Lib.ClassField.GaloisCohomology.ContinuousCocycles |
| 11 | public import Lib.ClassField.Places.ProfiniteGalois -- shake: keep (needed public by an exposed definition) |
| 12 | import TauCeti.NumberTheory.Cyclotomic.FixingSubgroup |
| 13 | |
| 14 | /-! |
| 15 | # Decomposition and inertia groups, and cyclotomic characters at Frobenii and inertia |
| 16 | |
| 17 | This file studies decomposition and inertia groups of valuation subrings in a Galois group, and the |
| 18 | values of cyclotomic characters at Frobenius elements and on inertia groups. For a valuation subring |
| 19 | `A` of `Ω`, `New.decompGroup Γ A` is the stabiliser of `A`. `New.inertiaGroup Γ A` consists of the |
| 20 | elements of `New.decompGroup Γ A` that act trivially modulo the maximal ideal. |
| 21 | `New.cyclotomicCharMod Ω N : Γ →* (ZMod N)ˣ` and `New.cyclotomicChar Ω l : Γ →* ℤ_[l]ˣ` give the |
| 22 | action on the `N`-th roots of unity and on the roots of unity of `l`-power order, and |
| 23 | `New.IsFrob A q σ` says that `σ` preserves `A` and acts as `x ^ q` modulo its maximal ideal. |
| 24 | |
| 25 | ## Main definitions and results |
| 26 | |
| 27 | * `New.cyclotomicCharMod_eq_iff`: the value at `g` is `a` iff `g • ζ = ζ ^ a` whenever `ζ ^ N = 1`. |
| 28 | * `New.IsFrob.cyclotomicCharMod_eq`, `New.IsFrob.cyclotomicChar_eq`: the value at a Frobenius for |
| 29 | `q` is `q`, away from `N` or `l`; the case `q = 1` is inertia. The reason is |
| 30 | `New.eq_of_val_sub_lt_one`: distinct `N`-th roots of unity stay distinct modulo the maximal ideal. |
| 31 | * `New.cyclotomicCharMod_surjective`: for the Galois group of `New.Ω` over `ℚ`, the character modulo |
| 32 | `N` is onto. |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.IsProGalois`: a profinite group acts on the Galois extension Ω/K as its Galois group, with |
| 36 | open stabilisers. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | Known; see `Lib.ClassField.Places.LocalFields` for sources. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | /-! |
| 48 | ## Decomposition and inertia groups in a Galois group |
| 49 | |
| 50 | Here `Γ` is the Galois group of `Ω / K` (`New.IsProGalois`) and `A` is a valuation subring of `Ω`. |
| 51 | -/ |
| 52 | |
| 53 | section DecompositionInertia |
| 54 | |
| 55 | open MulSemiringAction Set |
| 56 | |
| 57 | namespace New |
| 58 | |
| 59 | variable {Γ Ω : Type*} [Group Γ] [Field Ω] [MulSemiringAction Γ Ω] |
| 60 | {A : ValuationSubring Ω} {σ : Γ} |
| 61 | {K : Type*} [Field K] [Algebra K Ω] [TopologicalSpace Γ] [IsProGalois Γ K Ω] |
| 62 | |
| 63 | include K |
| 64 | |
| 65 | /-- For the Galois group `Γ` of `Ω / K`, the decomposition group of `A` is closed. -/ |
| 66 | instance isClosed_decompGroup : IsClosed (decompGroup Γ A : Set Γ) := by |
| 67 | have h_eq : (decompGroup Γ A : Set Γ) = ⋂ x : Ω, {σ : Γ | σ • x ∈ A ↔ x ∈ A} := by |
| 68 | ext σ |
| 69 | simpa using mem_decompGroup_iff |
| 70 | rw [h_eq] |
| 71 | exact isClosed_iInter fun x ↦ isClosed_setOf_smul x fun y ↦ y ∈ A ↔ x ∈ A |
| 72 | |
| 73 | /-- For `Γ` the Galois group of `Ω / K`, an element `σ` of the decomposition group of `A` preserves |
| 74 | the valuation of `A`: `σ • x` and `x` have the same valuation for every `x` in `Ω`. -/ |
| 75 | lemma decompGroup.val_smul (hσ : σ ∈ decompGroup Γ A) (x : Ω) : |
| 76 | A.valuation (σ • x) = A.valuation x := by |
| 77 | have h_equiv : (A.valuation.comap (toRingHom Γ Ω σ)).IsEquiv A.valuation := |
| 78 | Valuation.isEquiv_of_val_le_one fun {z} ↦ by |
| 79 | simpa [ValuationSubring.valuation_le_one_iff] using mem_decompGroup_iff.mp hσ z |
| 80 | -- A positive power of the valuation of `x` is the valuation of an element of `K`. |
| 81 | obtain ⟨n, r, hn, -, h_pow⟩ := |
| 82 | A.valuation.exists_map_pow_eq_map_algebraMap_of_isAlgebraic |
| 83 | (Algebra.IsAlgebraic.isAlgebraic (R := K) x) |
| 84 | -- The equivalent valuation obtained by applying `σ` satisfies the same equality, and `σ` fixes |
| 85 | -- the base element. Cancel the positive power to compare the original valuations. |
| 86 | have h_conj : A.valuation (σ • (x ^ n)) = A.valuation (σ • algebraMap K Ω r) := |
| 87 | h_equiv.eq_iff.mpr (by simpa only [Valuation.map_pow] using h_pow) |
| 88 | rw [smul_pow', smul_algebraMap, Valuation.map_pow, ← h_pow] at h_conj |
| 89 | exact (pow_left_inj₀ zero_le zero_le hn.ne').mp h_conj |
| 90 | |
| 91 | /-- For the Galois group `Γ` of `Ω / K`, the inertia group of `A` is closed. -/ |
| 92 | instance isClosed_inertiaGroup : IsClosed (inertiaGroup Γ A : Set Γ) := by |
| 93 | -- inertia is cut out of `decompGroup Γ A` by one condition on `σ • x` for each `x` |
| 94 | have h_closed : IsClosed {σ : Γ | ∀ x : Ω, A x ≤ 1 → A (σ • x - x ^ 1) < 1} := by |
| 95 | rw [ofPred_forall] |
| 96 | exact isClosed_iInter fun x ↦ isClosed_setOf_smul x fun y ↦ A x ≤ 1 → A (y - x ^ 1) < 1 |
| 97 | exact isClosed_decompGroup.inter h_closed |
| 98 | |
| 99 | end New |
| 100 | |
| 101 | end DecompositionInertia |
| 102 | |
| 103 | /-! |
| 104 | ## Cyclotomic characters modulo N and ℓ-adic at Frobenii and inertia |
| 105 | |
| 106 | Here a group `Γ` acts on a field `Ω` by ring automorphisms. `A N = 1` says that `N` is a unit of |
| 107 | `A`. |
| 108 | -/ |
| 109 | |
| 110 | namespace New |
| 111 | |
| 112 | open Function NeZero ZMod HasEnoughRootsOfUnity PadicInt Units rootsOfUnity |
| 113 | |
| 114 | variable {Γ Ω : Type*} [Group Γ] [Field Ω] [MulSemiringAction Γ Ω] |
| 115 | {N q : ℕ} {σ g : Γ} {A : ValuationSubring Ω} (h_frob : IsFrob A q σ) (hN : A N = 1) {ζ : Ω} |
| 116 | |
| 117 | section |
| 118 | |
| 119 | /-! ### Roots of unity modulo a valuation -/ |
| 120 | |
| 121 | open Finset in |
| 122 | /-- A ring homomorphism from an integral domain preserves primitivity of an `N`-th root of unity |
| 123 | when `N` is nonzero in the target ring. -/ |
| 124 | lemma _root_.IsPrimitiveRoot.map_of_neZero_natCast {R S : Type*} [CommRing R] [IsDomain R] |
| 125 | [CommRing S] [NeZero (N : S)] {x : R} (hx : IsPrimitiveRoot x N) (f : R →+* S) : |
| 126 | IsPrimitiveRoot (f x) N := by |
| 127 | refine ⟨by rw [← map_pow, hx.pow_eq_one, map_one], fun l hl ↦ ?_⟩ |
| 128 | have h_dvd : orderOf (f x) ∣ N := |
| 129 | orderOf_dvd_iff_pow_eq_one.mpr (by rw [← map_pow, hx.pow_eq_one, map_one]) |
| 130 | have h_not_mem : ((N / orderOf (f x) : ℕ) : R) ∉ RingHom.ker f := fun h ↦ |
| 131 | NeZero.ne (N : S) <| by |
| 132 | rw [← Nat.div_mul_cancel h_dvd, Nat.cast_mul, |
| 133 | show ((N / orderOf (f x) : ℕ) : S) = 0 from by simpa using h, zero_mul] |
| 134 | have h_pow : x ^ orderOf (f x) = 1 := TauCeti.eq_one_of_pow_eq_one_of_sub_one_mem h_not_mem |
| 135 | (by rw [← pow_mul, Nat.mul_div_cancel' h_dvd, hx.pow_eq_one]) (by simp [pow_orderOf_eq_one]) |
| 136 | exact (hx.dvd_of_pow_eq_one _ h_pow).trans (orderOf_dvd_iff_pow_eq_one.mpr hl) |
| 137 | |
| 138 | /-- An `N`-th root of unity `x` in `Ω` with `A.valuation (x - 1) < A.valuation N` is `1`. -/ |
| 139 | private lemma root_eq_one_of_val_sub_lt {x : Ω} (hx : x ^ N = 1) |
| 140 | (h_val_lt : A.valuation (x - 1) < A.valuation N) : x = 1 := by |
| 141 | -- The binomial expansion of x ^ (N + 1) gives N * (x - 1) = -(x - 1)^2 * b. |
| 142 | obtain ⟨a, ha⟩ := (A.valuation_le_iff _ _).mp h_val_lt.le |
| 143 | obtain ⟨b, hb⟩ := sq_dvd_add_pow_sub_sub (a * N) (1 : A) (N + 1) |
| 144 | contrapose! h_val_lt |
| 145 | refine (A.valuation_le_iff _ _).mpr ⟨-b, ?_⟩ |
| 146 | simp_all [Subtype.ext_iff] |
| 147 | grind |
| 148 | |
| 149 | /-- If `x` and `y` have the same `N`-th power and that power is a unit of `A`, then |
| 150 | `A.valuation (x - y) < A.valuation N` forces `x = y`. -/ |
| 151 | lemma eq_of_pow_eq_of_val_sub_lt {x y : Ω} (h_pow : x ^ N = y ^ N) |
| 152 | (h_unit : A.valuation (y ^ N) = 1) (h_val_lt : A.valuation (x - y) < A.valuation N) : |
| 153 | x = y := by |
| 154 | have hN : N ≠ 0 := fun h ↦ by simp [h] at h_val_lt |
| 155 | have hy : A.valuation y = 1 := |
| 156 | (pow_eq_one_iff_of_nonneg zero_le hN).mp (by simpa only [map_pow] using h_unit) |
| 157 | have hy_ne : y ≠ 0 := by aesop |
| 158 | have h_root : (x / y) ^ N = 1 := by rw [div_pow, h_pow, div_self (pow_ne_zero _ hy_ne)] |
| 159 | have h_close : A.valuation (x / y - 1) < A.valuation N := by |
| 160 | simpa [div_sub_one hy_ne, hy] using h_val_lt |
| 161 | exact eq_of_div_eq_one (root_eq_one_of_val_sub_lt h_root h_close) |
| 162 | |
| 163 | /-- If `N` is a unit of `A` (`hN`), two `N`-th roots of unity that are congruent modulo the maximal |
| 164 | ideal are equal. -/ |
| 165 | lemma eq_of_val_sub_lt_one (hN : A N = 1) {x y : Ω} (hx : x ^ N = 1) (hy : y ^ N = 1) |
| 166 | (h_lt : A (x - y) < 1) : x = y := |
| 167 | eq_of_pow_eq_of_val_sub_lt (hx.trans hy.symm) (by rw [hy, map_one]) (h_lt.trans_eq hN.symm) |
| 168 | |
| 169 | end |
| 170 | |
| 171 | variable [IsAlgClosed Ω] [CharZero Ω] [NeZero N] {a M : ℕ} [NeZero M] |
| 172 | |
| 173 | /-! ### The character modulo `N` -/ |
| 174 | |
| 175 | /-- `g` acts on an `N`-th root of unity `ζ` as the power of `ζ` given by the character modulo |
| 176 | `N`. -/ |
| 177 | lemma smul_eq_pow_cyclotomicCharMod (g : Γ) (hζ : ζ ^ N = 1) : |
| 178 | g • ζ = ζ ^ (cyclotomicCharMod Ω N g : ZMod N).val := |
| 179 | modularCyclotomicCharacter.spec Ω _ (MulSemiringAction.toRingAut Γ Ω g) (mkOfPowEq ζ hζ).property |
| 180 | |
| 181 | /-- If `g • ζ = ζ ^ a` for a primitive `N`-th root of unity `ζ`, then the character modulo `N` |
| 182 | takes the value `a` at `g`. -/ |
| 183 | lemma cyclotomicCharMod_eq_of_isPrimitiveRoot (hζ : IsPrimitiveRoot ζ N) (hg : g • ζ = ζ ^ a) : |
| 184 | (cyclotomicCharMod Ω N g).val = a := by |
| 185 | -- both values are exponents below `N` that give `g • ζ`, and `ζ` is primitive |
| 186 | apply val_injective N |
| 187 | have h_pow : ζ ^ (cyclotomicCharMod Ω N g : ZMod N).val = ζ ^ (a : ZMod N).val := by |
| 188 | rw [← smul_eq_pow_cyclotomicCharMod g hζ.pow_eq_one, hg, val_natCast, |
| 189 | ← pow_eq_pow_mod a hζ.pow_eq_one] |
| 190 | exact hζ.pow_inj (val_lt _) (val_lt _) h_pow |
| 191 | |
| 192 | /-- Let `Ω` be algebraically closed of characteristic zero and `N ≠ 0`. The character modulo `N` |
| 193 | takes the value `a` at `g` if and only if `g • ζ = ζ ^ a` for every `N`-th root of unity `ζ`. -/ |
| 194 | lemma cyclotomicCharMod_eq_iff : |
| 195 | (cyclotomicCharMod Ω N g).val = a ↔ ∀ ζ : Ω, ζ ^ N = 1 → g • ζ = ζ ^ a := by |
| 196 | refine ⟨fun h_val ζ hζ ↦ ?_, fun h_all ↦ ?_⟩ |
| 197 | · rw [smul_eq_pow_cyclotomicCharMod g hζ, h_val, val_natCast, ← pow_eq_pow_mod a hζ] |
| 198 | · -- test on a primitive `N`-th root of unity |
| 199 | obtain ⟨ζ, hζ⟩ : ∃ ζ : Ω, IsPrimitiveRoot ζ N := prim |
| 200 | exact cyclotomicCharMod_eq_of_isPrimitiveRoot hζ (h_all ζ hζ.pow_eq_one) |
| 201 | |
| 202 | /-- If `M ∣ N`, a value of the character modulo `N` is also its value modulo `M`. -/ |
| 203 | lemma cyclotomicCharMod_eq_of_dvd (h_dvd : M ∣ N) (h_val : (cyclotomicCharMod Ω N g).val = a) : |
| 204 | (cyclotomicCharMod Ω M g).val = a := by |
| 205 | obtain ⟨c, rfl⟩ := h_dvd |
| 206 | rw [cyclotomicCharMod_eq_iff] at h_val ⊢ |
| 207 | -- an `M`-th root of unity is also an `(M * c)`-th root of unity |
| 208 | exact fun ζ hζ ↦ h_val ζ (by rw [pow_mul, hζ, one_pow]) |
| 209 | |
| 210 | /-- If `M ∣ N`, the kernel of the character modulo `N` lies in that of the character modulo `M`. -/ |
| 211 | lemma cyclotomicCharMod_eq_one_of_dvd (h_dvd : M ∣ N) (h_one : cyclotomicCharMod Ω N g = 1) : |
| 212 | cyclotomicCharMod Ω M g = 1 := by |
| 213 | simpa using cyclotomicCharMod_eq_of_dvd (a := 1) h_dvd (by simp [h_one]) |
| 214 | |
| 215 | /-- `New.cyclotomicCharMod_eq_iff` for the units of `Ω` written additively (`DiscreteUnits Ω`, on |
| 216 | which `g` acts by `New.unitsRep`): the value at `g` is `a` if and only if `g` acts on the |
| 217 | `N`-torsion as multiplication by `a`. -/ |
| 218 | lemma cyclotomicCharMod_eq_iff_unitsRep : |
| 219 | (cyclotomicCharMod Ω N g).val = a ↔ ∀ ⦃u : DiscreteUnits Ω⦄, |
| 220 | N • u = 0 → unitsRep g u = a • u := by |
| 221 | -- The `N`-torsion of the unit group, written additively, is the group of `N`-th roots of unity. |
| 222 | refine cyclotomicCharMod_eq_iff.trans |
| 223 | ⟨fun h u hu ↦ ext (h u.toMul.val (val_inj.mpr hu)), fun h ζ hζ ↦ ?_⟩ |
| 224 | exact val_inj.mpr (h (rootsOfUnity.mkOfPowEq ζ hζ).property) |
| 225 | |
| 226 | /-- `g` is in the kernel of the character modulo `N` if and only if it fixes the `N`-torsion of |
| 227 | the units of `Ω`. -/ |
| 228 | lemma cyclotomicCharMod_eq_one_iff : |
| 229 | cyclotomicCharMod Ω N g = 1 ↔ ∀ y : DiscreteUnits Ω, N • y = 0 → unitsRep g y = y := by |
| 230 | simpa using cyclotomicCharMod_eq_iff_unitsRep (a := 1) |
| 231 | |
| 232 | section |
| 233 | |
| 234 | include h_frob hN |
| 235 | |
| 236 | /-- Let `σ` be a Frobenius for `q` at `A` (`h_frob : IsFrob A q σ`) and let `N` be a unit of `A` |
| 237 | (`hN : A N = 1`). Then the character modulo `N` takes the value `q` at `σ`. -/ |
| 238 | lemma IsFrob.cyclotomicCharMod_eq : (cyclotomicCharMod Ω N σ).val = q := by |
| 239 | -- `σ • ζ` and `ζ ^ q` are `N`-th roots of unity that are congruent modulo the maximal ideal. |
| 240 | obtain ⟨-, h_cong⟩ := h_frob |
| 241 | refine cyclotomicCharMod_eq_iff.mpr fun ζ hζ ↦ eq_of_val_sub_lt_one hN ?_ ?_ (h_cong ζ ?_) |
| 242 | · simp [← smul_pow', hζ] |
| 243 | · simp [pow_right_comm, hζ] |
| 244 | · simp [← pow_le_one_iff (ne N), ← map_pow, hζ] |
| 245 | |
| 246 | /-- Let `Ω` be algebraically closed of characteristic zero, `N ≠ 0` a unit of `A` (`hN`), and `σ` |
| 247 | stabilise `A` with `σ x ≡ x ^ q` on `A` (`h_frob`). Then `σ` fixes the `N`-th roots of unity if |
| 248 | and only if `q ≡ 1 [MOD N]`. -/ |
| 249 | lemma IsFrob.mem_ker_cyclotomicCharMod_iff : |
| 250 | σ ∈ (New.cyclotomicCharMod Ω N).ker ↔ q ≡ 1 [MOD N] := by |
| 251 | simp [← h_frob.cyclotomicCharMod_eq hN, ← natCast_eq_natCast_iff] |
| 252 | |
| 253 | end |
| 254 | |
| 255 | /-- An element of the inertia group of `A` lies in the kernel of the character modulo any `N` that |
| 256 | is a unit of `A`. -/ |
| 257 | lemma cyclotomicCharMod_eq_one_of_mem_inertiaGroup (hσ : σ ∈ inertiaGroup Γ A) (hN : A N = 1) : |
| 258 | cyclotomicCharMod Ω N σ = 1 := |
| 259 | (hσ.mem_ker_cyclotomicCharMod_iff hN).mpr rfl |
| 260 | |
| 261 | /-- Every additive map from `ZMod N` to the units of `Ω` is equivariant, when `g` acts on `ZMod N` |
| 262 | through the character. -/ |
| 263 | lemma map_cyclotomicCharMod_mul (μ : ZMod N →+ DiscreteUnits Ω) (g : Γ) (a : ZMod N) : |
| 264 | μ ((cyclotomicCharMod Ω N g).val * a) = unitsRep g (μ a) := by |
| 265 | simp [cyclotomicCharMod_eq_iff_unitsRep.mp |
| 266 | (ZMod.natCast_zmod_val (cyclotomicCharMod Ω N g : ZMod N)).symm, ← map_nsmul, natCast_self] |
| 267 | |
| 268 | variable {l : ℕ} [Fact (Nat.Prime l)] {K : Type*} [Field K] [Algebra K Ω] |
| 269 | |
| 270 | /-! ### The `l`-adic character -/ |
| 271 | |
| 272 | /-- The character modulo `l ^ r` is the reduction of the `l`-adic character. -/ |
| 273 | lemma cyclotomicCharMod_prime_pow_eq (r : ℕ) : |
| 274 | cyclotomicCharMod (Γ := Γ) Ω (l ^ r) = |
| 275 | (map (toZModPow r).toMonoidHom).comp (cyclotomicChar Ω l) := by |
| 276 | ext |
| 277 | exact (cyclotomicCharacter.toZModPow ..).symm |
| 278 | |
| 279 | /-- `l ^ r` divides `χ_l(σ) - q` in `ℤ_l` if and only if the character modulo `l ^ r` takes the |
| 280 | value `q` at `σ`; here `χ_l` is the `l`-adic cyclotomic character `New.cyclotomicChar Ω l`. -/ |
| 281 | lemma pow_dvd_cyclotomicChar_sub_iff (r : ℕ) : |
| 282 | l.cast ^ r ∣ (cyclotomicChar Ω l σ).val - q ↔ (cyclotomicCharMod Ω (l ^ r) σ).val = q := by |
| 283 | simp [← Ideal.mem_span_singleton, ← ker_toZModPow, cyclotomicCharMod_prime_pow_eq, sub_eq_zero] |
| 284 | |
| 285 | /-- Let `Ω` be algebraically closed of characteristic `0`, let `A` be a `ℤ_l`-module (here not the |
| 286 | valuation subring) and `f : A → B` additive with image killed by `l ^ r` (`h_kill`). Then |
| 287 | `f (χ_l(σ) • x) = χ_{l^r}(σ) • f x`, where `χ_l` is the `l`-adic and `χ_{l^r}` the mod `l ^ r` |
| 288 | cyclotomic character. -/ |
| 289 | lemma map_cyclotomicChar_smul {A B : Type*} [AddCommGroup A] [Module ℤ_[l] A] [AddCommGroup B] |
| 290 | (f : A →+ B) (r : ℕ) (h_kill : ∀ x : A, l ^ r • f x = 0) (x : A) : |
| 291 | f ((cyclotomicChar Ω l σ).val • x) = |
| 292 | (cyclotomicCharMod Ω (l ^ r) σ : ZMod (l ^ r)).val • f x := by |
| 293 | -- Write the value of `cyclotomicChar` as its residue plus a multiple of `l ^ r`, which `f` kills. |
| 294 | obtain ⟨c, hc⟩ : (l : ℤ_[l]) ^ r ∣ |
| 295 | (cyclotomicChar Ω l σ).val - (cyclotomicCharMod Ω (l ^ r) σ : ZMod (l ^ r)).val := |
| 296 | (pow_dvd_cyclotomicChar_sub_iff r).mpr (ZMod.natCast_zmod_val _).symm |
| 297 | rw [eq_add_of_sub_eq hc, add_smul, mul_smul] |
| 298 | norm_cast |
| 299 | simp [h_kill] |
| 300 | |
| 301 | variable (l) |
| 302 | |
| 303 | /-- Let `Γ` act on the algebraically closed field `Ω` of characteristic `0`, let `σ ∈ Γ` be a |
| 304 | Frobenius for the natural number `q` at the valuation subring `A` of `Ω`, and let the prime `l` be |
| 305 | a unit of `A`. Then the `l`-adic cyclotomic character takes the value `q` at `σ`. -/ |
| 306 | lemma IsFrob.cyclotomicChar_eq (h_frob : IsFrob A q σ) (hl : A l = 1) : |
| 307 | (cyclotomicChar Ω l σ).val = q := by |
| 308 | -- an `l`-adic integer is determined by its residues modulo the powers of `l`, and each residue is |
| 309 | -- the value at `σ` of the character modulo `l ^ r` |
| 310 | have h_res (r : ℕ) : (cyclotomicCharMod Ω (l ^ r) σ).val = q := |
| 311 | h_frob.cyclotomicCharMod_eq (by simp [hl]) |
| 312 | simpa [← ext_of_toZModPow, cyclotomicCharMod_prime_pow_eq] using h_res |
| 313 | |
| 314 | /-- An element of the inertia group of `A` lies in the kernel of the `l`-adic cyclotomic character |
| 315 | when the prime `l` is a unit of `A`. -/ |
| 316 | lemma cyclotomicChar_eq_one_of_mem_inertiaGroup (hσ : σ ∈ inertiaGroup Γ A) (hl : A l = 1) : |
| 317 | cyclotomicChar Ω l σ = 1 := |
| 318 | ext (hσ.cyclotomicChar_eq l hl) |
| 319 | |
| 320 | variable {Γ' Ω' : Type*} [Group Γ'] [Field Ω'] [MulSemiringAction Γ' Ω'] [IsAlgClosed Ω'] |
| 321 | [CharZero Ω'] {j : Ω →+* Ω'} {g' : Γ'} |
| 322 | |
| 323 | /-- Let `Γ`, `Γ'` act on algebraically closed fields `Ω`, `Ω'` of characteristic `0`, let `g ∈ Γ`, |
| 324 | `g' ∈ Γ'` and let `N` be a non-zero natural number. If the ring homomorphism `j : Ω → Ω'` |
| 325 | intertwines `g` and `g'` (`h_comm`), the characters modulo `N` agree at `g` and `g'`. -/ |
| 326 | lemma cyclotomicCharMod_eq_of_equivariant (h_comm : ∀ x : Ω, j (g • x) = g' • j x) : |
| 327 | cyclotomicCharMod Ω N g = cyclotomicCharMod Ω' N g' := by |
| 328 | -- If `ζ` is an `N`-th root of unity then so is `j ζ`, and `j (g • ζ) = g' • j ζ` is `j ζ` raised |
| 329 | -- to the exponent given by `g'`. |
| 330 | have h_val_eq : (cyclotomicCharMod Ω N g : ZMod N) = |
| 331 | (cyclotomicCharMod Ω' N g' : ZMod N).val := by |
| 332 | refine cyclotomicCharMod_eq_iff.mpr fun ζ hζ ↦ j.injective ?_ |
| 333 | have hζ' : j ζ ^ N = 1 := by rw [← map_pow, hζ, map_one] |
| 334 | rw [h_comm, smul_eq_pow_cyclotomicCharMod (N := N) g' hζ', map_pow] |
| 335 | exact ext (h_val_eq.trans (ZMod.natCast_zmod_val _)) |
| 336 | |
| 337 | /-- Let `Γ`, `Γ'` act on algebraically closed fields `Ω`, `Ω'` of characteristic `0`, and let |
| 338 | `j : Ω → Ω'` be a ring homomorphism with `j (g • x) = g' • j x` for all `x` (`h_comm`). Then the |
| 339 | `l`-adic cyclotomic characters at `g` and `g'` agree, for the prime `l`. -/ |
| 340 | lemma cyclotomicChar_eq_of_equivariant (h_comm : ∀ x : Ω, j (g • x) = g' • j x) : |
| 341 | cyclotomicChar Ω l g = cyclotomicChar Ω' l g' := by |
| 342 | -- An `l`-adic integer is determined by its residues modulo all `l ^ r`. |
| 343 | simpa [cyclotomicCharMod_prime_pow_eq, ext_of_toZModPow, ← val_inj] using fun r : ℕ ↦ |
| 344 | cyclotomicCharMod_eq_of_equivariant h_comm (N := l ^ r) |
| 345 | |
| 346 | variable [TopologicalSpace Γ] [G : IsProGalois Γ K Ω] |
| 347 | |
| 348 | include G in |
| 349 | omit [IsAlgClosed Ω] [CharZero Ω] in |
| 350 | /-- For the Galois group `Γ` of `Ω / K`, with `l` a prime natural number, the `l`-adic cyclotomic |
| 351 | character is continuous. -/ |
| 352 | lemma continuous_cyclotomicChar : Continuous (cyclotomicChar (Γ := Γ) Ω l) := |
| 353 | -- `(… :)`: elaborated first without the expected type, which `Continuous.comp` would otherwise |
| 354 | -- try to unify by unfolding `cyclotomicCharacter`. |
| 355 | ((cyclotomicCharacter.continuous l K Ω).comp |
| 356 | (continuous_of_equivariant_emb (φ := MulSemiringAction.toAlgAut Γ K Ω) 1 fun _ _ ↦ rfl) :) |
| 357 | |
| 358 | open IntermediateField Subgroup MonoidHom IsCyclotomicExtension |
| 359 | |
| 360 | /-- For the Galois group `Γ` of `Ω / K`, with `Ω` algebraically closed of characteristic `0` and |
| 361 | `N ≠ 0` a natural number, the kernel of the character modulo `N` is open. -/ |
| 362 | instance isOpen_ker_cyclotomicCharMod : Fact (cyclotomicCharMod (Γ := Γ) Ω N).ker.IsOpen := by |
| 363 | -- the kernel contains the open stabiliser of a primitive `N`-th root of unity `ζ` |
| 364 | obtain ⟨ζ, hζ⟩ : ∃ ζ : Ω, IsPrimitiveRoot ζ N := prim |
| 365 | refine ⟨isOpen_mono (fun g (hg : g • ζ = ζ) ↦ ?_) (G.isOpen_stabilizer ζ)⟩ |
| 366 | simpa using cyclotomicCharMod_eq_of_isPrimitiveRoot (g := g) (a := 1) hζ (by simpa) |
| 367 | |
| 368 | variable (Ω N) |
| 369 | |
| 370 | /-! ### Roots of unity and the cyclotomic field -/ |
| 371 | |
| 372 | /-- An injective additive map from ℤ/N to Ω^× (written additively) whose image is the set of |
| 373 | elements killed by N. It sends a to ζ^a for a chosen primitive N-th root of unity ζ. Here `Ω` is |
| 374 | algebraically closed of characteristic 0, and `N ≠ 0`. -/ |
| 375 | def rootPowHom : |
| 376 | {f : ZMod N →+ DiscreteUnits Ω // |
| 377 | Injective f ∧ ∀ y : DiscreteUnits Ω, y ∈ f.range ↔ N • y = 0} := |
| 378 | have hζ : IsPrimitiveRoot (IsUnit.unit _) N := (prim (M := Ω)).choose_spec.isUnit_unit out |
| 379 | ⟨ZMod.lift N ⟨zmultiplesHom (DiscreteUnits Ω) (IsUnit.unit _), hζ.zpow_eq_one⟩, |
| 380 | Subtype.val_injective.comp hζ.zmodEquivZPowers.injective, |
| 381 | -- the powers of a primitive root are all the `N`-th roots of unity |
| 382 | by simpa [intCast_surjective.exists, SetLike.ext_iff] using! hζ.zpowers_eq⟩ |
| 383 | |
| 384 | /-- The value of `rootPowHom Ω N` at `1` is a primitive `N`-th root of unity. -/ |
| 385 | lemma isPrimitiveRoot_rootPowHom_one : IsPrimitiveRoot ((rootPowHom Ω N).val 1).toMul N := by |
| 386 | obtain ⟨h_inj, -⟩ := (rootPowHom Ω N).property |
| 387 | exact IsPrimitiveRoot.iff_orderOf.mpr ((addOrderOf_injective _ h_inj 1).trans (by simp)) |
| 388 | |
| 389 | /-- The subgroup of Gal(ℚ̄/ℚ) = `Gal(New.Ω/ℚ)` fixing all N-th roots of unity, for a natural number |
| 390 | `N ≠ 0`: the absolute Galois group of ℚ(ζ_N). -/ |
| 391 | abbrev cycloGalGroup : Subgroup Gal(New.Ω/ℚ) := (cyclotomicCharMod New.Ω N).ker |
| 392 | |
| 393 | /-- The cyclotomic field ℚ(ζ_N) inside ℚ̄, defined as the fixed field of `New.cycloGalGroup N`. -/ |
| 394 | abbrev cycloField : IntermediateField ℚ New.Ω := fixedFieldOf (cycloGalGroup N) |
| 395 | |
| 396 | /-- `New.cycloField N` is the cyclotomic extension of `ℚ` generated by the `N`-th roots of unity. -/ |
| 397 | instance : IsCyclotomicExtension {N} ℚ (cycloField N) := by |
| 398 | obtain ⟨ζ, hζ⟩ : ∃ ζ : New.Ω, IsPrimitiveRoot ζ N := prim |
| 399 | have h_char : cyclotomicCharMod (Γ := Gal(New.Ω/ℚ)) New.Ω N = hζ.autToPow ℚ := by |
| 400 | ext g |
| 401 | exact congrArg Units.val (hζ.autToPow_eq_modularCyclotomicCharacter N ℚ g).symm |
| 402 | -- `cycloGalGroup N` fixes the field generated by the `N`-th roots of unity. |
| 403 | rw [cycloField, cycloGalGroup, h_char, ← hζ.fixingSubgroup_adjoin_nth_roots_eq_ker_autToPow] |
| 404 | change IsCyclotomicExtension {N} ℚ |
| 405 | (IntermediateField.fixedField (adjoin ℚ {b : New.Ω | b ^ N = 1}).fixingSubgroup) |
| 406 | rw [InfiniteGalois.fixedField_fixingSubgroup] |
| 407 | exact hζ.isCyclotomicExtension_adjoin_nth_roots |
| 408 | |
| 409 | /-- For a natural number `N ≠ 0` and the Galois group of `New.Ω` (ℚ̄, an algebraically closed field |
| 410 | of characteristic `0`) over `ℚ`, the character modulo `N` is surjective. -/ |
| 411 | lemma cyclotomicCharMod_surjective : |
| 412 | Surjective (cyclotomicCharMod (Γ := Gal(New.Ω/ℚ)) New.Ω N) := |
| 413 | TauCeti.modularCyclotomicCharacter_surjective_of_irreducible |
| 414 | (HasEnoughRootsOfUnity.natCard_rootsOfUnity New.Ω N) |
| 415 | (Polynomial.cyclotomic.irreducible_rat (NeZero.pos N)) |
| 416 | |
| 417 | end New |
| 418 | |
| 419 | end |