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 | import Mathlib.Algebra.Module.StablyFree.Basic |
| 4 | import Mathlib.GroupTheory.Nilpotent |
| 5 | public import Lib.General.Algebra.CartanMap |
| 6 | public import Lib.ClassField.GaloisCohomology.KummerCyclicClasses |
| 7 | public import Lib.ClassField.Places.ProfiniteGalois |
| 8 | import Lib.ClassField.Local.InvariantMap |
| 9 | import Lib.ClassField.LocalDuality.KummerFiniteness |
| 10 | import Lib.ClassField.Places.LocalFields |
| 11 | |
| 12 | /-! |
| 13 | # The inequality of local Tate duality for orthogonal groups of cocycles |
| 14 | |
| 15 | Throughout, `k` is a local field with absolute Galois group `Γ` (`New.IsLocalGalois`) and `l` is a |
| 16 | prime. The inequality of local duality is proved as a count of cocycles, for a finite discrete |
| 17 | module `M` and its dual `Hom(M, Ωˣ)`. |
| 18 | |
| 19 | * `New.card_mul_card_le_of_le_pairingAnnihilator`: for `M` killed by a power of `l`, orthogonal |
| 20 | groups of cocycles in `Hom(M, Ωˣ)` and `M` have `#X · #W ≤ #M ^ (2 + d)`, where `O` is the |
| 21 | valuation ring of `k` and `#(O / l) = l ^ d`, if `Γ` acts by elements of `l`-power order. |
| 22 | * `New.DiscreteModule.HoldsCorestrictions.pairingAnnihilator_le`: annihilators descend from an open |
| 23 | subgroup whose index is invertible on the module. |
| 24 | * `New.DiscreteModule.local_duality_card_dvd`: for an open subgroup `U` of index prime to `#M`, a |
| 25 | largest orthogonal pair of cocycle groups over `U` bounds `#L^⊥ · #L` for cocycle groups `L` over |
| 26 | `Γ`. |
| 27 | |
| 28 | `New.Z1` is the group of continuous cocycles (not classes), `New.unitsModule` is `Ωˣ` written |
| 29 | additively, `unitsRep` is the action of `Γ` on this `Ωˣ` (so `H2 unitsRep` is `H²(Γ, Ωˣ)`), |
| 30 | `New.DiscreteModule.evalCup` is the cup product `Z¹(Hom(M, Ωˣ)) × Z¹(M) → H²(Ωˣ)`, and |
| 31 | `New.pairingAnnihilator b L` is the annihilator of `L` in the right-hand group of the pairing `b`. |
| 32 | |
| 33 | Notions from other files: |
| 34 | * `New.DiscreteModule`: A discrete Γ-module over R: an R-module with the discrete topology and a |
| 35 | continuous R-linear action of the topological group Γ. |
| 36 | * `New.DiscreteModule.cartierDual`: For finite M, the discrete Γ-module Hom(M, Ω^×) of additive maps |
| 37 | to `New.unitsModule`, with (gf)(m) = g f(g⁻¹m). |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | Known; see `Lib.ClassField.LocalDuality.CrystallineDuality` for sources. |
| 42 | -/ |
| 43 | |
| 44 | @[expose] public section |
| 45 | |
| 46 | namespace New |
| 47 | |
| 48 | open DiscreteUnits Cohomology DFunLike DiscreteModule QZChar NeZero QZ Ideal AddSubgroup |
| 49 | IsLocalGalois Nat Function |
| 50 | |
| 51 | variable {Γ k Ω : Type} [Group Γ] [TopologicalSpace Γ] [Field k] [Field Ω] [Algebra k Ω] |
| 52 | [MulSemiringAction Γ Ω] {A : ValuationSubring Ω} [J : IsLocalGalois Γ k A] |
| 53 | {l r : ℕ} [Fact l.Prime] {R S : Type} [CommRing R] [CommRing S] |
| 54 | {M : DiscreteModule R Γ} {N : DiscreteModule S Γ} |
| 55 | |
| 56 | /-- Over a local field `k`, a continuous character `χ : Γ → ℚ/ℤ` whose cyclic class `δχ ∪ w` in |
| 57 | `H²(Γ, Ωˣ)` vanishes for every `w` in `kˣ` is zero. -/ |
| 58 | lemma Cohomology.char_eq_zero_of_cyclicClass_eq_zero {χ : QZChar Γ} |
| 59 | (h : ∀ w : Additive kˣ, cyclicClass unitsRep χ (DiscreteUnits.ofBase Γ Ω w) = 0) (g : Γ) : |
| 60 | χ.val g = 0 := by |
| 61 | -- The class with invariant `χ g` dies over the fixed field of `ker χ`, since restriction |
| 62 | -- multiplies the invariant by the index. So it is a symbol `(χ, w)`, hence zero. |
| 63 | have h_index : (ker χ).index • χ.val g = 0 := |
| 64 | congrArg Multiplicative.toAdd |
| 65 | (by simpa using (ker χ).pow_index_mem g : toHom χ g ^ (ker χ).index = 1) |
| 66 | obtain ⟨w, hw⟩ : ∃ w : kˣ, classOfInvariant Γ k A (χ.val g) = cyclicClass _ χ |
| 67 | (ofBase Γ Ω (.ofMul w)) := |
| 68 | ((cyclicClass_spec χ).1 _).mp (resH2_classOfInvariant_eq_zero _ h_index) |
| 69 | -- `classOfInvariant` is injective |
| 70 | exact (map_eq_zero_iff _ isClassOfInvariant_classOfInvariant.left).mp (hw.trans (h _)) |
| 71 | |
| 72 | /-- Let `k` be a local field whose absolute Galois group `Γ` acts on an algebraically closed |
| 73 | extension `Ω` with valuation subring `A` (`IsLocalGalois Γ k A`), let `U` be an open subgroup of |
| 74 | `Γ`, let `M` and `N` be discrete `Γ`-modules over commutative rings `R` and `S`, and let |
| 75 | `b : M × N → Ωˣ` be a `Γ`-equivariant biadditive pairing. Suppose `Y` is a subgroup of `Z1 N.ρ` |
| 76 | containing the coboundaries and corestrictions of a subgroup `Y'` of `Z1 (N.restrictTo U).ρ` |
| 77 | (`N.HoldsCorestrictions U Y' Y`). If a 1-cocycle `z : Z1 M.ρ` annihilates `Y` under the cup |
| 78 | product `cupProduct (unitsModule Γ) M N b`, then its restriction |
| 79 | `pairMapZ1 (subgroupIncl (U : Subgroup Γ)) .id _ z` to `U` annihilates `Y'` under the cup product |
| 80 | over `U`. -/ |
| 81 | private lemma restrict_mem_pairingAnnihilator_of_holdsCorestrictions {U : OpenSubgroup Γ} |
| 82 | {Y : AddSubgroup ↥(Z1 N.ρ)} {Y' : AddSubgroup ↥(Z1 (N.restrictTo U).ρ)} |
| 83 | (hY : N.HoldsCorestrictions U Y' Y) |
| 84 | {b : (M.restrictTo (U : Subgroup Γ)).V →+ (N.restrictTo (U : Subgroup Γ)).V →+ |
| 85 | (unitsModule (U : Subgroup Γ)).V} |
| 86 | (h_equivariant : ∀ (g : Γ) (x : M.V) (y : N.V), |
| 87 | (b ((M.ρ g) x)) ((N.ρ g) y) = ((unitsModule Γ).ρ g) ((b x) y)) |
| 88 | {z : Z1 M.ρ} |
| 89 | (hz : z ∈ pairingAnnihilator (cupProduct (unitsModule Γ) M N b h_equivariant).flip Y) : |
| 90 | pairMapZ1 (subgroupIncl (U : Subgroup Γ)) .id (fun _ _ ↦ rfl) z ∈ |
| 91 | pairingAnnihilator |
| 92 | (cupProduct (unitsModule U.toSubgroup) (M.restrictTo U.toSubgroup) |
| 93 | (N.restrictTo U.toSubgroup) b fun g : (U : Subgroup Γ) ↦ h_equivariant g).flip Y' := by |
| 94 | let z' : Z1 (M.restrictTo (U : Subgroup Γ)).ρ := |
| 95 | pairMapZ1 (subgroupIncl (U : Subgroup Γ)) .id (fun _ _ ↦ rfl) z |
| 96 | intro y hy |
| 97 | -- `y` is the Shapiro image of a cocycle `F` in functions on `Γ ⧸ U` with sum in `Y`. |
| 98 | obtain ⟨F, rfl, hF : (N.sum U).mapZ1 F ∈ Y⟩ := hY.exists_corestriction y hy |
| 99 | -- Pair `z` with the Shapiro lift `F` of `y`, in functions on `Γ ⧸ U`. |
| 100 | let β : ((unitsModule Γ).funModule (U : Subgroup Γ)).H2 := |
| 101 | cupProduct ((unitsModule Γ).funModule (U : Subgroup Γ)) M (N.funModule _) |
| 102 | (.mk' (fun m ↦ (b m).compLeft _) (by bound)) (by simp [funext_iff, h_equivariant]) z F |
| 103 | -- Its Shapiro image is the class to be killed; its sum over `Γ ⧸ U` vanishes by `hz`. |
| 104 | have h_shapiro_β : |
| 105 | shapiroH2 U β = |
| 106 | cupProduct (unitsModule (U : Subgroup Γ)) _ _ b (fun g ↦ h_equivariant g) z' |
| 107 | (N.shapiroZ1 U F) := |
| 108 | -- Both are classes of cocycles that agree pointwise, by evaluating `F` at the trivial coset. |
| 109 | congrArg (Quotient.mk _) |
| 110 | (Subtype.ext (funext fun _ ↦ congrArg (b _) (N.funModule_apply_one U ..))) |
| 111 | have h_sum_β : |
| 112 | ((unitsModule Γ).sum _).mapH2 β = |
| 113 | cupProduct (unitsModule Γ) M N b h_equivariant z ((N.sum _).mapZ1 F) := |
| 114 | -- The cocycles agree pointwise: the sum over the cosets commutes with the action. |
| 115 | congrArg (Quotient.mk _) (by |
| 116 | simp [← (sum ..).isIntertwining] |
| 117 | simp [sum]) |
| 118 | -- The Shapiro image is the restriction of a class of invariant `s`, and the sum has |
| 119 | -- invariant `U.index • s`; so `U.index • s = 0` and the restriction vanishes. |
| 120 | obtain ⟨s, hs⟩ : ∃ s : QZ, (unitsModule Γ).resH2 U (classOfInvariant Γ k A s) = shapiroH2 U β := |
| 121 | exists_resH2_classOfInvariant_eq U _ |
| 122 | have h_index : classOfInvariant Γ k A (U.index • s) = 0 := by |
| 123 | rw [map_nsmul, ← mapH2_sum_eq_index_smul U _ _ hs, h_sum_β] |
| 124 | exact hz _ hF |
| 125 | have h_res : (unitsModule Γ).resH2 U (classOfInvariant Γ k A s) = 0 := |
| 126 | resH2_classOfInvariant_eq_zero U ((map_eq_zero_iff _ |
| 127 | isClassOfInvariant_classOfInvariant.left).mp h_index) |
| 128 | exact (hs.trans h_shapiro_β).symm.trans h_res |
| 129 | |
| 130 | /-- Let `k` be local, `i · [Γ : U]` act as the identity on `M`, `b : M × N → Ωˣ` an equivariant |
| 131 | pairing, and let `X`, `Y` contain the coboundaries and corestrictions of `X'`, `Y'`. If `X'` |
| 132 | contains the cup product annihilator of `Y'` over `U`, then `X` contains that of `Y`. -/ |
| 133 | lemma DiscreteModule.HoldsCorestrictions.pairingAnnihilator_le {U : OpenSubgroup Γ} |
| 134 | {X : AddSubgroup ↥(Z1 M.ρ)} {X' : AddSubgroup ↥(Z1 (M.restrictTo U).ρ)} |
| 135 | {Y : AddSubgroup ↥(Z1 N.ρ)} {Y' : AddSubgroup ↥(Z1 (N.restrictTo U).ρ)} {i : ℤ} |
| 136 | (hX : M.HoldsCorestrictions U X' X) (hY : N.HoldsCorestrictions U Y' Y) |
| 137 | (h_inv : ∀ m : M, i • U.index • m = m) |
| 138 | {b : (M.restrictTo (U : Subgroup Γ)).V →+ (N.restrictTo (U : Subgroup Γ)).V →+ |
| 139 | (unitsModule (U : Subgroup Γ)).V} |
| 140 | (h_equivariant : ∀ (g : Γ) (x : M.V) (y : N.V), |
| 141 | (b ((M.ρ g) x)) ((N.ρ g) y) = ((unitsModule Γ).ρ g) ((b x) y)) |
| 142 | (h_ann : |
| 143 | pairingAnnihilator |
| 144 | (cupProduct (unitsModule U.toSubgroup) (M.restrictTo U.toSubgroup) |
| 145 | (N.restrictTo U.toSubgroup) b fun g : (U : Subgroup Γ) ↦ h_equivariant g).flip |
| 146 | Y' ≤ X') : |
| 147 | pairingAnnihilator (cupProduct (unitsModule Γ) M N b h_equivariant).flip Y ≤ X := by |
| 148 | intro z hz |
| 149 | -- The restriction of `z` to `U` is orthogonal to `Y'` |
| 150 | -- (`restrict_mem_pairingAnnihilator_of_holdsCorestrictions`), hence lies in `X'`. |
| 151 | let z' : Z1 (M.restrictTo (U : Subgroup Γ)).ρ := |
| 152 | pairMapZ1 (subgroupIncl (U : Subgroup Γ)) .id (fun _ _ ↦ rfl) z |
| 153 | have h_res_mem : z' ∈ X' := |
| 154 | h_ann (restrict_mem_pairingAnnihilator_of_holdsCorestrictions hY h_equivariant hz) |
| 155 | -- A corestriction of it lies in `X`, and differs from `U.index • z` by a coboundary. |
| 156 | obtain ⟨F, sh_F, hF : (M.sum U).mapZ1 F ∈ X⟩ := hX.exists_corestriction z' h_res_mem |
| 157 | -- On `U`, at the trivial coset, `F` agrees with `z`; so `F` minus the constant lift of `z` is a |
| 158 | -- coboundary, by Shapiro's lemma. |
| 159 | have h_sh (u : (U : Subgroup Γ)) : F.val u ⟦1⟧ = z.val u := |
| 160 | congrFun (congrArg Subtype.val sh_F) u |
| 161 | have h_diff (u : (U : Subgroup Γ)) : (F - (M.const _).mapZ1 z).val u ⟦1⟧ = M.ρ u 0 - 0 := by |
| 162 | simpa [sub_eq_zero, DiscreteModule.const] using h_sh u |
| 163 | obtain ⟨n, hn⟩ : ∃ n : (M.funModule U).V, ∀ g : Γ, |
| 164 | (F - (M.const _).mapZ1 z).val g = (M.funModule (U : Subgroup Γ)).ρ g n - n := |
| 165 | shapiro_H1 U _ 0 h_diff |
| 166 | have h_index : U.index • z = (M.sum _).mapZ1 F - M.coboundary (M.sum _ n) := by |
| 167 | ext g |
| 168 | -- Sum the equation `hn g` over the cosets. |
| 169 | have h_const : M.sum (U : Subgroup Γ) (M.const (U : Subgroup Γ) (z.val g)) = |
| 170 | M.sum (U : Subgroup Γ) fun _ ↦ z.val g := rfl |
| 171 | simpa [index_smul_eq_sum_const, ← (sum ..).isIntertwining, h_const] using |
| 172 | congrArg (fun f ↦ M.sum _ (F.val g - f)) (hn g) |
| 173 | -- Multiplication by `i` inverts multiplication by `U.index`. |
| 174 | have h_inv' : z = i • U.index • z := Subtype.ext (funext fun g ↦ (h_inv _).symm) |
| 175 | rw [h_inv', h_index] |
| 176 | exact zsmul_mem (sub_mem hF (hX.coboundary_mem _)) i |
| 177 | |
| 178 | /-- Kummer theory in each coordinate: for a finite trivial module `M` killed by `l`, there are at |
| 179 | most `#M ^ (2 + d)` cocycles in `Hom(M, Ωˣ)`, where `O` is the valuation ring of `k` and |
| 180 | `#(O / l) = l ^ d`. -/ |
| 181 | lemma card_dual_cocycles_le_of_trivial [Finite M] {d : ℕ} |
| 182 | (hd : Nat.card (valRingBelow k A ⧸ span {(l : valRingBelow k A)}) = l ^ d) |
| 183 | (h_kill : ∀ m : M, l • m = 0) (h_triv : M.TrivialOn ⊤) : |
| 184 | Nat.card (Z1 M.cartierDual.ρ) ≤ Nat.card M ^ (2 + d) := by |
| 185 | -- Being killed by `l`, `M` is a vector space over `ZMod l`; take a basis `e`. |
| 186 | have h_module : Module (ZMod l) M.V := AddCommGroup.zmodModule h_kill |
| 187 | let e := Module.finBasis (ZMod l) M |
| 188 | -- `K`: the cocycles in `Ωˣ` killed by `l`; Kummer theory counts them. |
| 189 | let K : Submodule ℤ ↥(Z1 (unitsModule Γ).ρ) := |
| 190 | (l : Module.End ℤ (Z1 (unitsModule Γ).ρ)).ker |
| 191 | have K_card : |
| 192 | Nat.card K = l ^ 2 * Nat.card (valRingBelow k A ⧸ span {(l : valRingBelow k A)}) := |
| 193 | IsLocalGalois.card_ker_natCast_Z1_unitsModule l |
| 194 | have : Finite K := IsLocalGalois.finite_ker_natCast_Z1_unitsModule (k := k) (A := A) l |
| 195 | -- The values of a cocycle at the basis vectors are cocycles in `Ωˣ` killed by `l`. |
| 196 | let coord (z : Z1 M.cartierDual.ρ) (j : Fin (Module.finrank (ZMod l) M)) : K := |
| 197 | ⟨pairMapZ1 (.id _) ⟨⟨fun f ↦ f (e j), by simp⟩, by simp⟩ (by simp [h_triv]) z, by |
| 198 | ext |
| 199 | simp [← map_nsmul, h_kill]⟩ |
| 200 | -- They determine the cocycle, as additive maps that agree on a basis over `ZMod l` are equal. |
| 201 | have h_coord_inj : Function.Injective coord := fun x y h ↦ by |
| 202 | ext g : 3 |
| 203 | -- The coordinates of `x` and `y` at `g` agree on every basis vector. |
| 204 | have h_coord (j : Fin (Module.finrank (ZMod l) M)) : (x.val g) (e j) = (y.val g) (e j) := |
| 205 | congrArg (fun c : K ↦ (c : Z1 (unitsModule Γ).ρ).val g) (congrFun h j) |
| 206 | have h_top : ((x.val g).eqLocus (y.val g)).toZModSubmodule l = ⊤ := |
| 207 | (Submodule.eq_top_iff_forall_basis_mem e).mpr h_coord |
| 208 | exact h_top.ge Submodule.mem_top |
| 209 | calc |
| 210 | _ ≤ Nat.card (Fin _ → K) := Nat.card_le_card_of_injective _ h_coord_inj |
| 211 | _ = (l ^ (2 + d)) ^ Module.finrank (ZMod l) M := by simp [Nat.card_fun, K_card, hd, pow_add] |
| 212 | _ = _ := by simp [Nat.card_congr e.equivFun.toEquiv, pow_right_comm] |
| 213 | |
| 214 | /-- One side of the nondegeneracy of the Hilbert symbol, extended to a trivial module. Let `Γ` act |
| 215 | as `Gal(Ω/k)` on an algebraically closed field `Ω` of characteristic 0, with `A ∩ k` a discrete |
| 216 | valuation ring with finite residue field (`IsLocalGalois Γ k A`), and let `M` be a finite discrete |
| 217 | `Γ`-module killed by the prime `l` on which all of `Γ` acts trivially. A continuous 1-cocycle `y` |
| 218 | of `M` is zero if its cup product `M.evalCup x y` vanishes for every continuous 1-cocycle `x` of |
| 219 | `Hom(M, Ωˣ)`. -/ |
| 220 | lemma eq_zero_of_evalCup_eq_zero_of_trivialOn [Finite M] (h_kill : ∀ m : M, l • m = 0) |
| 221 | (h_triv : M.TrivialOn ⊤) {y : Z1 M.ρ} (hy : ∀ x : Z1 M.cartierDual.ρ, M.evalCup x y = 0) : |
| 222 | y = 0 := by |
| 223 | have h_units_cont : |
| 224 | Continuous (uncurry fun (g : Γ) (u : (unitsModule Γ).V) ↦ (unitsModule Γ).ρ g u) := |
| 225 | (unitsModule Γ).continuous |
| 226 | -- It is enough that each coordinate `ξ = j ∘ y` in `ZMod l` vanishes, and for this |
| 227 | -- (`char_eq_zero_of_cyclicClass_eq_zero`) that its symbol with each `x` in `kˣ` vanishes. |
| 228 | ext g |
| 229 | refine eq_zero_of_forall_hom_eq_zero |
| 230 | ((bijective_ofZMod_comp h_kill).surjective.forall.mpr fun j ↦ ?_) |
| 231 | let ξ : Z1 (Representation.trivial ℤ Γ (ZMod l)) := |
| 232 | ⟨j ∘ y.val, y.prop.imp (by fun_prop) (by simp_all)⟩ |
| 233 | refine char_eq_zero_of_cyclicClass_eq_zero (χ := ofZModCocycle l ξ) (fun x ↦ ?_) g |
| 234 | -- The Kummer cocycle of an `l`-th root `a` of `x`, twisted by `j`, takes values in `Hom(M, Ωˣ)`. |
| 235 | obtain ⟨a, ha⟩ : ∃ a : DiscreteUnits Ω, l • a = DiscreteUnits.ofBase Γ Ω x := |
| 236 | exists_nsmul (DiscreteUnits.ofBase Γ Ω x).val (out : l ≠ 0) |
| 237 | let z : Z1 M.cartierDual.ρ := |
| 238 | ⟨fun g ↦ .mk' (fun m ↦ (j m).val • (unitsRep g a - a)) (by |
| 239 | simp [ZMod.val_add, add_smul, ← nsmul_eq_mod_nsmul, smul_sub l, ← map_nsmul, ha, |
| 240 | DiscreteUnits.ext_iff]), |
| 241 | .congr (by |
| 242 | simp only [AddMonoidHom.mk'_apply] |
| 243 | fun_prop) (leftInverse_invFun coe_injective ∘' _), |
| 244 | by simp [ext_iff, h_triv, smul_sub]⟩ |
| 245 | -- Its cup product with `y` is minus the symbol (`mk_eq_neg_cyclicClass_ofZModCocycle`). |
| 246 | exact neg_eq_zero.mp |
| 247 | ((mk_eq_neg_cyclicClass_ofZModCocycle ha ξ _ (by simp [z, ξ, h_triv])).symm.trans (hy z)) |
| 248 | |
| 249 | /-- Precomposition with an equivariant homomorphism `f : M₁ → M₂` of finite discrete `Γ`-modules |
| 250 | induces the dual equivariant homomorphism `M₂* → M₁*` on Cartier duals. -/ |
| 251 | private def DiscreteModule.Hom.cartierDual {M₁ M₂ : DiscreteModule R Γ} [Finite M₁] [Finite M₂] |
| 252 | (f : M₁.Hom M₂) : (M₂.cartierDual (Ω := Ω)).Hom (M₁.cartierDual (Ω := Ω)) := |
| 253 | ⟨(AddMonoidHom.compHom' ↑f).toIntLinearMap, by simp [f.isIntertwining, ext_iff]⟩ |
| 254 | |
| 255 | /-- An equivariant homomorphism `f : M₁ → M₂` and its Cartier dual `f.cartierDual : M₂* → M₁*` are |
| 256 | adjoint with respect to the evaluation cup product `evalCup` on 1-cocycles. -/ |
| 257 | private lemma evalCup_cartierDual_mapZ1 {M₁ M₂ : DiscreteModule R Γ} [Finite M₁] [Finite M₂] |
| 258 | (f : M₁.Hom M₂) (x : Z1 (M₂.cartierDual (Ω := Ω)).ρ) (w : Z1 M₁.ρ) : |
| 259 | M₁.evalCup ((f.cartierDual (Ω := Ω)).mapZ1 x) w = M₂.evalCup x (f.mapZ1 w) := |
| 260 | congrArg (Quotient.mk _) (by simp [Hom.cartierDual, f.isIntertwining]) |
| 261 | |
| 262 | /-- The Cartier dual of a short exact sequence `M' → M → M''` of finite discrete `Γ`-modules is |
| 263 | left exact: `π.cartierDual` is injective and `Exact π.cartierDual ι.cartierDual`. -/ |
| 264 | private lemma cartierDual_injective_and_exact {M' M M'' : DiscreteModule R Γ} |
| 265 | [Finite M'] [Finite M] [Finite M''] {ι : M'.Hom M} {π : M.Hom M''} (s : IsShortExact ι π) : |
| 266 | Injective (π.cartierDual (Ω := Ω)) ∧ |
| 267 | Exact (π.cartierDual (Ω := Ω)) (ι.cartierDual (Ω := Ω)) := by |
| 268 | refine ⟨fun f f' h_eq ↦ ext f f' (s.2.2.forall.mpr (DFunLike.congr_fun h_eq)), |
| 269 | fun f ↦ ⟨fun hf ↦ ?_, ?_⟩⟩ |
| 270 | · -- A map on `M` that kills `M'` extends from `M''`. |
| 271 | have h_kills (m : M') : f (ι m) = 0 := DFunLike.congr_fun hf m |
| 272 | obtain ⟨f', hf'⟩ : ∃ f' : M'' →+ DiscreteUnits Ω, ∀ m : M, f' (π m) = f m := |
| 273 | exists_extend π.toAddMonoidHom f fun m hm ↦ by |
| 274 | obtain ⟨m', rfl⟩ := (s.2.1 m).mp hm |
| 275 | exact h_kills m' |
| 276 | exact ⟨f', ext _ _ hf'⟩ |
| 277 | · rintro ⟨f', rfl⟩ |
| 278 | -- `π ∘ ι = 0`. |
| 279 | exact ext _ _ fun m ↦ by simp [Hom.cartierDual, s.2.1.apply_apply_eq_zero] |
| 280 | |
| 281 | /-- Multiplicativity of the cocycle-duality bound in extensions: for a short exact sequence |
| 282 | `M' → M → M''` of finite discrete `Γ`-modules, if `#X · #W ≤ #M' ^ e` on `M'` and |
| 283 | `#X · #W ≤ #M'' ^ e` on `M''` for all orthogonal cocycle subgroups, then the same bound holds on |
| 284 | `M`. -/ |
| 285 | private lemma card_mul_card_le_of_isShortExact {M' M M'' : DiscreteModule R Γ} |
| 286 | [Finite M'] [Finite M] [Finite M''] {ι : M'.Hom M} {π : M.Hom M''} (s : IsShortExact ι π) |
| 287 | {e : ℕ} |
| 288 | (ih' : ∀ (X' : AddSubgroup ↥(Z1 (M'.cartierDual (Ω := Ω)).ρ)) (W' : AddSubgroup ↥(Z1 M'.ρ)), |
| 289 | X' ≤ pairingAnnihilator M'.evalCup.flip W' → Nat.card X' * Nat.card W' ≤ Nat.card M' ^ e) |
| 290 | (ih'' : ∀ (X'' : AddSubgroup ↥(Z1 (M''.cartierDual (Ω := Ω)).ρ)) |
| 291 | (W'' : AddSubgroup ↥(Z1 M''.ρ)), |
| 292 | X'' ≤ pairingAnnihilator M''.evalCup.flip W'' → |
| 293 | Nat.card X'' * Nat.card W'' ≤ Nat.card M'' ^ e) |
| 294 | {X : AddSubgroup ↥(Z1 (M.cartierDual (Ω := Ω)).ρ)} {W : AddSubgroup ↥(Z1 M.ρ)} |
| 295 | (h : X ≤ pairingAnnihilator M.evalCup.flip W) : |
| 296 | Nat.card X * Nat.card W ≤ Nat.card M ^ e := by |
| 297 | let ι' := ι.cartierDual (Ω := Ω) |
| 298 | let π' := π.cartierDual (Ω := Ω) |
| 299 | obtain ⟨π'_inj, dual_exact⟩ := cartierDual_injective_and_exact (Ω := Ω) s |
| 300 | -- The part of `X` from `M''` is orthogonal to the image of `W`, and symmetrically, by |
| 301 | -- adjointness of `π`, `ι` and their Cartier duals for `evalCup`. |
| 302 | have orth'' : comap π'.mapZ1 X ≤ pairingAnnihilator M''.evalCup.flip (map π.mapZ1 W) := by |
| 303 | rintro x hx _ ⟨w, hw, rfl⟩ |
| 304 | exact (evalCup_cartierDual_mapZ1 π x w).symm.trans (h hx w hw) |
| 305 | have orth' : map ι'.mapZ1 X ≤ pairingAnnihilator M'.evalCup.flip (comap ι.mapZ1 W) := by |
| 306 | rintro _ ⟨x, hx, rfl⟩ w hw |
| 307 | exact (evalCup_cartierDual_mapZ1 ι x w).trans (h hx (ι.mapZ1 w) hw) |
| 308 | -- Count `X` and `W` by their two parts, pair the parts crosswise, and multiply the bounds. |
| 309 | calc Nat.card X * Nat.card W |
| 310 | = (Nat.card (comap π'.mapZ1 X) * Nat.card (map π.mapZ1 W)) * |
| 311 | (Nat.card (map ι'.mapZ1 X) * Nat.card (comap ι.mapZ1 W)) := by |
| 312 | rw [π'.card_eq_card_comap_mul_card_map π'_inj dual_exact X, |
| 313 | ι.card_eq_card_comap_mul_card_map s.1 s.2.1 W] |
| 314 | ring |
| 315 | _ ≤ Nat.card M'' ^ e * Nat.card M' ^ e := Nat.mul_le_mul (ih'' _ _ orth'') (ih' _ _ orth') |
| 316 | _ = Nat.card M ^ e := by rw [s.card_eq_card_mul_card, mul_pow, mul_comm] |
| 317 | |
| 318 | /-- Let `k` be local with valuation ring `O` and `#(O / l) = l ^ d`. Let `M` be a finite module |
| 319 | killed by `l ^ r` and fixed by `Q`, where every `g : Γ` has a power `g ^ l ^ i` in `Q`. This is |
| 320 | `hM : FiniteKilledFixedInj (l ^ r) Q 1 0 M`, the predicate for which dévissage is stated; its last |
| 321 | two arguments `1` and `0` ask that `ρ 1 - 0 = id` be injective, so they impose nothing. If groups |
| 322 | `X` of cocycles in `Hom(M, Ωˣ)` and `W` of cocycles in `M` are orthogonal under the cup product |
| 323 | (`h_orth`), then `#X · #W ≤ #M ^ (2 + d)`: the form of Tate's local duality and Euler |
| 324 | characteristic formula used. -/ |
| 325 | lemma card_mul_card_le_of_le_pairingAnnihilator [Finite M] {d : ℕ} (Q : Subgroup Γ) |
| 326 | (hd : Nat.card (valRingBelow k A ⧸ span {(l : valRingBelow k A)}) = l ^ d) |
| 327 | (hM : FiniteKilledFixedInj (l ^ r) Q 1 0 M) (h_pow : ∀ g : Γ, ∃ i : ℕ, g ^ l ^ i ∈ Q) |
| 328 | (X : AddSubgroup ↥(Z1 M.cartierDual.ρ)) (W : AddSubgroup ↥(Z1 M.ρ)) |
| 329 | (h_orth : X ≤ pairingAnnihilator M.evalCup.flip W) : |
| 330 | Nat.card X * Nat.card W ≤ Nat.card M ^ (2 + d) := by |
| 331 | -- The dévissage runs over all modules with the same conditions, so prove the bound for each. |
| 332 | suffices h_all : ∀ (M : DiscreteModule R Γ) (hM : FiniteKilledFixedInj (l ^ r) Q 1 0 M), |
| 333 | have : Finite M := hM.finite |
| 334 | ∀ (X : AddSubgroup ↥(Z1 M.cartierDual.ρ)) (W : AddSubgroup ↥(Z1 M.ρ)), |
| 335 | X ≤ pairingAnnihilator M.evalCup.flip W → |
| 336 | Nat.card X * Nat.card W ≤ Nat.card M ^ (2 + d) from h_all M hM X W h_orth |
| 337 | intro M hM |
| 338 | -- Dévissage: reduce to trivial modules killed by `l` and to extensions. |
| 339 | have := J.finite_Z1 |
| 340 | refine M.devissage_induction rfl ⊤ Q (by simpa) |
| 341 | (fun M _ ⟨h_finite, h_kill, h_triv, _⟩ X W h ↦ ?_) |
| 342 | (fun {M' M M'' ι π} s hM ih' ih'' X W h ↦ |
| 343 | have := hM.finite |
| 344 | have := (hM.left_of_isShortExact s).finite |
| 345 | have := (hM.right_of_isShortExact s).finite |
| 346 | card_mul_card_le_of_isShortExact s ih' ih'' h) hM |
| 347 | -- Trivial modules killed by `l`: the pairing has no kernel in `Z1 M.ρ`. |
| 348 | have h_ker_bot : M.evalCup.flip.ker ⊓ W = ⊥ := bot_unique fun y hy ↦ |
| 349 | eq_zero_of_evalCup_eq_zero_of_trivialOn h_kill h_triv (ext_iff.mp hy.1) |
| 350 | calc |
| 351 | Nat.card X * Nat.card W ≤ Nat.card (pairingAnnihilator M.evalCup.flip W) * Nat.card W := by |
| 352 | grw [card_le_of_le h] |
| 353 | _ = Nat.card (Z1 M.cartierDual.ρ) := by |
| 354 | rw [card_pairingAnnihilator_mul_card _ (.ofBijective _ classOfInvariant_bijective), |
| 355 | h_ker_bot, card_bot, mul_one] |
| 356 | _ ≤ Nat.card M ^ (2 + d) := card_dual_cocycles_le_of_trivial hd h_kill h_triv |
| 357 | |
| 358 | /-- Let `M` be a finite module killed by `l ^ r` and fixed by `Q` (`hM`), where every `g : Γ` has a |
| 359 | power `g ^ l ^ i` in `Q`, and let `#(O / l) = l ^ d` for the valuation ring `O = A ∩ k` of the local |
| 360 | field `k`. If groups `X` of cocycles in `Hom(M, Ωˣ)` and `W` of cocycles in `M` are orthogonal under |
| 361 | the cup product `M.evalCup`, then `#X · #W ≤ #M ^ (2 + d)`. This is |
| 362 | `card_mul_card_le_of_le_pairingAnnihilator`, with the finiteness of `M` taken from `hM` inside the |
| 363 | statement. |
| 364 | |
| 365 | This inequality is a numerical consequence of Tate local duality and the local Euler characteristic |
| 366 | formula, for 1-cocycles and `l`-primary `M` on which `Γ` acts through an `l`-group; perfectness of |
| 367 | the pairing is not asserted. -/ |
| 368 | lemma card_mul_card_le_of_orthogonal {d : ℕ} (Q : Subgroup Γ) |
| 369 | (hd : Nat.card (valRingBelow k A ⧸ span {(l : valRingBelow k A)}) = l ^ d) |
| 370 | (hM : FiniteKilledFixedInj (l ^ r) Q 1 0 M) (h_pow : ∀ g : Γ, ∃ i : ℕ, g ^ l ^ i ∈ Q) : |
| 371 | have : Finite M := hM.finite |
| 372 | ∀ (X : AddSubgroup ↥(Z1 M.cartierDual.ρ)) (W : AddSubgroup ↥(Z1 M.ρ)), |
| 373 | X ≤ pairingAnnihilator M.evalCup.flip W → Nat.card X * Nat.card W ≤ Nat.card M ^ (2 + d) := |
| 374 | fun X W h_orth ↦ |
| 375 | have : Finite M := hM.finite |
| 376 | card_mul_card_le_of_le_pairingAnnihilator Q hd hM h_pow X W h_orth |
| 377 | |
| 378 | /-- A divisibility form of local duality. Let `M` be finite and `U` an open subgroup of index prime |
| 379 | to `#M`. Let `X'`, `W'` be groups of cocycles of `U` in `Hom(M, Ωˣ)` and `M` that are orthogonal |
| 380 | under the cup product, with `#X' · #W'` largest among such pairs, and let `X`, `W` contain the |
| 381 | coboundaries and corestrictions of `X'`, `W'` (`New.DiscreteModule.HoldsCorestrictions`). Then |
| 382 | `#L^⊥ · #L` divides `#W · #X` for every group `L` of cocycles of `Γ` in `Hom(M, Ωˣ)`, where `L^⊥` |
| 383 | is the annihilator of `L` among the cocycles in `M`. -/ |
| 384 | lemma DiscreteModule.local_duality_card_dvd [Finite M] {U : OpenSubgroup Γ} |
| 385 | {X : AddSubgroup ↥(Z1 M.cartierDual.ρ)} {W : AddSubgroup ↥(Z1 M.ρ)} |
| 386 | {X' : AddSubgroup ↥(Z1 (M.cartierDual.restrictTo U).ρ)} |
| 387 | {W' : AddSubgroup ↥(Z1 (M.restrictTo U).ρ)} |
| 388 | (hX : M.cartierDual.HoldsCorestrictions U X' X) (hW : M.HoldsCorestrictions U W' W) |
| 389 | (h_coprime : (Nat.card M).Coprime U.index) |
| 390 | (h_orth : W' ≤ pairingAnnihilator (M.restrictTo U).evalCup X') |
| 391 | (h_max : ∀ (Y : AddSubgroup ↥(Z1 (M.restrictTo U).cartierDual.ρ)) |
| 392 | (Z : AddSubgroup ↥(Z1 (M.restrictTo U).ρ)), |
| 393 | Y ≤ pairingAnnihilator (M.restrictTo U).evalCup.flip Z → |
| 394 | Nat.card Y * Nat.card Z ≤ Nat.card X' * Nat.card W') |
| 395 | (L : AddSubgroup ↥(Z1 M.cartierDual.ρ)) : |
| 396 | Nat.card (pairingAnnihilator M.evalCup L) * Nat.card L ∣ Nat.card W * Nat.card X := by |
| 397 | -- The index of `U` acts invertibly on `M`, being prime to its order. |
| 398 | obtain ⟨i, index_inv⟩ : ∃ i : ℤ, ∀ m : M, i • U.index • m = m := |
| 399 | ⟨_, (nsmulCoprime h_coprime).left_inv⟩ |
| 400 | -- `classOfInvariant` identifies `ℚ/ℤ` with `H²(Γ, Ωˣ)`. |
| 401 | let e : QZ ≃+ New.H2 unitsRep := AddEquiv.ofBijective _ J.classOfInvariant_bijective |
| 402 | have := (of_finite U).isLocalGalois.finite_Z1 |
| 403 | -- The orthogonality of `X'` and `W'`, read from the side of `X'`. |
| 404 | have h_orth' : X' ≤ pairingAnnihilator (M.restrictTo U).evalCup.flip W' := fun x hx w hw ↦ |
| 405 | h_orth hw x hx |
| 406 | -- `X'` pairs to zero with everything that annihilates it. |
| 407 | have h_double : X' ≤ pairingAnnihilator (M.restrictTo U).evalCup.flip |
| 408 | (pairingAnnihilator (M.restrictTo U).evalCup X') := fun x hx w hw ↦ hw x hx |
| 409 | -- By maximality each of `X'`, `W'` is the whole annihilator of the other. |
| 410 | have X'_eq : X' = pairingAnnihilator (M.restrictTo U).evalCup.flip W' := |
| 411 | eq_of_le_of_card_ge h_orth' (le_of_mul_le_mul_right (h_max _ _ le_rfl) card_pos) |
| 412 | have W'_eq : W' = pairingAnnihilator (M.restrictTo U).evalCup X' := |
| 413 | eq_of_le_of_card_ge h_orth (le_of_mul_le_mul_left (h_max _ _ h_double) (card_pos (α := X'))) |
| 414 | -- Annihilators descend to `Γ`, on both sides; the second uses anticommutativity of the cup. |
| 415 | -- On `Hom(M, Ωˣ)` too, `i · [Γ : U]` acts as the identity. |
| 416 | have index_inv_dual (f : M.cartierDual) : i • U.index • f = f := |
| 417 | ext _ _ fun m ↦ by simpa using congrArg f (index_inv m) |
| 418 | have ann_W : pairingAnnihilator M.evalCup.flip W ≤ X := |
| 419 | hX.pairingAnnihilator_le hW (i := i) index_inv_dual (by simp) X'_eq.ge |
| 420 | -- Over `U`, what annihilates `X'` in the flipped pairing annihilates it in the pairing, as the |
| 421 | -- cup product changes sign when flipped; over `Γ` the same holds for `w` and `X`. |
| 422 | have ann_X : pairingAnnihilator M.evalCup X ≤ W := fun w hw ↦ |
| 423 | hW.pairingAnnihilator_le hX index_inv (by simp) |
| 424 | (fun w' hw' ↦ W'_eq.ge fun x hx ↦ |
| 425 | neg_eq_zero.mp ((cupProduct_flip ..).symm.trans (hw' x hx))) |
| 426 | (fun x hx ↦ (cupProduct_flip ..).trans (by simpa using hw x hx)) |
| 427 | have ker_le : M.evalCup.ker ≤ X := fun x hx ↦ ann_W fun w _ ↦ ext_iff.mp hx w |
| 428 | calc |
| 429 | Nat.card (pairingAnnihilator M.evalCup L) * Nat.card L |
| 430 | _ = Nat.card (Z1 M.ρ) * Nat.card ↥(M.evalCup.ker ⊓ L) := card_pairingAnnihilator_mul_card _ e L |
| 431 | _ ∣ Nat.card (Z1 M.ρ) * Nat.card ↥(M.evalCup.ker ⊓ X) := |
| 432 | mul_dvd_mul_left _ (card_dvd_of_le (inf_le_of_left_le (le_inf le_rfl ker_le))) |
| 433 | _ = Nat.card (pairingAnnihilator M.evalCup X) * Nat.card X := |
| 434 | (card_pairingAnnihilator_mul_card _ e X).symm |
| 435 | _ ∣ Nat.card W * Nat.card X := mul_dvd_mul_right (card_dvd_of_le ann_X) _ |
| 436 | |
| 437 | end New |