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.Order.Star.Int |
| 4 | import Mathlib.CategoryTheory.Shift.Basic |
| 5 | public import Lib.ClassField.GreenbergWiles.SelmerLevels |
| 6 | public import Lib.Adelic.Hecke.ClassSums |
| 7 | public import Lib.General.Algebra.CartanMap |
| 8 | import Lib.ClassField.Global.AlbertBrauerHasseNoether |
| 9 | import Lib.ClassField.Global.ArtinMap |
| 10 | import Lib.ClassField.Global.ArtinReciprocity |
| 11 | import Lib.ClassField.Global.ExistenceTheorem |
| 12 | import Lib.ClassField.Places.TameInertia |
| 13 | |
| 14 | /-! |
| 15 | # Trivialised cocycles and power residue relations at split primes |
| 16 | |
| 17 | Let `G` act on a discrete module `V`. A trivialised cocycle is a pair `(f, z)` of a continuous map |
| 18 | `z : G → V` vanishing on `I` and a map `f : X → V` with `g • f x = f (g • x) + z g`; when `X` is |
| 19 | nonempty, `z` is then a cocycle. At split primes off `N`, the values of such cocycles on tame |
| 20 | generators `γ i` of inertia satisfy linear relations. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.DiscreteModule.trivializedCocycles`: pairs `(f, z)` of a continuous `z : G → V` vanishing on |
| 25 | `I` and `f : X → V` with `g • f x = f (g • x) + z g`; so `z` is the coboundary of `f x` on the |
| 26 | stabiliser of `x`. |
| 27 | * `New.DiscreteModule.trivializedCocycles.exists_mem_of_orbit_reps`, |
| 28 | `New.DiscreteModule.trivializedCocycles.corestrict_mem`: such pairs are built from data at one |
| 29 | point per orbit, and by corestriction. |
| 30 | * `New.DiscreteModule.trivializedCocycles.hasFewCocycles_of_isShortExact`: the bound `(#V) ^ k` for |
| 31 | the number of such pairs (`New.DiscreteModule.HasFewCocycles`) passes from the ends of a short |
| 32 | exact sequence to the middle term. |
| 33 | * `New.IsLargeLevel.SplitPlaces.exists_powerResidueSymbols` (as one conjunction, |
| 34 | `power_residue_reciprocity`): the `m`-th power residue symbols of the `N`-units of the field of |
| 35 | `U` give linear relations among these values when `V` is trivial on `U`. If the field of `U` is |
| 36 | totally complex, solutions of the relations give such cocycles. |
| 37 | |
| 38 | Notions from other files: |
| 39 | * `New.DiscreteModule R G`: an `R`-module `V` with the discrete topology and a continuous `R`-linear |
| 40 | action `ρ` of `G`; `New.DiscreteModule.restrictTo` restricts the action to a subgroup. |
| 41 | * `New.Z1`: the `R`-module of continuous 1-cocycles of `ρ`, that is, of continuous maps |
| 42 | `f : G → M` with `f (g * h) = f g + ρ g (f h)`. |
| 43 | * `New.IsLargeLevel.SplitPlaces`: Split places for `U`. The subgroup `U` fixes the `m`-th roots of |
| 44 | unity, and `m` divides `N`. |
| 45 | * `New.IsLargeLevel.fixedSUnits`: The N-units of the fixed field of U; `fixedSUnitsRep` is the |
| 46 | action of G / U on them. |
| 47 | * `New.IsTameGeneratorFor`: γ lies in the inertia group of A, and γy/y is the root of unity |
| 48 | `New.rootPowHom Ω m 1` for some m-th root y of some uniformiser π of K for A. |
| 49 | |
| 50 | ## Relation to the literature |
| 51 | |
| 52 | Known; see `Lib.ClassField.GreenbergWiles.CocycleCounts` for sources. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | /-! ## Cocycles trivialised at places and corestriction -/ |
| 58 | |
| 59 | section TrivialisedCocycles |
| 60 | |
| 61 | open Function QuotientGroup MulAction Quotient Set Nat AddSubgroup |
| 62 | |
| 63 | namespace New.DiscreteModule |
| 64 | |
| 65 | variable {R G : Type} [CommRing R] [Group G] [TopologicalSpace G] (X : Type) [MulAction G X] |
| 66 | (I : Set G) (V : DiscreteModule R G) {A B C : DiscreteModule R G} {ι : A.Hom B} {π : B.Hom C} |
| 67 | |
| 68 | /-- Trivialised cocycles: pairs of f : X → V and continuous z : G → V vanishing on I, with |
| 69 | g f(x) = f(gx) + z(g) for all g, x. -/ |
| 70 | def trivializedCocycles : AddSubgroup ((X → V) × (G → V)) := |
| 71 | AddSubgroup.ofSub |
| 72 | {p : (X → V.V) × (G → V.V) | Continuous p.2 ∧ |
| 73 | (∀ (g : G) (x : X), V.ρ g (p.1 x) = p.1 (g • x) + p.2 g) ∧ ∀ g ∈ I, p.2 g = 0} |
| 74 | ⟨0, continuous_zero, by simp, by simp⟩ <| by |
| 75 | rintro p ⟨hp, hp_triv, hp_zero⟩ q ⟨hq, hq_triv, hq_zero⟩ |
| 76 | refine ⟨hp.add hq.neg, fun g x ↦ ?_, fun g hg ↦ by simp [hp_zero g hg, hq_zero g hg]⟩ |
| 77 | simp [hp_triv, hq_triv] |
| 78 | abel |
| 79 | |
| 80 | variable {X I V} in |
| 81 | /-- Membership in `New.DiscreteModule.trivializedCocycles`, written out. -/ |
| 82 | lemma mem_trivializedCocycles {f : X → V} {z : G → V} : |
| 83 | (f, z) ∈ V.trivializedCocycles X I ↔ |
| 84 | Continuous z ∧ (∀ (g : G) (x : X), V.ρ g (f x) = f (g • x) + z g) ∧ ∀ g ∈ I, z g = 0 := |
| 85 | Iff.rfl |
| 86 | |
| 87 | /-- There are finitely many trivialised cocycles, at least one and at most `#V ^ k`. -/ |
| 88 | abbrev HasFewCocycles (k : ℕ) : Prop := |
| 89 | Nat.card (V.trivializedCocycles X I) ∈ Ioc 0 (Nat.card V ^ k) |
| 90 | |
| 91 | namespace trivializedCocycles |
| 92 | |
| 93 | /-- For an equivariant map u : A → B, the additive map between the groups |
| 94 | `New.DiscreteModule.trivializedCocycles` of A and B that composes both components of a pair of |
| 95 | functions with u. -/ |
| 96 | def map (u : A.Hom B) : A.trivializedCocycles X I →+ B.trivializedCocycles X I := |
| 97 | AddMonoidHom.mk' |
| 98 | (fun p ↦ ⟨p.val.map (Function.comp u) (Function.comp u), by |
| 99 | obtain ⟨⟨f, z⟩, h_cont, h_triv, h_zero⟩ := p |
| 100 | refine ⟨by dsimp only [Prod.map_snd]; fun_prop, fun g x ↦ ?_, fun g hg ↦ ?_⟩ |
| 101 | · simpa [u.isIntertwining] using congrArg u (h_triv g x) |
| 102 | · simpa using congrArg u (h_zero g hg)⟩) |
| 103 | (by simp) |
| 104 | |
| 105 | /-- For equivariant maps `ι : A → B` and `π : B → C` of discrete `G`-modules with `ι` injective and |
| 106 | `ι`, `π` exact, the maps `map X I ι` and `map X I π` that they induce on trivialised cocycles are |
| 107 | again exact. -/ |
| 108 | lemma exact_map (hι_inj : Injective ι) (hι_exact : Exact ι π) : Exact (map X I ι) (map X I π) := by |
| 109 | rintro ⟨⟨f, z⟩, h_cont, h_triv, h_zero⟩ |
| 110 | constructor |
| 111 | · -- Choose preimages pointwise; the injective map `ι` reflects the three conditions. |
| 112 | intro h_ker |
| 113 | obtain ⟨hf_zero, hz_zero⟩ : π ∘ f = 0 ∧ π ∘ z = 0 := |
| 114 | Prod.ext_iff.mp (Subtype.ext_iff.mp h_ker) |
| 115 | choose f' hf' using fun y : X ↦ (hι_exact (f y)).mp (congrFun hf_zero y) |
| 116 | choose z' hz' using fun g : G ↦ (hι_exact (z g)).mp (congrFun hz_zero g) |
| 117 | obtain rfl : ι ∘ f' = f := funext hf' |
| 118 | obtain rfl : ι ∘ z' = z := funext hz' |
| 119 | refine ⟨⟨(f', z'), ?_, fun g y ↦ hι_inj ?_, fun g hg ↦ hι_inj ?_⟩, rfl⟩ |
| 120 | · simpa [comp_def, leftInverse_invFun hι_inj _] using |
| 121 | (continuous_of_discreteTopology (f := invFun ι)).comp h_cont |
| 122 | · simpa [ι.isIntertwining] using h_triv g y |
| 123 | · simpa using h_zero g hg |
| 124 | · rintro ⟨p, hp⟩ |
| 125 | rw [← hp] |
| 126 | ext y <;> exact hι_exact.apply_apply_eq_zero _ |
| 127 | |
| 128 | /-- For a discrete `G`-module `V` over `R`, a `G`-set `X` and `I ⊆ G`, the trivialised cocycles |
| 129 | `V.trivializedCocycles X I` are pairs of a map `f : X → V` and a continuous `z : G → V` vanishing on |
| 130 | `I`, with `g • f x = f (g • x) + z g` for all `g`, `x`. For a short exact sequence |
| 131 | `0 → A → B → C → 0` of discrete `G`-modules with maps `ι`, `π`, the number of trivialised cocycles |
| 132 | of `B` equals the number for `A` times the size of the image of the map `map X I π` that `π` induces |
| 133 | into those of `C`. -/ |
| 134 | lemma card_eq_of_isShortExact (h_ses : A.IsShortExact ι π) : |
| 135 | Nat.card (B.trivializedCocycles X I) = |
| 136 | Nat.card (A.trivializedCocycles X I) * Nat.card (map X I π).range := by |
| 137 | obtain ⟨hι_inj, hι_exact, -⟩ := h_ses |
| 138 | -- The maps induced on trivialised cocycles are again injective and exact in the middle. |
| 139 | have h_inj : Injective (map X I ι) := by simp [Injective, map, hι_inj.comp_left.eq_iff] |
| 140 | have h_exact : Exact (map X I ι) (map X I π) := exact_map X I hι_inj hι_exact |
| 141 | rw [← card_top, card_eq_mul_of_exact _ _ h_inj h_exact] |
| 142 | simp |
| 143 | |
| 144 | variable {X I V} {k : ℕ} |
| 145 | |
| 146 | /-- On the stabiliser of `x`, a cocycle trivialised by `f` is the coboundary of `f x`. -/ |
| 147 | lemma snd_eq_coboundary_of_smul_eq {p : (X → V) × (G → V)} (hp : p ∈ V.trivializedCocycles X I) |
| 148 | (x : X) (g : G) (hg : g • x = x) : p.2 g = V.ρ g (p.1 x) - p.1 x := by |
| 149 | obtain ⟨-, h_triv, -⟩ := hp |
| 150 | rw [h_triv g x, hg, add_sub_cancel_left] |
| 151 | |
| 152 | /-- If `X` is nonempty, the second component `z` of a trivialised cocycle `(f, z)` is a continuous |
| 153 | 1-cocycle. -/ |
| 154 | lemma snd_mem_Z1 [Nonempty X] {p : (X → V) × (G → V)} (hp : p ∈ V.trivializedCocycles X I) : |
| 155 | p.2 ∈ Z1 V.ρ := by |
| 156 | obtain ⟨f, z⟩ := p |
| 157 | obtain ⟨h_cont, h_triv, -⟩ : |
| 158 | Continuous z ∧ (∀ (g : G) (x : X), V.ρ g (f x) = f (g • x) + z g) ∧ ∀ g ∈ I, z g = 0 := |
| 159 | mem_trivializedCocycles.mp hp |
| 160 | change Continuous z ∧ ∀ g k : G, z (g * k) = z g + V.ρ g (z k) |
| 161 | refine ⟨h_cont, fun g k ↦ ?_⟩ |
| 162 | -- Compute the action of `g * k` on the trivialisation at any point `y` in two ways. |
| 163 | obtain ⟨y⟩ : Nonempty X := inferInstance |
| 164 | have h_two_ways : f ((g * k) • y) + z (g * k) = f ((g * k) • y) + (z g + V.ρ g (z k)) := by |
| 165 | rw [← h_triv, map_mul, mul_apply_eq_comp, h_triv, map_add, h_triv, mul_smul, add_assoc] |
| 166 | exact add_left_cancel h_two_ways |
| 167 | |
| 168 | /-- Let the points `x i` represent the orbits of `G` on `X`, and let `z` be a cocycle that vanishes |
| 169 | on `I`. If `m i` trivialises `z` on the stabiliser of `x i` for each `i`, then `z` has a |
| 170 | trivialisation `f` on all of `X` with `f (x i) = m i`. -/ |
| 171 | lemma exists_mem_of_orbit_reps {κ : Sort*} {x : κ → X} |
| 172 | (hx : Bijective (Quotient.mk (orbitRel G X) ∘ x)) {z : G → V} (hz : z ∈ Z1 V.ρ) |
| 173 | (hI : ∀ g ∈ I, z g = 0) (m : κ → V) |
| 174 | (h_stab : ∀ (i : κ) (g : G), g • x i = x i → z g = V.ρ g (m i) - m i) : |
| 175 | ∃ f : X → V, (f, z) ∈ V.trivializedCocycles X I ∧ ∀ i : κ, f (x i) = m i := by |
| 176 | -- Write each point as `y = s y • x (i y)` and transport: `f y = s y • m (i y) - z (s y)`. |
| 177 | obtain ⟨hz_cont, hz_cocycle⟩ : Continuous z ∧ ∀ g h : G, z (g * h) = z g + V.ρ g (z h) := hz |
| 178 | have index_unique (i j : κ) (g : G) (hg : g • x j = x i) : i = j := hx.injective (sound ⟨g, hg⟩) |
| 179 | have exists_rep (y : X) : ∃ i : κ, ∃ g : G, g • x i = y := |
| 180 | (hx.surjective ⟦y⟧).imp fun i hi ↦ Quotient.exact hi.symm |
| 181 | -- The value `a • m j - z a` depends only on the point `a • x j`. |
| 182 | have h_well (j : κ) (a b : G) (hab : a • x j = b • x j) : |
| 183 | V.ρ a (m j) - z a = V.ρ b (m j) - z b := by |
| 184 | have h_fixes : (b⁻¹ * a) • x j = x j := by rw [mul_smul, hab, inv_smul_smul] |
| 185 | have h_cocycle : z a = z b + V.ρ b (z (b⁻¹ * a)) := by rw [← hz_cocycle, mul_inv_cancel_left] |
| 186 | rw [h_cocycle, h_stab j _ h_fixes, map_sub, ← mul_apply_eq_comp, ← map_mul, |
| 187 | mul_inv_cancel_left] |
| 188 | abel |
| 189 | obtain ⟨i, s, hs⟩ : ∃ (i : X → κ) (s : X → G), ∀ y : X, s y • x (i y) = y := by |
| 190 | simpa only [Classical.skolem] using exists_rep |
| 191 | refine ⟨fun y ↦ V.ρ (s y) (m (i y)) - z (s y), |
| 192 | mem_trivializedCocycles.mpr ⟨hz_cont, fun g y ↦ ?_, hI⟩, fun j ↦ ?_⟩ |
| 193 | · have h_point : (g * s y) • x (i y) = g • y := by rw [mul_smul, hs] |
| 194 | have h_index : i (g • y) = i y := index_unique _ _ ((s (g • y))⁻¹ * (g * s y)) <| by |
| 195 | rw [mul_smul, h_point, inv_smul_eq_iff, hs] |
| 196 | have h_same_point : s (g • y) • x (i y) = (g * s y) • x (i y) := by rw [h_point, ← h_index, hs] |
| 197 | have h_value : V.ρ (s (g • y)) (m (i y)) - z (s (g • y)) = |
| 198 | V.ρ (g * s y) (m (i y)) - z (g * s y) := h_well (i y) _ _ h_same_point |
| 199 | simp only [h_index, h_value, hz_cocycle, map_mul, map_sub, mul_apply_eq_comp] |
| 200 | abel |
| 201 | · have h_index : j = i (x j) := index_unique _ _ (s (x j)) (hs _) |
| 202 | have h_fix : s (x j) • x j = x j := by simpa only [← h_index] using hs (x j) |
| 203 | simp only [← h_index, h_stab j _ h_fix, sub_sub_cancel] |
| 204 | |
| 205 | omit [TopologicalSpace G] in |
| 206 | /-- With `x.out` the chosen representative of a coset `x ∈ G / H`, the element |
| 207 | `x.out⁻¹ * g * (g⁻¹ • x).out` lies in `H`. -/ |
| 208 | lemma out_inv_mul_mul_out_mem (H : Subgroup G) (g : G) (x : G ⧸ H) : |
| 209 | x.out⁻¹ * g * (g⁻¹ • x).out ∈ H := by |
| 210 | have h_coset : (QuotientGroup.mk (g⁻¹ * x.out) : G ⧸ H) = QuotientGroup.mk (g⁻¹ • x).out := by |
| 211 | rw [QuotientGroup.out_eq', ← smul_eq_mul, Quotient.mk_smul_out] |
| 212 | simpa only [mul_inv_rev, inv_inv] using QuotientGroup.eq.mp h_coset |
| 213 | |
| 214 | /-- Corestriction. Let `P` be an open subgroup of finite index that contains `I`, let `I` be |
| 215 | stable under conjugation, and let `(f, c)` be a trivialised cocycle for `P` and `I`. |
| 216 | With `s x = x.out` the chosen representative of the coset `x ∈ G / P`, the pair of |
| 217 | `y ↦ ∑ x, s x • f ((s x)⁻¹ • y)` and `g ↦ ∑ x, s x • c ((s x)⁻¹ * g * s (g⁻¹ • x))` |
| 218 | is a trivialised cocycle for `G` and `I`. -/ |
| 219 | lemma corestrict_mem [IsTopologicalGroup G] (P : OpenSubgroup G) [Fintype (G ⧸ P.toSubgroup)] |
| 220 | (hI : ∀ g ∈ I, g ∈ P ∧ ∀ s : G, s⁻¹ * g * s ∈ I) |
| 221 | {f : X → V} {c : P.toSubgroup → V} |
| 222 | (h_mem : (f, c) ∈ (V.restrictTo P).trivializedCocycles X (Subtype.val ⁻¹' I)) : |
| 223 | (fun y : X ↦ ∑ x : G ⧸ P.toSubgroup, V.ρ x.out (f (x.out⁻¹ • y)), |
| 224 | fun g : G ↦ ∑ x : G ⧸ P.toSubgroup, V.ρ x.out |
| 225 | (c ⟨x.out⁻¹ * g * (g⁻¹ • x).out, out_inv_mul_mul_out_mem P.toSubgroup g x⟩)) ∈ |
| 226 | V.trivializedCocycles X I := by |
| 227 | obtain ⟨h_cont, h_triv, h_zero⟩ : |
| 228 | Continuous c ∧ |
| 229 | (∀ (u : P.toSubgroup) (y : X), (V.restrictTo P).ρ u (f y) = f (u • y) + c u) ∧ |
| 230 | ∀ u ∈ Subtype.val ⁻¹' I, c u = 0 := |
| 231 | mem_trivializedCocycles.mp h_mem |
| 232 | let word (x : G ⧸ P.toSubgroup) (g : G) : P.toSubgroup := |
| 233 | ⟨x.out⁻¹ * g * (g⁻¹ • x).out, out_inv_mul_mul_out_mem _ _ _⟩ |
| 234 | let F (y : X) (x : G ⧸ P.toSubgroup) : V := V.ρ x.out (f (x.out⁻¹ • y)) |
| 235 | let C (g : G) (x : G ⧸ P.toSubgroup) : V := V.ρ x.out (c (word x g)) |
| 236 | -- Lift the pair to functions on the cosets, before applying the equivariant sum. |
| 237 | have h_lift : (F, C) ∈ (V.funModule P.toSubgroup).trivializedCocycles X I := by |
| 238 | refine mem_trivializedCocycles.mpr |
| 239 | ⟨?_, fun g y ↦ funext fun x ↦ ?_, fun g hg ↦ funext fun x ↦ ?_⟩ |
| 240 | · dsimp [C, word] |
| 241 | fun_prop |
| 242 | · -- Match the term of the coset `g⁻¹ • x` on the left with the term of `x` on the right. |
| 243 | change V.ρ g (V.ρ (g⁻¹ • x).out (f ((g⁻¹ • x).out⁻¹ • y))) = |
| 244 | V.ρ x.out (f (x.out⁻¹ • g • y)) + V.ρ x.out (c (word x g)) |
| 245 | -- The trivialisation of `c` for `u = (s x)⁻¹ * g * s (g⁻¹ • x)` in `P`, moved by `s x`. |
| 246 | have hw : V.ρ (word x g : G) (f ((g⁻¹ • x).out⁻¹ • y)) = |
| 247 | f ((word x g : G) • ((g⁻¹ • x).out⁻¹ • y)) + c (word x g) := |
| 248 | h_triv (word x g) ((g⁻¹ • x).out⁻¹ • y) |
| 249 | simpa [word, ← mul_apply_eq_comp, ← map_mul, mul_assoc, mul_smul] using |
| 250 | congrArg (V.ρ x.out) hw |
| 251 | · -- All conjugates of `g` lie in `I`, hence in `P`: `g` fixes every coset and each term is `0`. |
| 252 | have h_fix : g⁻¹ • x = x := by |
| 253 | induction x using QuotientGroup.induction_on with |
| 254 | | H s => simpa [QuotientGroup.eq] using (hI _ ((hI g hg).2 s)).1 |
| 255 | have hw : (word x g : G) ∈ I := by simpa [word, h_fix] using (hI g hg).2 x.out |
| 256 | change V.ρ x.out (c (word x g)) = 0 |
| 257 | rw [h_zero _ hw, map_zero] |
| 258 | -- Use the coset enumeration chosen by the equivariant sum in the conclusion as well. |
| 259 | rename_i cosetFintype |
| 260 | rw [show cosetFintype = Fintype.ofFinite (G ⧸ P.toSubgroup) from Subsingleton.elim _ _] |
| 261 | simpa [map, DiscreteModule.sum, Function.comp_def, Finset.sum_apply] using |
| 262 | (map X I (V.sum P.toSubgroup) ⟨(F, C), h_lift⟩).property |
| 263 | |
| 264 | /-- Let `0 → A → B → C → 0` be a short exact sequence such that `A` and `C` have few trivialised |
| 265 | cocycles. Then so has `B`. If the count for `B` reaches its bound `#B ^ k`, then every trivialised |
| 266 | cocycle of `C` lifts to `B` and the count for `A` reaches its bound `#A ^ k`. -/ |
| 267 | lemma hasFewCocycles_of_isShortExact (h_ses : A.IsShortExact ι π) (hA : A.HasFewCocycles X I k) |
| 268 | (hC : C.HasFewCocycles X I k) : |
| 269 | B.HasFewCocycles X I k ∧ |
| 270 | (Nat.card B ^ k ≤ Nat.card (B.trivializedCocycles X I) → |
| 271 | (map X I π).range = ⊤ ∧ Nat.card A ^ k ≤ Nat.card (A.trivializedCocycles X I)) := by |
| 272 | obtain ⟨hA_pos, hA_le⟩ := hA |
| 273 | obtain ⟨hC_pos, hC_le⟩ := hC |
| 274 | have hC_fin : Finite (C.trivializedCocycles X I) := (Nat.card_pos_iff.mp hC_pos).right |
| 275 | -- With `r` the size of the image in the trivialised cocycles of `C`, the count for `B` is the |
| 276 | -- count for `A` times `r`, and `r` is at most the count for `C`; also `#B ^ k = #A ^ k * #C ^ k`. |
| 277 | have image_le : Nat.card (map X I π).range ≤ Nat.card (C.trivializedCocycles X I) := |
| 278 | (map X I π).range.card_le_card_addGroup |
| 279 | rw [HasFewCocycles, card_eq_of_isShortExact X I h_ses, h_ses.card_eq_card_mul_card, mul_pow] |
| 280 | refine ⟨⟨mul_pos hA_pos Nat.card_pos, mul_le_mul' hA_le (image_le.trans hC_le)⟩, |
| 281 | fun h_attained ↦ ?_⟩ |
| 282 | -- If `#A ^ k * #C ^ k` is attained, neither factor can fall short of its bound. |
| 283 | have h_image : Nat.card (C.trivializedCocycles X I) ≤ Nat.card (map X I π).range := by |
| 284 | nlinarith [hA_pos, hA_le, hC_le] |
| 285 | exact ⟨eq_top_of_le_card _ h_image, by nlinarith [hC_pos, hC_le]⟩ |
| 286 | |
| 287 | end trivializedCocycles |
| 288 | |
| 289 | end New.DiscreteModule |
| 290 | |
| 291 | end TrivialisedCocycles |
| 292 | |
| 293 | /-! |
| 294 | ## Power residue relations among values on inertia at split primes |
| 295 | |
| 296 | Fix primes `s.v i` off `N` with places `s.valuationSubring i` of `Ω`, Frobenii `s.φ i` in the open |
| 297 | normal subgroup `U` of `G = Gal(Ω/K)`, and tame generators `γ i` of inertia at |
| 298 | `s.valuationSubring i`. We describe the values `z (γ i)` of cocycles `z` that are trivialised above |
| 299 | `N` and infinity and vanish on the inertia `I` at all other primes off `N`. |
| 300 | |
| 301 | `New.DiscreteUnits Ω` is `Ωˣ` written additively (as the discrete module `unitsModule G`; |
| 302 | `(unitsModule G).H0` is its `G`-invariants, and `ofBase` maps the units of the fixed field onto |
| 303 | them), so `m • r = y` means `r ^ m = y`, `unitsRep g r - r` is `g r / r`, and `New.rootPowHom Ω m a` |
| 304 | is `ζ ^ a` for a fixed primitive `m`-th root of unity `ζ`, and `cyclotomicCharMod Ω m g` is the |
| 305 | `c : ZMod m` with `g ζ = ζ ^ c`. |
| 306 | -/ |
| 307 | |
| 308 | namespace New |
| 309 | |
| 310 | variable {G K R : Type} [Group G] [TopologicalSpace G] [Field K] [EmbeddedNumberField K] |
| 311 | [MulSemiringAction G Ω] [IsProGalois G K Ω] [CommRing R] {m N : ℕ} [NeZero m] |
| 312 | {ι : Type} {U : OpenNormalSubgroup G} {A : ClosurePlace} {v : FinPlace K} |
| 313 | {V : DiscreteModule R G} [Module (ZMod m) V] |
| 314 | {I : Set G} (s : IsLargeLevel.SplitPlaces m N I U ι) |
| 315 | |
| 316 | open NumberField DiscreteModule trivializedCocycles Cohomology DiscreteUnits NeZero Subgroup |
| 317 | QuotientGroup InfinitePlace QZChar QZ ZModModule |
| 318 | |
| 319 | attribute [local instance low] Fintype.ofFinite |
| 320 | |
| 321 | omit [IsProGalois G K Ω] in |
| 322 | /-- Let `G` act on `Ω` as the Galois group of `Ω` over a field `L`. An element `g` of `G` that fixes |
| 323 | an infinite place `u` of `Ω` is `1` or a complex conjugation. -/ |
| 324 | lemma eq_one_or_isComplexConj {L : Type} [Field L] [Algebra L Ω] [hG : IsProGalois G L Ω] |
| 325 | {g : G} {u : InfinitePlace Ω} (h_smul : MulSemiringAction.toAlgAut G ℚ Ω g • u = u) : |
| 326 | g = 1 ∨ IsComplexConj g := by |
| 327 | -- `g` fixes the embedding that defines `u`, or conjugates it |
| 328 | have h_stab : MulSemiringAction.toAlgAut G ℚ Ω g ∈ |
| 329 | MulAction.stabilizer Gal(Ω/ℚ) (InfinitePlace.mk u.embedding) := by |
| 330 | rwa [MulAction.mem_stabilizer_iff, u.mk_embedding] |
| 331 | obtain h_fix | h_conj := (mem_stabilizer_mk_iff u.embedding _).mp h_stab |
| 332 | · -- `g` acts trivially on `Ω`, and the action is faithful |
| 333 | exact .inl (hG.faithful.eq_of_smul_eq_smul (by simpa [AlgEquiv.ext_iff] using h_fix)) |
| 334 | · exact .inr ⟨u.embedding, h_conj.eq⟩ |
| 335 | |
| 336 | /-- Let `A` lie over a prime `v` not dividing `m`, and let `γ` in the inertia group of `A` move an |
| 337 | `m`-th root of a uniformiser by the primitive root `ζ`. A locally constant map `f` to a group |
| 338 | killed by `m` that is additive on inertia takes there only multiples of `f γ`. -/ |
| 339 | lemma IsTameGeneratorFor.exists_apply_eq_nsmul (h : IsPlaceOver A v) (hm : ↑m ∉ v.asIdeal) {γ τ : G} |
| 340 | (hγ : IsTameGeneratorFor m A γ) (hτ : τ ∈ inertiaGroup G A) {V : Type*} [AddCommGroup V] |
| 341 | [Module (ZMod m) V] (f : G → V) (hf : IsLocallyConstant f) |
| 342 | (h_add : ∀ g ∈ inertiaGroup G A, ∀ k ∈ inertiaGroup G A, f (g * k) = f g + f k) : |
| 343 | ∃ c : ℕ, f τ = c • f γ := by |
| 344 | obtain ⟨hγ_ine, π, y, hπ, hy, hγy⟩ : γ ∈ inertiaGroup G A ∧ ∃ (π : Kˣ) (y : DiscreteUnits Ω), |
| 345 | IsUniformizer A π.val ∧ m • y = ↑(DiscreteUnits.ofBase G Ω (Additive.ofMul π)) ∧ |
| 346 | unitsRep γ y - y = (rootPowHom Ω m).val 1 := hγ |
| 347 | obtain ⟨h_local, -, h_unif⟩ := h.isLocalGalois_and_residueCard_eq_and_isUniformizer G |
| 348 | let F : inertiaGroup (decompGroup G A) A →* Multiplicative V := |
| 349 | .mk' (fun g ↦ .ofAdd (f g)) fun g g' ↦ h_add _ g.prop _ g'.prop |
| 350 | let γ' : inertiaGroup (decompGroup G A) A := ⟨⟨γ, hγ_ine.1⟩, hγ_ine⟩ |
| 351 | -- `γ` moves the root `y` of the uniformiser by a root of unity of order `m`. |
| 352 | have h_prim : IsPrimitiveRoot (γ • (y.toMul : Ω) / y.toMul) m := by |
| 353 | simpa [← hγy, ← IsPrimitiveRoot.coe_units_iff] using isPrimitiveRoot_rootPowHom_one Ω m |
| 354 | -- So, by the tame theorem, every value of `F` is a power of its value at `γ`. |
| 355 | obtain ⟨-, tame⟩ := h_local.tame_inertia (h_unif hπ) (h.valuation_natCast_eq_one_iff.2 hm) |
| 356 | (congrArg Units.val hy) F (hf {0}).preimage_val.preimage_val fun g ↦ char_nsmul_eq_zero m (f g) |
| 357 | have h_pow : ∀ g : inertiaGroup (decompGroup G A) A, ∃ c : ℕ, F g = F γ' ^ c := |
| 358 | (tame γ').left h_prim |
| 359 | exact h_pow ⟨⟨τ, hτ.1⟩, hτ⟩ |
| 360 | |
| 361 | open Pointwise in |
| 362 | /-- Let `G` be the Galois group of the algebraic closure `Ω` over `K`, and let `V` be killed by `m` |
| 363 | and fixed by `U`. A cocycle that vanishes at a tame generator `γ` at `s.valuationSubring i` |
| 364 | vanishes on the inertia group of every place `A` of `Ω` over the prime `v = s.v i`. -/ |
| 365 | lemma IsLargeLevel.SplitPlaces.apply_inertia_eq_zero (hA : IsPlaceOver A v) {i : ι} {γ τ : G} |
| 366 | (hv : s.v i = v) (hγ : IsTameGeneratorFor m (s.valuationSubring i) γ) (z : Z1 V.ρ) |
| 367 | (hU : V.TrivialOn U.toOpenSubgroup.toSubgroup) (hz : z.val γ = 0) (hτ : τ ∈ inertiaGroup G A) : |
| 368 | z.val τ = 0 := by |
| 369 | -- Move `τ` by conjugation into inertia at `s.valuationSubring i`, where `z` is additive, so that |
| 370 | -- by tameness its value is a multiple of `z γ = 0`; then conjugate back. |
| 371 | obtain ⟨hz_cont, hz_cocycle⟩ : |
| 372 | Continuous z.val ∧ ∀ g k : G, z.val (g * k) = z.val g + V.ρ g (z.val k) := z.prop |
| 373 | subst hv |
| 374 | obtain ⟨g, hg⟩ : ∃ g : G, g • A = s.valuationSubring i := hA.exists_smul G (s.isPlaceOver i) |
| 375 | have h_triv (σ : G) (hσ : σ ∈ inertiaGroup G (s.valuationSubring i)) (a : V.V) : V.ρ σ a = a := |
| 376 | hU σ (s.inertiaGroup_le (s.level_notMem i) (s.isPlaceOver i) hσ) a |
| 377 | have h_conj : g * τ * g⁻¹ ∈ inertiaGroup G (s.valuationSubring i) := by |
| 378 | rw [← hg] |
| 379 | exact hτ.conj g |
| 380 | have h_add (σ : G) (hσ : σ ∈ inertiaGroup G (s.valuationSubring i)) (σ' : G) : |
| 381 | z.val (σ * σ') = z.val σ + z.val σ' := by rw [hz_cocycle, h_triv σ hσ] |
| 382 | have hm : ↑m ∉ (s.v i).asIdeal := fun hm_mem ↦ |
| 383 | s.level_notMem i (Ideal.mem_of_dvd _ s.dvd_level.natCast hm_mem) |
| 384 | obtain ⟨c, hc⟩ : ∃ c : ℕ, z.val (g * τ * g⁻¹) = c • z.val γ := |
| 385 | hγ.exists_apply_eq_nsmul (s.isPlaceOver i) hm h_conj _ |
| 386 | (fun S ↦ hz_cont.isOpen_preimage S (isOpen_discrete S)) fun σ hσ σ' _ ↦ h_add σ hσ σ' |
| 387 | have h_back : z.val (g⁻¹ * (g * τ * g⁻¹) * g⁻¹⁻¹) = V.ρ g⁻¹ (z.val (g * τ * g⁻¹)) := |
| 388 | cocycle_conj_eq_smul (a := V.ρ) hz_cocycle (h_triv _ h_conj _) |
| 389 | simpa [← mul_assoc, hc, hz] using h_back |
| 390 | |
| 391 | open Pointwise in |
| 392 | /-- Let `γ` move an `m`-th root of a uniformiser at `A` by the fixed root of unity, and let `U` |
| 393 | contain the decomposition group of `g • A`. At `g γ g⁻¹` the Kummer character of an element `x` of |
| 394 | the fixed field of `U` is the order of `x` at the prime `u ∤ m` under `g • A`, times |
| 395 | `cyclotomicCharMod Ω m g`. -/ |
| 396 | lemma IsTameGeneratorFor.kummer_apply_conj {γ : G} (hγ : IsTameGeneratorFor m A γ) |
| 397 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 398 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} |
| 399 | (hκ : ∀ (x : ↥(unitsModule U.toOpenSubgroup.toSubgroup).H0) (r : DiscreteUnits Ω), m • r = ↑x → |
| 400 | ∀ q : ↥U.toOpenSubgroup.toSubgroup, (rootPowHom Ω m).val ((κ x).val q) = unitsRep q r - r) |
| 401 | (h : IsPlaceOver A v) (g : G) {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup)} |
| 402 | (hu : IsPlaceOver (g • A) u) (hm : ↑m ∉ u.asIdeal) |
| 403 | (h_dec : decompGroup G (g • A) ≤ U.toOpenSubgroup.toSubgroup) |
| 404 | (h_mem : g * γ * g⁻¹ ∈ U.toOpenSubgroup.toSubgroup) |
| 405 | (x : (fixedFieldOf U.toOpenSubgroup.toSubgroup)ˣ) : |
| 406 | (κ (DiscreteUnits.ofBase U.toOpenSubgroup.toSubgroup Ω (Additive.ofMul x))).val |
| 407 | ⟨g * γ * g⁻¹, h_mem⟩ = |
| 408 | cyclotomicCharMod Ω m g * |
| 409 | ↑(-(u.valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) x.val).log) := by |
| 410 | obtain ⟨h_ine, π, y, hπ, hy, hγy⟩ := hγ |
| 411 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 412 | set c : ℤ := -(u.valuation (fixedFieldOf Q) x.val).log with hc |
| 413 | -- The decomposition group lies in `U`, so `π` stays a uniformiser over the fixed field and `x` |
| 414 | -- is `π ^ c` times a unit. |
| 415 | have hA : IsPlaceOver (g • A) v := h.smul g |
| 416 | have h_ord : ordRat (fixedFieldOf Q) (g • A) = ordRat K (g • A) := |
| 417 | ((hA.ramification_in_tower Q hu).left h_dec).right |
| 418 | let z : (unitsModule Q).H0 := ⟨_, fun q ↦ (c • ofBase G Ω (.ofMul π)).prop q⟩ |
| 419 | have h_unit : ordRat K (g • A) (ofBase Q Ω (.ofMul x) - z).val = 0 := by |
| 420 | have hx_ord : ordRat K (g • A) (ofBase Q Ω (.ofMul x)) = c := by |
| 421 | rw [← h_ord, hu.ordRat_ofBase] |
| 422 | simp [hc, Q] |
| 423 | simp [z, hA.ordRat_ofBase, h.isUniformizer_iff.mp hπ, hx_ord] |
| 424 | have h_zero : (κ (ofBase Q Ω (.ofMul x) - z)).val ⟨g * γ * g⁻¹, h_mem⟩ = 0 := |
| 425 | kummer_eq_zero_of_mem_inertiaGroup hκ hu hm _ (hA.ordRat_eq_zero_iff.mp h_unit) (h_ine.conj g) |
| 426 | -- So `x` may be replaced by `z = π ^ c`, which has the `m`-th root `(g y) ^ c`. |
| 427 | have hz_root : m • c • unitsRep g y = z := by |
| 428 | simp [z, (ofBase G Ω _).prop _, smul_comm m, ← map_nsmul, hy] |
| 429 | apply (rootPowHom Ω m).prop.left |
| 430 | calc _ = (rootPowHom Ω m).val ((κ z).val ⟨_, h_mem⟩) := |
| 431 | congrArg _ (by simpa [sub_eq_zero] using h_zero) |
| 432 | _ = unitsRep (g * γ * g⁻¹) (c • unitsRep g y) - c • unitsRep g y := hκ z _ hz_root _ |
| 433 | _ = unitsRep g ((rootPowHom Ω m).val c) := by simp [← zsmul_one, ← hγy, smul_sub, -zsmul_eq_mul] |
| 434 | _ = _ := (map_cyclotomicCharMod_mul ..).symm |
| 435 | |
| 436 | /-- If `K` contains the `m`-th roots of unity, every continuous character `χ : G → ℤ/m` is the |
| 437 | Kummer character of an element `x = r ^ m` of `K`. -/ |
| 438 | lemma exists_kummer_root (h_cyc : ∀ g : G, cyclotomicCharMod Ω m g = 1) (χ : G → ZMod m) |
| 439 | (hχ : Continuous χ) (h_add : ∀ g k : G, χ (g * k) = χ g + χ k) : |
| 440 | ∃ (r : DiscreteUnits Ω) (x : Additive Kˣ), |
| 441 | m • r = DiscreteUnits.ofBase G Ω x ∧ |
| 442 | ∀ g : G, (rootPowHom Ω m).val (χ g) = unitsRep g r - r := by |
| 443 | -- By Hilbert 90, `ζ ^ χ g = g r / r` for some `r`; then `r ^ m` is fixed by `G`. |
| 444 | obtain ⟨r, hr⟩ : ∃ r : DiscreteUnits Ω, ∀ g : G, (rootPowHom Ω m).val (χ g) = unitsRep g r - r := |
| 445 | hilbert90_unitsRep ⟨fun g ↦ (rootPowHom Ω m).val (χ g), by fun_prop, |
| 446 | by simp [← map_cyclotomicCharMod_mul, h_add, h_cyc]⟩ |
| 447 | have hr_fix (g : G) : unitsRep g (m • r) = m • r := by |
| 448 | simp [← add_eq_of_eq_sub (hr g), ← map_nsmul, ZMod.natCast_self] |
| 449 | obtain ⟨x, hx⟩ := (ofBase_bijective G (K := K)).surjective ⟨m • r, hr_fix⟩ |
| 450 | exact ⟨r, x, (congrArg Subtype.val hx).symm, hr⟩ |
| 451 | |
| 452 | /-- A Kummer map for `U`: an additive map `κ` from the `U`-invariants of `Ωˣ` to the characters |
| 453 | `U → ℤ/m` with `ζ ^ κ x q = q r / r` whenever `r ^ m = x`. -/ |
| 454 | private def IsKummerMap (κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 455 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))) : Prop := |
| 456 | ∀ (x : ↥(unitsModule U.toOpenSubgroup.toSubgroup).H0) (r : DiscreteUnits Ω), m • r = ↑x → |
| 457 | ∀ q : ↥U.toOpenSubgroup.toSubgroup, (rootPowHom Ω m).val ((κ x).val q) = unitsRep q r - r |
| 458 | |
| 459 | /-- The split family `s` over the field of `U`: the index `(i, g)` names the place |
| 460 | `g⁻¹ • s.valuationSubring i`, the prime of the field of `U` below it, and the Frobenius |
| 461 | `g⁻¹ (s.φ i) g`, where `g` is the chosen representative of the coset. -/ |
| 462 | private noncomputable abbrev liftToFixedField : |
| 463 | IsLargeLevel.SplitPlaces m N ((↑) ⁻¹' I : Set U.toOpenSubgroup.toSubgroup) ⟨⊤, normal_top⟩ |
| 464 | (ι × G ⧸ U.toOpenSubgroup.toSubgroup) := |
| 465 | s.liftToSubgroup U.1 ⟨⊤, normal_top⟩ le_rfl le_top (fun g _ ↦ s.cyclotomicCharMod_eq_one _ g.2) _ |
| 466 | out_eq' |
| 467 | |
| 468 | private noncomputable abbrev conjugateTameGenerator {γ : ι → G} |
| 469 | (hγ : ∀ i, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 470 | (θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup) : U.toOpenSubgroup.toSubgroup := |
| 471 | ⟨θ.snd.out⁻¹ * γ θ.fst * θ.snd.out⁻¹⁻¹, |
| 472 | U.isNormal'.conj_mem _ (s.decompGroup_le (s.isPlaceOver _) (hγ _).1.1) _⟩ |
| 473 | |
| 474 | /-- For `θ = (i, g)`, the Kummer character of an element `x` of the field of `U` takes at |
| 475 | `g⁻¹ (γ i) g` the value `cyclotomicCharMod Ω m g⁻¹` times the order of `x` at the prime |
| 476 | `(liftToFixedField s).v θ`. -/ |
| 477 | private lemma kummer_conj_liftToFixedField {γ : ι → G} |
| 478 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 479 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 480 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} |
| 481 | (hκ : IsKummerMap κ) (θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup) |
| 482 | (x : (fixedFieldOf U.toOpenSubgroup.toSubgroup)ˣ) : |
| 483 | (κ (ofBase U.toOpenSubgroup.toSubgroup Ω (.ofMul x))).val (conjugateTameGenerator s hγ θ) = |
| 484 | cyclotomicCharMod Ω m θ.snd.out⁻¹ * |
| 485 | ↑(-(((liftToFixedField s).v θ).valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) |
| 486 | x.val).log) := by |
| 487 | -- `m` divides `N`, which lies in no prime of the family |
| 488 | have hm : ↑m ∉ ((liftToFixedField s).v θ).asIdeal := fun hm_mem ↦ |
| 489 | (liftToFixedField s).level_notMem θ (Ideal.mem_of_dvd _ s.dvd_level.natCast hm_mem) |
| 490 | exact (hγ θ.fst).kummer_apply_conj hκ (s.isPlaceOver _) _ ((liftToFixedField s).isPlaceOver θ) hm |
| 491 | (s.decompGroup_le ((s.isPlaceOver _).smul _)) _ x |
| 492 | |
| 493 | /-- For `θ = (i, g)`, the Kummer character of an `N`-unit `x` takes at the Frobenius |
| 494 | `(liftToFixedField s).φ θ` the value `cyclotomicCharMod Ω m g⁻¹` times the symbol `b` of `g x` at |
| 495 | `i`. -/ |
| 496 | private lemma IsLargeLevel.SplitPlaces.kummer_frob_liftToFixedField |
| 497 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 498 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 499 | {b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m} |
| 500 | (hb : ∀ (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω), m • r = ↑y → ∀ i : ι, |
| 501 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r) |
| 502 | (x : ↥(unitsModule U.toOpenSubgroup.toSubgroup).H0) (hx : x.val ∈ sUnits N) |
| 503 | (θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup) : |
| 504 | (κ x).val ((liftToFixedField s).φ θ) = |
| 505 | cyclotomicCharMod Ω m θ.snd.out⁻¹ * b (fixedSUnitsRep N U θ.snd.out ⟨x.val, hx, x.prop⟩) |
| 506 | θ.fst := by |
| 507 | obtain ⟨r, hr⟩ : ∃ r : DiscreteUnits Ω, m • r = x.val := exists_nsmul _ (NeZero.ne m) |
| 508 | have h_smul : m • unitsRep θ.snd.out r = fixedSUnitsRep N U θ.snd.out ⟨x.val, hx, x.prop⟩ := |
| 509 | (map_nsmul ..).symm.trans (congrArg _ hr) |
| 510 | rw [← (rootPowHom Ω m).prop.left.eq_iff, hκ x r hr, map_cyclotomicCharMod_mul, hb _ _ h_smul] |
| 511 | ext |
| 512 | simp [liftToFixedField, liftToSubgroup, mul_smul] |
| 513 | |
| 514 | /-- A trivialised cocycle `(f, z)` for the places above `N` and infinity vanishes at each complex |
| 515 | conjugation in `U`: it fixes the infinite place of `Ω` that it conjugates. -/ |
| 516 | private lemma snd_trivializedCocycles_eq_zero_of_isComplexConj |
| 517 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 518 | {P : (PlaceAboveLevel N → V) × (G → V)} (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) |
| 519 | (q : U.toOpenSubgroup.toSubgroup) (h_cc : IsComplexConj q) : |
| 520 | P.snd q = 0 := by |
| 521 | obtain ⟨φ, hφ⟩ := h_cc |
| 522 | have h_stab : MulSemiringAction.toAlgAut G ℚ Ω q ∈ |
| 523 | MulAction.stabilizer Gal(Ω/ℚ) (InfinitePlace.mk φ) := |
| 524 | (mem_stabilizer_mk_iff φ _).mpr (.inr (RingHom.ext hφ).symm) |
| 525 | simpa [h_triv _ q.property] using |
| 526 | snd_eq_coboundary_of_smul_eq hP (.inr (InfinitePlace.mk φ)) q (congrArg _ h_stab) |
| 527 | |
| 528 | /-- A trivialised cocycle `(f, z)` for the places above `N` and infinity vanishes on the |
| 529 | decomposition groups in `U` of the primes above `N`. -/ |
| 530 | private lemma snd_eq_zero_of_mem_decompGroup (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 531 | {P : (PlaceAboveLevel N → V) × (G → V)} (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) |
| 532 | (u : FinPlace (fixedFieldOf (K := K) U.toOpenSubgroup.toSubgroup)) (hu : ↑N ∈ u.asIdeal) |
| 533 | (q : U.toOpenSubgroup.toSubgroup) |
| 534 | (hq : q ∈ decompGroup U.toOpenSubgroup.toSubgroup (placeOver u)) : |
| 535 | P.snd q = 0 := by |
| 536 | simpa [h_triv _ q.property] using snd_eq_coboundary_of_smul_eq hP |
| 537 | (.inl ⟨_, u.isPlaceOver_placeOver.valuation_natCast_lt_one_iff.mpr hu⟩) q |
| 538 | (congrArg Sum.inl (Subtype.ext hq)) |
| 539 | |
| 540 | /-- Part (b) of `New.IsLargeLevel.SplitPlaces.power_residue_reciprocity`: a trivialised cocycle |
| 541 | `(f, z)` for the places above `N` and infinity, with `z` zero at all `γ i`, vanishes on `U`. -/ |
| 542 | private lemma IsLargeLevel.SplitPlaces.snd_eq_zero_of_snd_generators_eq_zero {γ : ι → G} |
| 543 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 544 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 545 | {P : (PlaceAboveLevel N → V) × (G → V)} (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) |
| 546 | (h_zero : ∀ i : ι, P.snd (γ i) = 0) (g : G) (hg : g ∈ U) : |
| 547 | P.snd g = 0 := by |
| 548 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 549 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 550 | have h_place (u : FinPlace F) : IsPlaceOver (placeOver u) u := u.isPlaceOver_placeOver |
| 551 | have h_div : (principalIdele (K := F)).range ⊔ idelesUnitOff {u | ↑N ∈ u.asIdeal} = ⊤ := |
| 552 | s.principal_sup_idelesUnitOff F le_rfl |
| 553 | obtain ⟨z_cts, z_mul⟩ : P.snd ∈ Z1 V.ρ := snd_mem_Z1 hP |
| 554 | obtain ⟨-, -, hP_zero⟩ := mem_trivializedCocycles.mp hP |
| 555 | -- The character `z = P.snd` of `U` vanishes at the complex conjugations and on the decomposition |
| 556 | -- groups above `N`, and is unramified off `N`, hence zero. |
| 557 | refine eq_zero_of_unramified_off _ h_div |
| 558 | ⟨fun q : Q ↦ P.snd q, by fun_prop, by simp [z_mul, h_triv _]⟩ |
| 559 | (snd_trivializedCocycles_eq_zero_of_isComplexConj h_triv hP) |
| 560 | (snd_eq_zero_of_mem_decompGroup h_triv hP) |
| 561 | (fun u hu q hq ↦ ?_) ⟨g, hg⟩ |
| 562 | obtain ⟨i, hi⟩ | h_new := em (u.below K ∈ Set.range s.v) |
| 563 | · exact s.apply_inertia_eq_zero (h_place u).isPlaceOver_below hi (hγ i) ⟨_, z_cts, z_mul⟩ |
| 564 | h_triv (h_zero i) hq |
| 565 | · exact hP_zero _ |
| 566 | ((s.mem_inertia_iff _).2 ⟨_, by simpa, h_new, _, (h_place u).isPlaceOver_below, hq⟩) |
| 567 | |
| 568 | /-- Artin's law for the character `χ = κ y / m` of an `N`-unit `y` of the field `F` of `U` and an |
| 569 | element `x` of `F` with an `m`-th root `r`. Let `r` be fixed by the complex conjugations in `U`, by |
| 570 | the decomposition groups above `N`, and by the elements of `U` in `I`. Then |
| 571 | `∑ θ, ord(x) • χ (S.φ θ) = 0`, where `S = liftToFixedField s` and the order is taken at `S.v θ`. -/ |
| 572 | private lemma IsLargeLevel.SplitPlaces.sum_ord_smul_kummer_frob_eq_zero [Fintype ι] |
| 573 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 574 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 575 | (y : DiscreteUnits Ω) (y_unit : y ∈ sUnits N) |
| 576 | (y_fix : y ∈ (unitsModule U.toOpenSubgroup.toSubgroup).H0) (r : DiscreteUnits Ω) |
| 577 | (x : Additive (fixedFieldOf U.toOpenSubgroup.toSubgroup)ˣ) |
| 578 | (hx : m • r = ofBase U.toOpenSubgroup.toSubgroup Ω x) |
| 579 | (h_cc : ∀ q : U.toOpenSubgroup.toSubgroup, IsComplexConj q → unitsRep q r = r) |
| 580 | (h_dec : ∀ u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup), ↑N ∈ u.asIdeal → |
| 581 | ∀ q ∈ decompGroup U.toOpenSubgroup.toSubgroup (placeOver u), unitsRep q r = r) |
| 582 | (h_I : ∀ q : U.toOpenSubgroup.toSubgroup, ↑q ∈ I → unitsRep q r = r) : |
| 583 | ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 584 | -(((liftToFixedField s).v θ).valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) |
| 585 | x.toMul.val).log • |
| 586 | (ofZModCocycle m (κ ⟨y, y_fix⟩)).val ((liftToFixedField s).φ θ) = 0 := by |
| 587 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 588 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 589 | let S := liftToFixedField s |
| 590 | have h_place (u : FinPlace F) : IsPlaceOver (placeOver u) u := u.isPlaceOver_placeOver |
| 591 | -- The character `χ = κ y / m`, with values in `ℚ/ℤ`, is killed by `m` and unramified off `N`. |
| 592 | let χ : QZChar Q := ofZModCocycle m (κ ⟨y, y_fix⟩) |
| 593 | have χ_tors (q : Q) : m • χ.val q = 0 := by simp [χ, ← map_nsmul, ZMod.natCast_self] |
| 594 | have χ_ine {B : ClosurePlace} {u : FinPlace F} (hB : IsPlaceOver B u) (hu : ↑N ∉ u.asIdeal) |
| 595 | (q : Q) (hq : q ∈ inertiaGroup Q B) : χ.val q = 0 := by |
| 596 | simp [χ, kummer_eq_zero_of_mem_inertiaGroup hκ hB |
| 597 | (hu ∘ u.asIdeal.mem_of_dvd s.dvd_level.natCast) |
| 598 | ⟨y, y_fix⟩ (y_unit _ (hB.valuation_natCast_eq_one_iff.mpr hu)) hq] |
| 599 | -- Artin's law: the symbol `(χ, x)` dies on the stabiliser of `r`, which contains the complex |
| 600 | -- conjugations. |
| 601 | have h_artin : abelianLift χ (artinMap Q (principalIdele x.toMul)) = 1 := |
| 602 | artin_reciprocity ⟨_, IsProGalois.isOpen_stabilizer r.toMul.val⟩ |
| 603 | (fun q hq ↦ congrArg (fun z : DiscreteUnits Ω ↦ z.toMul.val) (h_cc q hq)) |
| 604 | (resH2_cyclicClass_eq_zero hx fun q ↦ ⟨ext q.property, χ_tors q⟩) |
| 605 | refine sum_ord_smul_frob_eq_zero (n := m) (Subtype.ext (funext χ_tors)) h_artin S.v_injective |
| 606 | S.isPlaceOver (fun θ ↦ (S.isFrob θ).left) |
| 607 | (fun θ ↦ χ_ine (S.isPlaceOver θ) (S.level_notMem θ)) fun u hu ↦ ?_ |
| 608 | by_cases hN : ↑N ∈ u.asIdeal |
| 609 | · -- above `N` the decomposition group fixes `r` |
| 610 | exact .inl ((h_place u).abelianLift_artinAt_eq_one_iff.2 |
| 611 | (resH2_cyclicClass_eq_zero hx fun q ↦ ⟨h_dec u hN q q.prop, χ_tors q⟩)) |
| 612 | · -- at a prime off `N` that is no `S.v θ`, inertia lies in `I` and so fixes `r` |
| 613 | have h_unit : |
| 614 | placeOver u ((ofBase Q Ω (Additive.ofMul x.toMul)).val - m • r).toMul.val = 1 := by |
| 615 | simp [hx] |
| 616 | exact .inr ⟨⟨r, h_unit, fun q hq ↦ |
| 617 | h_I q ((S.mem_inertia_iff q).2 ⟨u, hN, hu, _, h_place u, hq⟩)⟩, χ_ine (h_place u) hN⟩ |
| 618 | |
| 619 | /-- Part (c) of `New.IsLargeLevel.SplitPlaces.power_residue_reciprocity`: for a trivialised |
| 620 | cocycle `(f, z)` for the places above `N` and infinity, each `N`-unit `y` gives the relation |
| 621 | `∑ b (g y) i • g⁻¹ z (γ i) = 0`, summed over `i` and `g ∈ G / U`. It is Artin's law for the |
| 622 | character `κ y` and the idele of an `x` in the field of `U` whose Kummer character is `l ∘ z`. -/ |
| 623 | private lemma IsLargeLevel.SplitPlaces.sum_symbol_smul_snd_generators_eq_zero {γ : ι → G} |
| 624 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) [Fintype ι] |
| 625 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 626 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 627 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 628 | {b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m} |
| 629 | (hb : ∀ (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω), m • r = ↑y → ∀ i : ι, |
| 630 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r) |
| 631 | {P : (PlaceAboveLevel N → V) × (G → V)} (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) |
| 632 | (y : ↥(fixedSUnits N U)) : |
| 633 | ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 634 | b (fixedSUnitsRep N U θ.snd y) θ.fst • V.ρ θ.snd.out⁻¹ (P.snd (γ θ.fst)) = 0 := by |
| 635 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 636 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 637 | let S := liftToFixedField s |
| 638 | have h_inj : Function.Injective (rootPowHom Ω m).val := (rootPowHom Ω m).prop.left |
| 639 | let γ' := conjugateTameGenerator s hγ |
| 640 | obtain ⟨z_cts, z_mul⟩ : P.snd ∈ Z1 V.ρ := snd_mem_Z1 hP |
| 641 | obtain ⟨-, -, hP_zero⟩ := mem_trivializedCocycles.mp hP |
| 642 | obtain ⟨y, y_unit, y_fix⟩ := y |
| 643 | -- The relation may be tested along additive maps `l : V → ℤ/m`. The character |
| 644 | -- `l ∘ z` of `U` is `κ x` for some `x = r ^ m` in `F`. |
| 645 | refine eq_zero_of_forall_hom_eq_zero |
| 646 | ((bijective_ofZMod_comp (char_nsmul_eq_zero m)).surjective.forall.mpr fun l ↦ ?_) |
| 647 | -- `l ∘ z` is additive on `U`, which acts trivially on `V` |
| 648 | obtain ⟨r, x, hx, hr⟩ := |
| 649 | exists_kummer_root (fun q ↦ S.cyclotomicCharMod_eq_one q ⟨⟩) |
| 650 | (fun q : Q ↦ l (P.snd q)) (by fun_prop) fun g k ↦ by simp [z_mul, h_triv _] |
| 651 | have r_fix (q : Q) (h : P.snd q = 0) : unitsRep q r = r := by simp [← sub_eq_zero, ← hr, h] |
| 652 | -- `l ∘ z` and `κ x` have the same root of unity at each `γ' θ` |
| 653 | have l_γ (θ : ι × G ⧸ Q) : l (V.ρ θ.snd.out⁻¹ (P.snd (γ θ.fst))) = |
| 654 | cyclotomicCharMod Ω m θ.snd.out⁻¹ * ↑(-((S.v θ).valuation F x.toMul.val).log) := |
| 655 | calc _ = l (P.snd (γ' θ)) := |
| 656 | congrArg l (cocycle_conj_eq_smul (a := V.ρ) z_mul |
| 657 | (h_triv _ (s.decompGroup_le (s.isPlaceOver _) (hγ _).1.1) _)).symm |
| 658 | _ = (κ (ofBase Q Ω x)).val (γ' θ) := h_inj (by rw [hr, hκ _ r hx]) |
| 659 | _ = _ := kummer_conj_liftToFixedField s hγ hκ θ x.toMul |
| 660 | -- The character `χ = κ y / m`, with values in `ℚ/ℤ`, and Artin's law for `(χ, x)`: `r` is fixed |
| 661 | -- wherever `z` vanishes, in particular at the complex conjugations and on the decomposition |
| 662 | -- groups above `N`. |
| 663 | let χ : QZChar Q := ofZModCocycle m (κ ⟨y, y_fix⟩) |
| 664 | have h_sum : ∑ θ, -((S.v θ).valuation F x.toMul.val).log • χ.val (S.φ θ) = 0 := |
| 665 | s.sum_ord_smul_kummer_frob_eq_zero hκ y y_unit y_fix r x hx |
| 666 | (fun q hq ↦ r_fix q (snd_trivializedCocycles_eq_zero_of_isComplexConj h_triv hP q hq)) |
| 667 | (fun u hN q hq ↦ r_fix q (snd_eq_zero_of_mem_decompGroup h_triv hP u hN q hq)) |
| 668 | fun q hq ↦ r_fix q (hP_zero q hq) |
| 669 | suffices h_goal : ∑ θ : ι × G ⧸ Q, b (fixedSUnitsRep N U θ.snd ⟨y, y_unit, y_fix⟩) θ.fst * |
| 670 | l (V.ρ θ.snd.out⁻¹ (P.snd (γ θ.fst))) = 0 by |
| 671 | simpa [ZMod.map_smul] using congrArg (ofZMod m) h_goal |
| 672 | apply ofZMod_injective (n := m) |
| 673 | -- By `l_γ` and the Kummer formula at Frobenius both sums have the terms |
| 674 | -- `cyclotomicCharMod g⁻¹ * b (g y) i * ord x`. |
| 675 | simpa [S, ← map_zsmul, χ, ZMod.map_smul, l_γ, |
| 676 | kummer_frob_liftToFixedField s hκ hb ⟨y, y_fix⟩ y_unit, |
| 677 | mul_comm (b _ _), |
| 678 | mul_left_comm (Int.cast _), mul_assoc] using h_sum |
| 679 | |
| 680 | variable [NeZero N] |
| 681 | |
| 682 | /-- Let `U` act trivially on `V` and have totally complex fixed field `F`, let `κ` be a Kummer map |
| 683 | for `U` (`hκ`), let `a ∈ V`, and let `x ∈ Fˣ` be a local `m`-th power at every prime above `N` and |
| 684 | a unit outside `N` and the lifted family `liftToFixedField s`. Then the cocycle `q ↦ (κ x) q • a` |
| 685 | of `U` vanishes on `I ∩ U` and on the stabilisers of the places above `N` and infinity, so it |
| 686 | extends to a trivialised cocycle of `V.restrictTo U`. -/ |
| 687 | private lemma IsLargeLevel.SplitPlaces.exists_trivialisation_kummer_smul |
| 688 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 689 | [IsTotallyComplex (fixedFieldOf U.toOpenSubgroup.toSubgroup)] |
| 690 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 691 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 692 | (a : V.V) (x : (fixedFieldOf U.toOpenSubgroup.toSubgroup)ˣ) |
| 693 | (hx_pow : ∀ u ∈ {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup) | ↑N ∈ u.asIdeal}, |
| 694 | ideleAt u (principalIdele x) ∈ (powMonoidHom m).range) |
| 695 | (hx_unit : ∀ u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup), ↑N ∉ u.asIdeal → |
| 696 | u ∉ Set.range (liftToFixedField s).v → |
| 697 | u.valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) x = 1) : |
| 698 | ∃ trivialisation, |
| 699 | (trivialisation, fun q : U.toOpenSubgroup.toSubgroup ↦ |
| 700 | (κ (ofBase U.toOpenSubgroup.toSubgroup Ω (.ofMul x))).val q • a) ∈ |
| 701 | (V.restrictTo U.toOpenSubgroup.toSubgroup).trivializedCocycles (PlaceAboveLevel N) |
| 702 | (Subtype.val ⁻¹' I) := by |
| 703 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 704 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 705 | let S := liftToFixedField s |
| 706 | have h_place (u : FinPlace F) : IsPlaceOver (placeOver u) u := u.isPlaceOver_placeOver |
| 707 | choose root h_root using fun x : DiscreteUnits Ω ↦ exists_nsmul x (NeZero.ne m) |
| 708 | have κ_fix (x : ↥(unitsModule Q).H0) (q : Q) (h : unitsRep q (root x.val) = root x.val) : |
| 709 | (κ x).val q = 0 := |
| 710 | (kummerValue_eq_zero_iff_fixes_root (hκ x _ (h_root _) q)).2 h |
| 711 | -- The cocycle `z = κ x • a` of `U` vanishes on `I` and on the stabilisers of the places above |
| 712 | -- `N` and infinity, so it is trivialised by `0` at representatives of the orbits. |
| 713 | let xFixed : ↥(unitsModule Q).H0 := ofBase Q Ω (.ofMul x) |
| 714 | let z (q : Q) : V := (κ xFixed).val q • a |
| 715 | obtain ⟨hκ_cont, hκ_cocycle⟩ := (κ xFixed).prop |
| 716 | -- `using!`: the goal and `h_triv` agree only up to unfolding of definitions |
| 717 | have hz : z ∈ Z1 (V.restrictTo Q).ρ := |
| 718 | ⟨(continuous_bot (f := fun c : ZMod m ↦ c • a)).comp hκ_cont, |
| 719 | fun p q ↦ by simpa [z, hκ_cocycle, add_smul] using! (h_triv _ p.prop _).symm⟩ |
| 720 | have hz_I (q : Q) (hq : ↑q ∈ I) : z q = 0 := by |
| 721 | obtain ⟨u, hN, h_new, B, hB, h_ine⟩ := (S.mem_inertia_iff q).mp hq |
| 722 | simp [z, kummer_eq_zero_of_mem_inertiaGroup hκ hB |
| 723 | (hN ∘ u.asIdeal.mem_of_dvd s.dvd_level.natCast) xFixed |
| 724 | (hB.valuationVia_eq_one_iff.mpr (hx_unit u hN h_new)) h_ine] |
| 725 | obtain ⟨trivialisation, h_trivialisation, -⟩ := |
| 726 | trivializedCocycles.exists_mem_of_orbit_reps (I := Subtype.val ⁻¹' I) |
| 727 | (PlaceAboveLevel.bijective_orbits Q N h_place) hz hz_I 0 <| by |
| 728 | rintro (⟨u, hu⟩ | u) q hq |
| 729 | · -- above `N`, `x` is a local `m`-th power, so the decomposition group fixes its roots |
| 730 | have h_dec : q ∈ decompGroup Q (placeOver u) := congrArg Subtype.val (Sum.inl.inj hq) |
| 731 | have h_root_val : (m • root xFixed.val).val = xFixed.val.val := |
| 732 | congrArg (fun y : DiscreteUnits Ω ↦ y.val) (h_root xFixed) |
| 733 | have h_fix : unitsRep q (root xFixed.val) = root xFixed.val := |
| 734 | ext ((h_place u).smul_root_eq_of_local_pow (hx_pow u hu) h_root_val q |
| 735 | h_dec (S.cyclotomicCharMod_eq_one q ⟨⟩)) |
| 736 | simp [z, κ_fix xFixed q h_fix] |
| 737 | · -- `F` is totally complex, so `U` has no complex conjugation |
| 738 | obtain rfl : q = 1 := (eq_one_or_isComplexConj (Sum.inr.inj hq)).resolve_right |
| 739 | fun h_cc ↦ h_cc.false_of_isTotallyComplex |
| 740 | simp [z, κ_fix] |
| 741 | exact ⟨trivialisation, h_trivialisation⟩ |
| 742 | |
| 743 | /-- The cocycle of part (d) of `New.IsLargeLevel.SplitPlaces.power_residue_reciprocity`. Let `x` in |
| 744 | the field of `U` be a local `m`-th power above `N`, a unit at the other primes outside the lifted |
| 745 | family `liftToFixedField s`, and of order `cyclotomicCharMod Ω m g * f (i, g)` at its prime of index |
| 746 | `(i, g)`. Then `z = κ x • a` is trivialised at the places above `N` and infinity, and its |
| 747 | corestriction to `G` has the values `z (γ i) = ∑ g, g (f (i, g) • a)`. -/ |
| 748 | private lemma IsLargeLevel.SplitPlaces.exists_mem_trivializedCocycles_of_valuation {γ : ι → G} |
| 749 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 750 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 751 | [IsTotallyComplex (fixedFieldOf U.toOpenSubgroup.toSubgroup)] |
| 752 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 753 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 754 | (f : ι × G ⧸ U.toOpenSubgroup.toSubgroup → ZMod m) (a : V.V) |
| 755 | (x : (fixedFieldOf U.toOpenSubgroup.toSubgroup)ˣ) |
| 756 | (hx_pow : ∀ u ∈ {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup) | ↑N ∈ u.asIdeal}, |
| 757 | ideleAt u (principalIdele x) ∈ (powMonoidHom m).range) |
| 758 | (hx_unit : ∀ u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup), ↑N ∉ u.asIdeal → |
| 759 | u ∉ Set.range (liftToFixedField s).v → |
| 760 | u.valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) x = 1) |
| 761 | (hx_ord : ∀ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 762 | (((liftToFixedField s).v θ).valuation (fixedFieldOf U.toOpenSubgroup.toSubgroup) x.val).log = |
| 763 | -((cyclotomicCharMod Ω m θ.snd.out * f θ).val : ℤ)) : |
| 764 | ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, |
| 765 | P.snd (γ i) = ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), V.ρ δ.out (f (i, δ) • a) := by |
| 766 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 767 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 768 | let S := liftToFixedField s |
| 769 | let γ' := conjugateTameGenerator s hγ |
| 770 | have κ_γ (θ : ι × G ⧸ Q) : (κ (ofBase Q Ω (.ofMul x))).val (γ' θ) = |
| 771 | cyclotomicCharMod Ω m θ.snd.out⁻¹ * ↑(-((S.v θ).valuation F x.val).log) := |
| 772 | kummer_conj_liftToFixedField s hγ hκ θ x |
| 773 | obtain ⟨trivialisation, h_trivialisation⟩ := |
| 774 | s.exists_trivialisation_kummer_smul h_triv hκ a x hx_pow hx_unit |
| 775 | -- Corestrict to `G`; the value at `γ i` is the sum of the `δ • z (δ⁻¹ γ δ)`. |
| 776 | refine ⟨_, corestrict_mem U.toOpenSubgroup s.mem_and_conj_mem h_trivialisation, |
| 777 | fun i ↦ Finset.sum_congr rfl fun δ _ ↦ ?_⟩ |
| 778 | have h_ord : ((S.v (i, δ)).valuation F x.val).log = |
| 779 | -((cyclotomicCharMod Ω m δ.out * f (i, δ)).val : ℤ) := hx_ord (i, δ) |
| 780 | have h_value : (κ (ofBase Q Ω (.ofMul x))).val (γ' (i, δ)) • a = f (i, δ) • a := by |
| 781 | simp [κ_γ, h_ord] |
| 782 | have h_coset : (γ i)⁻¹ • δ = δ := by |
| 783 | induction δ using QuotientGroup.induction_on with |
| 784 | | H g => simp [s.decompGroup_le (s.isPlaceOver i) (hγ i).1.1] |
| 785 | simp [← h_value, γ', conjugateTameGenerator, h_coset, Q] |
| 786 | |
| 787 | /-- Part (d) of `New.IsLargeLevel.SplitPlaces.power_residue_reciprocity`: let the field of `U` be |
| 788 | totally complex. A family `f` that satisfies the relations of the symbols `b` gives, for each |
| 789 | `a : V`, a trivialised cocycle with `z (γ i) = ∑ g, g (f (i, g) • a)`. The hypothesis `h_idele` is |
| 790 | the converse half of Kummer theory for `κ` (`New.exists_kummer_chars`) at the primes above `N`: an |
| 791 | idele whose Artin symbol is killed by `κ u` for all `N`-units `u` is principal times an `m`-th power |
| 792 | above `N` that is a unit off `N`. -/ |
| 793 | private lemma IsLargeLevel.SplitPlaces.exists_mem_trivializedCocycles_of_sum_symbol_mul_eq_zero |
| 794 | {γ : ι → G} (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) [Fintype ι] |
| 795 | (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) |
| 796 | [IsTotallyComplex (fixedFieldOf U.toOpenSubgroup.toSubgroup)] |
| 797 | {κ : (unitsModule U.toOpenSubgroup.toSubgroup).H0 →+ |
| 798 | Z1 (Representation.trivial ℤ U.toOpenSubgroup.toSubgroup (ZMod m))} (hκ : IsKummerMap κ) |
| 799 | (h_idele : ∀ α : (𝔸f (fixedFieldOf U.toOpenSubgroup.toSubgroup))ˣ, |
| 800 | (∀ u : Set.unit {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup) | ↑N ∈ u.asIdeal} |
| 801 | (fixedFieldOf U.toOpenSubgroup.toSubgroup), |
| 802 | abelianLift (ofZModCocycle m (κ (ofBase U.toOpenSubgroup.toSubgroup Ω (.ofMul u.val)))) |
| 803 | (artinMap U.toOpenSubgroup.toSubgroup α) = 1) → |
| 804 | α ∈ principalIdele.range ⊔ |
| 805 | idelesPowAt {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup) | ↑N ∈ u.asIdeal} m ⊓ |
| 806 | idelesUnitOff {u : FinPlace (fixedFieldOf U.toOpenSubgroup.toSubgroup) | ↑N ∈ u.asIdeal}) |
| 807 | {b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m} |
| 808 | (hb : ∀ (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω), m • r = ↑y → ∀ i : ι, |
| 809 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r) |
| 810 | (f : ι × G ⧸ U.toOpenSubgroup.toSubgroup → ZMod m) |
| 811 | (hf : ∀ y : ↥(fixedSUnits N U), ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 812 | b (fixedSUnitsRep N U θ.snd y) θ.fst * f θ = 0) |
| 813 | (a : V.V) : |
| 814 | ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, |
| 815 | P.snd (γ i) = ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), V.ρ δ.out (f (i, δ) • a) := by |
| 816 | -- Take local elements `ξ θ` of order one with Artin symbol `(S.φ θ)⁻¹`, and the idele |
| 817 | -- `α` of order `e θ ≡ cyclotomicCharMod g * f θ` at `S.v θ`. The relations `hf` say that the |
| 818 | -- Kummer characters of the `N`-units kill `α`, so for some `x` in `F` the idele `α / x` is an |
| 819 | -- `m`-th power above `N` and a unit elsewhere. |
| 820 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 821 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 822 | let S := liftToFixedField s |
| 823 | choose ξ hξ_val hξ_art using fun θ : ι × G ⧸ Q ↦ |
| 824 | (S.isPlaceOver θ).exists_localArtin_eq_of_isFrob (Γ := Q) (g := (S.φ θ)⁻¹) |
| 825 | (by simpa only [inv_inv] using (S.isFrob θ).left) |
| 826 | let e (θ : ι × G ⧸ Q) : ℕ := (cyclotomicCharMod Ω m θ.snd.out * f θ).val |
| 827 | let α : (𝔸f F)ˣ := ∏ θ, locIdele (S.v θ) (ξ θ) ^ e θ |
| 828 | have hα (u : Set.unit {u : FinPlace F | ↑N ∈ u.asIdeal} F) : |
| 829 | abelianLift (ofZModCocycle m (κ (ofBase Q Ω (.ofMul u.val)))) (artinMap Q α) = 1 := by |
| 830 | simp [S, α, e, (S.isPlaceOver _).artinAt_eq_of_localArtin_eq (hξ_art _), ← toAdd_eq_zero, |
| 831 | ← map_nsmul, ← map_sum, |
| 832 | mul_comm (f _), mul_assoc, |
| 833 | kummer_frob_liftToFixedField s hκ hb (ofBase Q Ω (.ofMul u.val)) |
| 834 | (ofBase_mem_sUnits.mpr u.prop), |
| 835 | hf] |
| 836 | obtain ⟨_, ⟨x, rfl⟩, β, ⟨h_pow, h_unit⟩, hβ⟩ := mem_sup.mp (h_idele α hα) |
| 837 | obtain rfl : β = α / principalIdele x := eq_div_of_mul_eq'' hβ |
| 838 | -- Off `N`, `x` has the valuations of `α`. |
| 839 | have h_val : ∀ u : FinPlace F, ↑N ∉ u.asIdeal → |
| 840 | ∏ θ, Valued.v ((locIdele (S.v θ) (ξ θ)).val u) ^ e θ = u.valuation F x := by |
| 841 | simpa [α, idelesUnitOff, div_eq_one, Units.ext_iff, ideleAt] using h_unit |
| 842 | have val_S (θ : ι × G ⧸ Q) : ((S.v θ).valuation F x.val).log = -e θ := by |
| 843 | rw [← h_val _ (S.level_notMem θ), Fintype.prod_eq_single θ] |
| 844 | · simp [hξ_val] |
| 845 | · simp +contextual [S.v_injective.ne, eq_comm] |
| 846 | -- So `x` is a local `m`-th power above `N` and a unit at the other primes outside the family. |
| 847 | have hx_pow : ∀ u ∈ {u : FinPlace F | ↑N ∈ u.asIdeal}, |
| 848 | ideleAt u (principalIdele x) ∈ (powMonoidHom m).range := |
| 849 | fun u hu ↦ by simpa [α, hu.ne_of_notMem, S.level_notMem] using mem_iInf.1 h_pow ⟨u, hu⟩ |
| 850 | have hx_unit : ∀ u : FinPlace F, ↑N ∉ u.asIdeal → u ∉ Set.range S.v → u.valuation F x = 1 := |
| 851 | fun u hN h_new ↦ by simp [← h_val u hN, Ne.symm (h_new ⟨_, ·⟩)] |
| 852 | exact s.exists_mem_trivializedCocycles_of_valuation hγ h_triv hκ f a x hx_pow hx_unit val_S |
| 853 | |
| 854 | /-- Power residue symbols `b` of the `N`-units of the field of `U` at the split primes of `s`, with |
| 855 | what they say about the values `z (γ i)` at tame generators `γ i` of the cocycles `z = P.snd` of |
| 856 | the pairs `P` trivialised above `N` and infinity. -/ |
| 857 | structure IsLargeLevel.SplitPlaces.PowerResidueSymbols [Fintype ι] (γ : ι → G) |
| 858 | (b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m) : Prop where |
| 859 | /-- `ζ ^ b y i = s.φ i r / r` whenever `r ^ m = y`. -/ |
| 860 | rootPowHom_apply (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω) (hr : m • r = ↑y) (i : ι) : |
| 861 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r |
| 862 | /-- A trivialised cocycle that vanishes at every `γ i` vanishes on `U`. -/ |
| 863 | snd_eq_zero_of_forall_snd_eq_zero (P : (PlaceAboveLevel N → V) × (G → V)) |
| 864 | (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) (h_zero : ∀ i : ι, P.snd (γ i) = 0) |
| 865 | (g : G) (hg : g ∈ U) : P.snd g = 0 |
| 866 | /-- Each `N`-unit `y` gives the relation `∑ b (g y) i • g⁻¹ z (γ i) = 0`, over `i` and |
| 867 | `g ∈ G / U`. -/ |
| 868 | sum_smul_eq_zero (P : (PlaceAboveLevel N → V) × (G → V)) |
| 869 | (hP : P ∈ V.trivializedCocycles (PlaceAboveLevel N) I) (y : ↥(fixedSUnits N U)) : |
| 870 | ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 871 | b (fixedSUnitsRep N U θ.snd y) θ.fst • V.ρ θ.snd.out⁻¹ (P.snd (γ θ.fst)) = 0 |
| 872 | /-- Over a totally complex field of `U`, a solution `f` of the relations gives, for each `a`, a |
| 873 | trivialised cocycle with `z (γ i) = ∑ g, g (f (i, g) • a)`. -/ |
| 874 | exists_mem_trivializedCocycles |
| 875 | (h_complex : IsTotallyComplex (fixedFieldOf U.toOpenSubgroup.toSubgroup)) |
| 876 | (f : ι × G ⧸ U.toOpenSubgroup.toSubgroup → ZMod m) |
| 877 | (hf : ∀ y : ↥(fixedSUnits N U), ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 878 | b (fixedSUnitsRep N U θ.snd y) θ.fst * f θ = 0) (a : V.V) : |
| 879 | ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, |
| 880 | P.snd (γ i) = ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), V.ρ δ.out (f (i, δ) • a) |
| 881 | |
| 882 | /-- Power residue reciprocity at split primes. Let `U` act trivially on the `ℤ/m`-module `V`, and |
| 883 | let `γ i` be tame generators of inertia at `s.valuationSubring i`. Then some power residue symbols |
| 884 | `b` have the properties of `New.IsLargeLevel.SplitPlaces.PowerResidueSymbols`. Cosets act on `V` |
| 885 | through their representatives `out`. The proof is by Kummer theory (`New.exists_kummer_chars`) and |
| 886 | Artin's law. |
| 887 | |
| 888 | The Greenberg–Wiles bounds on cocycle counts in this development use this statement in place of |
| 889 | Poitou–Tate duality. -/ |
| 890 | theorem IsLargeLevel.SplitPlaces.exists_powerResidueSymbols (γ : ι → G) |
| 891 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 892 | [Fintype ι] (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) : |
| 893 | ∃ b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m, s.PowerResidueSymbols (V := V) γ b := by |
| 894 | -- Work over the fixed field `F` of `U`, which contains the `m`-th roots of unity, with the Kummer |
| 895 | -- characters `κ x` of `U`. The relations are Artin's law for a symbol `(κ y, x)` |
| 896 | -- (`sum_ord_smul_kummer_frob_eq_zero`); conversely a family `f` that satisfies them gives the |
| 897 | -- orders of an idele that is principal up to powers and units. |
| 898 | let Q : Subgroup G := U.toOpenSubgroup.toSubgroup |
| 899 | let F : IntermediateField K Ω := fixedFieldOf Q |
| 900 | -- `hκ`: `ζ ^ κ x q = q r / r` whenever `r ^ m = x`. `h_idele`: for `F` totally complex and a |
| 901 | -- large set `T` of primes, an idele whose Artin symbol is killed by the `κ u` of all `T`-units |
| 902 | -- `u` is principal times an idele that is an `m`-th power at `T` and a unit elsewhere. |
| 903 | have h_cyc (q : Q) : cyclotomicCharMod Ω m q = 1 := |
| 904 | (liftToFixedField s).cyclotomicCharMod_eq_one q ⟨⟩ |
| 905 | obtain ⟨κ, hκ, h_idele⟩ := exists_kummer_chars (K := F) h_cyc |
| 906 | -- The symbol `b y i` is the value of `κ y` at the Frobenius `s.φ i`. |
| 907 | have h_fix (y : ↥(fixedSUnits N U)) : y.val ∈ (unitsModule Q).H0 := |
| 908 | (Submodule.mem_inf.mp y.prop).right |
| 909 | let b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m := |
| 910 | .mk' (fun y i ↦ (κ ⟨y, h_fix y⟩).val ⟨s.φ i, (s.isFrob i).right⟩) fun y y' ↦ funext fun i ↦ |
| 911 | congrArg (fun c ↦ c.val ⟨s.φ i, (s.isFrob i).right⟩) |
| 912 | (κ.map_add ⟨y, h_fix y⟩ ⟨y', h_fix y'⟩) |
| 913 | have hb : ∀ (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω), m • r = ↑y → ∀ i : ι, |
| 914 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r := |
| 915 | fun y r hr i ↦ hκ _ r hr _ |
| 916 | refine ⟨b, hb, fun P hP ↦ snd_eq_zero_of_snd_generators_eq_zero s hγ h_triv hP, |
| 917 | fun P hP ↦ sum_symbol_smul_snd_generators_eq_zero s hγ h_triv hκ hb hP, fun h_complex ↦ ?_⟩ |
| 918 | exact exists_mem_trivializedCocycles_of_sum_symbol_mul_eq_zero s hγ h_triv hκ |
| 919 | (fun α hα ↦ h_idele (finite_natCast_mem _) (s.principal_sup_idelesUnitOff F le_rfl) |
| 920 | (fun u ↦ u.asIdeal.mem_of_dvd s.dvd_level.natCast) α hα) hb |
| 921 | |
| 922 | /-- `New.IsLargeLevel.SplitPlaces.exists_powerResidueSymbols` as one conjunction: its clauses |
| 923 | (a)–(d) are the four fields of `New.IsLargeLevel.SplitPlaces.PowerResidueSymbols`, in order. Here |
| 924 | `s.φ i` is a Frobenius element in `U` at a place over the `i`-th split prime. A pair `P` is a map |
| 925 | `f` on the places of `Ω` above `N` and infinity together with a continuous `z = P.snd` vanishing on |
| 926 | `I`, with `g f(x) = f(g x) + z g`. |
| 927 | |
| 928 | Clauses (c) and (d) are an explicit substitute for the Poitou–Tate duality behind the |
| 929 | Greenberg–Wiles formula, for modules fixed by `U` at auxiliary split primes, pairing trivialised |
| 930 | cocycles with `N`-units by power residue symbols. -/ |
| 931 | lemma IsLargeLevel.SplitPlaces.power_residue_reciprocity (γ : ι → G) |
| 932 | (hγ : ∀ i : ι, IsTameGeneratorFor m (s.valuationSubring i) (γ i)) |
| 933 | [Fintype ι] (h_triv : V.TrivialOn U.toOpenSubgroup.toSubgroup) : |
| 934 | ∃ b : IsLargeLevel.fixedSUnits N U →+ ι → ZMod m, |
| 935 | -- (a) `b y i` is the `m`-th power residue symbol of the `N`-unit `y` at the `i`-th prime |
| 936 | (∀ (y : ↥(fixedSUnits N U)) (r : DiscreteUnits Ω), m • r = ↑y → ∀ i : ι, |
| 937 | (rootPowHom Ω m).val (b y i) = unitsRep (s.φ i) r - r) ∧ |
| 938 | (∀ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, |
| 939 | -- (b) on `U`, a trivialised cocycle that vanishes at all `γ i` is zero |
| 940 | ((∀ i : ι, P.snd (γ i) = 0) → ∀ g ∈ U, P.snd g = 0) ∧ |
| 941 | -- (c) each `N`-unit `y` gives a relation between the values at the `γ i` |
| 942 | ∀ y : ↥(fixedSUnits N U), ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 943 | b (fixedSUnitsRep N U θ.snd y) θ.fst • V.ρ θ.snd.out⁻¹ (P.snd (γ θ.fst)) = 0) ∧ |
| 944 | -- (d) over a totally complex field, a family `f` with these relations comes from a cocycle |
| 945 | (IsTotallyComplex (fixedFieldOf U.toOpenSubgroup.toSubgroup) → |
| 946 | ∀ f : ι × G ⧸ U.toOpenSubgroup.toSubgroup → ZMod m, |
| 947 | (∀ y : ↥(fixedSUnits N U), ∑ θ : ι × G ⧸ U.toOpenSubgroup.toSubgroup, |
| 948 | b (fixedSUnitsRep N U θ.snd y) θ.fst * f θ = 0) → |
| 949 | ∀ a : V.V, ∃ P ∈ V.trivializedCocycles (PlaceAboveLevel N) I, ∀ i : ι, |
| 950 | P.snd (γ i) = ∑ δ : G ⧸ (U.toOpenSubgroup : Subgroup G), V.ρ δ.out (f (i, δ) • a)) := by |
| 951 | obtain ⟨b, h_symbols⟩ := s.exists_powerResidueSymbols γ hγ h_triv |
| 952 | exact ⟨b, h_symbols.rootPowHom_apply, |
| 953 | fun P hP ↦ ⟨h_symbols.snd_eq_zero_of_forall_snd_eq_zero P hP, h_symbols.sum_smul_eq_zero P hP⟩, |
| 954 | fun h_complex f hf a ↦ h_symbols.exists_mem_trivializedCocycles h_complex f hf a⟩ |
| 955 | |
| 956 | end New |