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.Algebra.Order.Star.Rat |
| 5 | import Mathlib.CategoryTheory.Shift.Basic |
| 6 | import Mathlib.FieldTheory.Galois.Profinite |
| 7 | import Mathlib.GroupTheory.Nilpotent |
| 8 | import Mathlib.Topology.Sheaves.Presheaf |
| 9 | public import Lib.ClassField.GreenbergWiles.SplitPrimeReciprocity |
| 10 | import Lib.ClassField.GaloisCohomology.TateIndexFormula |
| 11 | |
| 12 | /-! |
| 13 | # Counts of trivialised Galois cocycles for projective modules and central scalars |
| 14 | |
| 15 | We count trivialised cocycles (`New.DiscreteModule.trivializedCocycles`) of the absolute Galois |
| 16 | group `G` of a number field `K` (`IsProGalois G K Ω`: `G` acts on `Ω` as its Galois group over `K`) |
| 17 | in a finite module `V`. A trivialised cocycle vanishes on `I` and carries a trivialisation at each |
| 18 | place of `Ω` (the algebraic closure of `ℚ`) above `N` and infinity. Here |
| 19 | `New.IsLargeLevel.SplitPlaces` is the data of finitely many places not dividing `N`, indexed by `ι`, |
| 20 | with Frobenius elements `s.φ i` in `U`. The set `I` is the union of the inertia groups above the |
| 21 | other places not dividing `N`. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | * `New.IsLargeLevel.SplitPlaces.card_trivialized_of_isHigmanProjective`: for `V` killed by `l`, |
| 26 | fixed by `U` and projective over `G ⧸ U` in Higman's sense, given `z`, `n` with `ρ(z) − n` |
| 27 | injective on `V` and with `z • r − n • r` fixed by `U` for every unit `r` fixed by all `s.φ i` |
| 28 | with `l • r` a `U`-fixed `N`-unit, at most `#V ^ (#ι + 1)` trivialised cocycles, with equality |
| 29 | under further hypotheses. |
| 30 | * `New.IsLargeLevel.SplitPlaces.hasFewCocycles_of_central`: let `K` be totally complex and `r ≠ 0`. |
| 31 | Suppose some `z`, central modulo `U` and with `l`-adic cyclotomic character `1`, satisfies |
| 32 | `V.FiniteKilledFixedInj (l ^ r) U z 1`. Suppose also that the Frobenii of the split places detect |
| 33 | roots. Then `V` has at most `#V ^ (#ι + 1)` trivialised cocycles. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `New.DiscreteModule.IsHigmanProjective`: Higman's criterion relative to Q of finite index: some |
| 37 | additive τ : A → A has ∑ gτg⁻¹ = 1, summed over chosen representatives g of G/Q. |
| 38 | * `New.DiscreteModule.FiniteKilledFixedInj`: The G-module A is finite and killed by n, Q acts |
| 39 | trivially on it, and ρ(z) − m is injective on it. |
| 40 | * `New.IsLargeLevel.fixedSUnits`: The N-units of the fixed field of U: the N-units of Ω that are |
| 41 | fixed by U. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | An upper bound of the kind the Greenberg–Wiles formula gives when the dual Selmer group vanishes; |
| 46 | the hypothesis on the Frobenii `s.φ i` takes the place of that vanishing. Only this bound is proved |
| 47 | (with a case of equality for projective modules), under the hypothesis that `ρ(z) − n` is injective |
| 48 | on `V`; for modules that are not projective, `n = 1` and `z` is central modulo `U`. No local duality |
| 49 | is used: the dual Selmer group is replaced by linear relations among the values of a cocycle on tame |
| 50 | inertia at the split places. |
| 51 | |
| 52 | Source: H. Darmon, F. Diamond, R. Taylor, Fermat's Last Theorem (1995; revised 2007), Thm 2.18–2.19; |
| 53 | A. Wiles, Ann. of Math. 141 (1995), Prop. 1.6; J. S. Milne, Arithmetic Duality Theorems, I 4.10, |
| 54 | 5.1; L. Washington, Galois cohomology (1997), Thm 2. |
| 55 | -/ |
| 56 | |
| 57 | @[expose] public section |
| 58 | |
| 59 | /-! |
| 60 | ## The count for a projective module |
| 61 | |
| 62 | `New.IsLargeLevel.SplitPlaces.card_trivialized_of_isHigmanProjective` bounds the order of the group |
| 63 | of trivialised cocycles by `#V ^ (#ι + 1)`, with a case of equality, under further hypotheses on `V` |
| 64 | and `z` (`hV_fin`, `h_fix`). |
| 65 | |
| 66 | The proof compares the group with the `G ⧸ U`-equivariant maps from (`N`-units) `× ℤ` to `V`. It |
| 67 | uses the reciprocity law `New.IsLargeLevel.SplitPlaces.power_residue_reciprocity` and the unit |
| 68 | theorem `New.IsLargeLevel.dirichlet_fixedSUnits`. |
| 69 | -/ |
| 70 | |
| 71 | section ProjectiveCount |
| 72 | |
| 73 | open NumberField Nat NeZero Fintype AddSubgroup Finset Submodule AddMonoidHom |
| 74 | |
| 75 | attribute [local instance low] Fintype.ofFinite |
| 76 | |
| 77 | /-- Let `β : A → B` and `f : A → V` be additive maps, where `B` and `V` are vector spaces over |
| 78 | `ZMod l`. If `f` vanishes wherever `β` does, then `f = v ∘ β` for a `ZMod l`-linear map `v`. -/ |
| 79 | lemma New.IsLargeLevel.exists_linearMap_factor_of_ker_le {l : ℕ} [Fact l.Prime] {A B V : Type} |
| 80 | [AddCommGroup A] [AddCommGroup B] [AddCommGroup V] [Module (ZMod l) B] [Module (ZMod l) V] |
| 81 | (β : A →+ B) (f : A →+ V) (h_ker_le : ∀ y : A, β y = 0 → f y = 0) : |
| 82 | ∃ v : B →ₗ[ZMod l] V, ∀ y : A, v (β y) = f y := by |
| 83 | -- `f` descends to the range of `β`, a subspace of `B`, and extends linearly from there. |
| 84 | have h_vanish : β.rangeRestrict.ker ≤ f.ker := by |
| 85 | simpa [ker_rangeRestrict, IsConcreteLE.le_iff] using h_ker_le |
| 86 | let v₀ : β.range →+ V := liftOfSurjective _ β.rangeRestrict_surjective ⟨f, h_vanish⟩ |
| 87 | obtain ⟨v, hv⟩ := LinearMap.exists_extend (p := β.range.toZModSubmodule l) (v₀.toZModLinearMap l) |
| 88 | refine ⟨v, fun y ↦ ?_⟩ |
| 89 | have h_eq : v (β y) = v₀ (β.rangeRestrict y) := LinearMap.congr_fun hv (β.rangeRestrict y) |
| 90 | rw [h_eq] |
| 91 | exact liftOfRightInverse_comp_apply .. |
| 92 | |
| 93 | /-- Let `G` act on `Ω` (`New.Ω`, the algebraic closure of `ℚ`) as the Galois group over the number |
| 94 | field `K`. On a torsion element of (`N`-units of the fixed field of `U`) `× ℤ`, the element `z` acts |
| 95 | by a natural number that is congruent modulo `l` to the cyclotomic character of `z`. -/ |
| 96 | lemma New.IsLargeLevel.exists_act_torsion_eq_nsmul {G : Type} [Group G] [TopologicalSpace G] |
| 97 | [MulSemiringAction G Ω] {K : Type} [Field K] [EmbeddedNumberField K] [IsProGalois G K Ω] (l : ℕ) |
| 98 | [NeZero l] {N : ℕ} {U : OpenNormalSubgroup G} (z : G) {y : fixedSUnits N U × ℤ} |
| 99 | (hy : y ∈ torsion ℤ (fixedSUnits N U × ℤ)) : |
| 100 | ∃ a : ℕ, (cyclotomicCharMod Ω l z).val = a ∧ |
| 101 | ((fixedSUnitsRep N U).prod (Representation.trivial ℤ (G ⧸ (U.toOpenSubgroup : Subgroup G)) ℤ)) |
| 102 | z y = a • y := by |
| 103 | -- If `k • y = 0`, take the value of the cyclotomic character modulo `l * k`. |
| 104 | obtain ⟨k, hk, hky⟩ := (torsion_int.le hy).exists_nsmul_eq_zero |
| 105 | have hk_ne_zero : NeZero k := of_pos hk |
| 106 | have hy₂ : y.2 = 0 := by simpa [hk.ne'] using congr_arg Prod.snd hky |
| 107 | refine ⟨(cyclotomicCharMod Ω (l * k) z).val.val, |
| 108 | cyclotomicCharMod_eq_of_dvd ⟨k, rfl⟩ (ZMod.natCast_zmod_val _).symm, ?_⟩ |
| 109 | ext |
| 110 | · -- The unit is a root of unity of order dividing `l * k`. |
| 111 | refine smul_eq_pow_cyclotomicCharMod z ?_ |
| 112 | simpa [pow_mul'] using |
| 113 | congr_arg (fun p : fixedSUnits N U × ℤ ↦ (p.1.val.toMul.val : Ω) ^ l) hky |
| 114 | · simp [hy₂] |
| 115 | |
| 116 | /-- Averaging with a Higman trace. Let `W` represent the finite group `Δ` on `V`, and let the |
| 117 | additive `τ : V → V` satisfy `∑ δ, δ (τ (δ⁻¹ a)) = a`. Let `F : X → V` on a `Δ`-set `X`, and let |
| 118 | `g (F x) = F (g • x) + c` for all `x`. Then `g` moves the average `∑ δ, δ (τ (δ⁻¹ (F (δ • x₀))))` |
| 119 | by `c`. -/ |
| 120 | lemma Representation.apply_sum_trace_eq_add {Δ X V : Type} [Group Δ] [Fintype Δ] [MulAction Δ X] |
| 121 | [AddCommGroup V] (W : Representation ℤ Δ V) (τ : V →+ V) |
| 122 | (hτ : ∀ a : V, ∑ δ : Δ, W δ (τ (W δ⁻¹ a)) = a) (F : X → V) (x₀ : X) (g : Δ) (c : V) |
| 123 | (hF : ∀ x : X, W g (F x) = F (g • x) + c) : |
| 124 | W g (∑ δ : Δ, W δ (τ (W δ⁻¹ (F (δ • x₀))))) = ∑ δ : Δ, W δ (τ (W δ⁻¹ (F (δ • x₀)))) + c := by |
| 125 | -- Reindex the sum by `δ ↦ g * δ`. |
| 126 | have h_shift (δ : Δ) : W g (W δ (τ (W δ⁻¹ (F (δ • x₀))))) = |
| 127 | W (g * δ) (τ (W (g * δ)⁻¹ (F ((g * δ) • x₀)))) + W (g * δ) (τ (W (g * δ)⁻¹ c)) := by |
| 128 | simp [← map_add, ← hF, mul_smul] |
| 129 | calc W g (∑ δ : Δ, W δ (τ (W δ⁻¹ (F (δ • x₀))))) |
| 130 | = ∑ δ : Δ, W g (W δ (τ (W δ⁻¹ (F (δ • x₀))))) := map_sum .. |
| 131 | _ = ∑ δ : Δ, (W δ (τ (W δ⁻¹ (F (δ • x₀)))) + W δ (τ (W δ⁻¹ c))) := |
| 132 | sum_equiv (.mulLeft g) _ _ h_shift |
| 133 | _ = _ := by simp [sum_add_distrib, hτ] |
| 134 | |
| 135 | section SymbolMaps |
| 136 | |
| 137 | namespace New.IsLargeLevel |
| 138 | |
| 139 | /-- Let `b y i` be the `l`-th power residue symbol of the `N`-unit `y` of the field of `U` at the |
| 140 | Frobenius `frob i`: `ζ ^ b y i = frob i r / r` whenever `r ^ l = y`, for the root of unity `ζ` of |
| 141 | `New.rootPowHom`. Let `U` fix `z r / r ^ n` whenever `r ^ l` is such an `N`-unit and every |
| 142 | `frob i` fixes `r` (written additively in `New.DiscreteUnits Ω`). If all symbols of |
| 143 | `y` vanish, then `z y / y ^ n` is the `l`-th power of an `N`-unit. -/ |
| 144 | private lemma exists_act_sub_nsmul_eq_nsmul_of_symbol_eq_zero {G K : Type} [Group G] |
| 145 | [TopologicalSpace G] [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] |
| 146 | [IsProGalois G K Ω] {l N : ℕ} [Fact l.Prime] {U : OpenNormalSubgroup G} {ι : Type} |
| 147 | (frob : ι → G) (b : fixedSUnits N U →+ ι → ZMod l) |
| 148 | (hb : ∀ (y : fixedSUnits N U) (r : DiscreteUnits Ω), l • r = ↑y → ∀ i : ι, |
| 149 | (rootPowHom Ω l).val (b y i) = unitsRep (frob i) r - r) |
| 150 | {z : G} {n : ℕ} |
| 151 | (h_fix : ∀ r : DiscreteUnits Ω, l • r ∈ fixedSUnits N U → (∀ i : ι, unitsRep (frob i) r = r) → |
| 152 | unitsRep z r - n • r ∈ (unitsModule U.toOpenSubgroup.toSubgroup).H0) |
| 153 | (y : fixedSUnits N U) (hy : ∀ i : ι, b y i = 0) : |
| 154 | ∃ c : fixedSUnits N U, fixedSUnitsRep N U z y - n • y = l • c := by |
| 155 | obtain ⟨y, hyE⟩ := y |
| 156 | obtain ⟨w, rfl⟩ := y.exists_nsmul (ne l) |
| 157 | -- The `l`-th root `w` is fixed by every `frob i`, as the symbols vanish. |
| 158 | have h_frob (i : ι) : unitsRep (frob i) w = w := |
| 159 | sub_eq_zero.mp (by simpa [hy i] using (hb ⟨l • w, hyE⟩ w rfl i).symm) |
| 160 | -- So `c = z w - n • w` is an `N`-unit of the field of `U`, and `z y - n • y = l • c`. |
| 161 | have h_mul : |
| 162 | l • (unitsRep z w - n • w) = |
| 163 | ↑(fixedSUnitsRep N U z ⟨_, hyE⟩ - n • (⟨_, hyE⟩ : fixedSUnits N U)) := by |
| 164 | rw [smul_sub, ← map_nsmul, smul_comm] |
| 165 | rfl |
| 166 | exact ⟨⟨unitsRep z w - n • w, mem_sUnits_of_nsmul_mem h_mul, h_fix w hyE h_frob⟩, |
| 167 | (Subtype.ext h_mul).symm⟩ |
| 168 | |
| 169 | /-- The equivariant maps given by power residue symbols. For `a : ι → V` and `c` fixed by `G` (in |
| 170 | the kernel of the coboundary map `coboundaryMap V.ρ`), the map from (`N`-units) `× ℤ` to `V` given |
| 171 | by `(y, k) ↦ ∑ (i, δ), b (δ y) i • δ⁻¹ (a i) + k • c` is `G ⧸ U`-equivariant, where `W` is the |
| 172 | action of `G ⧸ U` on `V`. -/ |
| 173 | private noncomputable def symbolIntertwiningMap {G K R : Type} [Group G] [TopologicalSpace G] |
| 174 | [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] |
| 175 | {l N : ℕ} [Fact l.Prime] {V : DiscreteModule R G} {U : OpenNormalSubgroup G} |
| 176 | [Module (ZMod l) V] {ι : Type} [Fintype ι] |
| 177 | (W : Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) V) (hW : ∀ g : G, ⇑(V.ρ g) = W g) |
| 178 | (b : fixedSUnits N U →+ ι → ZMod l) : |
| 179 | (ι → V) × (coboundaryMap V.ρ).toAddMonoidHom.ker →+ |
| 180 | ((fixedSUnitsRep N U).prod |
| 181 | (Representation.trivial ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) ℤ)).IntertwiningMap W := |
| 182 | let β : fixedSUnits N U →+ ι × (G ⧸ U.toOpenSubgroup.toSubgroup) → ZMod l := |
| 183 | mk' (fun y (i, δ) ↦ b (fixedSUnitsRep N U δ y) i) (by simp [funext_iff]) |
| 184 | mk' (fun (a, c) ↦ |
| 185 | ⟨.coprod (∑ θ : ι × G ⧸ (U.toOpenSubgroup : Subgroup G), |
| 186 | .smulRight (.proj θ ∘ₗ β.toIntLinearMap) (W θ.2⁻¹ (a θ.1))) (.smulRight .id c), |
| 187 | fun δ ↦ by |
| 188 | -- equivariance: on units shift the index by `δ`; on `ℤ` use that `c` is fixed |
| 189 | have hc_fixed (g : G) : (c : V) = W g c := |
| 190 | (eq_of_sub_eq_zero (congrFun c.prop g)).symm.trans (congrFun (hW g) c) |
| 191 | ext y |
| 192 | · simpa [β, ZMod.map_smul] using sum_equiv (.prodCongr 1 (.mulRight δ)) _ _ (by simp) |
| 193 | · simpa using δ.ind' hc_fixed⟩) |
| 194 | fun _ _ ↦ by ext <;> simp [sum_add_distrib] |
| 195 | |
| 196 | /-- Let `W` be the action of `G ⧸ U` on `V` (that is, `V.ρ g = W g`), let `l` kill `V`, and let |
| 197 | `z - n` be injective on `V`. Let `τ` be a Higman trace: `∑ δ, δ (τ (δ⁻¹ a)) = a`. Let `b` and |
| 198 | `h_fix` be as in `exists_act_sub_nsmul_eq_nsmul_of_symbol_eq_zero`. Then every `G ⧸ U`-equivariant |
| 199 | `x` from (`N`-units) `× ℤ` to `V` is given by symbols: it lies in the range of |
| 200 | `symbolIntertwiningMap W hW b`. -/ |
| 201 | private lemma mem_range_symbolIntertwiningMap {G K R : Type} [Group G] [TopologicalSpace G] |
| 202 | [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] |
| 203 | {l N : ℕ} [Fact l.Prime] {V : DiscreteModule R G} {U : OpenNormalSubgroup G} |
| 204 | [Module (ZMod l) V] {ι : Type} [Fintype ι] |
| 205 | (W : Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) V) (hW : ∀ g : G, ⇑(V.ρ g) = W g) |
| 206 | (h_tors : ∀ a : V, l • a = 0) {z : G} {n : ℕ} (h_inj_sub : Function.Injective ⇑(V.ρ z - n)) |
| 207 | (τ : V →+ V) (hτ : ∀ a : V, ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), W δ (τ (W δ⁻¹ a)) = a) |
| 208 | (frob : ι → G) (b : fixedSUnits N U →+ ι → ZMod l) |
| 209 | (hb : ∀ (y : fixedSUnits N U) (r : DiscreteUnits Ω), l • r = ↑y → ∀ i : ι, |
| 210 | (rootPowHom Ω l).val (b y i) = unitsRep (frob i) r - r) |
| 211 | (h_fix : ∀ r : DiscreteUnits Ω, l • r ∈ fixedSUnits N U → (∀ i : ι, unitsRep (frob i) r = r) → |
| 212 | unitsRep z r - n • r ∈ (unitsModule U.toOpenSubgroup.toSubgroup).H0) |
| 213 | (x : ((fixedSUnitsRep N U).prod |
| 214 | (Representation.trivial ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) ℤ)).IntertwiningMap W) : |
| 215 | x ∈ (symbolIntertwiningMap W hW b).range := by |
| 216 | classical |
| 217 | let ρ : Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) (fixedSUnits N U × ℤ) := |
| 218 | (fixedSUnitsRep N U).prod (.trivial _ _ ℤ) |
| 219 | let β : fixedSUnits N U →+ ι × (G ⧸ U.toOpenSubgroup.toSubgroup) → ZMod l := |
| 220 | mk' (fun y (i, δ) ↦ b (fixedSUnitsRep N U δ y) i) (by simp [funext_iff]) |
| 221 | -- `x` kills every unit `y` whose symbols `β y` vanish. |
| 222 | have h_kill (y : fixedSUnits N U) (hy : β y = 0) : x (y, 0) = 0 := by |
| 223 | -- The symbols of `y` vanish, so `z y - n • y = l • c` for an `N`-unit `c`. |
| 224 | have hy_symbol (i : ι) : b y i = 0 := by simpa [β] using congr_fun hy (i, 1) |
| 225 | obtain ⟨c, hc⟩ := exists_act_sub_nsmul_eq_nsmul_of_symbol_eq_zero frob b hb h_fix y hy_symbol |
| 226 | have hc_pair : ρ z (y, 0) - n • (y, 0) = l • (c, 0) := Prod.ext hc (by simp [ρ]) |
| 227 | -- As `l` kills `V`, `z - n` kills the value of `x`. |
| 228 | have h_zero : W z (x (y, 0)) - n • x (y, 0) = 0 := by |
| 229 | rw [← x.isIntertwining, ← map_nsmul, ← map_sub, hc_pair, map_nsmul, h_tors] |
| 230 | exact (injective_iff_map_eq_zero _).mp h_inj_sub _ (by simpa [hW] using h_zero) |
| 231 | -- Write `x (y, 0) = v (β y)` with `v` linear, then average `v` with `τ`. |
| 232 | obtain ⟨v, hv⟩ : ∃ v : _ →ₗ[ZMod l] V, ∀ y, v (β y) = x (y, 0) := |
| 233 | exists_linearMap_factor_of_ker_le β (x.toAddMonoidHom.comp (inl (fixedSUnits N U) ℤ)) h_kill |
| 234 | -- `x (0, 1)` is fixed by `G`. |
| 235 | refine ⟨(fun i ↦ ∑ δ, W δ (τ (v (Pi.single (i, δ) 1))), |
| 236 | ⟨x (0, 1), by simp [funext_iff, coboundaryMap, hW, ← x.isIntertwining]⟩), ?_⟩ |
| 237 | ext y |
| 238 | swap |
| 239 | · simp [symbolIntertwiningMap] |
| 240 | suffices h_coords : |
| 241 | ∑ θ, β y θ • ∑ g, W θ.2⁻¹ (W g (τ (v (Pi.single (θ.1, g) 1)))) = x (y, 0) by |
| 242 | simpa [symbolIntertwiningMap, β] using h_coords |
| 243 | -- Expand `x (y, 0) = ∑ δ, δ (τ (v (β (δ⁻¹ y))))` in coordinates; the two sums match under |
| 244 | -- `((i, δ), g) ↦ (δ⁻¹ * g, i, g)`. |
| 245 | rw [← hτ (x _)] |
| 246 | suffices h_reindex : |
| 247 | ∑ p : (ι × (G ⧸ U.toOpenSubgroup.toSubgroup)) × (G ⧸ U.toOpenSubgroup.toSubgroup), |
| 248 | β y p.1 • W p.1.2⁻¹ (W p.2 (τ (v (Pi.single (p.1.1, p.2) 1)))) = |
| 249 | ∑ q : (G ⧸ U.toOpenSubgroup.toSubgroup) × (ι × (G ⧸ U.toOpenSubgroup.toSubgroup)), |
| 250 | β (fixedSUnitsRep N U q.1⁻¹ y) q.2 • W q.1 (τ (v (Pi.single q.2 1))) by |
| 251 | simpa [↓← x.isIntertwining, congrArg v (pi_eq_sum_univ' (β _)), ZMod.map_smul, |
| 252 | ← sum_product', smul_sum, ← hv] using h_reindex |
| 253 | refine sum_nbij' (fun ((i, δ), g) ↦ (δ⁻¹ * g, i, g)) (fun (δ, i, g) ↦ ((i, g / δ), g)) |
| 254 | ?_ ?_ ?_ ?_ ?_ <;> simp [β] |
| 255 | |
| 256 | /-- Let `l` kill `V`, let `z - n` be injective on `V`, and let `z` raise the `l`-th roots of unity |
| 257 | in `Ω` (`New.Ω`, the algebraic closure of `ℚ`) to the power `n`. Then every `ℤ`-linear `x` from |
| 258 | (`N`-units) `× ℤ` to `V` that commutes with `z` kills the torsion. -/ |
| 259 | private lemma torsion_le_ker_of_map_act_eq {G K R : Type} [Group G] [TopologicalSpace G] |
| 260 | [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] |
| 261 | {l N : ℕ} [Fact l.Prime] {V : DiscreteModule R G} {U : OpenNormalSubgroup G} |
| 262 | [Module (ZMod l) V] {z : G} {n : ℕ} |
| 263 | (h_inj_sub : Function.Injective ⇑(V.ρ z - n)) (h_cyc : (cyclotomicCharMod Ω l z).val = n) |
| 264 | (x : fixedSUnits N U × ℤ →ₗ[ℤ] V) |
| 265 | (hx : ∀ y : fixedSUnits N U × ℤ, x (((fixedSUnitsRep N U).prod |
| 266 | (Representation.trivial ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) ℤ)) z y) = V.ρ z (x y)) : |
| 267 | torsion ℤ (fixedSUnits N U × ℤ) ≤ LinearMap.ker x := by |
| 268 | -- `z` acts on a torsion element `y` by an integer `a = n` modulo `l`, so `z - n` kills `x y`. |
| 269 | intro y hy |
| 270 | obtain ⟨a, ha, h_act⟩ := exists_act_torsion_eq_nsmul l z hy |
| 271 | have h_na : (n : ZMod l) = a := h_cyc.symm.trans ha |
| 272 | have h_eigen : V.ρ z (x y) = n • x y := calc |
| 273 | V.ρ z (x y) = x (a • y) := by rw [← hx, h_act] |
| 274 | _ = n • x y := by rw [map_nsmul, ← cast_smul_eq_nsmul (ZMod l), ← h_na, cast_smul_eq_nsmul] |
| 275 | exact (injective_iff_map_eq_zero _).mp h_inj_sub _ (by simp [h_eigen]) |
| 276 | |
| 277 | /-- The converse of reciprocity on the kernel of `symbolIntertwiningMap`. Let `W` be the action of |
| 278 | `G ⧸ U` on `V`, let `τ` be a Higman trace, and let `h_conv` say that a family `f` satisfying the |
| 279 | symbol relations gives, for each `a : V`, a trivialised cocycle with value `∑ δ, δ (f (i, δ) • a)` |
| 280 | at each `γ i`. If `(a, c)` lies in the kernel, then `c = 0` and some trivialised cocycle takes the |
| 281 | value `a i` at each `γ i`. -/ |
| 282 | private lemma exists_mem_trivializedCocycles_of_mem_ker {G K R : Type} [Group G] |
| 283 | [TopologicalSpace G] [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] |
| 284 | [IsProGalois G K Ω] [CommRing R] {l N : ℕ} [Fact l.Prime] {V : DiscreteModule R G} |
| 285 | {U : OpenNormalSubgroup G} [Module (ZMod l) V] [Finite V] {ι : Type} |
| 286 | [Fintype ι] {I : Set G} |
| 287 | (W : Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) V) (hW : ∀ g : G, ⇑(V.ρ g) = W g) |
| 288 | (τ : V →+ V) (hτ : ∀ a : V, ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), W δ (τ (W δ⁻¹ a)) = a) |
| 289 | (b : fixedSUnits N U →+ ι → ZMod l) (γ : ι → G) |
| 290 | (h_conv : ∀ f : ι × G ⧸ U.toOpenSubgroup.toSubgroup → ZMod l, |
| 291 | (∀ y : fixedSUnits N U, ∑ θ : ι × G ⧸ (U.toOpenSubgroup : Subgroup G), |
| 292 | b (fixedSUnitsRep N U θ.2 y) θ.1 * f θ = 0) → |
| 293 | ∀ a : V, ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, |
| 294 | ∀ i : ι, P.2 (γ i) = ∑ δ : G ⧸ U.toOpenSubgroup.toSubgroup, V.ρ δ.out (f (i, δ) • a)) |
| 295 | {a : ι → V} {c : (coboundaryMap V.ρ).toAddMonoidHom.ker} |
| 296 | (h_ker : (a, c) ∈ (symbolIntertwiningMap W hW b).ker) : |
| 297 | c = 0 ∧ ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, P.2 (γ i) = a i := by |
| 298 | have h_zero : symbolIntertwiningMap W hW b (a, c) = 0 := AddMonoidHom.mem_ker.mp h_ker |
| 299 | have hc : c = 0 := by simpa [symbolIntertwiningMap] using DFunLike.congr_fun h_zero (0, 1) |
| 300 | refine ⟨hc, ?_⟩ |
| 301 | -- Each coordinate of `τ (δ⁻¹ (a i))` in a basis kills the symbols; the converse of reciprocity |
| 302 | -- gives cocycles `P k`, to be added up. |
| 303 | let basis := Module.finBasis (ZMod l) V |
| 304 | have h_coord (k : Fin _) (y : fixedSUnits N U) : |
| 305 | ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 306 | b (fixedSUnitsRep N U θ.2 y) θ.1 * basis.repr (τ (W θ.2⁻¹ (a θ.1))) k = 0 := by |
| 307 | simpa [symbolIntertwiningMap, ZMod.map_smul] using |
| 308 | congr_arg (fun v ↦ basis.repr (τ v) k) (DFunLike.congr_fun h_zero (y, 0)) |
| 309 | have h_cocycles (k : Fin _) : ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, |
| 310 | P.2 (γ i) = ∑ δ : G ⧸ U.toOpenSubgroup.toSubgroup, |
| 311 | V.ρ δ.out (basis.repr (τ (W δ⁻¹ (a i))) k • basis k) := |
| 312 | h_conv _ (h_coord k) (basis k) |
| 313 | choose P hP h_val using h_cocycles |
| 314 | refine ⟨∑ k, P k, sum_mem fun k _ ↦ hP k, fun i ↦ ?_⟩ |
| 315 | -- Interchange the sums, expand in the basis, and use the trace identity for `a i`. |
| 316 | have h_expand (δ : G ⧸ U.toOpenSubgroup.toSubgroup) : |
| 317 | ∑ k, V.ρ δ.out (basis.repr (τ (W δ⁻¹ (a i))) k • basis k) = W δ (τ (W δ⁻¹ (a i))) := by |
| 318 | simp [← map_sum, hW] |
| 319 | simpa [Prod.snd_sum, h_val, sum_comm (γ := Fin _), h_expand] using hτ (a i) |
| 320 | |
| 321 | /-- The `ℤ`-linear representation of `G ⧸ U` on a discrete `R`-module `V` over `G` induced by an |
| 322 | open normal subgroup `U` acting trivially on `V` (`h_triv`). -/ |
| 323 | private noncomputable def liftedActionRep {G R : Type} [Group G] [TopologicalSpace G] [CommRing R] |
| 324 | {V : DiscreteModule R G} {U : OpenNormalSubgroup G} |
| 325 | (h_triv : ∀ g ∈ U, ∀ a : V, V.ρ g a = a) : |
| 326 | Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) V := |
| 327 | QuotientGroup.lift _ (actionRep ℤ V V.ρ) fun g hg ↦ LinearMap.ext (h_triv g hg) |
| 328 | |
| 329 | /-- Let `G` act on `Ω` as the Galois group of `K`, let `V` be a discrete `R`-module over `G`, let |
| 330 | `U` be an open normal subgroup of `G` acting trivially on `V` (`h_triv`), and let |
| 331 | `W := liftedActionRep h_triv` be the lifted action of `G ⧸ U` on `V`. Let `I ⊆ U` (`hI`), let `τ` |
| 332 | be a Higman trace for `W` (`∑ δ, W δ (τ (W δ⁻¹ a)) = a` for all `a : V`), and for a level |
| 333 | `N` let `r : V.trivializedCocycles (PlaceAboveLevel N) I →+ J` be an additive homomorphism |
| 334 | into an additive group `J` such that every element of `r.ker` has cocycle vanishing on `U` |
| 335 | (`h_vanish`), and `r.ker` contains all trivialised cocycles with zero cocycle component |
| 336 | (`h_zero_ker`) as well as every constant trivialisation of a coboundary |
| 337 | `a ↦ (fun _ ↦ a, fun g ↦ V.ρ g a - a)` (`h_cob_ker`). Then projecting to the cocycle component |
| 338 | gives a surjective homomorphism `p : r.ker →+ (coboundaryMap V.ρ).toAddMonoidHom.range` with |
| 339 | `(p P).val = P.val.val.2` for all `P : r.ker` whose kernel has the same cardinality as the |
| 340 | `G ⧸ U`-equivariant functions from the `U`-orbits of `PlaceAboveLevel N` to `V`. -/ |
| 341 | private lemma exists_coboundary_map_ker_surjective {G K R J : Type} [Group G] [TopologicalSpace G] |
| 342 | [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] |
| 343 | [AddCommGroup J] {N : ℕ} {V : DiscreteModule R G} {I : Set G} |
| 344 | {U : OpenNormalSubgroup G} (h_triv : ∀ g ∈ U, ∀ a : V, V.ρ g a = a) (hI : ∀ g ∈ I, g ∈ U) |
| 345 | (τ : V →+ V) |
| 346 | (hτ : ∀ a : V, ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), |
| 347 | liftedActionRep h_triv δ (τ (liftedActionRep h_triv δ⁻¹ a)) = a) |
| 348 | (r : V.trivializedCocycles (PlaceAboveLevel N) I →+ J) |
| 349 | (h_vanish : ∀ P ∈ r.ker, ∀ g ∈ U, P.val.2 g = 0) |
| 350 | (h_zero_ker : ∀ P : V.trivializedCocycles (PlaceAboveLevel N) I, P.val.2 = 0 → r P = 0) |
| 351 | (h_cob_ker : ∀ (a : V) |
| 352 | (hP : (fun _ : PlaceAboveLevel N ↦ a, fun g ↦ V.ρ g a - a) ∈ |
| 353 | V.trivializedCocycles (PlaceAboveLevel N) I), r ⟨_, hP⟩ = 0) : |
| 354 | ∃ p : r.ker →+ (coboundaryMap V.ρ).toAddMonoidHom.range, |
| 355 | (∀ P : r.ker, (p P).val = P.val.val.2) ∧ |
| 356 | p.range = ⊤ ∧ |
| 357 | Nat.card {F : MulAction.orbitRel.Quotient U.1.1 (PlaceAboveLevel N) → V // |
| 358 | ∀ (δ : G ⧸ U.toOpenSubgroup.toSubgroup) (x), |
| 359 | F (δ • x) = liftedActionRep h_triv δ (F x)} = Nat.card p.ker := by |
| 360 | classical |
| 361 | set W := liftedActionRep h_triv |
| 362 | have hW (g : G) : ⇑(V.ρ g) = W g := rfl |
| 363 | -- In `ker r` the cocycle vanishes on `U`, so the trivialisation descends to `U`-orbits. |
| 364 | let f (P : r.ker) : MulAction.orbitRel.Quotient U.1.1 (PlaceAboveLevel N) → V := |
| 365 | Quotient.lift P.val.val.1 fun _ x ⟨g, hg⟩ ↦ by |
| 366 | have h_zero : ∀ g ∈ U, P.val.val.2 g = 0 := h_vanish P.val P.property |
| 367 | simpa [← hg, h_triv, h_zero] using! (P.val.property.2.1 g x).symm |
| 368 | have hf (P : r.ker) (g : G) (x : MulAction.orbitRel.Quotient U.1.1 (PlaceAboveLevel N)) : |
| 369 | W g (f P x) = f P ((g : G ⧸ U.toOpenSubgroup.toSubgroup) • x) + P.val.val.2 g := |
| 370 | x.ind' (P.val.property.2.1 g) |
| 371 | -- There the cocycle is a coboundary: average `f P` with `τ` along the orbit of `x₀`. |
| 372 | have h_cob (P : r.ker) : P.val.val.2 ∈ (coboundaryMap V.ρ).toAddMonoidHom.range := by |
| 373 | let x₀ : PlaceAboveLevel N := Classical.arbitrary _ |
| 374 | exact ⟨∑ δ, W δ (τ (W δ⁻¹ (f P (δ • ⟦x₀⟧)))), funext fun g ↦ |
| 375 | sub_eq_of_eq_add' (W.apply_sum_trace_eq_add τ hτ (f P) ⟦x₀⟧ g (P.val.val.2 g) (hf P g))⟩ |
| 376 | let p : r.ker →+ (coboundaryMap V.ρ).toAddMonoidHom.range := |
| 377 | mk' (fun P ↦ ⟨P.val.val.2, h_cob P⟩) fun _ _ ↦ rfl |
| 378 | refine ⟨p, fun _ ↦ rfl, ?_, ?_⟩ |
| 379 | · -- `p` is onto: the constant function `a` trivialises the coboundary of `a`. |
| 380 | refine p.range_eq_top.mpr fun ⟨_cocycle, a, ha⟩ ↦ ?_ |
| 381 | have hP : (fun _ : PlaceAboveLevel N ↦ a, (V.ρ · a - a)) ∈ |
| 382 | V.trivializedCocycles (PlaceAboveLevel N) I := |
| 383 | ⟨by fun_prop, by simp +contextual [h_triv _ (hI ..)]⟩ |
| 384 | exact ⟨⟨⟨_, hP⟩, h_cob_ker a hP⟩, Subtype.ext ha⟩ |
| 385 | · -- `ker p` consists of the equivariant functions on the `U`-orbits of places. |
| 386 | exact Nat.card_congr |
| 387 | { toFun F := ⟨⟨⟨⟨(F.val ⟦·⟧), 0⟩, by fun_prop, |
| 388 | fun g x ↦ by simpa [hW] using! (F.property g ⟦x⟧).symm, by simp⟩, |
| 389 | h_zero_ker _ rfl⟩, rfl⟩ |
| 390 | invFun P := ⟨f P, fun δ ↦ δ.ind' (by simp [hf, Subtype.mk.inj P.property])⟩ |
| 391 | left_inv F := Subtype.ext (funext fun x ↦ x.inductionOn fun _ ↦ rfl) |
| 392 | right_inv P := Subtype.ext <| Subtype.ext <| Subtype.ext <| |
| 393 | Prod.ext rfl (congrArg Subtype.val P.property).symm } |
| 394 | |
| 395 | end New.IsLargeLevel |
| 396 | |
| 397 | end SymbolMaps |
| 398 | |
| 399 | /-- Counting along `r : T → J` and a surjection `p` from `ker r` onto `D`: |
| 400 | `#T = #(ker p) * #D * #(range r)`. -/ |
| 401 | lemma AddMonoidHom.card_eq_card_ker_mul_card_mul_card_range {T J D : Type} [AddCommGroup T] |
| 402 | [AddCommGroup J] [AddCommGroup D] (r : T →+ J) (p : r.ker →+ D) (hp : p.range = ⊤) : |
| 403 | Nat.card T = Nat.card p.ker * Nat.card D * Nat.card r.range := by |
| 404 | rw [← AddSubgroup.card_ker_mul_card_range r, |
| 405 | ← AddSubgroup.card_ker_mul_card_of_surjective (p.range_eq_top.mp hp)] |
| 406 | |
| 407 | /-- Counting along `d : A → B` and a surjection `j` from `(ι → A) × ker d` onto `H`: |
| 408 | `#A ^ (#ι + 1) = #H * #(range d) * #(ker j)`. -/ |
| 409 | lemma AddMonoidHom.card_pow_succ_eq_card_mul_card_range_mul_card_ker {ι A B H : Type} [Fintype ι] |
| 410 | [AddCommGroup A] [AddCommGroup B] [AddCommGroup H] (d : A →+ B) (j : (ι → A) × d.ker →+ H) |
| 411 | (hj : Function.Surjective j) : |
| 412 | Nat.card A ^ (Fintype.card ι + 1) = Nat.card H * Nat.card d.range * Nat.card j.ker := by |
| 413 | rw [pow_succ, ← card_eq_fintype_card, ← Nat.card_fun, |
| 414 | ← AddSubgroup.card_ker_mul_card_range d, ← mul_assoc, ← Nat.card_prod, |
| 415 | ← AddSubgroup.card_ker_mul_card_of_surjective hj, mul_rotate] |
| 416 | |
| 417 | /-- Count of the trivialised cocycles, for split places indexed by `ι`. Let `V` be finite, killed by |
| 418 | the prime `l`, fixed by `U`, Higman-projective over `G ⧸ U`, with `z - n` injective; let `U` fix |
| 419 | `z r / r ^ n` whenever `r ^ l` is an `N`-unit fixed by `U` and every `s.φ i` fixes `r`. (a) There |
| 420 | are between one and `#V ^ (#ι + 1)` of them. (b) Exactly `#V ^ (#ι + 1)` if `z` raises the `l`-th |
| 421 | roots of unity to the power `n` and `K` is totally complex. Trivialised cocycles are pairs of `f` on |
| 422 | the places of Ω over `N` and ∞ and a continuous `c : G → V` zero on `I`, with |
| 423 | `g f(x) = f(gx) + c(g)`. `I` is inertia above the primes prime to `N` other than the split `v i`, |
| 424 | and `s.φ i ∈ U` are Frobenii at them. -/ |
| 425 | lemma New.IsLargeLevel.SplitPlaces.card_trivialized_of_isHigmanProjective {G K R ι : Type} [Group G] |
| 426 | [TopologicalSpace G] [Field K] [EmbeddedNumberField K] [MulSemiringAction G Ω] |
| 427 | [IsProGalois G K Ω] [CommRing R] {l N : ℕ} [Fact l.Prime] [NeZero N] {V : DiscreteModule R G} |
| 428 | {I : Set G} {U : OpenNormalSubgroup G} (s : SplitPlaces l N I U ι) [Fintype ι] {z : G} {n : ℕ} |
| 429 | (hV_fin : V.FiniteKilledFixedInj l U z n) |
| 430 | (hV_proj : V.IsHigmanProjective U.toOpenSubgroup.toSubgroup) |
| 431 | (h_fix : ∀ r : DiscreteUnits Ω, l • r ∈ fixedSUnits N U → (∀ i : ι, unitsRep (s.φ i) r = r) → |
| 432 | unitsRep z r - n • r ∈ (unitsModule U.toOpenSubgroup.toSubgroup).H0) : |
| 433 | -- (a) the trivialised cocycles are finitely many, at most `#V ^ (#ι + 1)` |
| 434 | V.HasFewCocycles (PlaceAboveLevel N) I (Fintype.card ι + 1) ∧ |
| 435 | -- (b) exactly that many if `z` acts on `l`-th roots of unity by `n` and `K` is totally complex |
| 436 | ((cyclotomicCharMod Ω l z).val = n → IsTotallyComplex K → |
| 437 | Nat.card (V.trivializedCocycles (PlaceAboveLevel N) I) = |
| 438 | Nat.card V ^ (Fintype.card ι + 1)) := by |
| 439 | classical |
| 440 | -- Write `Δ = G ⧸ U` and `H` for the `Δ`-maps from (`N`-units) `× ℤ` to `V`. We count both sides |
| 441 | -- along the maps `r`, `p`, `j`, `d` below: with `H₀ ≤ H` the maps that kill torsion, |
| 442 | -- `#trivializedCocycles = #H₀ * #range d * #range r`, |
| 443 | -- `#V ^ (#ι + 1) = #H * #range d * #ker j`, |
| 444 | -- and `range r ≤ ker j`. Under the two extra hypotheses both inclusions are equalities. |
| 445 | -- |
| 446 | -- Dirichlet: independent equivariant real forms `Λ` on (`N`-units) `× ℤ`, one for each |
| 447 | -- `U`-orbit of places; the rank is at most the number of orbits. |
| 448 | obtain ⟨h_units_fg, Λ, hΛ, h_indep, h_rank⟩ := dirichlet_fixedSUnits G N U |
| 449 | obtain ⟨hV_finite, h_tors, h_triv, h_inj⟩ := hV_fin |
| 450 | obtain ⟨τ, hτ_out⟩ := hV_proj |
| 451 | have hV_module : Module (ZMod l) V := AddCommGroup.zmodModule h_tors |
| 452 | -- `γ i` is an element of inertia above `s.v i` that multiplies an `l`-th root of a uniformiser |
| 453 | -- by the fixed primitive `l`-th root of unity. |
| 454 | choose γ hγ using fun i ↦ exists_isTameGeneratorFor G l (s.isPlaceOver i) |
| 455 | -- Reciprocity. `hβ₀`: `β₀ y i` is the power residue symbol of the unit `y` at `s.φ i`. |
| 456 | -- `h_rel`: a trivialised cocycle that vanishes at all `γ i` vanishes on `U`, and its values at |
| 457 | -- the `γ i` satisfy one linear relation for each `y`. `h_conv`: the converse of the latter. |
| 458 | obtain ⟨β₀, hβ₀, h_rel, h_conv⟩ := s.power_residue_reciprocity γ hγ h_triv |
| 459 | set W := liftedActionRep h_triv |
| 460 | have hW (g : G) : ⇑(V.ρ g) = W g := rfl |
| 461 | have hτ (a : V) : ∑ δ, W δ (τ (W δ⁻¹ a)) = a := by simpa [hW] using hτ_out a |
| 462 | let ρ : Representation ℤ (G ⧸ U.toOpenSubgroup.toSubgroup) (fixedSUnits N U × ℤ) := |
| 463 | (fixedSUnitsRep N U).prod (.trivial _ _ ℤ) |
| 464 | -- `d a` is the coboundary `g ↦ g a - a`. |
| 465 | let d : V →+ G → V := (coboundaryMap V.ρ).toAddMonoidHom |
| 466 | -- `j (a, c)`, for `c` fixed by `G`, sends `(y, k)` to `∑ β₀ (δ y) i • δ⁻¹ (a i) + k • c`. |
| 467 | let j : (ι → V) × d.ker →+ ρ.IntertwiningMap W := symbolIntertwiningMap W hW β₀ |
| 468 | -- `r` evaluates a trivialised cocycle at the `γ i`; by reciprocity the values lie in `ker j`. |
| 469 | let r : V.trivializedCocycles (PlaceAboveLevel N) I →+ j.ker := |
| 470 | mk' (fun P ↦ ⟨(P.val.2 ∘ γ, 0), by |
| 471 | have h_symbols (y : fixedSUnits N U) : |
| 472 | ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 473 | β₀ (fixedSUnitsRep N U θ.2 y) θ.1 • W θ.2⁻¹ (P.val.2 (γ θ.1)) = 0 := by |
| 474 | simpa [hW] using (h_rel _ P.property).2 y |
| 475 | ext <;> simp [j, symbolIntertwiningMap, h_symbols]⟩) |
| 476 | fun _ _ ↦ by ext <;> simp |
| 477 | -- Project `ker r` onto `d.range` (`exists_coboundary_map_ker_surjective`): in `ker r` the |
| 478 | -- cocycle vanishes on `U` so the trivialisation descends to `U`-orbits and averaging with `τ` |
| 479 | -- exhibits it as a coboundary. |
| 480 | have h_vanish : ∀ P ∈ r.ker, ∀ g ∈ U, P.val.2 g = 0 := fun P hP ↦ |
| 481 | (h_rel _ P.property).1 fun i ↦ congrArg (fun q : j.ker ↦ q.val.1 i) hP |
| 482 | have h_cob_ker (a : V) |
| 483 | (hP : (fun _ : PlaceAboveLevel N ↦ a, fun g ↦ V.ρ g a - a) ∈ |
| 484 | V.trivializedCocycles (PlaceAboveLevel N) I) : r ⟨_, hP⟩ = 0 := by |
| 485 | simp [Subtype.ext_iff, funext_iff, r, h_triv, s.decompGroup_le (s.isPlaceOver _) (hγ _).1.1] |
| 486 | obtain ⟨p, -, h_range_p, h_ker_p_card⟩ := |
| 487 | exists_coboundary_map_ker_surjective h_triv (fun g hg ↦ (s.mem_and_conj_mem g hg).1) τ hτ r |
| 488 | h_vanish (fun P hP ↦ by ext <;> simp [r, hP]) h_cob_ker |
| 489 | -- `j` is onto: every equivariant `x` is given by the symbols. |
| 490 | have h_onto : Function.Surjective j := |
| 491 | mem_range_symbolIntertwiningMap W hW h_tors h_inj τ hτ s.φ β₀ hβ₀ h_fix |
| 492 | have h_finite_maps : Finite (ρ.IntertwiningMap W) := .of_surjective j h_onto |
| 493 | -- `ker p` consists of the equivariant functions on the `U`-orbits of places; by Dirichlet's |
| 494 | -- theorem and `card_hom_lattice_eq_card_equivariant` there are as many as maps in `H₀`, those |
| 495 | -- that kill torsion. |
| 496 | let H₀ := {x : ρ.IntertwiningMap W // torsion ℤ (fixedSUnits N U × ℤ) ≤ LinearMap.ker x.1} |
| 497 | have h_ker_p : Nat.card H₀ = Nat.card p.ker := by |
| 498 | rw [card_hom_lattice_eq_card_equivariant l hτ hΛ h_indep h_rank, h_ker_p_card] |
| 499 | have h_left : Nat.card (V.trivializedCocycles (PlaceAboveLevel N) I) = |
| 500 | Nat.card H₀ * Nat.card d.range * Nat.card r.range := by |
| 501 | rw [h_ker_p, r.card_eq_card_ker_mul_card_mul_card_range p h_range_p] |
| 502 | have h_right : Nat.card V ^ (card ι + 1) = |
| 503 | Nat.card (ρ.IntertwiningMap W) * Nat.card d.range * Nat.card j.ker := |
| 504 | d.card_pow_succ_eq_card_mul_card_range_mul_card_ker j h_onto |
| 505 | rw [DiscreteModule.HasFewCocycles, h_left, h_right] |
| 506 | refine ⟨⟨?_, ?_⟩, fun h_cyc _ ↦ ?_⟩ |
| 507 | · have h_nonempty : Nonempty H₀ := ⟨0, by simp⟩ |
| 508 | have : Nonempty r.range := ⟨0⟩ |
| 509 | exact mul_pos (mul_pos card_pos card_pos) card_pos |
| 510 | · grw [r.range.card_le_card_addGroup, Finite.card_subtype_le] |
| 511 | -- Equality, first part: every `x` kills torsion, since `z` acts on a torsion element `y` by an |
| 512 | -- integer `a = n` modulo `l`, so that `z - n` kills `x y`. |
| 513 | have h_torsion (x : ρ.IntertwiningMap W) : torsion ℤ _ ≤ LinearMap.ker x.toLinearMap := |
| 514 | torsion_le_ker_of_map_act_eq h_inj h_cyc x.toLinearMap fun y ↦ |
| 515 | (Representation.IntertwiningMap.isIntertwining _ _ x z y).trans (congrFun (hW z) (x y)).symm |
| 516 | -- Second part: `r` is onto, by the converse of reciprocity. |
| 517 | have h_range_r : r.range = ⊤ := by |
| 518 | refine r.range_eq_top.mpr fun ⟨⟨a, c⟩, h_ker⟩ ↦ ?_ |
| 519 | obtain ⟨rfl, P, hP, hPγ⟩ := exists_mem_trivializedCocycles_of_mem_ker W hW τ hτ β₀ γ |
| 520 | (h_conv (isTotallyComplex_of_algebra K _)) h_ker |
| 521 | exact ⟨⟨P, hP⟩, Subtype.ext (Prod.ext (funext hPγ) rfl)⟩ |
| 522 | rw [h_range_r, card_top, Nat.card_congr (.subtypeUnivEquiv h_torsion)] |
| 523 | |
| 524 | /-- Under the hypotheses of `card_trivialized_of_isHigmanProjective`, if `K` is totally complex and |
| 525 | `z` raises the `l`-th roots of unity to the power `n`, there are exactly `#V ^ (#ι + 1)` |
| 526 | trivialised cocycles. -/ |
| 527 | lemma New.IsLargeLevel.SplitPlaces.card_trivializedCocycles_eq_of_isHigmanProjective |
| 528 | {G K R ι : Type} [Group G] [TopologicalSpace G] [Field K] [EmbeddedNumberField K] |
| 529 | [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] {l N : ℕ} [Fact l.Prime] [NeZero N] |
| 530 | {V : DiscreteModule R G} {I : Set G} {U : OpenNormalSubgroup G} (s : SplitPlaces l N I U ι) |
| 531 | [Fintype ι] {z : G} {n : ℕ} (hV_fin : V.FiniteKilledFixedInj l U z n) |
| 532 | (hV_proj : V.IsHigmanProjective U.toOpenSubgroup.toSubgroup) |
| 533 | (h_fix : ∀ r : DiscreteUnits Ω, l • r ∈ fixedSUnits N U → |
| 534 | (∀ i : ι, unitsRep (s.φ i) r = r) → |
| 535 | unitsRep z r - n • r ∈ (unitsModule U.toOpenSubgroup.toSubgroup).H0) |
| 536 | [IsTotallyComplex K] (hz : (cyclotomicCharMod Ω l z).val = n) : |
| 537 | Nat.card (V.trivializedCocycles (PlaceAboveLevel N) I) = Nat.card V ^ (Fintype.card ι + 1) := |
| 538 | (s.card_trivialized_of_isHigmanProjective hV_fin hV_proj h_fix).right hz inferInstance |
| 539 | |
| 540 | end ProjectiveCount |
| 541 | |
| 542 | /-! ## The count for modules with a central scalar -/ |
| 543 | |
| 544 | section GreenbergWilesBound |
| 545 | |
| 546 | open NumberField Function Set Nat New.DiscreteModule trivializedCocycles Quotient Subgroup |
| 547 | commutatorElement |
| 548 | |
| 549 | attribute [local instance low] Fintype.ofFinite |
| 550 | |
| 551 | /-- Let the Frobenii detect the roots of units (`U` fixes every `x` that all `s.φ i` fix with |
| 552 | `m • x` an `N`-unit fixed by `U`), and let `z` be central modulo `U` and fix the `l`-th roots of |
| 553 | unity, `l ∣ m`. If `l • x` is an `N`-unit fixed by `U` and the Frobenii fix `x`, then every `g` that |
| 554 | fixes `l • x` fixes `z x - x`. -/ |
| 555 | lemma New.IsLargeLevel.SplitPlaces.fixes_sub_of_frobeniiDetectRoots {K ι : Type} [Field K] |
| 556 | [EmbeddedNumberField K] {l m N : ℕ} [NeZero l] [NeZero m] {I : Set Gal(Ω/K)} |
| 557 | {U : OpenNormalSubgroup Gal(Ω/K)} (s : SplitPlaces (G := Gal(Ω/K)) (K := K) m N I U ι) |
| 558 | (hlm : l ∣ m) (hdetect : s.FrobeniiDetectRoots) {z : Gal(Ω/K)} |
| 559 | (hz : (cyclotomicCharMod Ω l z).val = (1 : ℕ)) (hcentral : ∀ g : Gal(Ω/K), ⁅z, g⁆ ∈ U) |
| 560 | (x : DiscreteUnits Ω) (hx : l • x ∈ fixedSUnits N U) (hφ : ∀ i : ι, unitsRep (s.φ i) x = x) |
| 561 | (g : Gal(Ω/K)) (hg : unitsRep g (l • x) = l • x) : |
| 562 | unitsRep g (unitsRep z x - 1 • x) = unitsRep z x - 1 • x := by |
| 563 | -- `U` fixes `x`, so `g` and `z` commute on `x`, and `z` fixes the `l`-torsion element `g x - x`. |
| 564 | obtain ⟨q, rfl⟩ := hlm |
| 565 | have hU : ∀ k ∈ U, unitsRep k x = x := |
| 566 | hdetect x (by simpa [mul_nsmul] using nsmul_mem hx q) hφ |
| 567 | have hswap : unitsRep g (unitsRep z x) = unitsRep z (unitsRep g x) := by |
| 568 | -- Apply `z * g` to the fact that the commutator `⁅z, (g * z)⁻¹⁆ ∈ U` fixes `x`. |
| 569 | have hcomm : unitsRep ⁅z, (g * z)⁻¹⁆ x = x := hU _ (hcentral (g * z)⁻¹) |
| 570 | simpa [commutatorElement_def] using congrArg (unitsRep (z * g)) hcomm |
| 571 | have htors : l • (unitsRep g x - x) = 0 := by rw [smul_sub, ← map_nsmul, hg, sub_self] |
| 572 | have hz_fix : unitsRep z (unitsRep g x - x) = unitsRep g x - x := by |
| 573 | simpa using cyclotomicCharMod_eq_iff_unitsRep.mp hz htors |
| 574 | rw [map_sub] at hz_fix |
| 575 | linear_combination (norm := (simp; abel)) hswap + hz_fix |
| 576 | |
| 577 | /-- The exact count over an open subgroup `B` of `G = Gal(Ω/K)` that contains `U` and `z`. Let `K` |
| 578 | be totally complex, let `S` be split places for `l`, and let `z` fix the `l`-th roots of unity. |
| 579 | Suppose (`hfix`) that for every `x` fixed by the Frobenii `S.φ i` with `l • x` an `N`-unit fixed |
| 580 | by `U`, every `g` fixing `l • x` fixes `z x - x`. Let `U ≤ Q` in `B`, with `Q` fixing the `l`-th |
| 581 | roots of unity, and let `W` be a `B`-module that is finite, killed by `l`, fixed by `Q`, with |
| 582 | `z - 1` injective, and projective over `B/Q` in Higman's sense. Then `W` has exactly |
| 583 | `#W ^ (#(ι × G/B) + 1)` trivialised cocycles. -/ |
| 584 | private lemma New.IsLargeLevel.SplitPlaces.card_trivialized_restrict_of_isHigmanProjective |
| 585 | {K R ι : Type} [Field K] [EmbeddedNumberField K] [CommRing R] {l N : ℕ} [Fact l.Prime] |
| 586 | [NeZero N] {I : Set Gal(Ω/K)} [Fintype ι] [IsTotallyComplex K] |
| 587 | {U : OpenNormalSubgroup Gal(Ω/K)} (S : SplitPlaces l N I U ι) {z : Gal(Ω/K)} |
| 588 | (hz : (cyclotomicCharMod Ω l z).val = (1 : ℕ)) |
| 589 | (hfix : ∀ x : DiscreteUnits Ω, l • x ∈ fixedSUnits N U → (∀ i : ι, unitsRep (S.φ i) x = x) → |
| 590 | ∀ g : Gal(Ω/K), unitsRep g (l • x) = l • x → |
| 591 | unitsRep g (unitsRep z x - 1 • x) = unitsRep z x - 1 • x) |
| 592 | {B : OpenSubgroup Gal(Ω/K)} (hUB : U.toOpenSubgroup.toSubgroup ≤ B) (hzB : z ∈ B) |
| 593 | (Q : OpenNormalSubgroup B.toSubgroup) (hUQ : U.toOpenSubgroup.toSubgroup.subgroupOf B ≤ Q) |
| 594 | (hQ : ∀ g ∈ Q, cyclotomicCharMod Ω l g = 1) {W : DiscreteModule R B.toSubgroup} |
| 595 | (hW : W.FiniteKilledFixedInj l Q ⟨z, hzB⟩ 1) |
| 596 | (hhig : W.IsHigmanProjective Q.toOpenSubgroup.toSubgroup) : |
| 597 | W.HasFewCocycles (PlaceAboveLevel N) ((↑) ⁻¹' I) (Fintype.card (ι × Gal(Ω/K) ⧸ B.1) + 1) ∧ |
| 598 | Nat.card (W.trivializedCocycles (PlaceAboveLevel N) ((↑) ⁻¹' I)) = |
| 599 | Nat.card W ^ (Fintype.card (ι × Gal(Ω/K) ⧸ B.toSubgroup) + 1) := by |
| 600 | classical |
| 601 | -- With `1` among the coset representatives, the `S.φ i` are among the Frobenii over `B`. |
| 602 | let S' := S.liftToSubgroup B Q hUB hUQ hQ (update out ⟦1⟧ 1) (by clear * -; grind [out_eq']) |
| 603 | refine (S'.card_trivialized_of_isHigmanProjective hW hhig fun x hx hφ g ↦ ?_).imp_right |
| 604 | fun heq ↦ heq hz (isTotallyComplex_of_algebra K _) |
| 605 | -- `using!`: the Frobenius of `S'` at `(i, ⟦1⟧)` is `S.φ i` only after unfolding `liftToSubgroup`. |
| 606 | have hφ_S (i : ι) : unitsRep (S.φ i) x = x := by simpa [S', liftToSubgroup] using! hφ ⟨i, ⟦1⟧⟩ |
| 607 | -- `l • x` is an `N`-unit fixed by `U`, as it is one fixed by `Q ≥ U`. |
| 608 | have hx_U : l • x ∈ fixedSUnits N U := ⟨hx.1, fun u ↦ hx.2 ⟨⟨u, hUB u.property⟩, hUQ u.property⟩⟩ |
| 609 | exact hfix x hx_U hφ_S g (hx.2 g) |
| 610 | |
| 611 | /-- The exact count for modules killed by `l`. Let `S`, `z` and `hfix` be as in |
| 612 | `card_trivialized_restrict_of_isHigmanProjective`, with `z` central modulo `U` and fixing the `l`-th |
| 613 | roots of unity, and let `K` be totally complex. Suppose that for every short exact sequence |
| 614 | `W₁ → W → W₂` of `G`-modules, with `W` finite, killed by `l`, fixed by `U` and with `z - 1` |
| 615 | injective, the induced map on trivialised cocycles of `W` and `W₂` is onto. Then every such `W` has |
| 616 | exactly `#W ^ (#ι + 1)` trivialised cocycles: the ratio of the two counts is multiplicative, and `1` |
| 617 | on projective modules. -/ |
| 618 | private lemma New.IsLargeLevel.SplitPlaces.card_trivialized_eq_of_map_range_eq_top |
| 619 | {K R ι : Type} [Field K] [EmbeddedNumberField K] [CommRing R] {l N : ℕ} [Fact l.Prime] |
| 620 | [NeZero N] {I : Set Gal(Ω/K)} [Fintype ι] [IsTotallyComplex K] |
| 621 | {U : OpenNormalSubgroup Gal(Ω/K)} (S : SplitPlaces l N I U ι) {z : Gal(Ω/K)} |
| 622 | (hz : (cyclotomicCharMod Ω l z).val = (1 : ℕ)) |
| 623 | (hcentral : ∀ g : Gal(Ω/K), ⁅z, g⁆ ∈ U) |
| 624 | (hfix : ∀ x : DiscreteUnits Ω, l • x ∈ fixedSUnits N U → (∀ i : ι, unitsRep (S.φ i) x = x) → |
| 625 | ∀ g : Gal(Ω/K), unitsRep g (l • x) = l • x → |
| 626 | unitsRep g (unitsRep z x - 1 • x) = unitsRep z x - 1 • x) |
| 627 | (hlift : ∀ {W₁ W W₂ : DiscreteModule R Gal(Ω/K)} {j : W₁.Hom W} {π : W.Hom W₂}, |
| 628 | IsShortExact j π → W.FiniteKilledFixedInj l U z 1 → (map (PlaceAboveLevel N) I π).range = ⊤) |
| 629 | (W : DiscreteModule R Gal(Ω/K)) (hW : W.FiniteKilledFixedInj l U z 1) : |
| 630 | Nat.card (W.trivializedCocycles (PlaceAboveLevel N) I) = Nat.card W ^ (Fintype.card ι + 1) := by |
| 631 | let ratio (X : DiscreteModule R Gal(Ω/K)) (_ : X.FiniteKilledFixedInj l U z 1) : ℚ≥0 := |
| 632 | Nat.card (X.trivializedCocycles (PlaceAboveLevel N) I) / (Nat.card X ^ (Fintype.card ι + 1) : ℕ) |
| 633 | have hone : ratio W hW = 1 := by |
| 634 | refine IsMultiplicative.eq_one_of_eq_one_on_isHigmanProjective R l U ratio hcentral |
| 635 | (fun hses hX ↦ ?_) |
| 636 | hW fun hX hhig ↦ ?_ |
| 637 | · simp [ratio, mul_pow, hses.card_eq_card_mul_card, mul_div_mul_comm, |
| 638 | card_eq_of_isShortExact _ I hses, |
| 639 | hlift hses hX] |
| 640 | · -- The count for a projective module is exact. |
| 641 | have hX_finite : Finite _ := hX.finite |
| 642 | simp [ratio, S.card_trivializedCocycles_eq_of_isHigmanProjective hX hhig |
| 643 | (fun x hx hφ g ↦ hfix x hx hφ g (hx.2 g)) hz] |
| 644 | exact cast_injective (eq_of_div_eq_one hone) |
| 645 | |
| 646 | /-- Lifting from an upper bound that projective modules attain. Let `l` be prime, `U` open normal in |
| 647 | the compact group `G`, and `z` central modulo `U`. Consider the modules `F` that are finite, killed |
| 648 | by `l`, fixed by `U` and on which `ρ z - 1` is injective. Suppose each has between one and `#F ^ k` |
| 649 | trivialised cocycles, and those projective over `G ⧸ U` in Higman's sense have at least `#F ^ k`. |
| 650 | Then along a short exact sequence `W₁ → W → W₂` with `W` such a module, every trivialised cocycle |
| 651 | of `W₂` lifts to `W`. -/ |
| 652 | private lemma New.DiscreteModule.trivializedCocycles.map_range_eq_top_of_hasFewCocycles |
| 653 | {R G X : Type} [CommRing R] [Group G] [TopologicalSpace G] [IsTopologicalGroup G] |
| 654 | [CompactSpace G] [MulAction G X] {I : Set G} {l k : ℕ} [Fact l.Prime] |
| 655 | {U : OpenNormalSubgroup G} {z : G} (hcentral : ∀ g : G, ⁅z, g⁆ ∈ U) |
| 656 | (h_upper : ∀ F : DiscreteModule R G, |
| 657 | F.FiniteKilledFixedInj l U z 1 → F.HasFewCocycles X I k) |
| 658 | (h_proj : ∀ F : DiscreteModule R G, F.FiniteKilledFixedInj l U z 1 → F.IsHigmanProjective U → |
| 659 | Nat.card F ^ k ≤ Nat.card (F.trivializedCocycles X I)) |
| 660 | {W₁ W W₂ : DiscreteModule R G} {j : W₁.Hom W} {π : W.Hom W₂} (hses : IsShortExact j π) |
| 661 | (hW : W.FiniteKilledFixedInj l U z 1) : |
| 662 | (map X I π).range = ⊤ := by |
| 663 | classical |
| 664 | -- If the count is maximal for `B`, cocycles lift and the count is maximal for the submodule `A`. |
| 665 | have h_squeeze {A B C : DiscreteModule R G} {u : A.Hom B} {v : B.Hom C} |
| 666 | (h_exact : IsShortExact u v) (hB : B.FiniteKilledFixedInj l U z 1) |
| 667 | (h_max : Nat.card B ^ k ≤ Nat.card (B.trivializedCocycles X I)) : |
| 668 | (map X I v).range = ⊤ ∧ Nat.card A ^ k ≤ Nat.card (A.trivializedCocycles X I) := |
| 669 | (hasFewCocycles_of_isShortExact h_exact (h_upper A (hB.left_of_isShortExact h_exact)) |
| 670 | (h_upper C (hB.right_of_isShortExact h_exact))).right h_max |
| 671 | -- Embed `W` by constants in the module `F` of functions on a quotient of `G ⧸ U` that |
| 672 | -- `exists_diagonalPermModule_isHigmanProjective` provides; it is projective, as the indicator of |
| 673 | -- `1` has trace one. |
| 674 | obtain ⟨Z, hZ_normal, hperm⟩ := exists_diagonalPermModule_isHigmanProjective R l U hcentral |
| 675 | let Y : Type := (G ⧸ (U : Subgroup G)) ⧸ Z |
| 676 | let F : DiscreteModule R G := W.diagonalPermModule U Z Y |
| 677 | have hF : F.FiniteKilledFixedInj l U z 1 := (hperm hW Y).left |
| 678 | have hF_proj : F.IsHigmanProjective U := |
| 679 | (hperm hW Y).right (Pi.single 1 1) fun y ↦ by simp [inv_mul_eq_one, Pi.single_apply] |
| 680 | let const : W.Hom F := ⟨LinearMap.const, fun _ ↦ rfl⟩ |
| 681 | obtain ⟨-, -, h_mkQ_surj⟩ := isShortExact_submodule _ _ const.range.apply_mem_toSubmodule |
| 682 | have hW_max : Nat.card W ^ k ≤ Nat.card (W.trivializedCocycles X I) := |
| 683 | (h_squeeze (u := const) ⟨const_injective, const.toLinearMap.exact_map_mkQ_range, h_mkQ_surj⟩ hF |
| 684 | (h_proj F hF hF_proj)).right |
| 685 | exact (h_squeeze hses hW hW_max).left |
| 686 | |
| 687 | /-- Lifting by corestriction. Let `B` be an open subgroup of finite index prime to `l` that contains |
| 688 | the conjugation-stable set `I`. Let `π : W → W₂` be onto, with `I` fixing `W` and `l` killing `W₂`, |
| 689 | and let `πB` be `π` as a map of `B`-modules. If every trivialised cocycle of `W₂` for `B` lifts to |
| 690 | `W`, then so does every trivialised cocycle of `W₂` for `G`. -/ |
| 691 | private lemma New.DiscreteModule.trivializedCocycles.map_range_eq_top_of_restrictTo |
| 692 | {R G X : Type} [CommRing R] [Group G] [TopologicalSpace G] [IsTopologicalGroup G] |
| 693 | [MulAction G X] [Nonempty X] {I : Set G} {B : OpenSubgroup G} [Fintype (G ⧸ B.toSubgroup)] |
| 694 | (hI : ∀ g ∈ I, g ∈ B ∧ ∀ t : G, t⁻¹ * g * t ∈ I) {l : ℕ} (hcop : l.Coprime B.toSubgroup.index) |
| 695 | {W W₂ : DiscreteModule R G} {π : W.Hom W₂} (hπ_surj : Surjective π) |
| 696 | (h_fix : ∀ g ∈ I, ∀ m : W, W.ρ g m = m) (h_kill : ∀ u : W₂, l • u = 0) |
| 697 | {πB : (W.restrictTo B).Hom (W₂.restrictTo B)} (hπB : ∀ m : W, πB m = π m) |
| 698 | (h_lift : (map X ((↑) ⁻¹' I) πB).range = ⊤) : |
| 699 | (map X I π).range = ⊤ := by |
| 700 | refine (map X I π).range_eq_top.mpr fun ⟨⟨f, x⟩, hx_cont, hfx, hxI⟩ ↦ ?_ |
| 701 | -- Lift the restriction of `(f, x)` to a trivialised cocycle `(q, c)` of `W` for `B`. |
| 702 | have h_res : (f, x ∘ (↑)) ∈ (W₂.restrictTo B).trivializedCocycles X ((↑) ⁻¹' I) := |
| 703 | ⟨by fun_prop, fun g ↦ hfx g, fun g ↦ hxI g⟩ |
| 704 | obtain ⟨⟨⟨q, c⟩, hq⟩, hπq⟩ := (map X ((↑) ⁻¹' I) πB).range_eq_top.mp h_lift ⟨_, h_res⟩ |
| 705 | have hπq_apply (y : X) : π (q y) = f y := |
| 706 | (hπB (q y)).symm.trans (congrFun (congrArg Prod.fst (Subtype.ext_iff.mp hπq)) y) |
| 707 | -- The corestriction of `(q, c)` maps to `i • f + ∑ x δ`, with `i` the index of `B`; remove the |
| 708 | -- constant `∑ x δ = π m` and invert `i` modulo `l`. |
| 709 | obtain ⟨m, hm⟩ : ∃ m : W, π m = ∑ δ : G ⧸ B.toSubgroup, x δ.out := hπ_surj _ |
| 710 | have h_const : (fun _ : X ↦ m, fun g : G ↦ W.ρ g m - m) ∈ W.trivializedCocycles X I := |
| 711 | ⟨by fun_prop, by simp, fun g hg ↦ sub_eq_zero.mpr (h_fix g hg m)⟩ |
| 712 | obtain ⟨a, b, hab⟩ : IsCoprime (l : ℤ) B.toSubgroup.index := hcop.isCoprime |
| 713 | have h_invert (y : X) : b • B.toSubgroup.index • f y = f y := by |
| 714 | simpa [add_smul, mul_smul, h_kill] using congrArg (· • f y) hab |
| 715 | -- The trivialisation determines the cocycle, so only first components need be compared. |
| 716 | have h_inj : Injective fun p : W₂.trivializedCocycles X I ↦ p.val.fst := by |
| 717 | rintro ⟨⟨f, c⟩, -, h_triv, -⟩ ⟨⟨f', c'⟩, -, h_triv', -⟩ (rfl : f = f') |
| 718 | obtain ⟨y⟩ : Nonempty X := inferInstance |
| 719 | exact Subtype.ext (Prod.ext rfl (funext fun g ↦ |
| 720 | add_left_cancel ((h_triv g y).symm.trans (h_triv' g y)))) |
| 721 | refine ⟨⟨_, zsmul_mem (sub_mem (corestrict_mem B hI hq) h_const) b⟩, h_inj ?_⟩ |
| 722 | simpa [trivializedCocycles.map, π.isIntertwining, hπq_apply, hfx, hm, index, funext_iff, |
| 723 | Finset.sum_add_distrib] using h_invert |
| 724 | |
| 725 | /-- Let `P` be an open subgroup of index prime to `l` that contains all commutators `⁅z, g⁆`. Then |
| 726 | some open subgroup `B ≥ P` normalises `P` and contains `z`, and both the index of `P` in `B` and the |
| 727 | index of `B` are prime to `l`. -/ |
| 728 | private lemma OpenSubgroup.exists_le_normal_mem_coprime_index {G : Type} [Group G] |
| 729 | [TopologicalSpace G] [IsTopologicalGroup G] (P : OpenSubgroup G) {l : ℕ} |
| 730 | (hcop : l.Coprime P.toSubgroup.index) {z : G} (hcentral : ∀ g : G, ⁅z, g⁆ ∈ P) : |
| 731 | ∃ B : OpenSubgroup G, |
| 732 | P ≤ B ∧ |
| 733 | (P.toSubgroup.subgroupOf B).Normal ∧ |
| 734 | z ∈ B ∧ |
| 735 | l.Coprime (P.toSubgroup.subgroupOf B).index ∧ |
| 736 | l.Coprime B.toSubgroup.index := by |
| 737 | -- Take the normaliser of `P`. |
| 738 | let B : OpenSubgroup G := ⟨_, isOpen_mono P.toSubgroup.le_normalizer P.isOpen⟩ |
| 739 | have hz (g : G) : g ∈ P ↔ z * g * z⁻¹ ∈ P := by |
| 740 | rw [show z * g * z⁻¹ = ⁅z, g⁆ * g by simp [commutatorElement_def], |
| 741 | mul_mem_cancel_left (hcentral g)] |
| 742 | have hcop_mul : l.Coprime (P.toSubgroup.relIndex B * B.toSubgroup.index) := by |
| 743 | rwa [relIndex_mul_index le_normalizer] |
| 744 | exact ⟨B, le_normalizer, normal_in_normalizer, hz, coprime_mul_iff_right.mp hcop_mul⟩ |
| 745 | |
| 746 | /-- Lifting trivialized cocycles along short exact sequences of modules killed by `l`. Let `K` be |
| 747 | totally complex, let `S` be split places for `l` and `N`, and let `z` be central modulo `U` and fix |
| 748 | the `l`-th roots of unity. Under the root-detection condition `hfix`, for every short exact sequence |
| 749 | `W₁ → W → W₂` with `W` finite, killed by `l`, fixed by `U`, and with `z - 1` injective, every |
| 750 | trivialized cocycle of `W₂` lifts to `W`. |
| 751 | |
| 752 | The proof passes to an open subgroup `B` normalizing an `l`-Sylow subgroup `P / U`, obtains the |
| 753 | upper bound over `B` by `P`-dévissage, squeezes cocycles to lift over `B`, and returns to `G` by |
| 754 | corestriction. -/ |
| 755 | private lemma New.IsLargeLevel.SplitPlaces.map_range_eq_top_of_central {K R ι : Type} [Field K] |
| 756 | [EmbeddedNumberField K] [CommRing R] {l N : ℕ} [Fact l.Prime] [NeZero N] {I : Set Gal(Ω/K)} |
| 757 | [Fintype ι] [IsTotallyComplex K] {U : OpenNormalSubgroup Gal(Ω/K)} |
| 758 | (S : SplitPlaces l N I U ι) {z : Gal(Ω/K)} (hz : (cyclotomicCharMod Ω l z).val = (1 : ℕ)) |
| 759 | (hcentral : ∀ g : Gal(Ω/K), ⁅z, g⁆ ∈ U) |
| 760 | (hfix : ∀ x : DiscreteUnits Ω, l • x ∈ fixedSUnits N U → (∀ i : ι, unitsRep (S.φ i) x = x) → |
| 761 | ∀ g : Gal(Ω/K), unitsRep g (l • x) = l • x → |
| 762 | unitsRep g (unitsRep z x - 1 • x) = unitsRep z x - 1 • x) |
| 763 | {W₁ W W₂ : DiscreteModule R Gal(Ω/K)} {j : W₁.Hom W} {π : W.Hom W₂} |
| 764 | (hses : IsShortExact j π) (hW : W.FiniteKilledFixedInj l U z 1) : |
| 765 | (map (PlaceAboveLevel N) I π).range = ⊤ := by |
| 766 | classical |
| 767 | obtain ⟨P, hUP, hcop : l.Coprime P.toSubgroup.index, hP : ∀ g ∈ P, ∃ k, g ^ l ^ k ∈ U⟩ := |
| 768 | exists_open_sylow l U |
| 769 | -- Choose an open subgroup `B` normalizing `P` and containing `z`, whose commutators lie in `U`. |
| 770 | obtain ⟨B, hPB, hnormal, hzB, hcopP, hcopB⟩ : ∃ B : OpenSubgroup Gal(Ω/K), P ≤ B ∧ |
| 771 | (P.toSubgroup.subgroupOf B).Normal ∧ z ∈ B ∧ |
| 772 | l.Coprime (P.toSubgroup.subgroupOf B).index ∧ l.Coprime B.toSubgroup.index := |
| 773 | P.exists_le_normal_mem_coprime_index hcop fun g ↦ hUP (hcentral g) |
| 774 | have hUB : (U : Subgroup Gal(Ω/K)) ≤ B := hUP.trans hPB |
| 775 | -- The data over the fixed field of `B`, where each split place has one place above it for each |
| 776 | -- coset of `B`. |
| 777 | let U' : OpenNormalSubgroup B.1 := ⟨U.1.comap _ (by fun_prop), U.2.subgroupOf B⟩ |
| 778 | let I' : Set B.toSubgroup := (↑) ⁻¹' I |
| 779 | let z' : B.toSubgroup := ⟨z, hzB⟩ |
| 780 | let k := Fintype.card (ι × Gal(Ω/K) ⧸ B.toSubgroup) + 1 |
| 781 | -- Upper bound over `B`: filter by `P`-invariants; `P`-fixed modules are projective over `B / P`. |
| 782 | have hupper : ∀ (X : DiscreteModule R B.toSubgroup) (_ : X.FiniteKilledFixedInj l U' z' 1), |
| 783 | X.HasFewCocycles (PlaceAboveLevel N) I' k := by |
| 784 | refine devissage_induction l.pow_one (P.1.subgroupOf B) U' (fun g ↦ hP g) (fun X _ hX ↦ ?_) |
| 785 | fun hses _ h₁ h₂ ↦ (hasFewCocycles_of_isShortExact hses h₁ h₂).1 |
| 786 | have h_finite_index : Finite (B.toSubgroup ⧸ P.toSubgroup.subgroupOf B) := |
| 787 | (P.toSubgroup.subgroupOf B).quotient_finite_of_isOpen P.isOpen'.preimage_val |
| 788 | refine (S.card_trivialized_restrict_of_isHigmanProjective hz hfix hUB hzB |
| 789 | ⟨⟨_, P.isOpen'.preimage_val⟩, hnormal⟩ (fun g hg ↦ hUP hg) (fun g hg ↦ ?_) hX |
| 790 | (hX.isHigmanProjective_of_coprime hcopP)).1 |
| 791 | -- A power `g ^ l ^ i` lies in `U`, and `t ^ l ^ i = t` in `ZMod l`. |
| 792 | obtain ⟨i, hi⟩ : ∃ i : ℕ, (g : Gal(Ω/K)) ^ l ^ i ∈ U := hP g hg |
| 793 | change cyclotomicCharMod Ω l (g : Gal(Ω/K)) = 1 |
| 794 | simpa [← Units.val_eq_one] using S.cyclotomicCharMod_eq_one _ hi |
| 795 | -- Projective modules over `B / U` attain the bound, so cocycles lift over `B`. |
| 796 | have hproj (F : DiscreteModule R B.toSubgroup) (hF : F.FiniteKilledFixedInj l U' z' 1) |
| 797 | (hhig : F.IsHigmanProjective U') : |
| 798 | Nat.card F ^ k ≤ Nat.card (F.trivializedCocycles (PlaceAboveLevel N) I') := by |
| 799 | have h_card : Nat.card (F.trivializedCocycles (PlaceAboveLevel N) I') = Nat.card F ^ k := |
| 800 | (S.card_trivialized_restrict_of_isHigmanProjective hz hfix hUB hzB U' le_rfl |
| 801 | (fun g ↦ S.cyclotomicCharMod_eq_one g) hF hhig).right |
| 802 | exact h_card.ge |
| 803 | have hWB : (W.restrictTo B).FiniteKilledFixedInj l U' z' 1 := |
| 804 | ⟨hW.finite, hW.nsmul_eq_zero, fun g hg ↦ hW.trivialOn g hg, hW.injective⟩ |
| 805 | have hI (g : Gal(Ω/K)) (hg : g ∈ I) : g ∈ B ∧ ∀ t : Gal(Ω/K), t⁻¹ * g * t ∈ I := |
| 806 | (S.mem_and_conj_mem g hg).imp_left fun hgU ↦ hUB hgU |
| 807 | let πB : (W.restrictTo B).Hom (W₂.restrictTo B) := ⟨π.toLinearMap, fun g ↦ π.isIntertwining' g⟩ |
| 808 | have hliftB : (map (PlaceAboveLevel N) I' πB).range = ⊤ := |
| 809 | map_range_eq_top_of_hasFewCocycles (U := U') (z := z') (fun g ↦ hcentral g) hupper hproj |
| 810 | (hses.restrictAlong _) hWB |
| 811 | -- Return from `B` to `Gal(Ω/K)` by corestriction. |
| 812 | have hsurj : Surjective π := hses.right.right |
| 813 | have hI_fix (g : Gal(Ω/K)) (hg : g ∈ I) (m : W) : W.ρ g m = m := |
| 814 | hW.trivialOn g (S.mem_and_conj_mem g hg).left m |
| 815 | have hkill : ∀ u : W₂, l • u = 0 := (hW.right_of_isShortExact hses).nsmul_eq_zero |
| 816 | have hπB (m : W) : πB m = π m := rfl |
| 817 | exact map_range_eq_top_of_restrictTo hI hcopB hsurj hI_fix hkill hπB hliftB |
| 818 | |
| 819 | /-- Let `K` be totally complex and `r ≠ 0`, and let `s` be split places for `U` indexed by the |
| 820 | finite type `ι`, at levels `l ^ r` and `N`: distinct primes prime to `N` with Frobenii `s.φ i` in |
| 821 | `U`, where `I` is the union of the inertia groups above the other primes prime to `N`. Let `V` be |
| 822 | finite, killed by `l ^ r`, fixed by `U`, with `ρ(z) − 1` injective; let `z` have `l`-adic cyclotomic |
| 823 | character `1` and all `⁅z, g⁆` in `U`; and let `U` fix every `x ∈ Ωˣ` that the Frobenii `s.φ i` fix |
| 824 | and whose `l ^ r`-th power is an `N`-unit of the field of `U`. Then `V` has at least one and at most |
| 825 | `#V ^ (#ι + 1)` cocycles trivialised at the places above `N` and infinity (`PlaceAboveLevel N`) and |
| 826 | on `I`. |
| 827 | |
| 828 | This is only an upper bound in the spirit of the Greenberg–Wiles formula: it counts trivialised |
| 829 | cocycles over a totally complex field, given such an element `z`, and its statement involves no dual |
| 830 | Selmer group. -/ |
| 831 | theorem New.IsLargeLevel.SplitPlaces.hasFewCocycles_of_central {K R ι : Type} [Field K] |
| 832 | [EmbeddedNumberField K] [CommRing R] {l r N : ℕ} [Fact l.Prime] [NeZero N] {I : Set Gal(Ω/K)} |
| 833 | {V : DiscreteModule R Gal(Ω/K)} [Fintype ι] [IsTotallyComplex K] |
| 834 | {U : OpenNormalSubgroup Gal(Ω/K)} (s : SplitPlaces (l ^ r) N I U ι) (hr : r ≠ 0) {z : Gal(Ω/K)} |
| 835 | (hV : V.FiniteKilledFixedInj (l ^ r) U z 1) (hcyc : cyclotomicChar Ω l z = 1) |
| 836 | (hcentral : ∀ g : Gal(Ω/K), ⁅z, g⁆ ∈ U) (hdetect : s.FrobeniiDetectRoots) : |
| 837 | V.HasFewCocycles (PlaceAboveLevel N) I (Fintype.card ι + 1) := by |
| 838 | -- Reduce the split places from `l ^ r` to `l`, then filter `V` by modules killed by `l`; for |
| 839 | -- those, cocycles lift (`map_range_eq_top_of_central`), so the count is multiplicative and hence |
| 840 | -- exact by `IsMultiplicative.eq_one_of_eq_one_on_isHigmanProjective`. |
| 841 | have hlr : l ∣ l ^ r := dvd_pow_self l hr |
| 842 | have hz : (cyclotomicCharMod Ω l z).val = (1 : ℕ) := |
| 843 | cyclotomicCharMod_eq_of_dvd hlr (by simp [cyclotomicCharMod_prime_pow_eq, hcyc]) |
| 844 | have hfix (x : DiscreteUnits Ω) (hx : l • x ∈ fixedSUnits N U) |
| 845 | (hφ : ∀ i : ι, unitsRep (s.φ i) x = x) : |
| 846 | ∀ g : Gal(Ω/K), unitsRep g (l • x) = l • x → |
| 847 | unitsRep g (unitsRep z x - 1 • x) = unitsRep z x - 1 • x := |
| 848 | s.fixes_sub_of_frobeniiDetectRoots hlr hdetect hz hcentral x hx hφ |
| 849 | -- The split places serve for `l` in place of `l ^ r`. |
| 850 | let S : SplitPlaces l N I U ι := |
| 851 | { s with |
| 852 | dvd_level := hlr.trans s.dvd_level, |
| 853 | cyclotomicCharMod_eq_one g hg := cyclotomicCharMod_eq_one_of_dvd hlr |
| 854 | (s.cyclotomicCharMod_eq_one g hg) } |
| 855 | refine devissage_induction rfl U U (fun g hg ↦ ⟨0, by simpa⟩) (fun W hW hW' ↦ ?_) |
| 856 | (fun hses _ h₁ h₂ ↦ (hasFewCocycles_of_isShortExact hses h₁ h₂).1) V hV |
| 857 | have h_count : Nat.card (W.trivializedCocycles (PlaceAboveLevel N) I) = |
| 858 | Nat.card W ^ (Fintype.card ι + 1) := |
| 859 | S.card_trivialized_eq_of_map_range_eq_top hz hcentral hfix |
| 860 | (S.map_range_eq_top_of_central hz hcentral hfix) W hW' |
| 861 | exact mem_of_eq_of_mem h_count ⟨by simp [hW.finite], le_rfl⟩ |
| 862 | |
| 863 | end GreenbergWilesBound |