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.General.Algebra.AbsIntegrallyClosed |
| 4 | import Mathlib.Algebra.Order.Star.Int |
| 5 | import Mathlib.Algebra.Order.Star.Rat |
| 6 | import Mathlib.CategoryTheory.Shift.Basic |
| 7 | public import Lib.ClassField.GaloisCohomology.ShapiroCorestriction |
| 8 | public import Lib.ClassField.Places.DecompositionCyclotomic |
| 9 | public import Lib.General.Groups.ProfiniteCharacters |
| 10 | import TauCeti.FieldTheory.Normal.Embeddings |
| 11 | import Lib.Adelic.Hecke.ClassSums |
| 12 | import Lib.ClassField.Places.LocalFields |
| 13 | import Lib.ClassField.Places.ProfiniteGalois |
| 14 | import TauCeti.FieldTheory.GaloisCohomology.Hilbert90 |
| 15 | |
| 16 | /-! |
| 17 | # Cup products, Hilbert 90, Kummer cocycles and cyclic symbols in Galois cohomology |
| 18 | |
| 19 | This file studies the Galois cohomology of `Ωˣ` for a group Γ acting on a field Ω. The group `Ωˣ` is |
| 20 | written additively (`New.DiscreteUnits`, with action `New.unitsRep`). In the last two sections Γ is |
| 21 | the profinite Galois group of Ω/K (`New.IsProGalois`). Take a continuous character χ : Γ → ℚ/ℤ with |
| 22 | kernel U and a Γ-invariant w in `Ωˣ`. The symbol (χ, w) = `New.cyclicClass ρ χ w` is the class in H² |
| 23 | of (g, h) ↦ carry(χ(g), χ(h))·w. The file first treats cup products of 1-cocycles, annihilators of |
| 24 | pairings, and a descent lemma for semilinear actions. Finally it shows that the classes vanishing on |
| 25 | U are the symbols (χ, w), and that (χ, w) = 0 exactly when w is a norm from U, that is, a field norm |
| 26 | from the field cut out by χ. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.cupProduct`, `New.cupProduct_flip`: the cup product of 1-cocycles, with values in `H²`, and |
| 31 | its anticommutativity; `New.DiscreteModule.evalCup` is the case of the evaluation pairing. |
| 32 | * `New.Period.mem_span_fixed`: for a semilinear action, a vector fixed by a subgroup U of finite |
| 33 | index is a linear combination of invariant vectors, provided every element outside U moves some |
| 34 | U-fixed scalar. The invariant vectors are traces over the finitely many cosets, and Dedekind's |
| 35 | independence of characters shows that their span contains the vector. |
| 36 | * `New.hilbert90_unitsRep`: Hilbert 90, every continuous 1-cocycle with values in `Ωˣ` is a |
| 37 | coboundary. |
| 38 | * `New.exists_kummer_cocycle`: if `Γ` fixes the `n`-th roots of unity (`ζ ^ k` is |
| 39 | `New.rootPowHom Ω n k` for a chosen primitive `n`-th root of unity `ζ`), an invariant `x = a ^ n` |
| 40 | gives a homomorphism `f : Γ → ℤ/n` with `g a / a = ζ ^ f g`. |
| 41 | * `New.mk_eq_neg_cyclicClass_ofZModCocycle`: the cup product of `g ↦ g a / a` with `ξ : Γ → ℤ/n` is |
| 42 | minus the cyclic class of `ξ / n` and `a ^ n`. |
| 43 | * `New.QZChar.cyclicClass_spec`: the classes in `H²(Γ, Ωˣ)` that die on `U` are the symbols `(χ, w)` |
| 44 | of `New.cyclicClass` with `w` in `Kˣ` (embedded in `Ωˣ` by `New.DiscreteUnits.ofBase`), and |
| 45 | `(χ, w) = 0` exactly when `w` is a norm from `U`. The two hard directions are |
| 46 | `New.QZChar.exists_eq_cyclicClass_of_resH2_eq_zero` and |
| 47 | `New.QZChar.exists_corestrictH0_eq_of_cyclicClass_eq_zero`. |
| 48 | |
| 49 | Notions from other files: |
| 50 | * `New.DiscreteModule R Γ`: an `R`-module `V` with the discrete topology and a continuous `R`-linear |
| 51 | action `ρ` of Γ; `New.Z1 ρ` and `New.Z2 ρ` are its continuous 1- and 2-cocycles. |
| 52 | * `New.unitsRep`: the ℤ-linear representation of Γ on Ω^× (written additively) coming from the |
| 53 | action of Γ on the field Ω by ring automorphisms. |
| 54 | * `New.DiscreteModule.H2`: The continuous cohomology H²(Γ,A) of a discrete Γ-module A: 2-cocycles |
| 55 | modulo the functions (g,h) ↦ g c(h) − c(gh) + c(g) with c continuous. |
| 56 | * `New.QZ` is ℚ/ℤ. `New.QZ.carry`: for a, b in ℚ/ℤ, the integer part (0 or 1) of the sum of their |
| 57 | representatives in [0,1); `New.cyclicClass ρ χ w` is the class of the cocycle (g,h) ↦ carry(χ(g), |
| 58 | χ(h))·w. |
| 59 | * `New.IsProGalois`: a profinite group acts on the Galois extension Ω/K as its Galois group, with |
| 60 | open stabilisers. |
| 61 | |
| 62 | ## Relation to the literature |
| 63 | |
| 64 | Known result: the parts of Galois cohomology in degrees ≤ 2 listed above, namely cup products, |
| 65 | Hilbert 90, Kummer cocycles and the symbols of cyclic extensions. Only explicit continuous cocycles |
| 66 | are used. Shapiro's lemma and corestriction (summation of functions on a coset space) come from |
| 67 | `Lib.ClassField.GaloisCohomology.ShapiroCorestriction`. Source: J.-P. Serre, Galois Cohomology |
| 68 | (1997); Neukirch–Schmidt–Wingberg, Cohomology of Number Fields (2nd ed. 2008), Ch. I, VI; |
| 69 | Atiyah–Wall in Cassels–Fröhlich (1967), IV §8. |
| 70 | -/ |
| 71 | |
| 72 | @[expose] public section |
| 73 | |
| 74 | noncomputable section |
| 75 | |
| 76 | /-! |
| 77 | ## Elementary lemmas on the multiplicative group written additively |
| 78 | |
| 79 | `New.DiscreteUnits Ω` is the group `Ωˣ` written additively, and `(x.toMul : Ω)` is the field element |
| 80 | underlying `x`. |
| 81 | -/ |
| 82 | |
| 83 | namespace New.DiscreteUnits |
| 84 | |
| 85 | variable {Ω Γ K : Type*} [Field Ω] (x : DiscreteUnits Ω) |
| 86 | (a : Ω) [Group Γ] [Field K] [Algebra K Ω] [MulSemiringAction Γ Ω] [SMulCommClass Γ K Ω] |
| 87 | |
| 88 | @[ext] |
| 89 | lemma ext {x y : DiscreteUnits Ω} (h : x.toMul.val = y.toMul.val) : x = y := Units.ext h |
| 90 | |
| 91 | /-- A non-zero element a of the field Ω, viewed as an element of the additively written |
| 92 | multiplicative group `New.DiscreteUnits` Ω. -/ |
| 93 | def ofNeZero (ha : a ≠ 0) : DiscreteUnits Ω := Units.mk0 a ha |
| 94 | |
| 95 | @[simp] |
| 96 | theorem val_ofNeZero (ha : a ≠ 0) : ((ofNeZero a ha).toMul : Ω) = a := rfl |
| 97 | |
| 98 | @[simp] |
| 99 | lemma val_unitsRep (g : Γ) : (unitsRep g x).toMul.val = g • x.toMul := rfl |
| 100 | |
| 101 | @[simp] |
| 102 | lemma val_ofBase (a : Additive Kˣ) : |
| 103 | ((ofBase Γ Ω a : DiscreteUnits Ω).toMul : Ω) = algebraMap K Ω (a.toMul : K) := |
| 104 | rfl |
| 105 | |
| 106 | /-- If Ω is algebraically closed and `n ≠ 0`, every `x` in `Ωˣ` (written additively) is `n • y` |
| 107 | for some `y`: the element `x` has an `n`-th root in `Ωˣ`. -/ |
| 108 | lemma exists_nsmul (x : DiscreteUnits Ω) [IsAlgClosed Ω] {n : ℕ} (hn : n ≠ 0) : |
| 109 | ∃ y : DiscreteUnits Ω, n • y = x := |
| 110 | Variety.IsAbsIntegrallyClosed.exists_nsmul_unit hn x |
| 111 | |
| 112 | end New.DiscreteUnits |
| 113 | |
| 114 | /-! |
| 115 | ## Cup products, Hom modules and orders of annihilators |
| 116 | |
| 117 | Orders are `Nat.card`, which is `0` for infinite groups. |
| 118 | |
| 119 | * `New.DiscreteModule.cartierDual`: additive maps `M → Ωˣ` for finite `M`, with |
| 120 | `g • f = g ∘ f ∘ g⁻¹`. |
| 121 | -/ |
| 122 | |
| 123 | namespace New |
| 124 | |
| 125 | open Function AddSubgroup QuotientAddGroup AddMonoidHom DFunLike Nat DiscreteModule |
| 126 | |
| 127 | variable {R R' S : Type} |
| 128 | (Γ : Type) [CommRing R] [CommRing R'] [CommRing S] [Group Γ] [TopologicalSpace Γ] |
| 129 | {K Ω : Type} [Field K] [Field Ω] [Algebra K Ω] [MulSemiringAction Γ Ω] [IsAlgClosed Ω] |
| 130 | [IsProGalois Γ K Ω] {A B C : Type} [AddCommGroup A] [AddCommGroup B] [AddCommGroup C] |
| 131 | |
| 132 | /-- The multiplicative group Ω^×, written additively, as a discrete module with its continuous |
| 133 | action of Γ. -/ |
| 134 | abbrev unitsModule : DiscreteModule ℤ Γ := |
| 135 | of (unitsRep (Γ := Γ) (Ω := Ω)) <| |
| 136 | -- the orbit map of each unit is locally constant |
| 137 | continuous_prod_of_discrete_right.2 fun x ↦ |
| 138 | ((isLocallyConstant_smul x.val).desc (fun g ↦ unitsRep g x) Units.val |
| 139 | Units.val_injective).continuous |
| 140 | |
| 141 | /-- Additive maps from a finite group `A` to `Ωˣ` (written additively) form a finite set. -/ |
| 142 | instance [Finite A] : Finite (A →+ DiscreteUnits Ω) := |
| 143 | .of_equiv (Multiplicative A →* Ωˣ) toMultiplicativeLeft.symm |
| 144 | |
| 145 | variable {Γ} |
| 146 | (W : DiscreteModule S Γ) (M : DiscreteModule R Γ) (N : DiscreteModule R' Γ) (b : A →+ B →+ C) |
| 147 | |
| 148 | /-! ### Annihilators -/ |
| 149 | |
| 150 | /-- For a biadditive pairing b : A × B → C and a subgroup L of A, the subgroup of y in B with |
| 151 | b(x, y) = 0 for all x in L. -/ |
| 152 | def pairingAnnihilator (L : AddSubgroup A) : AddSubgroup B := |
| 153 | (b.comp (AddSubgroup.subtype L)).flip.ker.copy {y : B | ∀ x ∈ L, |
| 154 | b x y = 0} (by aesop (add simp ext_iff)) |
| 155 | |
| 156 | /-- Let `β : A × B → C` be biadditive and let `e` identify ℚ/ℤ (`New.QZ`) with `C`. The index in |
| 157 | `B` of the right kernel `{y | ∀ x, β x y = 0}` divides the index in `A` of the left kernel |
| 158 | `{x | ∀ y, β x y = 0}`. -/ |
| 159 | lemma index_ker_flip_dvd (e : QZ ≃+ C) (β : A →+ B →+ C) : β.flip.ker.index ∣ β.ker.index := by |
| 160 | by_cases! h_inf : Infinite (A ⧸ β.ker) |
| 161 | · -- an infinite index is `0`, which every number divides |
| 162 | simp [index_eq_zero_iff_infinite.mpr h_inf] |
| 163 | -- `f` maps `B` to the dual of the finite group `A ⧸ β.ker`, which has `β.ker.index` elements |
| 164 | let f : B →+ (A ⧸ β.ker →+ QZ) := (kerLift β).flip.compr₂ e.symm |
| 165 | have h_ker_le : f.ker ≤ β.flip.ker := fun y hy ↦ by simpa [f, ext_iff, forall_mk] using hy |
| 166 | calc |
| 167 | β.flip.ker.index ∣ f.ker.index := index_dvd_of_le h_ker_le |
| 168 | _ ∣ Nat.card (A ⧸ β.ker →+ QZ) := card_dvd_of_injective (kerLift f) (kerLift_injective f) |
| 169 | _ = β.ker.index := card_hom_QZ (A ⧸ β.ker) |
| 170 | |
| 171 | /-- Let `b : A × B → C` be biadditive and let `e` identify ℚ/ℤ (`New.QZ`) with `C`. For a subgroup |
| 172 | `L` of `A` with annihilator `L^⊥ = pairingAnnihilator b L` in `B`, |
| 173 | `#L^⊥ · #L = #B · #(L ∩ left kernel of b)`, where `#` is `Nat.card` (`0` for infinite groups). -/ |
| 174 | lemma card_pairingAnnihilator_mul_card (b : A →+ B →+ C) (e : QZ ≃+ C) (L : AddSubgroup A) : |
| 175 | Nat.card (pairingAnnihilator b L) * Nat.card L = Nat.card B * Nat.card ↥(b.ker ⊓ L) := by |
| 176 | -- Restrict `b` to `β : L × B → C`. Its two kernels have the same index (duality), the right |
| 177 | -- kernel is the annihilator, and the left kernel is `b.ker ⊓ L` seen inside `L`. |
| 178 | let β : L →+ B →+ C := b.comp L.subtype |
| 179 | have h_index : β.flip.ker.index = b.ker.relIndex L := |
| 180 | dvd_antisymm (index_ker_flip_dvd e β) (index_ker_flip_dvd e β.flip) |
| 181 | have h_left : Nat.card ↥(b.ker ⊓ L) * b.ker.relIndex L = Nat.card L := by |
| 182 | simpa only [bot_inf_eq, relIndex_bot_left] using relIndex_inf_mul_relIndex ⊥ b.ker L |
| 183 | rw [show pairingAnnihilator b L = β.flip.ker from β.flip.ker.copy_eq _ _, ← h_left, |
| 184 | ← β.flip.ker.card_mul_index, h_index] |
| 185 | ring |
| 186 | |
| 187 | /-! ### Hom modules and cup products -/ |
| 188 | |
| 189 | /-- Additive maps between two groups carry the discrete topology. -/ |
| 190 | instance : TopologicalSpace (A →+ B) := ⊥ |
| 191 | |
| 192 | instance : DiscreteTopology (A →+ B) := ⟨rfl⟩ |
| 193 | |
| 194 | /-- For a finite discrete Γ-module `M`, the discrete Γ-module `Hom(M, Ω^×)` of additive maps to |
| 195 | `New.unitsModule`, on which `g` acts by `(g f)(m) = g f(g⁻¹ m)`. -/ |
| 196 | abbrev DiscreteModule.cartierDual [Finite M] : DiscreteModule ℤ Γ := |
| 197 | let W : DiscreteModule ℤ Γ := unitsModule Γ |
| 198 | of (V := M →+ W) |
| 199 | -- `g` sends `f` to `g ∘ f ∘ g⁻¹`. |
| 200 | { toFun g := |
| 201 | toIntLinearMap |
| 202 | (AddMonoidHom.mk' |
| 203 | (fun f : M →+ W ↦ AddMonoidHom.comp (W.ρ g) (AddMonoidHom.comp f (M.ρ g⁻¹))) |
| 204 | (by simp [ext_iff])) |
| 205 | map_one' := by simp [ext_iff] |
| 206 | map_mul' := by simp [ext_iff] } <| by |
| 207 | -- A map from the finite set `M` is a finite tuple of values, each continuous in `g`. |
| 208 | refine .congr ?_ fun _ ↦ leftInverse_invFun coe_injective _ |
| 209 | simp [continuous_prod_of_discrete_right] |
| 210 | fun_prop |
| 211 | |
| 212 | variable (b : M →+ N →+ W) |
| 213 | (e : ∀ (g : Γ) (x : M.V) (y : N.V), b (M.ρ g x) (N.ρ g y) = W.ρ g (b x y)) |
| 214 | |
| 215 | /-- Let `M`, `N`, `W` be discrete Γ-modules and `b : M × N → W` a biadditive pairing that is |
| 216 | equivariant: `e` says `b (g x) (g y) = g (b x y)`. The cup product `Z¹(M) × Z¹(N) → H²(W)` sends |
| 217 | 1-cocycles `x`, `y` to the class of the 2-cocycle `(g, h) ↦ b (x g) (g (y h))`. -/ |
| 218 | def cupProduct : Z1 M.ρ →+ Z1 N.ρ →+ W.H2 := |
| 219 | (AddMonoidHom.mk' |
| 220 | (fun x : Z1 M.ρ ↦ |
| 221 | AddMonoidHom.mk' |
| 222 | (fun y : Z1 N.ρ ↦ |
| 223 | (⟨fun p ↦ b (x.val p.1) (N.ρ p.1 (y.val p.2)), by |
| 224 | obtain ⟨hx_cont, hx⟩ := x.property |
| 225 | obtain ⟨hy_cont, hy⟩ := y.property |
| 226 | -- The cocycle identities and `e` make the terms cancel in pairs. |
| 227 | exact ⟨by fun_prop, fun g h k ↦ by simp [hx, hy, ← e]⟩⟩ : Z2 W.ρ)) |
| 228 | (by simp [funext_iff])) |
| 229 | (by simp [ext_iff, funext_iff])).compr₂ (QuotientAddGroup.mk' _) |
| 230 | |
| 231 | /-- For a finite discrete Γ-module `M`, the cup product `Z¹(Hom(M, Ω^×)) × Z¹(M) → H²(Ω^×)` of the |
| 232 | evaluation pairing `(f, m) ↦ f m` (`Hom(M, Ω^×)` is `New.DiscreteModule.cartierDual`). -/ |
| 233 | abbrev DiscreteModule.evalCup [Finite M] : |
| 234 | ↥(Z1 M.cartierDual.ρ) →+ ↥(Z1 M.ρ) →+ (unitsModule Γ).H2 := |
| 235 | cupProduct (unitsModule Γ) M.cartierDual M (AddMonoidHom.id M.cartierDual.V) (by simp) |
| 236 | |
| 237 | /-- Anticommutativity of the cup product. Let `Γ` be a group with a topology and let `W`, `M`, `N` |
| 238 | be discrete Γ-modules (`New.DiscreteModule`: a discrete module `V` with a continuous linear action |
| 239 | `ρ` of `Γ`). Let `b : M × N → W` be biadditive and equivariant, `b (g m) (g n) = g (b m n)`. Let |
| 240 | `x` and `y` be continuous 1-cocycles (`New.Z1`) with values in `M` and `N`. The cup product |
| 241 | `New.cupProduct W M N b h_equivariant x y` is the class in `H²(Γ, W)` of the 2-cocycle |
| 242 | `(g, h) ↦ b (x g) (g (y h))`. The flipped pairing `b.flip : (n, m) ↦ b m n` is equivariant too, |
| 243 | and the cup product of `y` and `x` for `b.flip` is minus the cup product of `x` and `y` for `b`. -/ |
| 244 | lemma cupProduct_flip {R R' S Γ : Type} [CommRing R] [CommRing R'] [CommRing S] [Group Γ] |
| 245 | [TopologicalSpace Γ] {W : DiscreteModule S Γ} {M : DiscreteModule R Γ} |
| 246 | {N : DiscreteModule R' Γ} (b : M →+ N →+ W) |
| 247 | (h_equivariant : ∀ (g : Γ) (m : M.V) (n : N.V), b (M.ρ g m) (N.ρ g n) = W.ρ g (b m n)) |
| 248 | (x : Z1 M.ρ) (y : Z1 N.ρ) : |
| 249 | cupProduct W N M b.flip (fun (g : Γ) (n : N.V) (m : M.V) ↦ h_equivariant g m n) y x = |
| 250 | -cupProduct W M N b h_equivariant x y := by |
| 251 | obtain ⟨x, hx_cont : Continuous x, |
| 252 | hx_mul : ∀ g h : Γ, x (g * h) = x g + M.ρ g (x h)⟩ := x |
| 253 | obtain ⟨y, hy_cont : Continuous y, |
| 254 | hy_mul : ∀ g h : Γ, y (g * h) = y g + N.ρ g (y h)⟩ := y |
| 255 | -- the sum of the two cup products is the coboundary of `g ↦ -b (x g) (y g)` |
| 256 | refine (Submodule.Quotient.eq _).mpr ⟨fun g ↦ -b (x g) (y g), by fun_prop, fun g h ↦ ?_⟩ |
| 257 | -- expand `b (x (g * h)) (y (g * h))` by the cocycle identities and `h_equivariant` |
| 258 | have h_expand : b (x (g * h)) (y (g * h)) = b (x g) (y g) + b (x g) (N.ρ g (y h)) |
| 259 | + b (M.ρ g (x h)) (y g) + W.ρ g (b (x h) (y h)) := by |
| 260 | simp only [hx_mul, hy_mul, map_add, AddMonoidHom.add_apply, h_equivariant] |
| 261 | abel |
| 262 | -- the coboundary condition at `(g, h)`, with both cup products written out |
| 263 | change b.flip (y g) (M.ρ g (x h)) - -b (x g) (N.ρ g (y h)) |
| 264 | = W.ρ g (-b (x h) (y h)) - -b (x (g * h)) (y (g * h)) + -b (x g) (y g) |
| 265 | rw [AddMonoidHom.flip_apply, h_expand, map_neg] |
| 266 | abel |
| 267 | |
| 268 | end New |
| 269 | |
| 270 | /-! ## Galois descent from a subgroup of finite index -/ |
| 271 | |
| 272 | section GaloisDescentSpan |
| 273 | |
| 274 | open Submodule Subgroup FixedPoints QuotientGroup Quotient MulDistribMulAction MulAction Pi |
| 275 | |
| 276 | /-- Galois descent. Let `G` act on the field `A`, let `τ` be semilinear along `j : Γ →* G`, and let |
| 277 | `U` have finite index in `G` and be the fixer of its own fixed scalars. A vector `y` fixed by every |
| 278 | `g` with `j g ∈ U` lies in the `A`-span of the vectors fixed by all of `Γ`. -/ |
| 279 | lemma New.Period.mem_span_fixed {G Γ A V R : Type*} [Group G] [Group Γ] [Field A] |
| 280 | [AddCommGroup V] [Module A V] [MulSemiringAction G A] [Semiring R] [Module R V] (j : Γ →* G) |
| 281 | {U : Subgroup G} [Finite (G ⧸ U)] (τ : Representation R Γ V) |
| 282 | (h_semilin : ∀ (g : Γ) (a : A) (x : V), τ g (a • x) = (j g • a) • τ g x) {y : V} |
| 283 | (hy : ∀ g : Γ, j g ∈ U → τ g y = y) (h_fixer : fixingSubgroup G (fixedPoints U A) ≤ U) : |
| 284 | y ∈ span A {x : V | ∀ g : Γ, τ g x = x} := by |
| 285 | classical |
| 286 | -- Let `q` run over the cosets of `U' = j⁻¹ U`, and let `Λ` send coefficients `c` to |
| 287 | -- `∑ q, c q • τ q y`. The vectors `(j q • b)_q`, for `U`-fixed scalars `b`, span all coefficients |
| 288 | -- and go to invariant vectors; the unit vector at the trivial coset goes to `y`. |
| 289 | set U' : Subgroup Γ := U.comap j |
| 290 | let h_fintype : Fintype (Γ ⧸ U') := fintypeOfIndexNeZero ((U.index_comap j).trans_ne |
| 291 | (mt index_eq_zero_of_relIndex_eq_zero index_ne_zero_of_finite)) |
| 292 | let Λ : (Γ ⧸ U' → A) →ₗ[A] V := (basisFun A _).constr A fun q ↦ τ q.out y |
| 293 | let χ (q : Γ ⧸ U') : submonoid U A →* A := (toMonoidHom A (j q.out)).domRestrict _ |
| 294 | -- Representatives with the same character differ by an element whose image under `j` fixes |
| 295 | -- all `U`-fixed scalars, so by an element of `U'`. |
| 296 | have χ_inj : χ.Injective := by |
| 297 | intro q r h_eq |
| 298 | have h_fix : j (q.out⁻¹ * r.out) ∈ fixingSubgroup G (fixedPoints U A) := by |
| 299 | refine (mem_fixingSubgroup_iff G).mpr fun b hb ↦ ?_ |
| 300 | rw [map_mul, map_inv, mul_smul, inv_smul_eq_iff] |
| 301 | simpa [χ] using (DFunLike.congr_fun h_eq ⟨b, hb⟩).symm |
| 302 | exact out_equiv_out.mp (leftRel_apply.mpr (mem_comap.mpr (h_fixer h_fix))) |
| 303 | -- Dedekind's lemma: distinct characters are linearly independent. |
| 304 | have h_span : span A (.range fun (b : submonoid U A) (q : Γ ⧸ U') ↦ χ q b) = ⊤ := |
| 305 | span_flip_eq_top_iff_linearIndependent.mpr ((linearIndependent_monoidHom _ A).comp χ χ_inj) |
| 306 | -- The image of `(j q • b)_q` is the trace `∑ q, τ q (b • y)`, unchanged by left translation. |
| 307 | have h_trace (b : submonoid U A) (g : Γ) : τ g (Λ fun q ↦ χ q b) = Λ fun q ↦ χ q b := by |
| 308 | have h_Λ : (Λ fun q ↦ χ q b) = ∑ q : Γ ⧸ U', τ q.out ((b : A) • y) := by |
| 309 | simp [Λ, χ, h_semilin] |
| 310 | -- `γ ↦ τ γ (b • y)` is right `U'`-invariant, since `U'` fixes both `b` and `y` |
| 311 | have h_right_inv : ∀ x : Γ, ∀ u ∈ U', τ (x * u) ((b : A) • y) = τ x ((b : A) • y) := by |
| 312 | intro x u hu |
| 313 | have h_b_fixed : j u • (b : A) = b := b.property ⟨j u, hu⟩ |
| 314 | rw [map_mul, mul_apply_eq_comp, h_semilin u, h_b_fixed, hy u hu] |
| 315 | calc τ g (Λ fun q ↦ χ q b) = ∑ q : Γ ⧸ U', τ (g * q.out) ((b : A) • y) := by simp [h_Λ] |
| 316 | _ = ∑ q : Γ ⧸ U', τ q.out ((b : A) • y) := |
| 317 | sum_mul_out U' (fun γ : Γ ↦ τ γ ((b : A) • y)) h_right_inv g |
| 318 | _ = Λ fun q ↦ χ q b := h_Λ.symm |
| 319 | have h_one : Λ (single ⟦1⟧ 1) = y := by |
| 320 | obtain ⟨⟨u, hu⟩, h_out⟩ := mk_out_eq_mul U' 1 |
| 321 | simpa [Λ, h_out] using hy u hu |
| 322 | -- The vectors `(χ q b)_q` span everything and go to invariants, so `y = Λ (single ⟦1⟧ 1)` is |
| 323 | -- in the span of the invariants. |
| 324 | have h_image_le : (span A (.range fun (b : submonoid U A) (q : Γ ⧸ U') ↦ χ q b)).map Λ ≤ |
| 325 | span A {x : V | ∀ g : Γ, τ g x = x} := |
| 326 | (map_span_le Λ _ _).mpr (Set.forall_mem_range.mpr fun b ↦ subset_span (h_trace b)) |
| 327 | exact h_image_le ⟨single ⟦1⟧ 1, h_span.ge Submodule.mem_top, h_one⟩ |
| 328 | |
| 329 | end GaloisDescentSpan |
| 330 | |
| 331 | /-! |
| 332 | ## Hilbert 90, Kummer cocycles and their cup products |
| 333 | |
| 334 | `Ωˣ` is written additively (`New.DiscreteUnits`), so `n • a` is `a ^ n` and `g a - a` is `g a / a`; |
| 335 | `New.unitsModule Γ` is `Ωˣ` as a discrete `Γ`-module, with the action `New.unitsRep`. `New.Z1` of a |
| 336 | trivial module consists of the continuous homomorphisms. |
| 337 | -/ |
| 338 | |
| 339 | namespace New |
| 340 | |
| 341 | open DFunLike Set Submodule DistribSMul Function QZ DiscreteUnits QZChar IntermediateField Period |
| 342 | DiscreteModule NeZero |
| 343 | |
| 344 | variable {Γ K Ω : Type _} [Group Γ] [TopologicalSpace Γ] [Field K] [Field Ω] [Algebra K Ω] |
| 345 | [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] |
| 346 | (f : Z1 (unitsRep (Γ := Γ) (Ω := Ω))) |
| 347 | |
| 348 | /-- The fixed field of a normal subgroup `U` of `Γ` is Galois over `K`. -/ |
| 349 | instance isGalois_fixedFieldOf (U : Subgroup Γ) [U.Normal] : IsGalois K (fixedFieldOf U) where |
| 350 | to_normal := by |
| 351 | -- Each automorphism comes from some `g` in `Γ`, and `g` preserves the fixed field of the |
| 352 | -- normal subgroup `U`. |
| 353 | refine normal_iff_forall_map_le'.mpr ((toAlgAut_surjective Γ).forall.mpr fun g ↦ ?_) |
| 354 | exact image_subset_iff.mpr fun _ hx ↦ smul_mem_fixedPoints_of_normal g hx |
| 355 | |
| 356 | /-- The cup product of a Kummer cocycle with a character mod `n`. Let `w` in `Ωˣ` be `Γ`-invariant |
| 357 | with `a ^ n = w`, and let `ξ : Γ → ℤ/n` be a continuous homomorphism. If the 2-cocycle `z` is |
| 358 | `(g, h) ↦ (g a / a) ^ ξ(h)`, then its class is minus the symbol `(ξ / n, w)`. Here |
| 359 | `New.QZChar.ofZModCocycle n ξ` is the character `ξ / n : Γ → ℚ/ℤ`, and `New.cyclicClass ρ χ w` is |
| 360 | the class of `(g, h) ↦ carry(χ(g), χ(h)) • w`. -/ |
| 361 | lemma mk_eq_neg_cyclicClass_ofZModCocycle {n : ℕ} [NeZero n] |
| 362 | {w : ↥(unitsRep (Γ := Γ) (Ω := Ω)).invariants} {a : DiscreteUnits Ω} (ha : n • a = ↑w) |
| 363 | (ξ : ↥(Z1 (Representation.trivial ℤ Γ (ZMod n)))) (z : Z2 (unitsRep (Γ := Γ) (Ω := Ω))) |
| 364 | (hz : ∀ g h : Γ, z.val (g, h) = (ξ.val h).val • (unitsRep g a - a)) : |
| 365 | ⟦z⟧ = -cyclicClass (unitsRep (Γ := Γ) (Ω := Ω)) (ofZModCocycle n ξ) w := by |
| 366 | -- `z` plus the cocycle `(g, h) ↦ carry (ξ g / n) (ξ h / n) • w` of the cyclic class is the |
| 367 | -- coboundary of `g ↦ (ξ g).val • a`. |
| 368 | obtain ⟨hξ_cont, hξ_cocycle⟩ := ξ.property |
| 369 | refine (Submodule.Quotient.eq _).mpr |
| 370 | ⟨(fun k : ZMod n ↦ k.val • a) ∘ ξ.val, continuous_bot.comp hξ_cont, fun g h ↦ ?_⟩ |
| 371 | -- `n` times the carry of `x / n` and `y / n` is the carry in the addition of residues mod `n`. |
| 372 | have carry_eq (x y : ZMod n) : |
| 373 | (ofZMod n x).carry (ofZMod n y) * n = x.val + y.val - (x + y).val := by |
| 374 | qify [← map_add] |
| 375 | grind [ofZMod_apply, fracRep_mk, NeZero.natCast_ne, Int.fract_div_natCast_eq_div_natCast_mod, |
| 376 | Nat.mod_eq_of_lt] |
| 377 | -- Write `w = n • a` and `ξ (g * h) = ξ g + ξ h`, then compare the coefficients of `g a` and `a`. |
| 378 | suffices h_coeff : (ξ.val h).val • (unitsRep g a - a) + |
| 379 | (ofZMod n (ξ.val g)).carry (ofZMod n (ξ.val h)) • n • a = |
| 380 | (ξ.val h).val • unitsRep g a - (ξ.val g + ξ.val h).val • a + (ξ.val g).val • a by |
| 381 | simpa [hz, ofZModCocycle, hξ_cocycle, ← ha] using h_coeff |
| 382 | linear_combination (norm := module) carry_eq (ξ.val g) (ξ.val h) • a |
| 383 | |
| 384 | include K |
| 385 | |
| 386 | /-- Hilbert's Theorem 90. Let `Γ` act on `Ω` as the Galois group of `Ω / K` (`New.IsProGalois`). |
| 387 | Every continuous 1-cocycle `f` of `Γ` with values in `Ωˣ` is a coboundary: `f g = g m / m` for some |
| 388 | `m`, written additively as `unitsRep g m - m`. -/ |
| 389 | lemma hilbert90_unitsRep : ∃ m : DiscreteUnits Ω, ∀ g : Γ, f.val g = unitsRep g m - m := by |
| 390 | let e := proGaloisEquiv (K := K) (Ω := Ω) Γ |
| 391 | -- Transport the cocycle to the automorphism group, with coefficients written multiplicatively. |
| 392 | let u (σ : Gal(Ω/K)) : Ωˣ := (f.val (e.symm σ)).toMul |
| 393 | have h_loc : IsLocallyConstant u := |
| 394 | ((IsLocallyConstant.iff_continuous _).2 |
| 395 | (f.property.1.comp e.symm.continuous)).comp Additive.toMul |
| 396 | -- The equivalence respects the action on coefficients, so the cocycle identity transfers. |
| 397 | have h_cocycle : groupCohomology.IsMulCocycle₁ u := by |
| 398 | intro σ τ |
| 399 | apply Units.ext |
| 400 | have h_action (x : Ω) : e.symm σ • x = σ x := |
| 401 | (proGaloisEquiv_apply (Γ := Γ) (K := K) (e.symm σ) x).symm.trans |
| 402 | (congrArg (fun g : Gal(Ω/K) ↦ g x) (e.apply_symm_apply σ)) |
| 403 | simpa [u, AlgEquiv.smul_units_def, val_unitsRep, h_action, mul_comm] using |
| 404 | congrArg (fun a : DiscreteUnits Ω ↦ (a.toMul : Ω)) |
| 405 | (f.property.2 (e.symm σ) (e.symm τ)) |
| 406 | -- Continuous Hilbert 90 gives a coboundary on the automorphism group. |
| 407 | obtain ⟨x, hx⟩ := TauCeti.isMulCoboundary₁_of_isMulCocycle₁_of_isLocallyConstant h_cocycle h_loc |
| 408 | -- Pull the coboundary back to `Γ` and return to additive notation. |
| 409 | refine ⟨Additive.ofMul x, fun g ↦ Additive.toMul.injective (Units.ext ?_)⟩ |
| 410 | simpa [u, AlgEquiv.smul_units_def, val_unitsRep, e, proGaloisEquiv_apply] using |
| 411 | (congrArg Units.val (hx (e g))).symm |
| 412 | |
| 413 | /-- Kummer cocycle. Let `Ω` be algebraically closed of characteristic 0, and let `Γ`, the Galois |
| 414 | group of `Ω / K`, fix the `n`-th roots of unity (`h_cyc`: the cyclotomic character mod `n` is |
| 415 | trivial). For `x` in `Ωˣ` fixed by `Γ` there are an `n`-th root `a` of `x` and a continuous |
| 416 | homomorphism `f : Γ → ℤ/n` such that `g b / b = ζ ^ f(g)` for every `n`-th root `b` of `x`. Here |
| 417 | `ζ ^ k` is `New.rootPowHom Ω n k`, for a chosen primitive `n`-th root of unity `ζ`. -/ |
| 418 | lemma exists_kummer_cocycle [IsAlgClosed Ω] [CharZero Ω] {n : ℕ} [NeZero n] |
| 419 | (h_cyc : ∀ g : Γ, cyclotomicCharMod Ω n g = 1) (x : (unitsModule Γ).H0) : |
| 420 | ∃ a : (unitsModule Γ).V, ∃ f : ↥(Z1 (Representation.trivial ℤ Γ (ZMod n))), |
| 421 | n • a = x.val ∧ |
| 422 | ∀ b : (unitsModule Γ).V, n • b = x.val → ∀ g : Γ, |
| 423 | (rootPowHom Ω n).val (f.val g) = unitsRep g b - b := by |
| 424 | let μ : ZMod n →+ DiscreteUnits Ω := (rootPowHom Ω n).val |
| 425 | obtain ⟨hμ_inj, hμ_range⟩ : Injective μ ∧ ∀ y : DiscreteUnits Ω, y ∈ μ.range ↔ n • y = 0 := |
| 426 | (rootPowHom Ω n).property |
| 427 | obtain ⟨a, ha⟩ : ∃ a : DiscreteUnits Ω, n • a = x.val := exists_nsmul x.val (NeZero.ne n) |
| 428 | -- `Γ` fixes the `n`-th roots of unity. |
| 429 | have h_fix (g : Γ) (y : DiscreteUnits Ω) (hy : n • y = 0) : unitsRep g y = y := |
| 430 | cyclotomicCharMod_eq_one_iff.mp (h_cyc g) y hy |
| 431 | -- The coboundary `c g = g a - a` is a continuous cocycle killed by `n`, as `x` is invariant. |
| 432 | set c : Z1 (unitsModule Γ).ρ := coboundary (unitsModule Γ) a |
| 433 | obtain ⟨hc_cont, hc_cocycle⟩ : Continuous c.val ∧ |
| 434 | ∀ g h : Γ, c.val (g * h) = c.val g + unitsRep g (c.val h) := c.property |
| 435 | have hc (g : Γ) : c.val g = unitsRep g a - a := rfl |
| 436 | have hc_torsion (g : Γ) : n • c.val g = 0 := by |
| 437 | rw [hc, smul_sub, ← map_nsmul, ha, x.property g, sub_self] |
| 438 | -- So it has a logarithm along `μ`, and the logarithm is a homomorphism, since `Γ` fixes the |
| 439 | -- root of unity `c h`. |
| 440 | have h_log (g : Γ) : μ (invFun μ (c.val g)) = c.val g := |
| 441 | invFun_eq ((hμ_range _).mpr (hc_torsion g)) |
| 442 | have h_log_mul (g h : Γ) : |
| 443 | invFun μ (c.val (g * h)) = invFun μ (c.val g) + invFun μ (c.val h) := |
| 444 | hμ_inj (by rw [map_add, h_log, h_log, h_log, hc_cocycle, h_fix g _ (hc_torsion h)]) |
| 445 | refine ⟨a, ⟨invFun μ ∘ c.val, continuous_bot.comp hc_cont, fun g h ↦ ?_⟩, ha, fun b hb g ↦ ?_⟩ |
| 446 | · -- The cocycle condition for the trivial action on `ℤ/n` says that `f` is a homomorphism. |
| 447 | simpa only [comp_apply, Representation.trivial_apply] using h_log_mul g h |
| 448 | · -- Another root `b` differs from `a` by a root of unity, so it has the same coboundary. |
| 449 | have h_diff : unitsRep g (a - b) = a - b := h_fix g _ (by simp [smul_sub, ha, hb]) |
| 450 | have h_cob_eq : unitsRep g a - a = unitsRep g b - b := by |
| 451 | rwa [map_sub, sub_eq_sub_iff_sub_eq_sub] at h_diff |
| 452 | calc (rootPowHom Ω n).val ((invFun μ ∘ c.val) g) = c.val g := h_log g |
| 453 | _ = unitsRep g a - a := hc g |
| 454 | _ = unitsRep g b - b := h_cob_eq |
| 455 | |
| 456 | end New |
| 457 | |
| 458 | /-! |
| 459 | ## Symbols of cyclic extensions and norms |
| 460 | |
| 461 | Let `χ : Γ → ℚ/ℤ` be a continuous character with kernel `U`. The proofs use Hilbert's Theorem 90 |
| 462 | (`New.hilbert90_unitsRep`) for `U` and Shapiro's lemma. |
| 463 | -/ |
| 464 | |
| 465 | section CyclicNorm |
| 466 | |
| 467 | namespace New |
| 468 | |
| 469 | open QZChar DiscreteUnits DiscreteModule Algebra IsGalois Function Quotient QuotientGroup |
| 470 | MulSemiringAction |
| 471 | |
| 472 | variable {Γ K Ω L : Type} [Group Γ] [TopologicalSpace Γ] [Field K] [Field Ω] [Algebra K Ω] |
| 473 | [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] [Field L] [Algebra K L] [Algebra L Ω] |
| 474 | [IsScalarTower K L Ω] |
| 475 | |
| 476 | include K in |
| 477 | /-- Let `U` be the closed subgroup of `Γ` of the elements that fix `L`, embedded in `Ω` by |
| 478 | `algebraMap L Ω`. Then `U` acts on `Ω` as the Galois group of `Ω / L` (`New.IsProGalois`). -/ |
| 479 | lemma IsProGalois.of_fixingSubgroup_eq {U : Subgroup Γ} |
| 480 | (hU : fixingSubgroup Γ (Set.range (algebraMap L Ω)) = U) [IsClosed (U : Set Γ)] : |
| 481 | IsProGalois U L Ω := by |
| 482 | -- The topological conditions come from the closed subgroup `U` as the Galois group of its |
| 483 | -- fixed field; it remains to see that `U` fixes `L` and that its fixed field is not larger. |
| 484 | have h_fix : IsProGalois U (fixedFieldOf U) Ω := inferInstance |
| 485 | subst hU |
| 486 | refine { tower_top_of_isGalois K L Ω, h_fix with |
| 487 | commutes.smul_comm := ?_, isInvariant.isInvariant := ?_ } |
| 488 | · -- Elements of `U` fix `L`, so they commute with multiplication by elements of `L`. |
| 489 | change ∀ (u : fixingSubgroup Γ (Set.range (algebraMap L Ω))) (l : L) (y : Ω), |
| 490 | u • l • y = l • u • y |
| 491 | simp_all [smul_def, mem_fixingSubgroup_iff] |
| 492 | · exact (fixedFieldOf_fixingSubgroup (IsScalarTower.toAlgHom K L Ω).fieldRange).le |
| 493 | |
| 494 | open LinearMap Mathlib.Tactic.LinearCombination QZ Submodule Group |
| 495 | |
| 496 | attribute [local instance low] Fintype.ofFinite |
| 497 | |
| 498 | /-- Let `f` be an injective homomorphism from a finite group `Q` to `ℚ/ℤ` (written |
| 499 | multiplicatively). There is `γ` in `Q` such that the carry of `f q` and `f γ` is `0` for `q = 1` and |
| 500 | `1` for every other `q`: take for `γ` the element whose value has the largest representative in |
| 501 | `[0, 1)`. -/ |
| 502 | lemma exists_carry_eq_one_sub_ite {Q : Type*} [Group Q] [Finite Q] [DecidableEq Q] |
| 503 | (f : Q →* Multiplicative QZ) (hf : Injective f) : |
| 504 | ∃ γ : Q, ∀ q : Q, carry (f q).toAdd (f γ).toAdd = 1 - if q = 1 then 1 else 0 := by |
| 505 | obtain ⟨γ, hγ⟩ : ∃ γ : Q, ∀ q : Q, (f q).toAdd.fracRep ≤ (f γ).toAdd.fracRep := |
| 506 | Finite.exists_max fun q ↦ (f q).toAdd.fracRep |
| 507 | refine ⟨γ, fun q ↦ ?_⟩ |
| 508 | -- Both sides are integers, and by the choice of `γ` they differ by less than `1`. |
| 509 | have hγ_q : (f (q * γ)).toAdd.fracRep ≤ (f γ).toAdd.fracRep := hγ (q * γ) |
| 510 | suffices h_abs : |carry (f q).toAdd (f γ).toAdd - (1 - if q = 1 then 1 else 0)| < 1 from |
| 511 | sub_eq_zero.mp (Int.abs_lt_one_iff.mp h_abs) |
| 512 | qify |
| 513 | grind [mul_eq_right, QZ.fracRep, Equiv.injective, toAdd_mul] |
| 514 | |
| 515 | /-- The integer carry after pulling back along a character of `Q`. -/ |
| 516 | private abbrev characterCarry {Q : Type*} [Group Q] (f : Q →* Multiplicative QZ) (p q : Q) : ℤ := |
| 517 | carry (f p).toAdd (f q).toAdd |
| 518 | |
| 519 | private lemma carry_mul_right {Q : Type*} [Group Q] (f : Q →* Multiplicative QZ) (p q r : Q) : |
| 520 | characterCarry f p (q * r) = |
| 521 | characterCarry f p q - (characterCarry f q r - characterCarry f (p * q) r) := by |
| 522 | simp only [characterCarry, map_mul, toAdd_mul] |
| 523 | linarith only [QZ.carry_add_add_carry (f p).toAdd (f q).toAdd (f r).toAdd] |
| 524 | |
| 525 | /-- Choose `γ` whose character value has largest representative. Under translation by `γ`, |
| 526 | the carry with `p` gains one at the identity and loses one at `p⁻¹`. These cancel when `p = 1`. -/ |
| 527 | private lemma exists_characterCarry_step {Q : Type*} [Group Q] [Finite Q] [DecidableEq Q] |
| 528 | (f : Q →* Multiplicative QZ) (hf : Injective f) : |
| 529 | ∃ γ : Q, ∀ p q : Q, characterCarry f p (q * γ) = |
| 530 | characterCarry f p q - ((if p * q = 1 then 1 else 0) - if q = 1 then 1 else 0) := by |
| 531 | obtain ⟨γ, hγ⟩ := exists_carry_eq_one_sub_ite f hf |
| 532 | refine ⟨γ, fun p q ↦ ?_⟩ |
| 533 | rw [carry_mul_right] |
| 534 | simp only [characterCarry, hγ] |
| 535 | abel |
| 536 | |
| 537 | include K in |
| 538 | /-- Hilbert 90 for functions on cosets: for an open subgroup `U` of `Γ`, every continuous |
| 539 | 1-cocycle with values in the functions `Γ ⧸ U → Ωˣ` is a coboundary. By Shapiro's lemma this is |
| 540 | Hilbert 90 for `U`. -/ |
| 541 | private lemma hilbert90_funModule (U : OpenSubgroup Γ) |
| 542 | (F : Z1 ((unitsModule Γ).funModule U.toSubgroup).ρ) : |
| 543 | ∃ n : ((unitsModule Γ).funModule U.toSubgroup).V, |
| 544 | ∀ g : Γ, F.val g = ((unitsModule Γ).funModule U.toSubgroup).ρ g n - n := |
| 545 | (hilbert90_unitsRep ((unitsModule Γ).shapiroZ1 U F)).elim (shapiro_H1 U F) |
| 546 | |
| 547 | /-- The classes that vanish on the kernel of a character are symbols. Let `Γ` be the profinite |
| 548 | Galois group of the extension `Ω/K` (`IsProGalois`), and `H²(Γ, Ωˣ)` the continuous cohomology of |
| 549 | `Ωˣ`, written additively. Let `χ : Γ → ℚ/ℤ` be a continuous character with kernel `U`, an open |
| 550 | subgroup of `Γ`. If a class `x` in `H²(Γ, Ωˣ)` restricts to zero on `U`, then `x` is the symbol |
| 551 | `(χ, w)` (`New.cyclicClass`) of some `w` in `Kˣ`, where `w` is embedded in `Ωˣ` by |
| 552 | `New.DiscreteUnits.ofBase`. -/ |
| 553 | lemma QZChar.exists_eq_cyclicClass_of_resH2_eq_zero (χ : ↥(QZChar Γ)) (x : (unitsModule Γ).H2) |
| 554 | (hx : (unitsModule Γ).resH2 (OpenSubgroup.mk (ker χ) (isOpen_ker χ)) x = 0) : |
| 555 | ∃ w : Kˣ, x = cyclicClass unitsRep χ (DiscreteUnits.ofBase Γ Ω (Additive.ofMul w)) := by |
| 556 | classical |
| 557 | -- By Shapiro's lemma a cocycle `z` of the class `x`, with values in the constant functions |
| 558 | -- `Γ ⧸ U → Ωˣ`, is the coboundary of some `a`. The difference operator `D` along a suitable coset |
| 559 | -- `γ` makes `D ∘ a` a 1-cocycle, by Hilbert 90 the coboundary of some `ε`, and `x` is the symbol |
| 560 | -- of the sum of `ε` over `Γ ⧸ U`. |
| 561 | let U : OpenSubgroup Γ := OpenSubgroup.mk (ker χ) (isOpen_ker χ) |
| 562 | have h_finite : Finite (Γ ⧸ U.toSubgroup) := U.toSubgroup.quotient_finite_of_isOpen U.isOpen |
| 563 | -- `f` is the injective character of `Γ ⧸ U` induced by `χ`; the symbol has cocycle `c g l • w`. |
| 564 | let f : Γ ⧸ U.toSubgroup →* Multiplicative QZ := kerLift (toHom χ) |
| 565 | let c := characterCarry f |
| 566 | have χ_eq (g : Γ) : χ.val g = (f (g : Γ ⧸ U.toSubgroup)).toAdd := rfl |
| 567 | have smul_eq (g : Γ) (q : Γ ⧸ U.toSubgroup) : g • q = mk' U g * q := rfl |
| 568 | obtain ⟨γ, carry_step⟩ := exists_characterCarry_step f (kerLift_injective _) |
| 569 | let M : DiscreteModule ℤ Γ := unitsModule Γ |
| 570 | let N : DiscreteModule ℤ Γ := M.funModule U.toSubgroup |
| 571 | -- `D F q = F (q * γ) - F q` |
| 572 | let D : (Γ ⧸ U.toSubgroup → M) →ₗ[ℤ] Γ ⧸ U.toSubgroup → M := funLeft ℤ M (fun q ↦ q * γ) - 1 |
| 573 | have sum_shift (F : Γ ⧸ U.toSubgroup → M) : ∑ q, F (q * γ) = ∑ q, F q := |
| 574 | (mulRight_bijective γ).sum_comp F |
| 575 | obtain ⟨z, rfl⟩ : ∃ z : Z2 M.ρ, ⟦z⟧ = x := Quot.exists_rep x |
| 576 | -- The cocycle `z` dies on `U`, so with values in the functions it is the coboundary of some `a`. |
| 577 | obtain ⟨a, a_cont : Continuous a, |
| 578 | ha : ∀ g l : Γ, (fun _ ↦ z.val (g, l)) = N.ρ g (a l) - a (g * l) + a g⟩ := |
| 579 | (ker_mkQ _).le (shapiroH2_injective U (a₁ := (M.const U).mapH2 ⟦z⟧) hx) |
| 580 | -- `D` kills the constant left side of `ha`, so `D ∘ a` is a 1-cocycle, hence a coboundary. |
| 581 | have Da_cocycle (g l : Γ) : D (a (g * l)) = D (a g) + N.ρ g (D (a l)) := by |
| 582 | funext q |
| 583 | have hD_ha : D (fun _ ↦ z.val (g, l)) q = D (N.ρ g (a l) - a (g * l) + a g) q := by rw [ha g l] |
| 584 | linear_combination (norm := |
| 585 | (simp [N, D, smul_eq, mul_assoc, sub_eq_zero] |
| 586 | abel)) hD_ha |
| 587 | -- Hilbert 90 for `U`, with Shapiro's lemma. |
| 588 | obtain ⟨ε, hε : ∀ g : Γ, D (a g) = N.ρ g ε - ε⟩ := |
| 589 | hilbert90_funModule (K := K) U ⟨D ∘ a, by fun_prop, Da_cocycle⟩ |
| 590 | -- The sum of `D (a g)` is zero, so the sum of `ε` is invariant: it comes from `Kˣ`. |
| 591 | have sum_invariant : M.sum U ε ∈ M.H0 := fun g : Γ ↦ by |
| 592 | rw [← (M.sum U).isIntertwining, ← sub_eq_zero, ← map_sub, ← hε] |
| 593 | simp [D, sum_shift, sum] |
| 594 | obtain ⟨w, hw⟩ := (ofBase_bijective (K := K) Γ).surjective ⟨M.sum U ε, sum_invariant⟩ |
| 595 | -- `z` differs from the cocycle of the symbol of `M.sum U ε` by the coboundary of |
| 596 | -- `g ↦ a g γ - g (s g)`. |
| 597 | let s (g : Γ) : M := M.sum U (c g • ε) |
| 598 | refine ⟨Additive.toMul w, ?_⟩ |
| 599 | rw [ofMul_toMul, hw] |
| 600 | refine (Submodule.Quotient.eq _).mpr ⟨fun g ↦ a g γ - M.ρ g (s g), by fun_prop, fun g l ↦ ?_⟩ |
| 601 | -- Sum `hε l` against `c g`; summing by parts on the left, only `q = g⁻¹` and `q = 1` survive. |
| 602 | have h_parts : ∑ q, c g q • D (a l) q = a l (g⁻¹ • γ) - a l γ := by |
| 603 | linear_combination (norm := |
| 604 | simp [D, c, smul_eq, carry_step, smul_sub, mul_eq_one_iff_inv_eq, sub_smul]) |
| 605 | sum_shift (c g • a l) |
| 606 | -- On the right, translate by `q ↦ l * q`. |
| 607 | have h_translate : ∑ q, c g q • N.ρ l ε q = M.ρ l (c g l • M.sum U ε - s l + s (g * l)) := by |
| 608 | rw [← (mulLeft_bijective (l : Γ ⧸ U.toSubgroup)).sum_comp] |
| 609 | simp [N, s, c, carry_mul_right, smul_eq, Finset.smul_sum, sub_add, sub_smul, sum] |
| 610 | -- `D (a l) = N.ρ l ε - ε` (`hε l`), and `s g` is the sum of `c g q • ε q`. |
| 611 | have h_diff_eq : a l (g⁻¹ • γ) - a l γ = M.ρ l (c g l • M.sum U ε - s l + s (g * l)) - s g := by |
| 612 | rw [← h_parts, ← h_translate, hε l] |
| 613 | simp [N, s, smul_sub, sum] |
| 614 | -- Evaluate `ha g l` at `γ` and replace `a l (g⁻¹ • γ)` by `h_diff_eq`. |
| 615 | have ha_γ : z.val (g, l) = N.ρ g (a l) γ - a (g * l) γ + a g γ := congrFun (ha g l) γ |
| 616 | linear_combination (norm := |
| 617 | (simp [N, c, characterCarry, χ_eq, sub_eq_zero] |
| 618 | abel)) ha_γ + c g l • sum_invariant (g * l) + congrArg (M.ρ g) h_diff_eq |
| 619 | |
| 620 | include K in |
| 621 | /-- A symbol that vanishes is a norm. Let `Γ` be the profinite Galois group of the extension `Ω/K` |
| 622 | (`IsProGalois`), acting on `Ωˣ` (written additively), and let `χ : Γ → ℚ/ℤ` be a continuous |
| 623 | character with kernel `U`, an open subgroup of `Γ`. Let `w` be a `Γ`-invariant element of `Ωˣ`. If |
| 624 | the symbol `(χ, w)` (`New.cyclicClass`) is zero in `H²(Γ, Ωˣ)`, then `w` is the norm |
| 625 | `New.DiscreteModule.corestrictH0 U y` of some `U`-invariant element `y` of `Ωˣ`, that is, the sum of |
| 626 | `g y` over the cosets `gU`. -/ |
| 627 | lemma QZChar.exists_corestrictH0_eq_of_cyclicClass_eq_zero (χ : ↥(QZChar Γ)) |
| 628 | (w : (unitsModule Γ).H0) (hw : cyclicClass (unitsModule Γ).ρ χ w = 0) : |
| 629 | ∃ y : ↥((unitsModule Γ).restrictTo (OpenSubgroup.mk (ker χ) (isOpen_ker χ))).H0, |
| 630 | corestrictH0 (OpenSubgroup.mk (ker χ) (isOpen_ker χ)) y = w.val := by |
| 631 | classical |
| 632 | -- If the symbol of `w` is the coboundary of `a`, a 1-cocycle `z` with values in the functions |
| 633 | -- `Γ ⧸ U → Ωˣ` is built from `a`; by Hilbert 90 it is the coboundary of some `η`, and a |
| 634 | -- `Γ`-invariant function built from `η` has sum `w`, which makes `w` a norm by Shapiro's lemma. |
| 635 | let U : OpenSubgroup Γ := OpenSubgroup.mk (ker χ) (isOpen_ker χ) |
| 636 | have h_finite : Finite (Γ ⧸ U.toSubgroup) := U.toSubgroup.quotient_finite_of_isOpen U.isOpen |
| 637 | -- `f` is the injective character of `Γ ⧸ U` induced by `χ`; the symbol has cocycle `c g l • w`. |
| 638 | let f : Γ ⧸ U.toSubgroup →* Multiplicative QZ := kerLift (toHom χ) |
| 639 | let c := characterCarry f |
| 640 | have smul_eq (g : Γ) (q : Γ ⧸ U.toSubgroup) : g • q = mk' U g * q := rfl |
| 641 | obtain ⟨γ, carry_step⟩ := exists_characterCarry_step f (kerLift_injective _) |
| 642 | let M : DiscreteModule ℤ Γ := unitsModule Γ |
| 643 | let N : DiscreteModule ℤ Γ := M.funModule U.toSubgroup |
| 644 | -- `D F q = F (q * γ) - F q` |
| 645 | let D : (Γ ⧸ U.toSubgroup → M) →ₗ[ℤ] Γ ⧸ U.toSubgroup → M := funLeft ℤ M (fun q ↦ q * γ) - 1 |
| 646 | have sum_shift (F : Γ ⧸ U.toSubgroup → M) : ∑ q, F (q * γ) = ∑ q, F q := |
| 647 | (mulRight_bijective γ).sum_comp F |
| 648 | have carry_cocycle (p q r : Γ ⧸ U.toSubgroup) : |
| 649 | c p (q * r) = c p q - (c q r - c (p * q) r) := |
| 650 | carry_mul_right (kerLift (toHom χ)) p q r |
| 651 | obtain ⟨a, a_cont : Continuous a, |
| 652 | ha : ∀ g l : Γ, c g l • w.val = M.ρ g (a l) - a (g * l) + a g⟩ := |
| 653 | (ker_mkQ _).le hw |
| 654 | have hw_fixed (g : Γ) : M.ρ g w.val = w.val := w.property g |
| 655 | let z (g : Γ) (q : Γ ⧸ U.toSubgroup) : M := c g (g⁻¹ • q) • w.val - a g |
| 656 | have z_cocycle (g l : Γ) : z (g * l) = z g + N.ρ g (z l) := by |
| 657 | funext q |
| 658 | have h_q : (l : Γ ⧸ U.toSubgroup) * (l⁻¹ • g⁻¹ • q) = g⁻¹ • q := by simp [smul_eq] |
| 659 | -- `ha g l` and the carry cocycle at `(g, l, l⁻¹ • g⁻¹ • q)` |
| 660 | linear_combination (norm := |
| 661 | (simp [z, N, h_q, hw_fixed, mul_smul, sub_smul] |
| 662 | abel)) -ha g l - carry_cocycle g l (l⁻¹ • g⁻¹ • q) • w.val |
| 663 | obtain ⟨η, hη : ∀ g : Γ, z g = N.ρ g η - η⟩ := |
| 664 | hilbert90_funModule (K := K) U ⟨z, by fun_prop, z_cocycle⟩ |
| 665 | -- The point mass at the identity has sum `w`. Subtracting `D η` makes it invariant, |
| 666 | -- so its sum is a norm by `shapiro_H0`. |
| 667 | let δ : Γ ⧸ U.toSubgroup → M := Pi.single 1 w.val |
| 668 | have h_invariant : δ - D η ∈ N.H0 := by |
| 669 | refine fun g ↦ funext fun q ↦ ?_ |
| 670 | have hD_hη : D (z g) q = D (N.ρ g η - η) q := by rw [hη g] |
| 671 | -- The difference of the carry in `z g` gives exactly the two translated point masses. |
| 672 | linear_combination (norm := |
| 673 | (simp [z, N, D, c, δ, Pi.single_apply, smul_eq, mul_assoc, apply_ite (M.ρ g), |
| 674 | hw_fixed, sub_smul] |
| 675 | abel)) hD_hη - (carry_step g (g⁻¹ • q)) • w.val |
| 676 | obtain ⟨y, hy⟩ : ∃ y : ↥(M.restrictTo U.toSubgroup).H0, |
| 677 | (fun q : Γ ⧸ U.toSubgroup ↦ M.ρ q.out y) = δ - D η := |
| 678 | shapiro_H0 U ⟨_, h_invariant⟩ |
| 679 | -- Summing `hy` over the cosets: the left side is the norm of `y`, the right side is `w`. |
| 680 | refine ⟨y, ?_⟩ |
| 681 | change M.sum U (fun q ↦ M.ρ q.out y) = w.val |
| 682 | rw [hy] |
| 683 | simp [D, δ, sum_shift, sum] |
| 684 | |
| 685 | /-- Let `χ : Γ → ℚ/ℤ` be a continuous character and `U` its kernel, an open subgroup of `Γ`. A class |
| 686 | in `H²(Γ, Ωˣ)` dies on `U` exactly when it is a symbol `(χ, w)` with `w` in `Kˣ`; and for a |
| 687 | `Γ`-invariant `w` in `Ωˣ` the symbol `(χ, w)` is zero exactly when `w` is a norm |
| 688 | `New.DiscreteModule.corestrictH0 U y` of a `U`-invariant `y`. -/ |
| 689 | lemma QZChar.cyclicClass_spec (χ : ↥(QZChar Γ)) : |
| 690 | let U := OpenSubgroup.mk (ker χ) (isOpen_ker χ) |
| 691 | -- (a) the classes that die on `U` are the symbols of `χ` with elements of `Kˣ` |
| 692 | (∀ x : (unitsModule Γ).H2, |
| 693 | (unitsModule Γ).resH2 U x = 0 ↔ |
| 694 | ∃ w : Kˣ, x = cyclicClass unitsRep χ (DiscreteUnits.ofBase Γ Ω (Additive.ofMul w))) ∧ |
| 695 | -- (b) a symbol of `χ` is zero exactly on the norms from `U` |
| 696 | ∀ w : (unitsModule Γ).H0, |
| 697 | cyclicClass (unitsModule Γ).ρ χ w = 0 ↔ |
| 698 | ∃ y : ↥((unitsModule Γ).restrictTo U).H0, corestrictH0 U y = w.val := by |
| 699 | intro U |
| 700 | refine ⟨fun x ↦ ⟨exists_eq_cyclicClass_of_resH2_eq_zero χ x, ?_⟩, |
| 701 | fun w ↦ ⟨exists_corestrictH0_eq_of_cyclicClass_eq_zero (K := K) χ w, ?_⟩⟩ |
| 702 | · -- A symbol `(χ, w)` with `w` in `Kˣ` dies on `U`, which fixes `w` and kills `χ`. |
| 703 | rintro ⟨w, rfl⟩ |
| 704 | refine resH2_cyclicClass_eq_zero (one_smul ℕ _) fun u : U.toSubgroup ↦ ?_ |
| 705 | exact ⟨(ofBase Γ Ω (.ofMul w)).property u, (one_smul ℕ (χ.val u)).trans u.property⟩ |
| 706 | · -- The symbol of `y` on `U` belongs to the zero character, so it is the restriction of the |
| 707 | -- zero class, and the symbol of the norm of `y` is the index of `U` times that class. |
| 708 | rintro ⟨y, hy⟩ |
| 709 | have h_zero : QZChar.comap (subgroupIncl U) χ = 0 := |
| 710 | Subtype.ext (funext fun u : U.toSubgroup ↦ u.property) |
| 711 | rw [cyclicClass_corestrictH0 U χ y hy 0, smul_zero] |
| 712 | rw [h_zero, map_zero, map_zero, AddMonoidHom.zero_apply] |
| 713 | |
| 714 | variable [IsAlgClosed Ω] [Module.Finite K L] [Algebra.IsSeparable K L] |
| 715 | |
| 716 | /-- Let the open subgroup `U` of `Γ` act on `Ω` as the Galois group of `Ω / L`, with `L / K` finite |
| 717 | separable and `Ω` algebraically closed. Then the norm from `U` to `Γ` |
| 718 | (`New.DiscreteModule.corestrictH0`) of a unit `y` of `L` is its field norm to `K`. -/ |
| 719 | lemma corestrictH0_ofBase_eq_norm (U : OpenSubgroup Γ) [IsProGalois U.toSubgroup L Ω] (y : Lˣ) : |
| 720 | (unitsModule Γ).corestrictH0 U (DiscreteUnits.ofBase U.toSubgroup Ω (Additive.ofMul y)) = |
| 721 | DiscreteUnits.ofBase Γ Ω (Additive.ofMul (y.map (Algebra.norm K))) := by |
| 722 | let φ : L →ₐ[K] Ω := IsScalarTower.toAlgHom K L Ω |
| 723 | let : MulAction Γ (L →ₐ[K] Ω) := |
| 724 | MulAction.compHom _ (MulSemiringAction.toAlgAut Γ K Ω) |
| 725 | have : MulAction.IsPretransitive Γ (L →ₐ[K] Ω) := |
| 726 | MulAction.isPretransitive_compHom (G := L →ₐ[K] Ω) (toAlgAut_surjective Γ) |
| 727 | have h_stab : U.toSubgroup = MulAction.stabilizer Γ φ := by |
| 728 | rw [(eq_fixingSubgroup_of_isProGalois (L := L) (V := U.toSubgroup)).1] |
| 729 | ext g |
| 730 | rw [mem_fixingSubgroup_iff, MulAction.mem_stabilizer_iff] |
| 731 | exact ⟨fun h ↦ AlgHom.ext fun x ↦ h _ ⟨x, rfl⟩, fun h _ ⟨x, hx⟩ ↦ |
| 732 | hx ▸ DFunLike.congr_fun h x⟩ |
| 733 | -- Cosets of the stabilizer of `φ` are the embeddings of `L` into `Ω`. |
| 734 | let e := (Subgroup.quotientEquivOfEq h_stab).trans (TauCeti.quotientStabilizerEquiv Γ φ) |
| 735 | have he (q : Γ ⧸ U.toSubgroup) : e q = q.out • φ := by |
| 736 | conv_lhs => rw [← QuotientGroup.out_eq' q] |
| 737 | dsimp only [e, Equiv.trans_apply] |
| 738 | rw [Subgroup.quotientEquivOfEq_mk, TauCeti.quotientStabilizerEquiv_mk] |
| 739 | refine DiscreteUnits.ext ?_ |
| 740 | suffices h_prod : ∏ x : Γ ⧸ U.toSubgroup, x.out • algebraMap L Ω y = ∏ σ : L →ₐ[K] Ω, σ y by |
| 741 | simpa [corestrictH0, norm_eq_prod_embeddings, sum] using h_prod |
| 742 | exact Fintype.prod_equiv e _ _ fun x ↦ by rw [he]; rfl |
| 743 | |
| 744 | /-- If the kernel of the character `χ : Γ → ℚ/ℤ` is the Galois group of `Ω / L` (`J`), with `L / K` |
| 745 | finite separable and `Ω` algebraically closed, then the symbol `(χ, x)` (`New.cyclicClass`) of `x` |
| 746 | in `Kˣ` vanishes exactly when `x` is the norm of a unit of `L`. -/ |
| 747 | lemma cyclicClass_eq_zero_iff_norm {χ : QZChar Γ} [J : IsProGalois (ker χ) L Ω] (x : Kˣ) : |
| 748 | cyclicClass unitsRep χ (DiscreteUnits.ofBase Γ Ω (Additive.ofMul x)) = 0 ↔ |
| 749 | ∃ z : Lˣ, z.map (Algebra.norm K) = x := by |
| 750 | -- By `cyclicClass_spec` the symbol vanishes exactly on norms from the kernel of `χ`, whose |
| 751 | -- invariants are the units of `L`; `corestrictH0_ofBase_eq_norm` identifies this norm with the |
| 752 | -- field norm. |
| 753 | rw [(cyclicClass_spec χ).right] |
| 754 | refine (ofBase_bijective (K := L) _).surjective.exists.trans ?_ |
| 755 | simp [corestrictH0_ofBase_eq_norm, DiscreteUnits.ext_iff, Units.ext_iff] |
| 756 | |
| 757 | end New |
| 758 | |
| 759 | end CyclicNorm |
| 760 | |
| 761 | end |