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.Rat |
| 4 | import Mathlib.Analysis.Normed.Algebra.Basic |
| 5 | import Mathlib.FieldTheory.Finite.Basic |
| 6 | import Mathlib.FieldTheory.Galois.Profinite |
| 7 | import Mathlib.Tactic.Linter.Style |
| 8 | import Mathlib.Topology.Algebra.Ring.Compact |
| 9 | import Mathlib.Topology.Connected.Separation |
| 10 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 11 | import TauCeti.Analysis.Normed.Field.Approximation |
| 12 | import TauCeti.NumberTheory.Padics.Complex.Basic |
| 13 | import TauCeti.RingTheory.Valuation.ValuationSubring |
| 14 | public import Lib.PadicHodge.PeriodRings.AxTheorem |
| 15 | public import Lib.ClassField.Places.ProfiniteGalois |
| 16 | public import Lib.ClassField.Places.ValuationSubrings |
| 17 | import Lib.ClassField.Places.DecompositionCyclotomic |
| 18 | import Lib.ClassField.Places.LocalFields |
| 19 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 20 | |
| 21 | /-! |
| 22 | # Decomposition groups of places above p as Galois groups of local fields in ℚ̄_p |
| 23 | |
| 24 | Let `Ω` be an algebraic closure of a number field `K` and `Γ` its Galois group. A place of `Ω` is a |
| 25 | valuation subring `A` of `Ω` (the type `ClosurePlace`), and `New.IsPlaceOver A v` says that it lies |
| 26 | over the prime `v` of `K`. |
| 27 | |
| 28 | `New.decompGroup Γ A` is the stabiliser of `A`, `New.Gp p` is `Gal(ℚ̄_p/ℚ_p)`, and `New.intQpBar p` |
| 29 | is the valuation ring of `ℚ̄_p`. Every place above `p` is induced by an embedding `Ω → ℚ̄_p`, and |
| 30 | the decomposition group then embeds as an open subgroup of `New.Gp p`, acting as the Galois group |
| 31 | over the completion at `v`. |
| 32 | |
| 33 | ## Main definitions and results |
| 34 | |
| 35 | * `New.Period.isLocalGalois_of_isOpenEmbedding`: let `j` be an open embedding of a group in |
| 36 | `Gal(ℚ̄_p/ℚ_p)`. Then the group is the absolute Galois group of the subfield of `ℚ̄_p` fixed by |
| 37 | the image of `j`. |
| 38 | * `New.exists_comap_intQpBar_eq`: every place of an algebraic closure of `ℚ` above `p` is induced by |
| 39 | an embedding in `ℚ̄_p`. |
| 40 | * `New.IsCompletionEmb`: the decomposition group of `A` acts on `ℚ̄_p` as the Galois group over the |
| 41 | completion at `v`, compatibly with an embedding `j : Ω → ℚ̄_p` that induces `A`. |
| 42 | * `New.IsPlaceOver.exists_isCompletionEmb`: such data exist for every place `A` of `Ω` over `v`. |
| 43 | * `New.IsPlaceOver.isLocalGalois_and_residueCard_eq_and_isUniformizer`: the fixed field is local |
| 44 | (`New.IsLocalGalois`), with the same residue order, and uniformisers of `K` remain uniformisers. |
| 45 | * `New.IsPlaceOver.ramification_in_tower`: ramification index and residue degree in a finite |
| 46 | extension of `K`. |
| 47 | |
| 48 | Notions from other files: |
| 49 | * `New.IsLocalGalois Γ K A`: `Γ` acts as the profinite Galois group of the algebraically closed |
| 50 | field `Ω` over `K` and stabilises the valuation ring `A`, and `A ∩ K` (`New.valRingBelow`) is a |
| 51 | discrete valuation ring with finite residue field. |
| 52 | * `New.PadicField F p`: a normed field `F` that is a normed algebra over `ℚ_p`, not necessarily |
| 53 | complete. |
| 54 | * `New.residueCard K A`: the number of elements of the residue field of the valuation ring of `K` |
| 55 | induced by `A` (zero if infinite). |
| 56 | * `New.IsProGalois`: a profinite group acts on the Galois extension Ω/K as its Galois group, with |
| 57 | open stabilisers. |
| 58 | * `New.ordRat K A`: the order normalised on `K`: a chosen additive f : Ω^× → ℚ with n f(x) = a |
| 59 | exactly when x^n and π^a have equal valuation, for uniformisers π of `K`. |
| 60 | |
| 61 | ## Relation to the literature |
| 62 | |
| 63 | Known; see `Lib.ClassField.Places.LocalFields` for sources. |
| 64 | -/ |
| 65 | |
| 66 | @[expose] public section |
| 67 | |
| 68 | namespace New |
| 69 | |
| 70 | /-! |
| 71 | ## Decomposition groups above p as open subgroups of the Galois group of ℚ_p |
| 72 | -/ |
| 73 | |
| 74 | section PadicDecomposition |
| 75 | |
| 76 | open Set Subtype PadicInt decompGroup IntermediateField UniformSpace.Completion Topology Nat |
| 77 | MulSemiringAction Selmer |
| 78 | |
| 79 | variable {p : ℕ} [Fact p.Prime] {K : Type*} [Field K] |
| 80 | {Γ : Type*} [Group Γ] [TopologicalSpace Γ] |
| 81 | (e : K →+* PadicAlgCl p) (j : Γ →* Gp p) (ι : Ω →+* PadicAlgCl p) |
| 82 | |
| 83 | /-! ### The local field `ℚ_p` -/ |
| 84 | |
| 85 | /-- The place of `Ω` induced by `ι : Ω → ℚ̄_p` lies above `p`. -/ |
| 86 | lemma valuation_comap_intQpBar_lt_one : ((intQpBar p).comap ι) p < 1 := by |
| 87 | rw [comap_apply_lt_one_iff, map_natCast, valuation_intQpBar_lt_one_iff] |
| 88 | exact PadicAlgCl.norm_p_lt_one p |
| 89 | |
| 90 | /-- The valuation ring that `ℚ̄_p` induces on `ℚ_p`, identified with `ℤ_p`. -/ |
| 91 | private noncomputable def valRingBelowEquivPadicInt : valRingBelow ℚ_[p] (intQpBar p) ≃+* ℤ_[p] := |
| 92 | .subringCongr (by |
| 93 | ext x |
| 94 | change intQpBar p (algebraMap ℚ_[p] (PadicAlgCl p) x) ≤ 1 ↔ ‖x‖ ≤ 1 |
| 95 | rw [← map_one (intQpBar p).valuation, valuation_intQpBar_le_iff, norm_one, norm_algebraMap']) |
| 96 | |
| 97 | /-- The residue field of `ℚ_p` for the valuation ring that `ℚ̄_p` induces on it (which is `ℤ_p`) has |
| 98 | `p` elements. -/ |
| 99 | lemma Selmer.residueCard_padic : residueCard ℚ_[p] (intQpBar p) = p := by |
| 100 | -- The residue field of `ℤ_[p]` is `ZMod p`. |
| 101 | exact (card_congr ((IsLocalRing.ResidueField.mapEquiv valRingBelowEquivPadicInt).trans |
| 102 | residueField).toEquiv).trans (Nat.card_zmod p) |
| 103 | |
| 104 | /-- `Gal(ℚ̄_p/ℚ_p)` is the absolute Galois group of the local field `ℚ_p`: it maps the valuation |
| 105 | ring of `ℚ̄_p` to itself, and this ring meets `ℚ_p` in `ℤ_p`, a discrete valuation ring with |
| 106 | finite residue field. -/ |
| 107 | instance isLocalGalois_padic : IsLocalGalois (Gp p) ℚ_[p] (intQpBar p) where |
| 108 | mem_decompGroup := mem_decompGroup_intQpBar |
| 109 | isDiscreteValuationRing := |
| 110 | IsDiscreteValuationRing.RingEquivClass.isDiscreteValuationRing valRingBelowEquivPadicInt.symm |
| 111 | finite_residue := finite_of_card_ne_zero (residueCard_padic.trans_ne NeZero.out) |
| 112 | |
| 113 | /-- In a normed field F over ℚ_p, the topological closure of any subfield contains the image of |
| 114 | ℚ_p. -/ |
| 115 | lemma padic_mem_topologicalClosure {F : Type*} [NormedField F] [PadicField F p] (S : Subfield F) |
| 116 | (x : ℚ_[p]) : algebraMap ℚ_[p] F x ∈ S.topologicalClosure := |
| 117 | map_mem_closure (by fun_prop) (Padic.denseRange_ratCast p x) (by simp) |
| 118 | |
| 119 | /-- A ring homomorphism `ι` from the algebraic closure `Ω` of `ℚ` to `ℚ̄_p` has dense image. -/ |
| 120 | lemma denseRange_emb_padicAlgCl : DenseRange ι := by |
| 121 | let L := ι.toRatAlgHom.fieldRange |
| 122 | have : IsAlgClosed L := IsAlgClosed.of_ringEquiv Ω L ι.toRatAlgHom.equivFieldRange.toRingEquiv |
| 123 | -- The image of `ι` contains each element algebraic over `ℚ`, since its minimal polynomial |
| 124 | -- splits over the algebraically closed field `L`. |
| 125 | have h_range : {y : PadicAlgCl p | IsAlgebraic ℚ y} ⊆ range ι := by |
| 126 | intro y hy |
| 127 | change y ∈ L |
| 128 | exact hy.isIntegral.mem_intermediateField_of_minpoly_splits (IsAlgClosed.splits _) |
| 129 | -- Because `ℚ` is dense in `ℚ_p`, the elements algebraic over `ℚ` are dense in `ℚ̄_p`. |
| 130 | intro x |
| 131 | have h_alg : IsAlgebraic ℚ_[p] x := Algebra.IsAlgebraic.isAlgebraic x |
| 132 | exact closure_mono h_range (h_alg.mem_closure_setOf_isAlgebraic (Padic.denseRange_ratCast p)) |
| 133 | |
| 134 | /-! ### Open subgroups of the Galois group of `ℚ_p` -/ |
| 135 | |
| 136 | /-- For an embedding `e : K → ℚ̄_p` of a field `K` and a homomorphism `j : Γ → Gal(ℚ̄_p/ℚ_p)` from |
| 137 | the topological group `Γ`: `j` is an open embedding whose image consists of the elements fixing |
| 138 | `e(K)` pointwise. -/ |
| 139 | def Selmer.IsCompletionGroup : Prop := |
| 140 | IsOpenEmbedding j ∧ ∀ g : Gp p, g ∈ j.range ↔ ∀ x : K, g (e x) = e x |
| 141 | |
| 142 | /-- If `j` is an open embedding of the topological group `Γ` into `Gal(ℚ̄_p/ℚ_p)`, then `Γ`, acting |
| 143 | on `ℚ̄_p` through `j` (the `let` in the statement), is the absolute Galois group of the fixed field |
| 144 | of `j(Γ)`, in the sense of `New.IsLocalGalois` for the integers of `ℚ̄_p`. -/ |
| 145 | lemma Period.isLocalGalois_of_isOpenEmbedding {j : Γ →* Gp p} (hj : IsOpenEmbedding j) : |
| 146 | let : MulSemiringAction Γ (PadicAlgCl p) := compHom (PadicAlgCl p) j |
| 147 | IsLocalGalois Γ (fixedFieldOf j.range) (intQpBar p) := by |
| 148 | -- The image of `j` is an open subgroup of `Gp p`, so it is the Galois group of a finite extension |
| 149 | -- of `ℚ_p`, a local field (`IsLocalGalois.of_finite`); the structure is carried to `Γ` along the |
| 150 | -- isomorphism onto the image. |
| 151 | intro action |
| 152 | -- `id` keeps the open subgroup folded, as instance search needs it. |
| 153 | have h_range : IsLocalGalois j.range (fixedFieldOf j.range) (intQpBar p) := |
| 154 | (isLocalGalois_padic.of_finite (id ⟨j.range, hj.isOpen_range⟩)).isLocalGalois |
| 155 | have h_compact : CompactSpace Γ := IsClosedEmbedding.compactSpace |
| 156 | ⟨hj.isEmbedding, j.range.isClosed_of_isOpen hj.isOpen_range⟩ |
| 157 | have h_disconnected : TotallyDisconnectedSpace Γ := hj.toHomeomorph.symm.totallyDisconnectedSpace |
| 158 | have h_galois : IsGaloisGroup Γ (fixedFieldOf j.range) (PadicAlgCl p) := |
| 159 | .of_mulEquiv (j.ofInjective hj.injective) fun g x ↦ rfl |
| 160 | exact { h_compact, hj.isTopologicalGroup, h_disconnected, h_galois, h_range with |
| 161 | mem_decompGroup g := isLocalGalois_padic.mem_decompGroup (j g) |
| 162 | isOpen_stabilizer x := (isLocalGalois_padic.isOpen_stabilizer x).preimage hj.continuous } |
| 163 | |
| 164 | variable [Algebra K Ω] [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] |
| 165 | |
| 166 | /-- `j` is the map from the decomposition group of `A` to `Gal(ℚ̄_p/ℚ_p)` that goes with the |
| 167 | embedding `e : Ω → ℚ̄_p`: (a) `A` is the preimage under `e` of the valuation ring of `ℚ̄_p`, |
| 168 | (b) `j g` acts on the image of `e` as `g` acts on `Ω`, and (c) `j` is an open embedding whose |
| 169 | image consists of the automorphisms that fix `e K` pointwise. The bracketing is |
| 170 | `((a) ∧ (b)) ∧ (c)`. -/ |
| 171 | def GaloisRep.InducesPlace (K : Type*) [Field K] [Algebra K Ω] (A : ClosurePlace) |
| 172 | (e : Ω →+* PadicAlgCl p) (j : decompGroup Γ A →* Gp p) : Prop := |
| 173 | -- (a) `e` induces `A` |
| 174 | ((intQpBar p).comap e = A ∧ |
| 175 | -- (b) `e` is equivariant along `j` |
| 176 | ∀ (g : decompGroup Γ A) (x : Ω), j g (e x) = e ((g : Γ) • x)) ∧ |
| 177 | -- (c) `j` is an open embedding onto the elements that fix `e K` pointwise |
| 178 | IsCompletionGroup (e.comp (algebraMap K Ω)) j |
| 179 | |
| 180 | include K in |
| 181 | /-- An element of the Galois group lies in the decomposition group of the place induced by |
| 182 | `ι : Ω → ℚ̄_p` exactly when it preserves the p-adic norm pulled back along `ι`. -/ |
| 183 | lemma mem_decompGroup_iff_nnnorm_eq (ι : Ω →+* PadicAlgCl p) {σ : Γ} : |
| 184 | σ ∈ decompGroup Γ ((intQpBar p).comap ι) ↔ ∀ x : Ω, ‖ι (σ • x)‖₊ = ‖ι x‖₊ := by |
| 185 | refine ⟨fun hσ x ↦ ?_, fun hσ ↦ mem_decompGroup_iff.mpr fun x ↦ ?_⟩ |
| 186 | · exact ((PadicAlgCl.valued p).v.comap ι).isEquiv_valuation_valuationSubring.eq_iff.mpr |
| 187 | (decompGroup.val_smul hσ x) |
| 188 | · have h_mem (y : Ω) : y ∈ (intQpBar p).comap ι ↔ ‖ι y‖ ≤ 1 := by |
| 189 | rw [ValuationSubring.mem_comap, ← ValuationSubring.valuation_le_one_iff, |
| 190 | ← map_one (intQpBar p).valuation, valuation_intQpBar_le_iff, norm_one] |
| 191 | have h_norm : ‖ι (σ • x)‖ = ‖ι x‖ := congrArg (fun r : NNReal ↦ (r : ℝ)) (hσ x) |
| 192 | rw [h_mem, h_mem, h_norm] |
| 193 | |
| 194 | /-- Let `Γ` act on `Ω` as the Galois group over `K`, let `ι : Ω → ℚ̄_p`, and let `σ` lie in the |
| 195 | decomposition group of the place that `ι` induces on `Ω`. If `ι x` lies in the closure of `ι(K)`, |
| 196 | then `σ` fixes `x`. -/ |
| 197 | lemma smul_eq_self_of_mem_decompGroup_of_mem_closure (ι : Ω →+* PadicAlgCl p) {σ : Γ} |
| 198 | (hσ : σ ∈ decompGroup Γ ((intQpBar p).comap ι)) {x : Ω} |
| 199 | (hx : ι x ∈ closure (range (ι.comp (algebraMap K Ω)))) : |
| 200 | σ • x = x := by |
| 201 | -- `σ` preserves the p-adic norm and fixes `K`, so `ι (σ x)` and `ι x` are equally far from each |
| 202 | -- point of `ι(K)`; by continuity also from `ι x`, so they are equal. |
| 203 | let k : K →+* PadicAlgCl p := ι.comp (algebraMap K Ω) |
| 204 | have h_dist : EqOn (nndist (ι (σ • x))) (nndist (ι x)) (range k) := by |
| 205 | rintro _ ⟨a, rfl⟩ |
| 206 | have h_eq := (mem_decompGroup_iff_nnnorm_eq (K := K) ι).mp hσ (x - algebraMap K Ω a) |
| 207 | rw [nnDist_eq_nnNorm, nnDist_eq_nnNorm, RingHom.comp_apply, ← map_sub, ← map_sub] |
| 208 | rwa [smul_sub, smul_algebraMap] at h_eq |
| 209 | have h_dist_self : nndist (ι (σ • x)) (ι x) = nndist (ι x) (ι x) := |
| 210 | h_dist.closure (by fun_prop) (by fun_prop) hx |
| 211 | exact ι.injective (nndist_eq_zero.mp (h_dist_self.trans (nndist_self _))) |
| 212 | |
| 213 | variable (K Γ) |
| 214 | |
| 215 | omit [TopologicalSpace Γ] in |
| 216 | /-- A map `f` from a subgroup of `Gp p` to `Γ` through which the action on `Ω` is compatible with |
| 217 | the embedding `ι : Ω →+* PadicAlgCl p`, i.e. `ι (f g • x) = g • ι x`, is injective. -/ |
| 218 | private lemma injective_of_emb_smul_eq {H : Subgroup (Gp p)} {f : H → Γ} |
| 219 | (hf : ∀ (g : H) (x : Ω), ι (f g • x) = g • ι x) : Function.Injective f := by |
| 220 | -- Two continuous automorphisms that agree on the dense image of `ι` agree. |
| 221 | intro g g' h_eq |
| 222 | have h_agree (x : Ω) : (g : Gp p) • ι x = (g' : Gp p) • ι x := |
| 223 | calc (g : Gp p) • ι x = ι (f g • x) := (hf g x).symm |
| 224 | _ = ι (f g' • x) := by rw [h_eq] |
| 225 | _ = (g' : Gp p) • ι x := hf g' x |
| 226 | have h_agree_all : ∀ y : PadicAlgCl p, (g : Gp p) • y = (g' : Gp p) • y := |
| 227 | (denseRange_emb_padicAlgCl ι).eq h_agree |
| 228 | exact Subtype.coe_injective (eq_of_smul_eq_smul h_agree_all) |
| 229 | |
| 230 | /-- Let `U` be an open subgroup of `Gp p` whose fixed points in `ℚ̄_p` lie in `ℚ_p (ι K)`, and let |
| 231 | `f : U →* Γ` be continuous and compatible with the actions along `ι`. Then every element of the |
| 232 | decomposition group of the place induced by `ι` lies in the range of `f`. -/ |
| 233 | private lemma mem_range_of_mem_decompGroup (U : OpenSubgroup (Gp p)) |
| 234 | (hU : ∀ y : PadicAlgCl p, (∀ g : (U : Subgroup (Gp p)), (g : Gp p) • y = y) → |
| 235 | y ∈ adjoin ℚ_[p] (range (ι.comp (algebraMap K Ω)))) |
| 236 | {f : (U : Subgroup (Gp p)) →* Γ} (hf_cont : Continuous f) |
| 237 | (hf : ∀ (g : (U : Subgroup (Gp p))) (x : Ω), ι (f g • x) = g • ι x) {σ : Γ} |
| 238 | (hσ : σ ∈ decompGroup Γ ((intQpBar p).comap ι)) : σ ∈ f.range := by |
| 239 | let k : K →+* PadicAlgCl p := ι.comp (algebraMap K Ω) |
| 240 | -- The range of `f` is closed, so it suffices that `σ` fixes every `x` fixed by it |
| 241 | -- (`fixingSubgroup_fixedFieldOf`). |
| 242 | have hf_closed : IsClosed (X := Γ) f.range := (isCompact_range hf_cont).isClosed |
| 243 | refine (fixingSubgroup_fixedFieldOf f.range).le fun ⟨x, hx⟩ ↦ ?_ |
| 244 | -- `ι x` is fixed by `U`, so it lies in `ℚ_p (ι K)`, which is inside the closure of `ι K`. |
| 245 | have h_fixed_by_U (g : (U : Subgroup (Gp p))) : (g : Gp p) • ι x = ι x := by |
| 246 | have hx_g : f g • x = x := hx ⟨f g, MonoidHom.mem_range.mpr ⟨g, rfl⟩⟩ |
| 247 | calc (g : Gp p) • ι x = ι (f g • x) := (hf g x).symm |
| 248 | _ = ι x := by rw [hx_g] |
| 249 | have h_adjoin : ι x ∈ adjoin ℚ_[p] (range k) := hU _ h_fixed_by_U |
| 250 | let T : IntermediateField ℚ_[p] (PadicAlgCl p) := |
| 251 | Subfield.toIntermediateField _ (padic_mem_topologicalClosure k.fieldRange) |
| 252 | have h_closure : ι x ∈ closure (range k) := |
| 253 | (adjoin_le_iff (T := T)).mpr subset_closure h_adjoin |
| 254 | exact smul_eq_self_of_mem_decompGroup_of_mem_closure ι hσ h_closure |
| 255 | |
| 256 | /-- Let `Ω` be `New.Ω`, the fixed algebraic closure of `ℚ`, and let `K` be a number field inside |
| 257 | `Ω`, with `Γ` acting as the Galois group of `Ω/K` (`IsProGalois`). An embedding |
| 258 | `ι : Ω → ℚ̄_p` that pulls the integers of `ℚ̄_p` back to the place `A` induces an open embedding `j` |
| 259 | of the decomposition group of `A` in `Gal(ℚ̄_p/ℚ_p)`, with `j(g)(ι x) = ι(g x)`, whose image |
| 260 | consists of the automorphisms fixing `ι(K)` pointwise (`GaloisRep.InducesPlace`). -/ |
| 261 | lemma exists_inducesPlace [NumberField K] {ι : Ω →+* PadicAlgCl p} {A : ValuationSubring Ω} |
| 262 | (h_comap : (intQpBar p).comap ι = A) : |
| 263 | ∃ j : decompGroup Γ A →* Gp p, GaloisRep.InducesPlace (Γ := Γ) K A ι j := by |
| 264 | subst h_comap |
| 265 | -- The embedding of `Ω` inducing `A` is already given. Identify the decomposition group |
| 266 | -- by restriction from the open subgroup `U` of `Gp p` fixing `ℚ_p (ι K)`. |
| 267 | -- The desired map `j` is the inverse of this restriction isomorphism. |
| 268 | let k : K →+* PadicAlgCl p := ι.comp (algebraMap K Ω) |
| 269 | -- `id` keeps the open subgroup folded, as instance search needs it. |
| 270 | let U : OpenSubgroup (Gp p) := id ⟨_, (adjoin ℚ_[p] (range k)).fixingSubgroup_isOpen⟩ |
| 271 | -- `U` fixes `ι K`, which lies in `ℚ_p (ι K)`, so restriction along `ι` is defined. |
| 272 | have hU_fixes (g : (U : Subgroup (Gp p))) (x : K) : |
| 273 | g • ι (algebraMap K Ω x) = ι (algebraMap K Ω x) := |
| 274 | (mem_fixingSubgroup_iff (Gp p)).mp g.prop _ (subset_adjoin _ _ ⟨x, rfl⟩) |
| 275 | obtain ⟨⟨f, hf_cont⟩, hf : ∀ (g : (U : Subgroup (Gp p))) (x : Ω), ι (f g • x) = g • ι x⟩ := |
| 276 | exists_galois_restrict Γ (U : Subgroup (Gp p)) ι hU_fixes |
| 277 | have h_dec (g : (U : Subgroup (Gp p))) : f g ∈ decompGroup Γ ((intQpBar p).comap ι) := |
| 278 | decompGroup.map hf (isLocalGalois_padic.mem_decompGroup (g : Gp p)) |
| 279 | have h_inj (g g' : (U : Subgroup (Gp p))) (h_eq : f g = f g') : g = g' := |
| 280 | injective_of_emb_smul_eq Γ ι hf h_eq |
| 281 | have h_bij : Function.Bijective (f.codRestrict _ h_dec) := by |
| 282 | refine ⟨fun g g' h_eq ↦ h_inj g g' (congrArg Subtype.val h_eq), fun σ ↦ ?_⟩ |
| 283 | obtain ⟨g, hg⟩ := MonoidHom.mem_range.mp (mem_range_of_mem_decompGroup K Γ ι U |
| 284 | (fun _ h ↦ (fixedFieldOf_fixingSubgroup (Γ := Gp p) (adjoin ℚ_[p] (range k))).le h) |
| 285 | hf_cont hf σ.prop) |
| 286 | exact ⟨g, Subtype.ext hg⟩ |
| 287 | let res : (U : Subgroup (Gp p)) ≃* decompGroup Γ ((intQpBar p).comap ι) := |
| 288 | .ofBijective (f.codRestrict _ h_dec) h_bij |
| 289 | refine ⟨(U : Subgroup (Gp p)).subtype.comp res.symm, ⟨rfl, ?_⟩, ?_, ?_⟩ |
| 290 | · -- Write `g` as `res u`: it acts on `Ω` as `f u`, which matches `u` along `ι`. |
| 291 | intro g x |
| 292 | obtain ⟨u, rfl⟩ := res.surjective g |
| 293 | calc ((U : Subgroup (Gp p)).subtype.comp res.symm) (res u) (ι x) = (u : Gp p) • ι x := by |
| 294 | change ((U : Subgroup (Gp p)).subtype (res.symm (res u))) (ι x) = (u : Gp p) • ι x |
| 295 | rw [res.symm_apply_apply] |
| 296 | rfl |
| 297 | _ = ι (f u • x) := (hf u x).symm |
| 298 | · -- a continuous bijection from a compact space to a Hausdorff space is a homeomorphism |
| 299 | exact U.isOpen.isOpenEmbedding_subtypeVal.comp |
| 300 | ((hf_cont.subtype_mk h_dec).homeoOfEquivCompactToT2 (f := res.toEquiv)).symm.isOpenEmbedding |
| 301 | · -- The image is `U`, and fixing `ℚ_p (ι K)` is the same as fixing `ι K`. |
| 302 | intro g |
| 303 | have h_range : |
| 304 | g ∈ ((U : Subgroup (Gp p)).subtype.comp res.symm.toMonoidHom).range ↔ |
| 305 | g ∈ (U : Subgroup (Gp p)) := by |
| 306 | rw [MonoidHom.range_comp, MonoidHom.range_eq_top_of_surjective _ res.symm.surjective, |
| 307 | ← MonoidHom.range_eq_map, Subgroup.range_subtype] |
| 308 | have h_fix : |
| 309 | g ∈ (U : Subgroup (Gp p)) ↔ ∀ x : K, g (ι (algebraMap K Ω x)) = ι (algebraMap K Ω x) := by |
| 310 | change g ∈ (adjoin ℚ_[p] (range k)).fixingSubgroup ↔ _ |
| 311 | simp only [IntermediateField.mem_fixingSubgroup_iff, ← AlgEquiv.smul_def, |
| 312 | forall_mem_adjoin_smul_eq_self_iff, Set.forall_mem_range, k, RingHom.comp_apply] |
| 313 | exact h_range.trans h_fix |
| 314 | |
| 315 | end PadicDecomposition |
| 316 | |
| 317 | /-! |
| 318 | ## Places of number fields from p-adic embeddings |
| 319 | |
| 320 | `New.placeOfEmb σ` is the prime induced by an embedding `σ`, and `New.LocField v` is the completion |
| 321 | at `v`. |
| 322 | -/ |
| 323 | |
| 324 | section CompletionEmbedding |
| 325 | |
| 326 | open Valued Valuation Cohomology MulSemiringAction Fact |
| 327 | |
| 328 | /-- A number field K together with a chosen embedding into the fixed algebraic closure `New.Ω` |
| 329 | of ℚ, given as an algebra structure. -/ |
| 330 | class EmbeddedNumberField (K : Type*) [Field K] extends NumberField K, Algebra K Ω |
| 331 | |
| 332 | /-- A number field with an algebra map into `Ω` is an embedded number field. -/ |
| 333 | instance {K : Type*} [Field K] [NumberField K] [Algebra K Ω] : EmbeddedNumberField K where |
| 334 | |
| 335 | variable {K : Type*} [Field K] [EmbeddedNumberField K] (v : FinPlace K) |
| 336 | (p : ℕ) [f : Fact (Nat.Prime p)] |
| 337 | (Γ : Type*) [Group Γ] [TopologicalSpace Γ] [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] |
| 338 | |
| 339 | -- The instance binders `f` and `a` are named so that they can be passed to `IsCompletionEmb`. |
| 340 | variable (A : ClosurePlace) [a : Algebra (LocField v) (PadicAlgCl p)] (j : Ω →+* PadicAlgCl p) |
| 341 | |
| 342 | /-- An embedding of the completion `K_v = LocField v` in `ℚ̄_p` (the algebra structure) and an |
| 343 | embedding `j : Ω → ℚ̄_p` that fit together: the first is continuous and induces the integers of |
| 344 | `K_v`, `j` agrees with it on `K`, and `j` pulls the integers of `ℚ̄_p` back to `A`. -/ |
| 345 | structure IsPadicAt : Prop where |
| 346 | /-- The map from `K_v` to `ℚ̄_p` is continuous. -/ |
| 347 | continuous : Continuous (algebraMap (LocField v) (PadicAlgCl p)) |
| 348 | /-- The integers of `ℚ̄_p` meet `K_v` (the `_`) in its ring of integers `LocInt v`. -/ |
| 349 | valRingBelow_eq : valRingBelow _ (intQpBar p) = LocInt v |
| 350 | /-- The integers of `ℚ̄_p` pull back under `j` to `A`. -/ |
| 351 | comap_eq : (intQpBar p).comap j = A |
| 352 | /-- On `K`, the embedding `j` agrees with the map through `K_v`. -/ |
| 353 | map_algebraMap (x : K) : |
| 354 | j (algebraMap K Ω x) = algebraMap (LocField v) (PadicAlgCl p) (algebraMap K (LocField v) x) |
| 355 | |
| 356 | /-- The decomposition group of `A` acts on `ℚ̄_p` as its Galois group over the completion |
| 357 | `LocField v`. The embedding of `LocField v` in `ℚ̄_p` is continuous and induces the integers |
| 358 | `LocInt v`. The map `j : Ω → ℚ̄_p` is an equivariant `K`-embedding that induces `A`. -/ |
| 359 | class IsCompletionEmb extends MulSemiringAction (decompGroup Γ A) (PadicAlgCl p), |
| 360 | IsLocalGalois (decompGroup Γ A) (LocField v) (intQpBar p), IsPadicAt v p A j where |
| 361 | /-- The embedding `j` commutes with the action of the decomposition group. -/ |
| 362 | equivariant (g : decompGroup Γ A) (x : Ω) : j (g • x) = g • j x |
| 363 | |
| 364 | variable {v p A} |
| 365 | |
| 366 | /-- The place of `Ω` induced by an embedding `j` in `ℚ̄_p` lies over the prime of `K` induced by the |
| 367 | restriction of `j`. -/ |
| 368 | lemma isPlaceOver_placeOfEmb : |
| 369 | IsPlaceOver ((intQpBar p).comap j) (placeOfEmb (j.comp (algebraMap K Ω))) := by |
| 370 | simp [IsPlaceOver, comap_apply_lt_one_iff] |
| 371 | |
| 372 | open Pointwise in |
| 373 | /-- For `Ω` an algebraic closure of `ℚ`, every valuation subring `A` of `Ω` in which `p` has |
| 374 | valuation below `1` (`A p` is the valuation of `p` at `A`) is the preimage of the integers of |
| 375 | `ℚ̄_p` under some embedding `Ω → ℚ̄_p`. -/ |
| 376 | lemma exists_comap_intQpBar_eq (h_val_lt_one : A p < 1) : |
| 377 | ∃ e : Ω →+* PadicAlgCl p, (intQpBar p).comap e = A := by |
| 378 | -- The inequality `A p < 1` fixes the rational prime in advance. Both `A` and the place |
| 379 | -- induced by any embedding `ι` lie above that prime. Transitivity on places over it |
| 380 | -- lets us precompose `ι` with a Galois automorphism to induce the prescribed `A`. |
| 381 | obtain ⟨v, -, -, h_over : ∀ B : ClosurePlace, B.valuation p < 1 → IsPlaceOver B v⟩ := |
| 382 | exists_rat_place_of_prime (out : p.Prime) |
| 383 | let ι : Ω →+* PadicAlgCl p := Classical.ofNonempty |
| 384 | obtain ⟨g, hg⟩ : ∃ g : Gal(Ω/ℚ), g • (intQpBar p).comap ι = A := |
| 385 | (h_over _ (valuation_comap_intQpBar_lt_one ι)).exists_smul Gal(Ω/ℚ) (h_over A h_val_lt_one) |
| 386 | exact ⟨ι.comp (toRingHom Gal(Ω/ℚ) Ω g⁻¹), |
| 387 | (ValuationSubring.pointwise_smul_eq_comap g _).symm.trans hg⟩ |
| 388 | |
| 389 | /-- Let `Ω` be `New.Ω`, the algebraic closure of `ℚ`, let `Γ` be the Galois group of `Ω` over the |
| 390 | number field `K`, and let `A` be a place of `Ω`. Suppose the completion `LocField v` embeds |
| 391 | continuously in `ℚ̄_p` (the algebra instance `a`), and the integers of `ℚ̄_p` pull back to |
| 392 | `LocInt v`. Suppose also that `j : Ω → ℚ̄_p` agrees with this embedding on `K` and induces `A` |
| 393 | (together: `IsPadicAt`). Then the decomposition group of `A` acts on `ℚ̄_p`, compatibly with `j`, |
| 394 | as the Galois group of `ℚ̄_p` over `LocField v` (`IsCompletionEmb`). -/ |
| 395 | lemma nonempty_isCompletionEmb_of_isPadicAt (h_at : IsPadicAt v p A j) : |
| 396 | Nonempty (IsCompletionEmb v p Γ A j) := by |
| 397 | -- The decomposition group acts through the open embedding `J` into the Galois group of `ℚ_p`. Its |
| 398 | -- fixed field is local (`Period.isLocalGalois_of_isOpenEmbedding`); it remains to identify it |
| 399 | -- with `LocField v`. |
| 400 | have h_smul_cont : ContinuousSMul (LocField v) (PadicAlgCl p) := |
| 401 | continuousSMul_of_algebraMap _ _ h_at.continuous |
| 402 | obtain ⟨J, ⟨-, hJ_equivariant : ∀ (g : decompGroup Γ A) (x : Ω), J g (j x) = j ((g : Γ) • x)⟩, |
| 403 | hJ_open, hJ_range⟩ := exists_inducesPlace K Γ h_at.comap_eq |
| 404 | let action : MulSemiringAction (decompGroup Γ A) (PadicAlgCl p) := compHom (PadicAlgCl p) J |
| 405 | -- The image `C` of `LocField v` is a line over `LocField v`, so it is closed; a closed subfield |
| 406 | -- contains `ℚ_p` (`padic_mem_topologicalClosure`). |
| 407 | have h_image_closed : |
| 408 | IsClosed (SetLike.coe (Algebra.linearMap (LocField v) (PadicAlgCl p)).range) := |
| 409 | Submodule.isClosed_of_finiteDimensional _ |
| 410 | have h_padic_mem (x : ℚ_[p]) : |
| 411 | algebraMap ℚ_[p] (PadicAlgCl p) x ∈ (algebraMap (LocField v) (PadicAlgCl p)).fieldRange := |
| 412 | h_image_closed.closure_subset |
| 413 | (padic_mem_topologicalClosure (algebraMap (LocField v) (PadicAlgCl p)).fieldRange x) |
| 414 | let C : IntermediateField ℚ_[p] (PadicAlgCl p) := |
| 415 | (algebraMap (LocField v) (PadicAlgCl p)).fieldRange.toIntermediateField h_padic_mem |
| 416 | -- `PadicAlgCl p` is Galois over `ℚ_p`, so over the intermediate field `C`, a copy of |
| 417 | -- `LocField v`. |
| 418 | have h_galois : IsGalois (LocField v) (PadicAlgCl p) := |
| 419 | isGalois_iff_isGalois_bot.mp (.tower_top_intermediateField C) |
| 420 | -- The group fixes `K`, which is dense in `LocField v`. |
| 421 | have h_smul_algebraMap (g : decompGroup Γ A) (y : LocField v) : |
| 422 | g • algebraMap (LocField v) (PadicAlgCl p) y = algebraMap (LocField v) (PadicAlgCl p) y := by |
| 423 | refine (v.denseRange_algebraMap K).induction_on y |
| 424 | (isClosed_eq (h_at.continuous.const_smul (J g)) h_at.continuous) fun x ↦ ?_ |
| 425 | -- On `K` the map to `ℚ̄_p` is `j`, and `J g` moves `j x` as `g` moves `x`, which it fixes. |
| 426 | change J g (algebraMap (LocField v) (PadicAlgCl p) (algebraMap K (LocField v) x)) = _ |
| 427 | rw [← h_at.map_algebraMap, hJ_equivariant, smul_algebraMap] |
| 428 | -- An automorphism fixing `C` fixes `K`, so it comes from the group; thus invariants lie in `C`. |
| 429 | have h_invariant_mem (x : PadicAlgCl p) (hx : ∀ g : decompGroup Γ A, g • x = x) : x ∈ C := by |
| 430 | refine (fixedFieldOf_fixingSubgroup (Γ := Gp p) C).le fun ⟨g, hg⟩ ↦ ?_ |
| 431 | have hg_fixes_K (y : K) : g (j (algebraMap K Ω y)) = j (algebraMap K Ω y) := by |
| 432 | rw [h_at.map_algebraMap y] |
| 433 | exact hg ⟨_, algebraMap K (LocField v) y, rfl⟩ |
| 434 | obtain ⟨g', rfl⟩ := MonoidHom.mem_range.mp ((hJ_range g).mpr hg_fixes_K) |
| 435 | exact hx g' |
| 436 | exact ⟨{ action, h_at, h_galois, Period.isLocalGalois_of_isOpenEmbedding hJ_open with |
| 437 | commutes := ⟨fun g y z ↦ |
| 438 | (congrArg (J g) (Algebra.smul_def y z)).trans <| |
| 439 | ((J g).map_mul _ z).trans <| |
| 440 | (congrArg (· * J g z) (h_smul_algebraMap g y)).trans |
| 441 | (Algebra.smul_def y (J g z)).symm⟩ |
| 442 | isInvariant := ⟨h_invariant_mem⟩ |
| 443 | isDiscreteValuationRing := by |
| 444 | rw [h_at.valRingBelow_eq] |
| 445 | infer_instance |
| 446 | finite_residue := by |
| 447 | rw [h_at.valRingBelow_eq] |
| 448 | infer_instance |
| 449 | equivariant g x := (hJ_equivariant g x).symm }⟩ |
| 450 | |
| 451 | /-- If the embedding of `LocField v` in `ℚ̄_p` and `j` fit together as in `IsPadicAt`, then the |
| 452 | residue field of `LocField v` for the integers of `ℚ̄_p` has `v.q` elements, the norm of `v`. -/ |
| 453 | lemma IsPadicAt.residueCard_eq (h_at : IsPadicAt v p A j) : |
| 454 | residueCard (LocField v) (intQpBar p) = v.q := by |
| 455 | -- `rw!`: the ring also sits in the instance arguments, where plain `rw` cannot rewrite it. |
| 456 | rw! [New.residueCard, h_at.valRingBelow_eq] |
| 457 | exact card_ResField v |
| 458 | |
| 459 | /-- Suppose the embedding of `LocField v` in `ℚ̄_p` and `j` fit together as in `IsPadicAt`. Then an |
| 460 | element of the completion at `v` is a uniformiser for the integers of `ℚ̄_p` exactly when its |
| 461 | `v`-adic valuation (written multiplicatively) is `exp (-1)`. -/ |
| 462 | lemma IsPadicAt.isUniformizer_iff {π : LocField v} (h_at : IsPadicAt v p A j) : |
| 463 | IsUniformizer (intQpBar p) π ↔ Valued.v π = WithZero.exp (-1) := |
| 464 | isUniformizer_iff_of_isEquiv ((isEquiv_iff_valuationSubring _ _).mpr h_at.valRingBelow_eq) |
| 465 | ⟨(uniformizer v).val, v_uniformizer v⟩ |
| 466 | |
| 467 | /-- If the place `A` of `Ω` lies over the prime `v` of `K`, then for some prime `p` there are |
| 468 | embeddings of `K_v = LocField v` and of `Ω` in `ℚ̄_p`, the second inducing `A`, that make the |
| 469 | decomposition group of `A` the absolute Galois group of `K_v` (`IsCompletionEmb`). -/ |
| 470 | lemma IsPlaceOver.exists_isCompletionEmb (h_over : IsPlaceOver A v) : |
| 471 | ∃ (p : ℕ) (hp_prime : Fact (Nat.Prime p)) (h_algebra : Algebra (LocField v) (PadicAlgCl p)) |
| 472 | (j : Ω →+* PadicAlgCl p), |
| 473 | Nonempty (IsCompletionEmb (f := hp_prime) (a := h_algebra) v p Γ A j) := by |
| 474 | -- `v` lies over a prime `p`, so `A` is induced by an embedding `j` of `Ω` in `ℚ̄_p`, and `v` by |
| 475 | -- the restriction of `j` to `K`. |
| 476 | obtain ⟨p, -, -, hp_mem : (p : NumberField.RingOfIntegers K) ∈ v.asIdeal, hp : p.Prime, -⟩ := |
| 477 | v.asIdeal.exists_prime_and_absNorm_eq_pow |
| 478 | have hp_fact : Fact p.Prime := ⟨hp⟩ |
| 479 | obtain ⟨j, rfl⟩ : ∃ j : Ω →+* PadicAlgCl p, (intQpBar p).comap j = A := |
| 480 | exists_comap_intQpBar_eq (h_over.valuation_natCast_lt_one_iff.mpr hp_mem) |
| 481 | obtain rfl : placeOfEmb (j.comp (algebraMap K Ω)) = v := (isPlaceOver_placeOfEmb j).unique h_over |
| 482 | -- That restriction extends to a continuous `φ` on the completion inducing its valuation. |
| 483 | obtain ⟨φ, hφ_cont, |
| 484 | hφ_ext : ∀ x : K, |
| 485 | φ (algebraMap K (LocField (placeOfEmb (j.comp (algebraMap K Ω)))) x) = j (algebraMap K Ω x), |
| 486 | -, hφ_val⟩ := exists_placeOfEmb_extension (j.comp (algebraMap K Ω)) |
| 487 | algebraize [φ] |
| 488 | -- Both rings consist of the elements of valuation at most `1`, for equivalent valuations. |
| 489 | have h_ring : valRingBelow (LocField (placeOfEmb (j.comp (algebraMap K Ω)))) (intQpBar p) = |
| 490 | LocInt (placeOfEmb (j.comp (algebraMap K Ω))) := by |
| 491 | ext x |
| 492 | simpa [IsDedekindDomain.HeightOneSpectrum.mem_adicCompletionIntegers, |
| 493 | RingHom.algebraMap_toAlgebra] using hφ_val x 1 |
| 494 | have h_at : IsPadicAt (placeOfEmb (j.comp (algebraMap K Ω))) p ((intQpBar p).comap j) j := |
| 495 | ⟨hφ_cont, h_ring, rfl, fun x ↦ (hφ_ext x).symm⟩ |
| 496 | exact ⟨p, hp_fact, φ.toAlgebra, j, nonempty_isCompletionEmb_of_isPadicAt Γ j h_at⟩ |
| 497 | |
| 498 | end CompletionEmbedding |
| 499 | |
| 500 | /-! |
| 501 | ## The decomposition group as a local Galois group; orders and towers |
| 502 | |
| 503 | For a map `x : G → M` with `x(gk) = x(g) + a(g)x(k)`, the zero set of `x` is a subgroup when `a` is |
| 504 | a monoid homomorphism (`New.cocycleKer`). |
| 505 | |
| 506 | For a place `A` of `Ω` over the prime `v` of `K`, the field fixed by `decompGroup Γ A` is a local |
| 507 | field with the residue field of `v`. |
| 508 | -/ |
| 509 | |
| 510 | section DecompositionLocal |
| 511 | |
| 512 | /-! ### Maps with the cocycle relation -/ |
| 513 | |
| 514 | variable {G : Type*} {R : Type*} {M : Type*} [Group G] [AddCommGroup M] {a : G → R} {x : G → M} |
| 515 | |
| 516 | /-- For x : G → M with the cocycle relation c : x(gk) = x(g) + a(g)x(k), where a : G → R is a |
| 517 | monoid homomorphism, the subgroup of the g with x(g) = 0. -/ |
| 518 | def cocycleKer [Monoid R] [DistribMulAction R M] (a : G →* R) |
| 519 | (c : ∀ g k : G, x (g * k) = x g + a g • x k) : Subgroup G := |
| 520 | Subgroup.ofDiv (x ⁻¹' {0}) |
| 521 | -- `x 1 = x 1 + x 1` gives `x 1 = 0` |
| 522 | ⟨1, by |
| 523 | change x 1 = 0 |
| 524 | have h1 := c 1 1 |
| 525 | rwa [mul_one, map_one, one_smul, left_eq_add] at h1⟩ |
| 526 | -- `x g = x (g * k⁻¹) + a (g * k⁻¹) • x k`, with `x g = 0` and `x k = 0` |
| 527 | (fun g (hg : x g = 0) k (hk : x k = 0) ↦ by |
| 528 | change x (g * k⁻¹) = 0 |
| 529 | have h := c (g * k⁻¹) k |
| 530 | rw [inv_mul_cancel_right, hg, hk, smul_zero, add_zero] at h |
| 531 | exact h.symm) |
| 532 | |
| 533 | variable [Ring R] [Module R M] |
| 534 | |
| 535 | /-- Sah's lemma. Let x : G → M satisfy the cocycle relation c : x(gk) = x(g) + a(g)x(k), with |
| 536 | scalars a(g) in the ring R. If x vanishes at (γg)⁻¹(gγ), then (a(γ) − 1)x(g) = (a(g) − 1)x(γ). -/ |
| 537 | lemma sah (c : ∀ g k : G, x (g * k) = x g + a g • x k) (γ g : G) |
| 538 | (h_zero : x ((γ * g)⁻¹ * (g * γ)) = 0) : (a γ - 1) • x g = (a g - 1) • x γ := by |
| 539 | -- The hypothesis gives `x (g * γ) = x (γ * g)`; expand both sides by the cocycle rule. |
| 540 | have h_comm : x (g * γ) = x (γ * g) := by |
| 541 | rw [← mul_inv_cancel_left (γ * g) (g * γ), c, h_zero, smul_zero, add_zero] |
| 542 | have h_expand : x g + a g • x γ = x γ + a γ • x g := by |
| 543 | rw [← c g γ, ← c γ g, h_comm] |
| 544 | rw [sub_smul, sub_smul, one_smul, one_smul, sub_eq_sub_iff_add_eq_add] |
| 545 | simpa only [add_comm] using h_expand.symm |
| 546 | |
| 547 | /-- If `a g` fixes the single value `x γ⁻¹` of a cocycle, then `x (γ * g * γ⁻¹) = a γ • x g`. |
| 548 | The scalar maps only need to distribute over addition. -/ |
| 549 | lemma cocycle_conj_eq_smul {G R M : Type*} [Group G] [AddCancelCommMonoid M] [DistribSMul R M] |
| 550 | {a : G → R} {x : G → M} (c : ∀ g k : G, x (g * k) = x g + a g • x k) {g γ : G} |
| 551 | (h_fix : a g • x γ⁻¹ = x γ⁻¹) : x (γ * g * γ⁻¹) = a γ • x g := by |
| 552 | have h_sum : x (g * γ⁻¹) = x g + x γ⁻¹ := by rw [c, h_fix] |
| 553 | -- The affine map y ↦ x 1 + a 1 • y fixes each reading. Here it also fixes their sum. |
| 554 | have at_one (k : G) : x 1 + a 1 • x k = x k := by simpa only [one_mul] using (c 1 k).symm |
| 555 | have h_pair := at_one (g * γ⁻¹) |
| 556 | rw [h_sum, smul_add, ← add_assoc, at_one g] at h_pair |
| 557 | have fixed : a 1 • x γ⁻¹ = x γ⁻¹ := add_left_cancel h_pair |
| 558 | have base : x 1 = 0 := by simpa only [fixed, add_eq_right] using at_one γ⁻¹ |
| 559 | -- Expanding the inverse pair now gives zero. |
| 560 | have cancel : x γ + a γ • x γ⁻¹ = 0 := (c γ γ⁻¹).symm.trans (by simpa using base) |
| 561 | rw [mul_assoc, c γ _, h_sum, smul_add, add_left_comm, cancel, add_zero] |
| 562 | |
| 563 | namespace IsPlaceOver |
| 564 | |
| 565 | open NumberField Pointwise Rat Units DiscreteUnits Ideal WithZero Cohomology IsLocalRing RingHom |
| 566 | Valuation |
| 567 | |
| 568 | /-- Let the valuation subring `A` of `F` lie over a place `u` of `L`. If a `q`-Frobenius `g ∈ Γ` |
| 569 | at `A` sends the image of `a : 𝓞 L` in `F` to that of `b`, then `b - a ^ q ∈ u.asIdeal`. -/ |
| 570 | lemma sub_pow_mem_asIdeal {L F Γ : Type*} [Field L] [NumberField L] [Field F] [Algebra L F] |
| 571 | [Group Γ] [MulSemiringAction Γ F] {A : ValuationSubring F} {u : FinPlace L} |
| 572 | (hu : IsPlaceOver A u) {q : ℕ} {g : Γ} (hg : IsFrob A q g) {a b : 𝓞 L} |
| 573 | (hab : g • algebraMap L F (a : L) = algebraMap L F (b : L)) : b - a ^ q ∈ u.asIdeal := by |
| 574 | apply (hu _).1 |
| 575 | change A.valuation (algebraMap L F ((b : L) - (a : L) ^ q)) < 1 |
| 576 | rw [_root_.map_sub, map_pow, ← hab] |
| 577 | exact hg.valuation_sub_pow_lt_one (hu.isEquiv.le_one_iff_le_one.2 (u.valuation_le_one a)) |
| 578 | |
| 579 | open FiniteField in |
| 580 | /-- A Frobenius power fixing the extension field acts above with its exponent |
| 581 | divided by the residue degree. -/ |
| 582 | lemma exists_isFrob_pow_above {K L Γ F : Type*} [Field K] [Field L] [Algebra K L] |
| 583 | [NumberField K] [NumberField L] [Group Γ] [Field F] [Algebra L F] |
| 584 | [MulSemiringAction Γ F] [SMulCommClass Γ L F] {A : ValuationSubring F} {u : FinPlace L} |
| 585 | (hu : IsPlaceOver A u) {k : ℕ} {g : Γ} (hg : IsFrob A ((u.below K).q ^ k) g) : |
| 586 | ∃ m, k = u.asIdeal.inertiaDeg (𝓞 K) * m ∧ IsFrob A (u.q ^ m) g := by |
| 587 | classical |
| 588 | let k₀ := 𝓞 K ⧸ (u.below K).asIdeal |
| 589 | let k₁ := 𝓞 L ⧸ u.asIdeal |
| 590 | let : Field k₀ := Ideal.Quotient.field _ |
| 591 | let : Field k₁ := Ideal.Quotient.field _ |
| 592 | have card : Nat.card k₀ = (u.below K).q := by |
| 593 | rw [FinPlace.q, Ideal.absNorm_apply, Submodule.cardQuot_apply] |
| 594 | -- On the residue field of L the restricted element is the identity. |
| 595 | have fixed (x : k₁) : x ^ Nat.card k₀ ^ k = x := by |
| 596 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective (I := u.asIdeal) x |
| 597 | rw [card, ← map_pow, eq_comm, Ideal.Quotient.eq] |
| 598 | exact hu.sub_pow_mem_asIdeal hg (by rw [smul_algebraMap]) |
| 599 | -- Relative Frobenius has order [k₁ : k₀]. |
| 600 | obtain ⟨m, rfl⟩ : u.asIdeal.inertiaDeg (𝓞 K) ∣ k := by |
| 601 | rw [inertiaDeg_eq_of_isMaximal (u.below K).asIdeal u.asIdeal, |
| 602 | finrank_dvd_iff_forall_pow_card_eq k₀ k₁ k] |
| 603 | exact fixed |
| 604 | exact ⟨m, rfl, by rwa [pow_mul, Ideal.absNorm_pow_inertiaDeg] at hg⟩ |
| 605 | |
| 606 | variable (Γ : Type*) |
| 607 | {K : Type*} [Group Γ] [TopologicalSpace Γ] [Field K] [EmbeddedNumberField K] |
| 608 | [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] |
| 609 | {A : ClosurePlace} {v : FinPlace K} |
| 610 | |
| 611 | /-! ### The decomposition field -/ |
| 612 | |
| 613 | /-- Let the place A of Ω lie over the prime v of K (an integer of K is in the maximal ideal of A |
| 614 | exactly when it lies in v), and let F be the field fixed by the decomposition group of A, its |
| 615 | stabiliser in Γ. Then F is a henselian local field for A (`IsLocalGalois`), whose residue field has |
| 616 | `v.q` elements, the norm of v, and uniformisers of K (`IsUniformizer A`: uniformisers of the |
| 617 | valuation ring `A ∩ K`) stay uniformisers of `A ∩ F`. -/ |
| 618 | lemma isLocalGalois_and_residueCard_eq_and_isUniformizer (h : IsPlaceOver A v) : |
| 619 | IsLocalGalois (decompGroup Γ A) (fixedFieldOf (decompGroup Γ A)) A ∧ |
| 620 | residueCard (fixedFieldOf (decompGroup Γ A)) A = v.q ∧ |
| 621 | ∀ {π : Kˣ}, IsUniformizer A π.val → |
| 622 | IsUniformizer A (π.map (algebraMap K (fixedFieldOf (decompGroup Γ A))).toMonoidHom).val := by |
| 623 | -- Embed `Ω` in `ℚ̄_p` by an equivariant `j` inducing `A`, such that the decomposition group acts |
| 624 | -- on `ℚ̄_p` as its Galois group over the completion `LocField v` (`IsCompletionEmb`). The fixed |
| 625 | -- field `F` then maps into `LocField v`, and everything is read off from the valuation of |
| 626 | -- `LocField v`. |
| 627 | obtain ⟨p, hp_prime, h_algebra, j, ⟨hj⟩⟩ := h.exists_isCompletionEmb Γ |
| 628 | let F : IntermediateField K Ω := fixedFieldOf (decompGroup Γ A) |
| 629 | -- `j` sends `F` to the elements fixed by `decompGroup Γ A`, which form a copy of `LocField v`. |
| 630 | have h_fixed (x : Ω) (hx : x ∈ F) : |
| 631 | j x ∈ FixedPoints.subsemiring (PadicAlgCl p) (decompGroup Γ A) := |
| 632 | fun g ↦ by rw [← hj.equivariant, hx g] |
| 633 | let φ : F →+* LocField v := comp hj.ringEquivFixedPoints.symm.toRingHom (j.restrict F _ h_fixed) |
| 634 | have hφ_emb (x : F) : algebraMap (LocField v) (PadicAlgCl p) (φ x) = j (algebraMap F Ω x) := |
| 635 | congrArg Subtype.val (hj.ringEquivFixedPoints.apply_symm_apply _) |
| 636 | have hφ (x : K) : φ (algebraMap K F x) = algebraMap K (LocField v) x := |
| 637 | -- In `ℚ̄_p` both sides are `j x`. |
| 638 | RingHom.injective _ ((hφ_emb (algebraMap K F x)).trans (hj.map_algebraMap x)) |
| 639 | have h_val (x : K) : Valued.v.comap φ (algebraMap K F x) = v.valuation K x := by |
| 640 | rw [comap_apply, hφ, v_algebraMap_eq_valuation] |
| 641 | -- The valuation ring `A ∩ F` is the preimage of `LocInt v` under `φ`. |
| 642 | have h_ring : valRingBelow F A = (Valued.v.comap φ).valuationSubring := by |
| 643 | ext x |
| 644 | have h_mem : φ x ∈ valRingBelow (LocField v) (intQpBar p) ↔ φ x ∈ LocInt v := by |
| 645 | rw [hj.valRingBelow_eq] |
| 646 | simpa only [Valuation.mem_valuationSubring_iff, Valuation.comap_apply, |
| 647 | ValuationSubring.valuation_le_one_iff, ← hj.comap_eq, ValuationSubring.mem_comap, hφ_emb, |
| 648 | IsDedekindDomain.HeightOneSpectrum.mem_adicCompletionIntegers] using h_mem |
| 649 | -- The residue fields agree, since integers of `K` already give every residue of `LocInt v`. |
| 650 | let ψ : valRingBelow F A →+* ResField v := comp (residue _) (φ.restrict _ _ h_ring.le) |
| 651 | have hψ : Function.Surjective ψ := by |
| 652 | -- Every residue of `LocInt v` is that of an integer `x` of `K`, and `x` lies in `A ∩ F`. |
| 653 | refine (algebraMap_ResField_surjective v).forall.mpr fun x ↦ |
| 654 | ⟨⟨algebraMap K F x, algebraMap_ringOfIntegers_mem _ x⟩, ?_⟩ |
| 655 | exact congrArg (residue (LocInt v)) (Subtype.ext (hφ x)) |
| 656 | let res_equiv : (valRingBelow F A ⧸ maximalIdeal (valRingBelow F A)) ≃ ResField v := by |
| 657 | rw [← ker_eq_maximalIdeal ψ hψ] |
| 658 | exact (quotientKerEquivOfSurjective hψ).toEquiv |
| 659 | -- A uniformiser `π₀` at `v` makes the valuation of `F` nontrivial; hence `A ∩ F` is discrete. |
| 660 | obtain ⟨π₀, hπ₀⟩ := v.valuation_exists_uniformizer K |
| 661 | have h_nontrivial : (Valued.v.comap φ).IsNontrivial := ⟨algebraMap K F π₀, by simp [h_val, hπ₀]⟩ |
| 662 | have h_local : IsLocalGalois (decompGroup Γ A) F A := |
| 663 | { mem_decompGroup := fun g ↦ g.property |
| 664 | isDiscreteValuationRing := by |
| 665 | rw [h_ring] |
| 666 | infer_instance |
| 667 | finite_residue := .of_equiv _ res_equiv.symm } |
| 668 | have h_card : residueCard F A = v.q := (Nat.card_congr res_equiv).trans (card_ResField v) |
| 669 | refine ⟨h_local, h_card, fun {π} hπ ↦ ?_⟩ |
| 670 | -- In `K` and in `F` alike, a uniformiser is an element of `v`-adic valuation `exp (-1)`. |
| 671 | have hπ_val : Valued.v.comap φ (algebraMap K F π) = exp (-1) := |
| 672 | (h_val π).trans (h.isUniformizer_iff.mp hπ) |
| 673 | have h_equiv : (A.valuation.comap (algebraMap F Ω)).IsEquiv (Valued.v.comap φ) := |
| 674 | (isEquiv_iff_valuationSubring _ _).mpr h_ring |
| 675 | exact (isUniformizer_iff_of_isEquiv h_equiv ⟨_, hπ_val⟩).mpr hπ_val |
| 676 | |
| 677 | /-- If A lies over v, the decomposition group of A is the Galois group of Ω over its fixed field F, |
| 678 | and F is a henselian local field for A: A ∩ F is a discrete valuation ring with finite residue |
| 679 | field. -/ |
| 680 | lemma isLocalGalois_decompGroup (h : IsPlaceOver A v) : |
| 681 | IsLocalGalois (decompGroup Γ A) (fixedFieldOf (decompGroup Γ A)) A := by |
| 682 | exact (h.isLocalGalois_and_residueCard_eq_and_isUniformizer Γ).left |
| 683 | |
| 684 | /-- If A lies over v, the residue field of the field fixed by the decomposition group of A has |
| 685 | `v.q` elements, as many as that of v. -/ |
| 686 | lemma residueCard_fixedFieldOf_decompGroup (h : IsPlaceOver A v) : |
| 687 | residueCard (fixedFieldOf (decompGroup Γ A)) A = v.q := by |
| 688 | obtain ⟨-, h_card, -⟩ := h.isLocalGalois_and_residueCard_eq_and_isUniformizer Γ |
| 689 | exact h_card |
| 690 | |
| 691 | /-- If A lies over v, an element of K that is a uniformiser for A is still a uniformiser in the |
| 692 | field fixed by the decomposition group of A. -/ |
| 693 | lemma isUniformizer_map_fixedFieldOf_decompGroup (h : IsPlaceOver A v) {π : Kˣ} |
| 694 | (hπ : IsUniformizer A π.val) : |
| 695 | IsUniformizer A (π.map (algebraMap K (fixedFieldOf (decompGroup Γ A))).toMonoidHom).val := by |
| 696 | obtain ⟨-, -, h_unif⟩ := h.isLocalGalois_and_residueCard_eq_and_isUniformizer Γ |
| 697 | exact h_unif hπ |
| 698 | |
| 699 | /-- If A lies over v, some π in Kˣ has v-adic valuation `exp (-1)` and is a uniformiser for A in |
| 700 | the field fixed by the decomposition group of A. -/ |
| 701 | lemma exists_uniformizer (h : IsPlaceOver A v) : |
| 702 | ∃ π : Kˣ, |
| 703 | v.valuation K π = exp (-1) ∧ |
| 704 | IsUniformizer A (π.map (algebraMap K (fixedFieldOf (decompGroup Γ A))).toMonoidHom).val := by |
| 705 | obtain ⟨π, hπ⟩ := v.valuation_exists_uniformizer K |
| 706 | have hπ_ne : π ≠ 0 := fun h0 ↦ WithZero.exp_ne_zero (hπ.symm.trans (by rw [h0, map_zero])) |
| 707 | exact ⟨mk0 π hπ_ne, hπ, |
| 708 | h.isUniformizer_map_fixedFieldOf_decompGroup Γ (h.isUniformizer_iff.mpr hπ)⟩ |
| 709 | |
| 710 | /-- If A lies over v, the order on Ωˣ normalised on the field fixed by the decomposition group of A |
| 711 | agrees with the order normalised on K. -/ |
| 712 | lemma ordRat_fixedFieldOf_decompGroup (h : IsPlaceOver A v) : |
| 713 | ordRat (fixedFieldOf (decompGroup Γ A)) A = ordRat K A := by |
| 714 | -- Both sides are chosen by a property quantified over uniformisers; the two properties agree. |
| 715 | obtain ⟨π₀, hπ₀_val, hπ₀⟩ := h.exists_uniformizer Γ |
| 716 | unfold ordRat |
| 717 | congr! with f |
| 718 | constructor |
| 719 | · -- A uniformiser of `K` stays a uniformiser in the fixed field. |
| 720 | exact fun hf π hπ ↦ hf _ (h.isUniformizer_map_fixedFieldOf_decompGroup Γ hπ) |
| 721 | · -- A uniformiser `π` of the fixed field has the same valuation as the uniformiser `π₀` of `K`. |
| 722 | intro hf π hπ |
| 723 | have h_val : valuationVia K A π₀ = valuationVia (fixedFieldOf (decompGroup Γ A)) A π := |
| 724 | hπ₀.valuationVia_eq hπ |
| 725 | rw [← h_val] |
| 726 | exact hf π₀ (h.isUniformizer_iff.mpr hπ₀_val) |
| 727 | |
| 728 | /-- If A lies over v, then Γ contains an arithmetic Frobenius at A: an element that stabilises A |
| 729 | and acts as x ↦ x ^ v.q modulo the maximal ideal of A (`IsFrob`). -/ |
| 730 | lemma exists_isFrob (h : IsPlaceOver A v) : ∃ φ : Γ, IsFrob A v.q φ := by |
| 731 | -- A Frobenius of the decomposition field, for its residue order `v.q`, is one in `Γ`. |
| 732 | obtain ⟨φ, hφ⟩ := (h.isLocalGalois_decompGroup Γ).exists_isFrob |
| 733 | rw [h.residueCard_fixedFieldOf_decompGroup Γ] at hφ |
| 734 | exact ⟨φ, hφ⟩ |
| 735 | |
| 736 | /-! ### The normalised order -/ |
| 737 | |
| 738 | /-- Compare powers of a unit with a base-field uniformiser using the order normalised on K. -/ |
| 739 | private lemma valuation_pow_eq_zpow_iff_ordRat (h : IsPlaceOver A v) (G : Type*) |
| 740 | [Group G] [TopologicalSpace G] [MulSemiringAction G Ω] [IsProGalois G K Ω] {π : Kˣ} |
| 741 | (hπ : v.valuation K π = exp (-1)) {x : DiscreteUnits Ω} (n : ℕ) (a : ℤ) : |
| 742 | A.valuation x.toMul ^ n = valuationVia K A π ^ a ↔ n * ordRat K A x = a := by |
| 743 | have hπ' := h.isUniformizer_map_fixedFieldOf_decompGroup G (h.isUniformizer_iff.mpr hπ) |
| 744 | simpa [valuationVia, ← IsScalarTower.algebraMap_apply, h.ordRat_fixedFieldOf_decompGroup G] using |
| 745 | hπ'.valuation_pow_eq_zpow_iff_mul_ordRat_eq (h.isLocalGalois_decompGroup G) (x := x) n a |
| 746 | |
| 747 | /-- If A lies over v, an element x of Ωˣ (written additively) has order 0 at A, for the order |
| 748 | normalised on K, exactly when its valuation at A is 1. -/ |
| 749 | lemma ordRat_eq_zero_iff (h : IsPlaceOver A v) {x : DiscreteUnits Ω} : |
| 750 | ordRat K A x = 0 ↔ A x.toMul = 1 := by |
| 751 | rw [← h.ordRat_fixedFieldOf_decompGroup Gal(Ω/K)] |
| 752 | exact (h.isLocalGalois_decompGroup Gal(Ω/K)).ordRat_eq_zero |
| 753 | |
| 754 | /-- If A lies over v, an element x of Ωˣ (written additively) has nonnegative order at A, for the |
| 755 | order normalised on K, exactly when x lies in the valuation ring A. -/ |
| 756 | lemma ordRat_nonneg_iff (h : IsPlaceOver A v) (x : DiscreteUnits Ω) : |
| 757 | 0 ≤ ordRat K A x ↔ ↑x.toMul ∈ A := by |
| 758 | obtain ⟨π, hπ, h_unif⟩ := h.exists_uniformizer Gal(Ω/K) |
| 759 | -- Write the order of `x` as `r.num / r.den`; then `x ^ r.den` has the valuation of `π ^ r.num`. |
| 760 | set r : ℚ := ordRat K A x |
| 761 | have h_pow : A x.toMul ^ r.den = valuationVia K A π ^ r.num := |
| 762 | (h.valuation_pow_eq_zpow_iff_ordRat Gal(Ω/K) hπ r.den r.num).2 (den_mul_eq_num r) |
| 763 | -- As the valuation of `π` lies in `(0, 1)`, this valuation is `≤ 1` iff `0 ≤ r.num`. |
| 764 | have h_le : A x.toMul ^ r.den ≤ 1 ↔ 0 ≤ r.num := by |
| 765 | rw [h_pow] |
| 766 | exact zpow_le_one_iff_right_of_lt_one₀ (by simp [pos_iff]) h_unif.valuationVia_lt_one |
| 767 | -- Finally `0 ≤ r ↔ 0 ≤ r.num`, and `A x ^ r.den ≤ 1 ↔ A x ≤ 1`, which says `x ∈ A`. |
| 768 | rw [← Rat.num_nonneg, ← h_le, pow_le_one_iff r.den_nz] |
| 769 | exact A.valuation_le_one_iff _ |
| 770 | |
| 771 | variable {Γ} |
| 772 | |
| 773 | /-- Let `K` be a number field inside the field `Ω` (the fixed algebraic closure of ℚ), `Γ` the |
| 774 | Galois group of `Ω/K`, and `A` a place of `Ω` over the prime `v` of `K`. For x in Kˣ, the order |
| 775 | at A, normalised on K, of the image `ofBase` of x in Ωˣ is minus the logarithm of the v-adic |
| 776 | valuation of x. -/ |
| 777 | lemma ordRat_ofBase (h : IsPlaceOver A v) (x : Kˣ) : |
| 778 | ordRat K A (ofBase Γ Ω (Additive.ofMul x)) = -(v.valuation K x).log := by |
| 779 | -- With `π` a uniformiser and `a = -log (v x)`, the elements `x` and `π ^ a` have equal valuation. |
| 780 | obtain ⟨π, hπ, -⟩ := h.exists_uniformizer Γ |
| 781 | set a : ℤ := -(v.valuation K x).log |
| 782 | -- `v (π ^ a) = exp (-1) ^ a = exp (-a) = exp (log (v x)) = v x`. |
| 783 | have h_val : v.valuation K x = v.valuation K (π ^ a) := by |
| 784 | rw [map_zpow₀, hπ, ← exp_zsmul, _root_.smul_eq_mul, mul_neg_one] |
| 785 | simp [a, exp_log] |
| 786 | -- With exponent `1`, equality of the valuations gives the order of `x`. |
| 787 | have h_ord_eq : ((1 : ℕ) : ℚ) * ordRat K A (ofBase Γ Ω (.ofMul x)) = a := by |
| 788 | apply (h.valuation_pow_eq_zpow_iff_ordRat Γ hπ 1 a).1 |
| 789 | have h_image : ((ofBase Γ Ω (.ofMul x) : DiscreteUnits Ω).toMul : Ω) = algebraMap K Ω x := rfl |
| 790 | simpa [h_image, valuationVia] using h.isEquiv.eq_iff.mpr h_val |
| 791 | simpa [a] using h_ord_eq |
| 792 | |
| 793 | /-- Let A lie over v. For g ∈ Γ and x ∈ Ωˣ, the order (normalised on K) of gx (`unitsRep g x`) at |
| 794 | the place gA equals the order of x at A. -/ |
| 795 | lemma ordRat_smul (h : IsPlaceOver A v) (g : Γ) (x : DiscreteUnits Ω) : |
| 796 | ordRat K (g • A) (unitsRep g x) = ordRat K A x := by |
| 797 | obtain ⟨π, hπ, -⟩ := h.exists_uniformizer Γ |
| 798 | let r := ordRat K A x |
| 799 | -- Write the order as `r.num / r.den`; then `x ^ r.den` has the valuation of `π ^ r.num`. |
| 800 | have h_pow : A.valuation x.toMul ^ r.den = valuationVia K A π ^ r.num := |
| 801 | (h.valuation_pow_eq_zpow_iff_ordRat Γ hπ r.den r.num).2 (den_mul_eq_num r) |
| 802 | -- The valuation at the translated place pulls back by the inverse action. |
| 803 | have h_equiv : (g • A).valuation.IsEquiv |
| 804 | (A.valuation.comap (MulSemiringAction.toRingHom Γ Ω g⁻¹)) := by |
| 805 | rw [ValuationSubring.pointwise_smul_eq_comap] |
| 806 | exact isEquiv_comap |
| 807 | have h_conj : (g • A).valuation (unitsRep g x).toMul ^ r.den = |
| 808 | valuationVia K (g • A) π ^ r.num := by |
| 809 | simp only [valuationVia, ← map_pow, ← map_zpow₀] |
| 810 | apply h_equiv.eq_iff.mpr |
| 811 | change A.valuation (g⁻¹ • ((g • (x.toMul : Ω)) ^ r.den)) = |
| 812 | A.valuation (g⁻¹ • algebraMap K Ω ((π : K) ^ r.num)) |
| 813 | rw [smul_algebraMap] |
| 814 | simpa only [smul_pow', inv_smul_smul, map_pow, map_zpow₀, valuationVia] using h_pow |
| 815 | have h_order : (r.den : ℚ) * ordRat K (g • A) (unitsRep g x) = r.num := |
| 816 | ((h.smul g).valuation_pow_eq_zpow_iff_ordRat Γ hπ r.den r.num).1 h_conj |
| 817 | exact mul_left_cancel₀ (Nat.cast_ne_zero.mpr r.den_nz) (h_order.trans (den_mul_eq_num r).symm) |
| 818 | |
| 819 | /-- Let A lie over v. If x in Ωˣ is fixed by every element of the inertia group of A, then the |
| 820 | order of x at A, normalised on K, is an integer. -/ |
| 821 | lemma exists_ordRat_eq_intCast (h : IsPlaceOver A v) {x : DiscreteUnits Ω} |
| 822 | (hx : ∀ g ∈ inertiaGroup Γ A, unitsRep g x = x) : ∃ n : ℤ, ordRat K A x = n := by |
| 823 | rw [← h.ordRat_fixedFieldOf_decompGroup Γ] |
| 824 | -- Inertia of `A` inside the decomposition group is inertia of `A` in `Γ`. |
| 825 | exact (h.isLocalGalois_decompGroup Γ).exists_ordRat_eq_intCast fun g hg ↦ hx g hg |
| 826 | |
| 827 | /-! ### Towers and generation of the decomposition group -/ |
| 828 | |
| 829 | /-- Let `L / K` be number fields embedded in `Ω` (`EmbeddedNumberField`), with `U`, open in `Γ`, the |
| 830 | Galois group of `Ω / L`; let `A` lie over `v` in `K` and over `w` in `L`; `e` and `f = inertiaDeg` |
| 831 | are the ramification index and residue degree of `w` over `K`. If the decomposition group lies in |
| 832 | `U`, the residue fields have the same order and `ordRat L A = ordRat K A`, where `ordRat K A` is a |
| 833 | chosen additive order `Ωˣ → ℚ` for the valuation of `A`, normalised so that uniformisers of `K` have |
| 834 | order 1. If inertia lies in `U`, then `e = 1`. The index of `U ⊓ decompGroup Γ A` in |
| 835 | `decompGroup Γ A` is `e * f`. -/ |
| 836 | lemma ramification_in_tower (h : IsPlaceOver A v) (U : Subgroup Γ) [hU_open : Fact U.IsOpen] |
| 837 | {L : Type*} [Field L] [EmbeddedNumberField L] [IsProGalois U L Ω] [Algebra K L] |
| 838 | [IsScalarTower K L Ω] {w : FinPlace L} (hw : IsPlaceOver A w) : |
| 839 | let e := w.asIdeal.ramificationIdx (𝓞 K) |
| 840 | (decompGroup Γ A ≤ U → w.q = v.q ∧ ordRat L A = ordRat K A) ∧ |
| 841 | (inertiaGroup Γ A ≤ U → e = 1) ∧ |
| 842 | U.relIndex (decompGroup Γ A) = e * w.asIdeal.inertiaDeg (𝓞 K) := by |
| 843 | -- Pass to the decomposition fields, which are local. For the open subgroup |
| 844 | -- `V = U ∩ decompGroup Γ A`, `IsLocalGalois.of_finite` gives `e`, `f` with `e * f = V.index`, |
| 845 | -- `q' = q ^ f`, `ord' = e • ord`, and `e = 1` if inertia lies in `V`; then identify `e` and |
| 846 | -- `f` with the ramification index and the residue degree of `w`. |
| 847 | -- `A` lies over the prime of `K` below `w`, which is therefore `v`. |
| 848 | have h_below : v = w.below K := h.unique hw.isPlaceOver_below |
| 849 | have h_lies : w.asIdeal.LiesOver v.asIdeal := by |
| 850 | rw [h_below] |
| 851 | exact ⟨rfl⟩ |
| 852 | obtain ⟨π, hπ, -⟩ := h.exists_uniformizer Γ |
| 853 | -- `id` keeps `V` folded, so that instance search finds the Galois structure over its fixed field. |
| 854 | let V : OpenSubgroup (decompGroup Γ A) := id ⟨U.subgroupOf _, hU_open.out.preimage_val⟩ |
| 855 | obtain ⟨-, ⟨e, f, ⟨h_ef, hq, h_ord⟩, h_unram⟩, -⟩ := |
| 856 | (h.isLocalGalois_decompGroup Γ).of_finite V |
| 857 | -- The fixed field of `V` is the decomposition field of `A` over `L`. |
| 858 | have h_field : (fixedFieldOf (decompGroup U A)).toSubfield = |
| 859 | (fixedFieldOf (V : Subgroup (decompGroup Γ A))).toSubfield := by |
| 860 | ext x |
| 861 | exact ⟨fun hx ⟨⟨g, hgA⟩, hgU⟩ ↦ hx ⟨⟨g, hgU⟩, hgA⟩, |
| 862 | fun hx ⟨⟨g, hgU⟩, hgA⟩ ↦ hx ⟨⟨g, hgA⟩, hgU⟩⟩ |
| 863 | have h_res_eq : residueCard (fixedFieldOf (decompGroup U A)) A = |
| 864 | residueCard (fixedFieldOf (V : Subgroup (decompGroup Γ A))) A := |
| 865 | congrArg (fun F : Subfield Ω ↦ residueCard F A) h_field |
| 866 | have h_ord_eq : ordRat (fixedFieldOf (decompGroup U A)) A = |
| 867 | ordRat (fixedFieldOf (V : Subgroup (decompGroup Γ A))) A := |
| 868 | congrArg (fun F : Subfield Ω ↦ ordRat F A) h_field |
| 869 | have h_q : w.q = v.q ^ f := by |
| 870 | rw [← hw.residueCard_fixedFieldOf_decompGroup U, h_res_eq, hq, |
| 871 | h.residueCard_fixedFieldOf_decompGroup Γ] |
| 872 | have h_ord_L : ordRat L A = e • ordRat K A := by |
| 873 | rw [← hw.ordRat_fixedFieldOf_decompGroup U, h_ord_eq, h_ord, |
| 874 | h.ordRat_fixedFieldOf_decompGroup Γ] |
| 875 | have h_norm : v.q ^ w.asIdeal.inertiaDeg (𝓞 K) = w.q := |
| 876 | absNorm_pow_inertiaDeg v.asIdeal w.asIdeal |
| 877 | obtain rfl : w.asIdeal.inertiaDeg (𝓞 K) = f := |
| 878 | Nat.pow_right_injective v.one_lt_q (h_norm.trans h_q) |
| 879 | -- The order in `L` of the uniformiser `π` of `K` is `e`, and is the ramification index. |
| 880 | have hπ_image : (ofBase Γ Ω (.ofMul π) : DiscreteUnits Ω) = |
| 881 | ofBase U Ω (.ofMul (π.map (algebraMap K L).toMonoidHom)) := |
| 882 | ext (IsScalarTower.algebraMap_apply K L Ω π) |
| 883 | have hπL : ordRat L A (ofBase Γ Ω (.ofMul π)) = -(w.valuation L (algebraMap K L π)).log := by |
| 884 | rw [hπ_image] |
| 885 | exact hw.ordRat_ofBase (π.map (algebraMap K L).toMonoidHom) |
| 886 | have h_ord_π_L : ordRat L A (ofBase Γ Ω (.ofMul π)) = e := by |
| 887 | rw [h_ord_L, AddMonoidHom.smul_apply, h.ordRat_ofBase, hπ, WithZero.log_exp, Int.cast_neg, |
| 888 | Int.cast_one, neg_neg, nsmul_eq_mul, mul_one] |
| 889 | have h_log : |
| 890 | -((w.valuation L (algebraMap K L π)).log : ℚ) = w.asIdeal.ramificationIdx (𝓞 K) := by |
| 891 | simp [← v.valuation_liesOver L, hπ] |
| 892 | obtain rfl : e = w.asIdeal.ramificationIdx (𝓞 K) := by |
| 893 | exact_mod_cast h_ord_π_L.symm.trans (hπL.trans h_log) |
| 894 | -- If `U` contains inertia, so does `V`, and then `e = 1`. |
| 895 | refine ⟨fun hU ↦ ?_, fun hI ↦ h_unram fun g hg ↦ hI hg, h_ef.symm⟩ |
| 896 | -- If `decompGroup Γ A ≤ U`, the index `e * f` is `1`, so `e = f = 1`. |
| 897 | obtain ⟨h_e, h_f⟩ := mul_eq_one.mp (h_ef.trans (U.relIndex_eq_one.mpr hU)) |
| 898 | exact ⟨by rw [h_q, h_f, pow_one], by rw [h_ord_L, h_e, one_smul]⟩ |
| 899 | |
| 900 | /-- Let A lie over v. An open subgroup of `Γ` that contains the inertia group of `A` and a |
| 901 | Frobenius element `φ` at `v` (`IsFrob A v.q φ`: `φ` stabilises `A` and acts as x ↦ x ^ v.q modulo |
| 902 | its maximal ideal) contains the whole decomposition group. -/ |
| 903 | lemma decompGroup_le (h : IsPlaceOver A v) {φ : Γ} (hφ : IsFrob A v.q φ) {U : Subgroup Γ} |
| 904 | (hU : U.IsOpen) (hI : inertiaGroup Γ A ≤ U) (hφU : φ ∈ U) : decompGroup Γ A ≤ U := by |
| 905 | -- The products `φ ^ n * i` with `i` in inertia lie in `U` and are dense in `decompGroup Γ A`, and |
| 906 | -- the open subgroup `U` is closed. |
| 907 | -- `φ` as an element of the decomposition group, where it is a Frobenius for the residue order. |
| 908 | let φ' : decompGroup Γ A := ⟨φ, hφ.left⟩ |
| 909 | have hφ' : IsFrob A (residueCard (fixedFieldOf (decompGroup Γ A)) A) φ' := by |
| 910 | rwa [h.residueCard_fixedFieldOf_decompGroup Γ] |
| 911 | have h_dense := (h.isLocalGalois_decompGroup Γ).denseRange_frob_pow_mul_inertia hφ' |
| 912 | have h_closed : IsClosed {g : decompGroup Γ A | (g : Γ) ∈ U} := |
| 913 | (U.isClosed_of_isOpen hU).preimage_val |
| 914 | have h_mem (p : ℕ × inertiaGroup (decompGroup Γ A) A) : |
| 915 | ((φ' ^ p.fst * p.snd : decompGroup Γ A) : Γ) ∈ U := by |
| 916 | simpa using U.mul_mem (U.pow_mem hφU p.fst) (hI p.snd.property) |
| 917 | intro g hg |
| 918 | exact isClosed_property h_dense h_closed h_mem ⟨g, hg⟩ |
| 919 | |
| 920 | end IsPlaceOver |
| 921 | |
| 922 | end DecompositionLocal |
| 923 | |
| 924 | end New |