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.GaloisCohomology.ContinuousCocycles |
| 4 | import TauCeti.GroupTheory.Coset.Basic |
| 5 | import TauCeti.GroupTheory.Index.Basic |
| 6 | import TauCeti.GroupTheory.TransversalWord |
| 7 | import Mathlib.GroupTheory.IndexNormal |
| 8 | import Lib.General.Groups.ProfiniteCharacters |
| 9 | |
| 10 | /-! |
| 11 | # Shapiro's lemma, corestriction and reduction of H² statements to steps of prime index |
| 12 | |
| 13 | Let `Γ` be a compact group, `U` an open subgroup and `M` a discrete `Γ`-module. `M.restrictTo U` is |
| 14 | `M` as a `U`-module, and `M.resH2 U` is restriction `H²(Γ, M) → H²(U, M)`. `M.funModule U` is the |
| 15 | module of functions `Γ ⧸ U → M` with `(g F) x = g (F (g⁻¹ x))`. The file proves the parts of |
| 16 | Shapiro's lemma that are needed, the norm from `U` on invariants with a projection formula for the |
| 17 | symbols `(χ, w)`, and the fact that a class in `H²` that dies on `U` is killed by `[Γ : U]`. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.DiscreteModule.shapiroZ1`, `New.DiscreteModule.shapiroH2`: restrict a cocycle to `U` and |
| 22 | evaluate it at the coset `U`. |
| 23 | * `New.DiscreteModule.shapiro_H0`, `New.DiscreteModule.shapiro_H1`, |
| 24 | `New.DiscreteModule.shapiroH2_injective`: the parts of Shapiro's lemma that are used. In degree |
| 25 | zero, every `Γ`-invariant function is `x ↦ x.out y` for some `U`-invariant `y`. In degree one, a |
| 26 | cocycle whose image is a coboundary is itself a coboundary. In degree two, the map is injective. |
| 27 | * `New.DiscreteModule.corestrictH0`: the norm from `U`. |
| 28 | `New.DiscreteModule.cyclicClass_corestrictH0` gives the projection formula: if `α` restricts on |
| 29 | `U` to `(χ|U, w)`, then `(χ, N w)` is `[Γ : U] α`. |
| 30 | * `New.DiscreteModule.mem_of_prime_step`: a class `α` in `H²(Γ, M)` lies in a subgroup `S` if it |
| 31 | dies on an open normal subgroup `W` and the vanishing of `α - s` (some `s ∈ S`) can be lifted |
| 32 | through normal steps of prime index. The proof climbs a chain of `l`-subgroups of a finite |
| 33 | quotient `Γ ⧸ W`, as in Sylow's theorem. |
| 34 | * `New.DiscreteModule.HoldsCorestrictions`: a group of cocycles of `Γ` contains the coboundaries and |
| 35 | corestrictions of a given group of cocycles of an open subgroup `U`; it is used in local duality. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.cyclicClass`: The symbol (χ, w) = δχ ∪ w in H²(G,M) of a continuous character χ: G → ℚ/ℤ |
| 39 | (`New.QZChar`) and an invariant w. It is the class of (g,h) ↦ carry(χ(g), χ(h))·w. |
| 40 | * `New.H2`: Continuous cohomology H²(G,M): continuous 2-cocycles of ρ modulo coboundaries of |
| 41 | continuous 1-cochains. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | Known; see `Lib.ClassField.GaloisCohomology.KummerCyclicClasses` for sources. |
| 46 | -/ |
| 47 | |
| 48 | @[expose] public section |
| 49 | |
| 50 | noncomputable section |
| 51 | |
| 52 | /-! |
| 53 | ## Shapiro's lemma, norms and corestriction for open subgroups |
| 54 | |
| 55 | Corestriction on `H²` is not defined as a map. `New.DiscreteModule.mapH2_sum_eq_index_smul` |
| 56 | expresses corestriction after restriction through a class `β` with values in the functions |
| 57 | `Γ ⧸ U → M`. This class is summed over the cosets by `New.DiscreteModule.sum`. |
| 58 | -/ |
| 59 | |
| 60 | section Corestriction |
| 61 | |
| 62 | open QuotientGroup MulAction Function AddMonoidHom Fintype |
| 63 | |
| 64 | variable {R Γ : Type} {H : Type*} [CommRing R] [Group Γ] [TopologicalSpace Γ] [IsTopologicalGroup Γ] |
| 65 | [Group H] {M : New.DiscreteModule R Γ} [CompactSpace Γ] (U : OpenSubgroup Γ) [TopologicalSpace H] |
| 66 | (φ : H →ₜ* Γ) |
| 67 | |
| 68 | /-- For a continuous homomorphism φ: H → Γ, the additive map from continuous ℚ/ℤ-valued |
| 69 | characters of Γ to those of H, χ ↦ χ∘φ. -/ |
| 70 | def New.QZChar.comap : QZChar Γ →+ QZChar H := pairMapZ1 φ LinearMap.id |
| 71 | |
| 72 | /-- An open normal subgroup `U` of the compact group `Γ` with cyclic quotient is the kernel of a |
| 73 | continuous character `Γ → ℚ/ℤ`. -/ |
| 74 | lemma New.QZChar.exists_ker_eq_of_isCyclic [U.Normal] (h_cyclic : IsCyclic (Γ ⧸ U.toSubgroup)) : |
| 75 | ∃ χ : ↥(QZChar Γ), ker χ = U.toSubgroup := by |
| 76 | -- Compose `Γ → Γ ⧸ U`, an isomorphism with `ZMod n` for `n = [Γ : U]`, and the embedding of |
| 77 | -- `ZMod n` in `ℚ/ℤ`. |
| 78 | let f : Γ → ZMod (Nat.card (Γ ⧸ U.toSubgroup)) := fun g ↦ |
| 79 | ((zmodCyclicMulEquiv h_cyclic).symm (g : Γ ⧸ U.toSubgroup)).toAdd |
| 80 | have hf_cont : Continuous f := by fun_prop |
| 81 | have hf_cocycle : ∀ g k : Γ, f (g * k) = |
| 82 | f g + Representation.trivial ℤ Γ (ZMod (Nat.card (Γ ⧸ U.toSubgroup))) g (f k) := by |
| 83 | simp [f] |
| 84 | refine ⟨ofZModCocycle _ ⟨f, hf_cont, hf_cocycle⟩, Subgroup.ext fun g ↦ ?_⟩ |
| 85 | have hf_eq_zero : f g = 0 ↔ g ∈ U.toSubgroup := by simp [f, MulEquiv.symm_apply_eq] |
| 86 | -- The character sends `g` to the image of `f g` in `ℚ/ℤ`, which vanishes exactly when `f g` does. |
| 87 | change QZ.ofZMod (Nat.card (Γ ⧸ U.toSubgroup)) (f g) = 0 ↔ g ∈ U.toSubgroup |
| 88 | exact (map_eq_zero_iff _ QZ.ofZMod_injective).trans hf_eq_zero |
| 89 | |
| 90 | namespace New.DiscreteModule |
| 91 | |
| 92 | /-! ### The Shapiro maps and the norm -/ |
| 93 | |
| 94 | /-- An element `u` of `U` fixes the coset `U`, so acting by `u` on a function `F : Γ ⧸ U → M` |
| 95 | and evaluating at the coset `U` gives `u` acting on the value `F U`. -/ |
| 96 | lemma funModule_apply_one (u : U.toSubgroup) (F : (M.funModule U).V) : |
| 97 | (M.funModule U).ρ u F ⟦1⟧ = (M.restrictTo U).ρ u (F ⟦1⟧) := by |
| 98 | -- Both sides are `u` applied to a value of `F`; the arguments agree as `u⁻¹` fixes the coset `U`. |
| 99 | refine congrArg (_ ∘ F) ?_ |
| 100 | simp [QuotientGroup.eq] |
| 101 | |
| 102 | /-- The Shapiro map on continuous 1-cocycles, Z¹(Γ, Fun(Γ/U, M)) → Z¹(U, M): restrict to U and |
| 103 | evaluate at the trivial coset. -/ |
| 104 | abbrev shapiroZ1 : ↥(Z1 (M.funModule U).ρ) →+ ↥(Z1 (M.restrictTo U).ρ) := |
| 105 | pairMapZ1 (ρ := (M.funModule U).ρ) (subgroupIncl U.toSubgroup) (LinearMap.proj ⟦1⟧) |
| 106 | (M.funModule_apply_one U) |
| 107 | |
| 108 | /-- The linear map H²(Γ, Fun(Γ/U,M)) → H²(U,M) given by restriction to U followed by evaluation |
| 109 | at the identity coset. -/ |
| 110 | abbrev shapiroH2 : New.H2 (M.funModule U).ρ →ₗ[R] New.H2 (M.restrictTo U).ρ := |
| 111 | pairMapH2 (ρ := (M.funModule U).ρ) (subgroupIncl U.toSubgroup) (LinearMap.proj ⟦1⟧) |
| 112 | (M.funModule_apply_one U) |
| 113 | |
| 114 | /-- The norm of a U-invariant y of M: the sum of g·y over the cosets gU in Γ/U. -/ |
| 115 | abbrev corestrictH0 (y : (M.restrictTo U).H0) : M.V := M.sum U fun x ↦ M.ρ x.out y |
| 116 | |
| 117 | /-! ### Shapiro's lemma -/ |
| 118 | |
| 119 | omit [IsTopologicalGroup Γ] [CompactSpace Γ] in |
| 120 | /-- A section of `Γ → Γ ⧸ U` adapted to `U`: for `U` open in `Γ` there is `s : Γ ⧸ U → Γ` that |
| 121 | sends the coset `U` to `1` (first clause), with `s x` in the coset `x` (second clause), and with |
| 122 | `(s x)⁻¹ g s (g⁻¹ x) ∈ U` for all `x` and `g` (third clause). -/ |
| 123 | lemma exists_coset_section : |
| 124 | ∃ s : Γ ⧸ U.toSubgroup → Γ, |
| 125 | (∀ g ∈ U.toSubgroup, s g = 1) ∧ |
| 126 | (∀ x : Γ ⧸ (U : Subgroup Γ), (s x)⁻¹ • x = ⟦1⟧) ∧ |
| 127 | ∀ (x : Γ ⧸ (U : Subgroup Γ)) (g : Γ), (s x)⁻¹ * g * s (g⁻¹ • x) ∈ U.toSubgroup := by |
| 128 | -- Choose a left transversal through `1`, the desired representative of the trivial coset. |
| 129 | obtain ⟨S, hS, h1⟩ := U.toSubgroup.exists_isComplement_left (1 : Γ) |
| 130 | let T : U.toSubgroup.LeftTransversal := ⟨S, hS⟩ |
| 131 | let s := U.toSubgroup.leftTransversalRep T |
| 132 | have hs := U.toSubgroup.leftTransversalRep_mk T |
| 133 | refine ⟨s, fun g hg ↦ ?_, fun x ↦ inv_smul_of_mk_eq (hs x), fun x g ↦ ?_⟩ |
| 134 | · rw [mk_eq_one_iff.mpr hg] |
| 135 | exact U.toSubgroup.leftTransversalRep_mk_of_mem T h1 |
| 136 | · exact TauCeti.lWord_def U.toSubgroup s x g ▸ TauCeti.lWord_mem U.toSubgroup s hs x g |
| 137 | |
| 138 | /-- Shapiro's lemma in degree zero. A `Γ`-invariant element `F` of the module of functions |
| 139 | `Γ ⧸ U → M` (an equivariant function) is `x ↦ x.out y` for some `U`-invariant `y` in `M`, where |
| 140 | `x.out` is the chosen representative of the coset `x`. This is the function summed in the norm |
| 141 | `New.DiscreteModule.corestrictH0`, so the sum of `F` is the norm of `y`. -/ |
| 142 | lemma shapiro_H0 (F : (M.funModule U).H0) : |
| 143 | ∃ y : (M.restrictTo U).H0, (fun x : Γ ⧸ U.toSubgroup ↦ M.ρ x.out y) = F.val := by |
| 144 | -- Take for `y` the value of `F` at the coset `U`. |
| 145 | have h_inv (g : Γ) : (M.funModule U).ρ g F.val = F.val := F.prop g |
| 146 | refine ⟨⟨F.val ⟦1⟧, fun u ↦ ?_⟩, funext fun x ↦ ?_⟩ |
| 147 | · rw [← funModule_apply_one, h_inv] |
| 148 | · -- `F x = F (x.out • U) = x.out • F U`, by the invariance of `F` under `x.out`. |
| 149 | have h_at : M.ρ x.out (F.val (x.out⁻¹ • x)) = F.val x := congrFun (h_inv x.out) x |
| 150 | simpa [← Quotient.mk_smul_out] using h_at |
| 151 | |
| 152 | /-- Shapiro's lemma in degree one, injectivity. If the restriction to `U` of a 1-cocycle `F` with |
| 153 | values in the functions `Γ ⧸ U → M`, evaluated at the coset `U`, is the coboundary of `m`, then |
| 154 | `F` is a coboundary. -/ |
| 155 | lemma shapiro_H1 (F : Z1 (M.funModule U).ρ) (m : M.V) |
| 156 | (h_cob : ∀ u : U.toSubgroup, F.val u ⟦1⟧ = M.ρ u m - m) : |
| 157 | ∃ n : (M.funModule U).V, ∀ g : Γ, F.val g = ρ (M.funModule U) g n - n := by |
| 158 | -- Put `n (g U) = g m - F g (g U)`; the hypothesis makes this independent of the representative. |
| 159 | have h_cocycle (g k : Γ) : F.val (g * k) = F.val g + (M.funModule U).ρ g (F.val k) := |
| 160 | F.prop.right g k |
| 161 | have h_well (g : Γ) (u : U.toSubgroup) : |
| 162 | M.ρ (g * u) m - F.val (g * u) ↑(g * u) = M.ρ g m - F.val g g := by |
| 163 | simp [h_cocycle, mk_mul_of_mem g u.prop, h_cob u, ← sub_sub] |
| 164 | refine ⟨Quotient.lift (fun g : Γ ↦ M.ρ g m - F.val g g) ?_, fun g ↦ funext fun x ↦ ?_⟩ |
| 165 | · rintro _ g ⟨u, rfl⟩ |
| 166 | exact h_well g ⟨_, u.prop⟩ |
| 167 | · -- Every coset is `g * k U`. |
| 168 | obtain ⟨k, rfl⟩ := (mk_surjective.comp (mul_left_surjective g)) x |
| 169 | simp [h_cocycle] |
| 170 | |
| 171 | /-- Shapiro's lemma in degree two, injectivity: for U open in the compact group Γ, the map |
| 172 | H²(Γ, Fun(Γ/U, M)) → H²(U, M), restriction followed by evaluation at the trivial coset, is |
| 173 | injective. -/ |
| 174 | lemma shapiroH2_injective : Injective (M.shapiroH2 U) := by |
| 175 | -- With a section `s` of `Γ → Γ ⧸ U`, let `t x g = (s x)⁻¹ * g * s (g⁻¹ • x)` in `U`. If the |
| 176 | -- image of the cocycle `F` is the coboundary of `c`, then `F` is the coboundary of `b` below. |
| 177 | obtain ⟨s, -, hs_inv, hs_mem⟩ := exists_coset_section U |
| 178 | let t (x : Γ ⧸ U.toSubgroup) (g : Γ) : U := ⟨(s x)⁻¹ * g * s (g⁻¹ • x), hs_mem x g⟩ |
| 179 | rw [injective_iff_map_eq_zero] |
| 180 | rintro ⟨F, hF_cont, h_cocycle⟩ h_zero |
| 181 | obtain ⟨c, hc_cont, hc : ∀ a b : U, F (a, b) ⟦1⟧ = M.ρ a (c b) - c (a * b) + c a⟩ := |
| 182 | (QuotientAddGroup.eq_zero_iff _).mp h_zero |
| 183 | let b (g : Γ) (x : Γ ⧸ U.toSubgroup) : M := |
| 184 | M.ρ (s x) (c (t x g)) - F (s x, t x g) x + F (g, s (g⁻¹ • x)) x |
| 185 | refine (QuotientAddGroup.eq_zero_iff _).mpr ⟨b, by fun_prop, fun g k ↦ funext fun x ↦ ?_⟩ |
| 186 | change F (g, k) x = M.ρ g (b k (g⁻¹ • x)) - b (g * k) x + b g x |
| 187 | -- Three instances of the cocycle identity, evaluated at `x`. |
| 188 | have h_cocycle_at (p q r : Γ) : |
| 189 | F (p * q, r) x = F (p, q * r) x - F (p, q) x + M.ρ p (F (q, r) (p⁻¹ • x)) := |
| 190 | congrFun (h_cocycle p q r) x |
| 191 | -- The identities of `s` and `t` that make the terms match. |
| 192 | have h_t_mul : (t x g : Γ) * t (g⁻¹ • x) k = t x (g * k) := by simp [t, mul_assoc, mul_smul] |
| 193 | have h_st (y : Γ ⧸ U.toSubgroup) (h : Γ) : s y * t y h = h * s (h⁻¹ • y) := by |
| 194 | simp [t, mul_assoc] |
| 195 | have h_ρ_st (v : M.V) : M.ρ (s x) (M.ρ (t x g) v) = M.ρ g (M.ρ (s (g⁻¹ • x)) v) := by |
| 196 | simpa using congrArg (fun γ : Γ ↦ M.ρ γ v) (h_st x g) |
| 197 | -- The value of `F (t x g, t (g⁻¹ • x) k)` at the coset `(s x)⁻¹ • x`, which is `U`, from `hc`. |
| 198 | have hc_at : F (t x g, t (g⁻¹ • x) k) ((s x)⁻¹ • x) = |
| 199 | M.ρ (t x g) (c (t (g⁻¹ • x) k)) - c (t x (g * k)) + c (t x g) := by |
| 200 | rw [hs_inv, hc, (Subtype.ext h_t_mul : t x g * t (g⁻¹ • x) k = t x (g * k))] |
| 201 | linear_combination (norm := skip) h_cocycle_at g k (s (k⁻¹ • g⁻¹ • x)) + |
| 202 | h_cocycle_at (s x) (t x g) (t (g⁻¹ • x) k) - h_cocycle_at g (s (g⁻¹ • x)) (t (g⁻¹ • x) k) |
| 203 | -- Unfold `b` and rewrite by these identities; then all terms cancel. |
| 204 | simp only [b, hc_at, h_ρ_st, h_st, h_t_mul, map_sub, map_add, mul_inv_rev, mul_smul] |
| 205 | abel |
| 206 | |
| 207 | /-! ### Corestriction and restriction of classes in `H²` -/ |
| 208 | |
| 209 | lemma index_smul_eq_sum_const (m : M.V) : U.index • m = M.sum U fun _ : Γ ⧸ U.toSubgroup ↦ m := by |
| 210 | simp [sum, card_eq_nat_card, Subgroup.index_eq_card] |
| 211 | |
| 212 | /-- Corestriction after restriction is multiplication by the index. If `β` is a class with values |
| 213 | in the functions `Γ ⧸ U → M` whose Shapiro image is the restriction of `α` to `U`, then summing |
| 214 | `β` over the cosets gives `[Γ : U] α`. -/ |
| 215 | lemma mapH2_sum_eq_index_smul (β : New.H2 (M.funModule U).ρ) (α : M.H2) : |
| 216 | M.resH2 U α = M.shapiroH2 U β → (M.sum U).mapH2 β = U.index • α := by |
| 217 | refine α.ind' fun x h_res ↦ ?_ |
| 218 | -- The restriction of the class of `x` is the Shapiro image of `x` with values in the constant |
| 219 | -- functions, so by Shapiro's lemma `β` is that class. |
| 220 | have h_shapiro : M.shapiroH2 U ((M.const U).mapH2 ⟦x⟧) = M.shapiroH2 U β := h_res |
| 221 | obtain rfl : (M.const U).mapH2 ⟦x⟧ = β := shapiroH2_injective U h_shapiro |
| 222 | -- Summing a constant function multiplies by the index. |
| 223 | refine (congrArg (Quotient.mk _) ?_).symm |
| 224 | ext p |
| 225 | change U.index • x.val p = M.sum U fun _ : Γ ⧸ U.toSubgroup ↦ x.val p |
| 226 | exact index_smul_eq_sum_const U (x.val p) |
| 227 | |
| 228 | /-- The projection formula for symbols. Suppose `v` is the norm of the `U`-invariant `w`, and the |
| 229 | restriction of `α` to `U` is `(χ|U, w)`. Here `χ|U` is `QZChar.comap (subgroupIncl U) χ`, `χ` |
| 230 | composed with the inclusion `U → Γ`, and `H0` denotes invariants. Then `(χ, v)` is `[Γ : U] α`. -/ |
| 231 | lemma cyclicClass_corestrictH0 (χ : ↥(QZChar Γ)) |
| 232 | (w : ↥(M.restrictTo U).H0) {v : M.H0} (h_norm : M.corestrictH0 U w = v) (α : M.H2) |
| 233 | (h_res : M.resH2 U α = cyclicClass (M.restrictTo U).ρ (QZChar.comap (subgroupIncl U) χ) w) : |
| 234 | cyclicClass M.ρ χ v = U.index • α := by |
| 235 | -- Since `w` is `U`-invariant, `g w` depends only on the coset `gU`. |
| 236 | have h_out (g : Γ) : M.ρ (g : Γ ⧸ U.toSubgroup).out w = M.ρ g w := by |
| 237 | obtain ⟨u, hu⟩ := mk_out_eq_mul U.toSubgroup g |
| 238 | simp [hu, show M.ρ u w = w from w.prop u] |
| 239 | -- Apply `mapH2_sum_eq_index_smul` to the symbol of `χ` and the invariant function `F : gU ↦ g w`. |
| 240 | let F : (M.funModule U.toSubgroup).H0 := ⟨fun x : Γ ⧸ U.toSubgroup ↦ M.ρ x.out w, |
| 241 | by simp [funext_iff, forall_mk, h_out]⟩ |
| 242 | -- The value of `F` at the coset `U` is `w`. |
| 243 | have h_value : cyclicClass (M.restrictTo U).ρ (QZChar.comap (subgroupIncl U) χ) w = |
| 244 | M.shapiroH2 U (cyclicClass (M.funModule U).ρ χ F) := by |
| 245 | have h_F_one : F.val ⟦1⟧ = (w : M.V) := by simpa using h_out 1 |
| 246 | refine congrArg (Quotient.mk _) (Subtype.ext (funext fun p ↦ ?_)) |
| 247 | -- Both sides are `carry (χ u, χ u') •` a value: `w` on the left, `F` at the coset `U` on the |
| 248 | -- right (the Shapiro image evaluates there). |
| 249 | change (χ.val p.fst).carry (χ.val p.snd) • (w : M.V) = |
| 250 | (χ.val p.fst).carry (χ.val p.snd) • F.val ⟦1⟧ |
| 251 | rw [h_F_one] |
| 252 | -- The sum of the values of `F` is the norm of `w`, which is `v`. |
| 253 | have h_sum : cyclicClass M.ρ χ v = (M.sum U).mapH2 (cyclicClass (M.funModule U).ρ χ F) := by |
| 254 | refine congrArg (Quotient.mk _) (Subtype.ext (funext fun p ↦ ?_)) |
| 255 | simp [F, show M.sum U.toSubgroup (fun x ↦ M.ρ x.out w) = v from h_norm] |
| 256 | rw [h_sum, mapH2_sum_eq_index_smul U _ α (h_res.trans h_value)] |
| 257 | |
| 258 | /-- For Γ compact and U an open subgroup, a class in H²(Γ, M) whose restriction to U vanishes is |
| 259 | killed by the index [Γ : U]. -/ |
| 260 | lemma index_smul_eq_zero_of_resH2 {x : M.H2} : M.resH2 U x = 0 → U.index • x = 0 := by |
| 261 | intro h_res |
| 262 | rw [← mapH2_sum_eq_index_smul U 0 x (by rw [h_res, map_zero]), map_zero] |
| 263 | |
| 264 | omit [IsTopologicalGroup Γ] [CompactSpace Γ] in |
| 265 | /-- Let `w = k • r` be a `Γ`-invariant element of `M`, and `U` a subgroup of `Γ` that fixes `r` |
| 266 | and on which `k • χ` vanishes. Then the class `(χ, w) = δχ ∪ w` in `H²(Γ, M)` restricts to zero |
| 267 | on `U`. -/ |
| 268 | lemma resH2_cyclicClass_eq_zero_of_nsmul_eq {χ : ↥(QZChar Γ)} {k : ℕ} {r : M.V} |
| 269 | {U : Subgroup Γ} {w : M.H0} (h_w : k • r = ↑w) (h_fix : ∀ g : U, M.ρ g r = r) |
| 270 | (h_kχ : ∀ g : U, k • χ.val g = 0) : M.resH2 U (cyclicClass M.ρ χ w) = 0 := by |
| 271 | obtain ⟨w, hw_inv⟩ := w |
| 272 | obtain rfl : k • r = w := h_w |
| 273 | -- On `U` the element `r` is itself invariant, and the restricted character is killed by `k`. |
| 274 | let r' : (M.restrictTo U).H0 := ⟨r, h_fix⟩ |
| 275 | have hχ : k • QZChar.comap (subgroupIncl U) χ = 0 := Subtype.ext (funext h_kχ) |
| 276 | -- The symbol is additive in both arguments: `(χ, k • r) = (k • χ, r)` on `U`. The first step |
| 277 | -- holds by definition: restricting a symbol restricts the character and the invariant. |
| 278 | calc _ = cyclicClass (M.restrictTo U).ρ (QZChar.comap (subgroupIncl U) χ) (k • r') := rfl |
| 279 | _ = cyclicClass (M.restrictTo U).ρ (k • QZChar.comap (subgroupIncl U) χ) r' := by |
| 280 | simp only [map_nsmul, nsmul_apply] |
| 281 | _ = 0 := by rw [hχ, map_zero, AddMonoidHom.zero_apply] |
| 282 | |
| 283 | omit [IsTopologicalGroup Γ] [CompactSpace Γ] in |
| 284 | /-- `resH2_cyclicClass_eq_zero_of_nsmul_eq` with its two conditions on `U` (`U` fixes `r`, and |
| 285 | `k • χ` vanishes on `U`) joined in one hypothesis. -/ |
| 286 | lemma resH2_cyclicClass_eq_zero {χ : ↥(QZChar Γ)} {k : ℕ} {r : M.V} {U : Subgroup Γ} : |
| 287 | ∀ {w : M.H0}, (k : ℕ) • r = ↑w → |
| 288 | (∀ g : U, M.ρ g r = r ∧ k • χ.val g = 0) → M.resH2 U (cyclicClass M.ρ χ w) = 0 := |
| 289 | fun h_w h_U ↦ |
| 290 | resH2_cyclicClass_eq_zero_of_nsmul_eq h_w (fun g ↦ (h_U g).left) fun g ↦ (h_U g).right |
| 291 | |
| 292 | end New.DiscreteModule |
| 293 | |
| 294 | end Corestriction |
| 295 | |
| 296 | /-! ## Reduction to steps of prime index and corestriction of cocycles -/ |
| 297 | |
| 298 | section SylowReduction |
| 299 | |
| 300 | open QuotientGroup QuotientAddGroup Subgroup |
| 301 | |
| 302 | namespace New.DiscreteModule |
| 303 | |
| 304 | variable {R Γ : Type} [CommRing R] [Group Γ] [TopologicalSpace Γ] [IsTopologicalGroup Γ] |
| 305 | {M : DiscreteModule R Γ} [CompactSpace Γ] |
| 306 | |
| 307 | /-- The group `Y ≤ Z¹(Γ, M)` of cocycles contains every coboundary and a corestriction of each |
| 308 | cocycle in `Y' ≤ Z¹(U, M)`, for an open subgroup `U` of `Γ`. -/ |
| 309 | structure HoldsCorestrictions (U : OpenSubgroup Γ) (Y' : AddSubgroup (Z1 (M.restrictTo U).ρ)) |
| 310 | (Y : AddSubgroup (Z1 M.ρ)) : Prop where |
| 311 | /-- Every coboundary `g ↦ g m - m` lies in `Y`. -/ |
| 312 | coboundary_mem : ∀ m : M.V, M.coboundary m ∈ Y |
| 313 | /-- Each `y ∈ Y'` is the Shapiro image (restrict to `U`, evaluate at the trivial coset) of a |
| 314 | cocycle `F` with values in the functions `Γ ⧸ U → M` whose sum over `Γ ⧸ U` lies in `Y`. -/ |
| 315 | exists_corestriction : |
| 316 | ∀ y ∈ Y', ∃ F : ↥(Z1 (M.funModule U).ρ), M.shapiroZ1 U F = y ∧ (M.sum U).mapZ1 F ∈ Y |
| 317 | |
| 318 | omit [IsTopologicalGroup Γ] [CompactSpace Γ] in |
| 319 | /-- If the restriction of `α` to `U ⊓ V`, seen as a subgroup of `V`, vanishes, then so does |
| 320 | its restriction to `U ⊓ V` seen as a subgroup of `U`. -/ |
| 321 | lemma resH2_subgroupOf_eq_zero_symm {U V : Subgroup Γ} {α : M.H2} : |
| 322 | (M.restrictTo V).resH2 (U.subgroupOf V) (M.resH2 V α) = 0 → |
| 323 | (M.restrictTo U).resH2 (V.subgroupOf U) (M.resH2 U α) = 0 := by |
| 324 | -- Pull the vanishing class back along the identification of the two copies of `U ⊓ V`. |
| 325 | let swap : V.subgroupOf U →ₜ* U.subgroupOf V := |
| 326 | .mk (.mk' (fun g ↦ ⟨⟨g, Subgroup.mem_subgroupOf.mp g.prop⟩, g.val.prop⟩) (by tauto)) |
| 327 | ((continuous_subtypeVal.comp continuous_subtypeVal).subtype_mk _ |>.subtype_mk _) |
| 328 | intro h_zero |
| 329 | -- By definition, restricting to `U` and then to `U ⊓ V` is the pull-back along `swap` of |
| 330 | -- restricting to `V` and then to `U ⊓ V`. |
| 331 | have h_comp : (M.restrictTo U).resH2 (V.subgroupOf U) (M.resH2 U α) = |
| 332 | (pairMapH2 swap LinearMap.id) ((M.restrictTo V).resH2 (U.subgroupOf V) (M.resH2 V α)) := by |
| 333 | induction α using QuotientAddGroup.induction_on |
| 334 | rfl |
| 335 | rw [h_comp, h_zero, map_zero] |
| 336 | |
| 337 | /-- In a finite group `G`, let `K` be a subgroup of prime-power order `l ^ n` for a prime `l` |
| 338 | dividing the index `K.index`. Then `K` lies as a normal subgroup of relative index `l` in a |
| 339 | subgroup `L` of `G` of order `l ^ (n + 1)`. -/ |
| 340 | private lemma exists_subgroup_card_pow_succ_normal {G : Type*} [Group G] [Finite G] {l n : ℕ} |
| 341 | (hl : l.Prime) {K : Subgroup G} (hK : Nat.card K = l ^ n) (hdvd : l ∣ K.index) : |
| 342 | ∃ L : Subgroup G, |
| 343 | Nat.card L = l ^ (n + 1) ∧ K ≤ L ∧ K.relIndex L = l ∧ (K.subgroupOf L).Normal := by |
| 344 | have pow_dvd : l ^ (n + 1) ∣ Nat.card G := |
| 345 | calc l ^ (n + 1) = Nat.card K * l := by rw [pow_succ, hK] |
| 346 | _ ∣ Nat.card K * K.index := mul_dvd_mul_left (Nat.card K) hdvd |
| 347 | _ = Nat.card G := K.card_mul_index |
| 348 | obtain ⟨L, card_L, K_le⟩ : ∃ L : Subgroup G, Nat.card L = l ^ (n + 1) ∧ K ≤ L := |
| 349 | Sylow.exists_subgroup_card_pow_succ (hp := ⟨hl⟩) pow_dvd hK |
| 350 | -- Indices multiply along `⊥ ≤ K ≤ L`: `l ^ n * [L : K] = l ^ (n + 1)`. |
| 351 | have index_eq : K.relIndex L = l := |
| 352 | TauCeti.index_eq_of_natCard_eq_mul (pow_pos hl.pos n) |
| 353 | ((Nat.card_congr (subgroupOfEquivOfLe K_le).toEquiv).trans hK) |
| 354 | (card_L.trans (pow_succ l n)) |
| 355 | have h_minFac : l = (Nat.card L).minFac := by simp [card_L, hl.pow_minFac] |
| 356 | have hK_normal : (K.subgroupOf L).Normal := |
| 357 | normal_of_index_eq_minFac_card (index_eq.trans h_minFac) |
| 358 | exact ⟨L, card_L, K_le, index_eq, hK_normal⟩ |
| 359 | |
| 360 | /-- Let `S ≤ H²(Γ, M)`, and let `α` vanish on an open normal subgroup `W`. Suppose that for |
| 361 | all open `W ≤ V ≤ U` with `V` normal of prime index in `U`: if `α - s` vanishes on `V` for |
| 362 | some `s ∈ S`, then `α - s'` vanishes on `U` for some `s' ∈ S`. Then `α ∈ S`. -/ |
| 363 | lemma mem_of_prime_step (S : AddSubgroup M.H2) {α : M.H2} {W : OpenSubgroup Γ} [W.Normal] |
| 364 | (hW : M.resH2 W α = 0) |
| 365 | (h_step : ∀ (U : OpenSubgroup Γ) (V : OpenSubgroup U.toSubgroup) [V.Normal], W ≤ U → |
| 366 | W.toSubgroup.subgroupOf U ≤ V → |
| 367 | V.index.Prime → |
| 368 | ∀ s ∈ S, |
| 369 | (M.restrictTo U).resH2 V (M.resH2 U (α - s)) = 0 → ∃ s' ∈ S, M.resH2 U (α - s') = 0) : |
| 370 | α ∈ S := by |
| 371 | -- Suppose that a prime `l` divides the order of `α` modulo `S`. |
| 372 | suffices addOrderOf (mk' S α) = 1 by simpa |
| 373 | refine (addOrderOf (mk' S α)).eq_one_iff_not_exists_prime_dvd.mpr fun l l_prime l_dvd ↦ ?_ |
| 374 | have comap_open {L : Subgroup (Γ ⧸ W.1)} : IsOpen (SetLike.coe (comap (mk' W.1) L)) := |
| 375 | isOpen_mono (le_comap_mk' _ L) W.isOpen' |
| 376 | -- Take a maximal `l`-subgroup `K` of `Γ ⧸ W` on whose preimage some `α - s` dies. |
| 377 | let Dies (U : Subgroup Γ) : Prop := ∃ s ∈ S, M.resH2 U (α - s) = 0 |
| 378 | let Good : Set (Subgroup (Γ ⧸ W.toSubgroup)) := |
| 379 | {L | ∃ n : ℕ, Dies (comap (mk' W.toSubgroup) L) ∧ Nat.card L = l ^ n} |
| 380 | -- The trivial subgroup is good: its preimage is `W`, on which `α - 0` dies. |
| 381 | have hW_dies : M.resH2 (comap (mk' W.toSubgroup) ⊥) (α - 0) = 0 := by |
| 382 | rwa [MonoidHom.comap_bot, QuotientGroup.ker_mk', sub_zero] |
| 383 | have h_bot : ⊥ ∈ Good := ⟨0, ⟨0, S.zero_mem, hW_dies⟩, by simp⟩ |
| 384 | obtain ⟨K, ⟨n, ⟨s, hs, hK_dies⟩, card_K⟩, K_max⟩ : |
| 385 | ∃ K : Subgroup (Γ ⧸ W.toSubgroup), Maximal (· ∈ Good) K := |
| 386 | Good.toFinite.exists_maximal ⟨⊥, h_bot⟩ |
| 387 | -- A class that dies on an open subgroup is killed by its index. So the index of `K` kills `α` |
| 388 | -- modulo `S`, `l` divides it, and `K` lies in a subgroup `L` of order `l ^ (n + 1)`. |
| 389 | have index_kills : K.index • mk' S α = 0 := by |
| 390 | let UK : OpenSubgroup Γ := ⟨comap (mk' W.toSubgroup) K, comap_open⟩ |
| 391 | have h_index : UK.index = K.index := by simp [UK, index_comap] |
| 392 | have hs_zero : mk' S s = 0 := (eq_zero_iff s).mpr hs |
| 393 | calc K.index • mk' S α = mk' S (UK.index • (α - s)) := by |
| 394 | rw [map_nsmul, map_sub, hs_zero, sub_zero, h_index] |
| 395 | _ = 0 := by rw [index_smul_eq_zero_of_resH2 UK hK_dies, map_zero] |
| 396 | obtain ⟨L, card_L, K_le, index_eq, hK_normal⟩ : |
| 397 | ∃ L : Subgroup (Γ ⧸ W.toSubgroup), |
| 398 | Nat.card L = l ^ (n + 1) ∧ K ≤ L ∧ K.relIndex L = l ∧ (K.subgroupOf L).Normal := |
| 399 | exists_subgroup_card_pow_succ_normal l_prime card_K |
| 400 | (l_dvd.trans (addOrderOf_dvd_of_nsmul_eq_zero index_kills)) |
| 401 | -- `K` is normal of index `l` in `L`, so `h_step` lifts the vanishing to `L`, against maximality. |
| 402 | let U : OpenSubgroup Γ := ⟨comap (mk' W.toSubgroup) L, comap_open⟩ |
| 403 | let V : OpenSubgroup U.toSubgroup := |
| 404 | ⟨(comap (mk' W.toSubgroup) K).subgroupOf U, subgroupOf_isOpen _ _ comap_open⟩ |
| 405 | have hV_normal : V.Normal := hK_normal.comap (MonoidHom.subgroupComap (mk' W.toSubgroup) L) |
| 406 | have V_prime : V.index.Prime := by |
| 407 | simp [U, V, ← relIndex.eq_1, relIndex_comap, map_comap_eq_self, index_eq, l_prime] |
| 408 | have h_dies_V : (M.restrictTo U).resH2 V (M.resH2 U (α - s)) = 0 := |
| 409 | resH2_subgroupOf_eq_zero_symm (by rw [hK_dies, map_zero]) |
| 410 | have hW_le_V : W.toSubgroup.subgroupOf U ≤ V := fun _ hg ↦ le_comap_mk' W.toSubgroup K hg |
| 411 | have dies_L : Dies (comap (mk' W.toSubgroup) L) := |
| 412 | h_step U V (le_comap_mk' W.toSubgroup L) hW_le_V V_prime s hs h_dies_V |
| 413 | have L_le : L ≤ K := K_max ⟨n + 1, dies_L, card_L⟩ K_le |
| 414 | exact l_prime.ne_one (index_eq.symm.trans (relIndex_eq_one.mpr L_le)) |
| 415 | |
| 416 | end New.DiscreteModule |
| 417 | |
| 418 | end SylowReduction |
| 419 | |
| 420 | end |