Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Mathlib.RingTheory.Henselian |
| 4 | public import Mathlib.RingTheory.RegularLocalRing.Defs |
| 5 | public import Mathlib.RingTheory.SimpleRing.Principal |
| 6 | import TauCeti.Topology.Algebra.Group.Subgroup |
| 7 | import Mathlib.FieldTheory.Galois.Profinite |
| 8 | import Mathlib.Topology.Connected.Separation |
| 9 | public import Lib.ClassField.GaloisCohomology.ContinuousCocycles |
| 10 | |
| 11 | /-! |
| 12 | # Profinite Galois groups: continuity, restriction maps and the Galois correspondence |
| 13 | |
| 14 | Infinite Galois theory for an abstract group. `New.IsProGalois Γ K Ω` says that the profinite group |
| 15 | `Γ` acts on the Galois extension `Ω / K` as its Galois group, with open stabilisers. This covers |
| 16 | `Gal(Ω/K)` and its closed subgroups `H` (acting over the fixed field `New.fixedFieldOf H`) at once. |
| 17 | `Fact (IsOpen U)` and `IsClosed H` are used as instances on subgroups. |
| 18 | |
| 19 | * `New.continuous_of_equivariant_emb`: a map between such groups that is compatible with a ring |
| 20 | homomorphism of the top fields is continuous. |
| 21 | * `New.exists_galois_restrict`, `New.isClosedEmbedding_galois_restrict`, |
| 22 | `New.isOpenEmbedding_galois_restrict`: restriction maps between Galois groups, along a map of the |
| 23 | top fields or to a smaller base field. The parts of the second one are |
| 24 | `New.isClosedEmbedding_of_smul_eq_smul`, `New.range_eq_fixingSubgroup_of_smul_eq_smul` and |
| 25 | `New.index_range_eq_finrank_of_smul_eq_smul`. |
| 26 | * `New.fixedFieldOf_fixingSubgroup`, `New.fixingSubgroup_fixedFieldOf`, `New.finrank_fixedFieldOf`: |
| 27 | the Galois correspondence between intermediate fields and closed subgroups, with degree equal to |
| 28 | index. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.DiscreteUnits.ofBase`: the homomorphism from K^× to the Γ-invariants of Ω^× (both written |
| 32 | additively) induced by K → Ω. |
| 33 | |
| 34 | ## Relation to the literature |
| 35 | |
| 36 | Known; see `Lib.ClassField.Places.LocalFields` for sources. |
| 37 | -/ |
| 38 | |
| 39 | @[expose] public section |
| 40 | |
| 41 | open Function MulSemiringAction InfiniteGalois Subgroup Units IntermediateField IsScalarTower Module |
| 42 | Fact Subtype DFunLike MulAction Topology algebraMap |
| 43 | |
| 44 | namespace New |
| 45 | |
| 46 | /-- `Ω` is an algebraic closure of every field `K` of characteristic zero of which it is an |
| 47 | algebra. -/ |
| 48 | instance {K : Type*} [Field K] [CharZero K] [Algebra K Ω] : IsAlgClosure K Ω where |
| 49 | isAlgClosed := inferInstance |
| 50 | isAlgebraic := .tower_top (K := ℚ) K |
| 51 | |
| 52 | /-- A chosen embedding of the number field K into the fixed algebraic closure `Ω` of ℚ (the constant |
| 53 | of the instance above, not the section variable `Ω`). -/ |
| 54 | noncomputable def Ω.fieldEmb (K : Type*) [Field K] [NumberField K] : K →+* Ω := Classical.ofNonempty |
| 55 | |
| 56 | section |
| 57 | |
| 58 | variable {Γ K Ω : Type*} [Group Γ] [TopologicalSpace Γ] [Field K] [Field Ω] [Algebra K Ω] |
| 59 | (U : Subgroup Γ) [Fact (IsOpen (X := Γ) U)] |
| 60 | |
| 61 | instance (U : OpenSubgroup Γ) : Fact (IsOpen (X := Γ) U.toSubgroup) := ⟨U.isOpen⟩ |
| 62 | |
| 63 | /-- The Galois group of a Galois extension `Ω / K`, with its Krull topology, acts on `Ω` as its |
| 64 | profinite Galois group. -/ |
| 65 | instance [IsGalois K Ω] : IsProGalois Gal(Ω/K) K Ω := ⟨stabilizer_isOpen_of_isIntegral⟩ |
| 66 | |
| 67 | /-- An open subgroup `U` of a topological group is closed. -/ |
| 68 | instance [ContinuousMul Γ] : IsClosed (X := Γ) U := U.isClosed_of_isOpen out |
| 69 | |
| 70 | end |
| 71 | |
| 72 | variable {Γ K Ω : Type*} [Group Γ] [TopologicalSpace Γ] [Field K] [Field Ω] [Algebra K Ω] |
| 73 | [MulSemiringAction Γ Ω] [G : IsProGalois Γ K Ω] |
| 74 | (H U : Subgroup Γ) [h : IsClosed (X := Γ) H] [Fact (IsOpen (X := Γ) U)] |
| 75 | {Γ' L Ω' : Type*} [Group Γ'] [TopologicalSpace Γ'] [Field L] [Field Ω'] [Algebra L Ω'] |
| 76 | [MulSemiringAction Γ' Ω'] (j : Ω →+* Ω') |
| 77 | |
| 78 | /-- A closed subgroup is the Galois group over its fixed field. -/ |
| 79 | instance : @IsProGalois H (fixedFieldOf H) Ω _ _ _ inferInstance _ _ := |
| 80 | ⟨fun x ↦ (G.isOpen_stabilizer x).preimage_val⟩ |
| 81 | |
| 82 | include G |
| 83 | |
| 84 | /-! ### The topology of `Γ` and its action on `Ω` -/ |
| 85 | |
| 86 | /-- For each `x : Ω`, the orbit map `g ↦ g • x` on the profinite Galois group `Γ` is locally |
| 87 | constant. -/ |
| 88 | lemma isLocallyConstant_smul (x : Ω) : IsLocallyConstant fun g : Γ ↦ g • x := by |
| 89 | -- The map factors through the quotient by the open stabilizer of `x`, which is discrete. |
| 90 | have h_discrete : DiscreteTopology (Γ ⧸ stabilizer Γ x) := |
| 91 | QuotientGroup.discreteTopology (G.isOpen_stabilizer x) |
| 92 | exact .of_discrete (ofQuotientStabilizer Γ x) |
| 93 | |
| 94 | /-- The elements `g` of the profinite Galois group `Γ` such that `g • x` satisfies a given predicate |
| 95 | form a closed set. -/ |
| 96 | lemma isClosed_setOf_smul (x : Ω) (P : Ω → Prop) : IsClosed {g : Γ | P (g • x)} := |
| 97 | -- Its complement is the preimage of `{y | ¬ P y}` under the locally constant orbit map. |
| 98 | isOpen_compl_iff.mp (isLocallyConstant_smul x {y : Ω | ¬P y}) |
| 99 | |
| 100 | /-- Let `Γ` act as the Galois group of `Ω / K`, `Γ'` as that of `Ω' / L`, and let `j : Ω → Ω'` be a |
| 101 | ring homomorphism. A map `φ : Γ' → Γ` with `j (φ g • x) = g • j x` for all `g` and `x` is |
| 102 | continuous. -/ |
| 103 | lemma continuous_of_equivariant_emb [IsProGalois Γ' L Ω'] {φ : Γ' → Γ} |
| 104 | (hφ : ∀ (g : Γ') (x : Ω), j (φ g • x) = g • j x) : Continuous φ := by |
| 105 | -- With `Ω` discrete, `g ↦ (g • ·)` embeds the compact group `Γ` in the space of maps `Ω → Ω`. |
| 106 | let uniformSpace_discrete : UniformSpace Ω := ⊥ |
| 107 | have h_emb : IsClosedEmbedding fun (g : Γ) (x : Ω) ↦ g • x := |
| 108 | (continuous_pi fun x ↦ (isLocallyConstant_smul x).continuous).isClosedEmbedding |
| 109 | fun g g' h_eq ↦ G.faithful.eq_of_smul_eq_smul (congrFun h_eq) |
| 110 | refine h_emb.continuous_iff.mpr (continuous_pi fun x ↦ IsLocallyConstant.continuous ?_) |
| 111 | -- `g ↦ φ g • x` is locally constant because its composite with the injection `j` is. |
| 112 | have h_const : IsLocallyConstant fun g ↦ j (φ g • x) := by |
| 113 | simpa only [hφ] using isLocallyConstant_smul (j x) |
| 114 | exact h_const.desc _ j j.injective |
| 115 | |
| 116 | variable (Γ Γ') |
| 117 | |
| 118 | /-- Every `K`-automorphism of `Ω` is given by an element of `Γ`. -/ |
| 119 | lemma toAlgAut_surjective : Surjective (toAlgAut Γ K Ω) := by |
| 120 | -- The image is a closed subgroup whose fixed field is `K`; by Galois theory it is everything. |
| 121 | have h_cont : Continuous (toAlgAut Γ K Ω) := continuous_of_equivariant_emb 1 fun _ _ ↦ rfl |
| 122 | let S : ClosedSubgroup Gal(Ω/K) := ⟨(toAlgAut Γ K Ω).range, (isCompact_range h_cont).isClosed⟩ |
| 123 | refine fun σ ↦ (fixingSubgroup_fixedField S).le fun ⟨x, hx⟩ ↦ ?_ |
| 124 | -- `x` is fixed by the image of `Γ`, so it lies in `K`. |
| 125 | have h_fixed (g : Γ) : g • x = x := (mem_fixedField_iff _ _).mp hx (toAlgAut Γ K Ω g) ⟨g, rfl⟩ |
| 126 | obtain ⟨y, rfl⟩ : ∃ y : K, algebraMap K Ω y = x := G.isInvariant.isInvariant x h_fixed |
| 127 | exact σ.commutes y |
| 128 | |
| 129 | /-- The action of a profinite Galois group identifies it with the automorphism group |
| 130 | equipped with the Krull topology. -/ |
| 131 | noncomputable def proGaloisEquiv : Γ ≃ₜ* Gal(Ω/K) := by |
| 132 | let e := MulEquiv.ofBijective (toAlgAut Γ K Ω) |
| 133 | ⟨fun g h he ↦ G.faithful.eq_of_smul_eq_smul fun x ↦ |
| 134 | congrArg (fun σ : Gal(Ω/K) ↦ σ x) he, toAlgAut_surjective Γ⟩ |
| 135 | have he : Continuous e := continuous_of_equivariant_emb 1 fun _ _ ↦ rfl |
| 136 | have he_symm : Continuous e.symm := by |
| 137 | apply continuous_of_equivariant_emb (K := K) (L := K) (j := 1) |
| 138 | intro σ x |
| 139 | exact congrArg (fun τ : Gal(Ω/K) ↦ τ x) (e.apply_symm_apply σ) |
| 140 | exact ⟨e, he, he_symm⟩ |
| 141 | |
| 142 | /-- Under `proGaloisEquiv`, evaluating an automorphism is the original group action. -/ |
| 143 | lemma proGaloisEquiv_apply (g : Γ) (x : Ω) : |
| 144 | proGaloisEquiv (K := K) Γ g x = g • x := rfl |
| 145 | |
| 146 | /-- The units of `K` are exactly the `Γ`-invariant units of `Ω`. -/ |
| 147 | lemma DiscreteUnits.ofBase_bijective : Bijective (ofBase Γ Ω (K := K)) := by |
| 148 | refine ⟨coind_injective _ (map_injective (algebraMap K Ω).injective), fun x ↦ ?_⟩ |
| 149 | -- An invariant unit of `Ω` comes from a nonzero element of `K`. |
| 150 | have h_fixed (g : Γ) : g • ((x.val.toMul : Ωˣ) : Ω) = (x.val.toMul : Ωˣ) := |
| 151 | congrArg (fun v : DiscreteUnits Ω ↦ (v.toMul : Ω)) (x.property g) |
| 152 | obtain ⟨y, hy⟩ : ∃ y : K, algebraMap K Ω y = (x.val.toMul : Ωˣ) := |
| 153 | G.isInvariant.isInvariant _ h_fixed |
| 154 | exact ⟨mk0 y (by grind [ne_zero]), val_injective (ext hy)⟩ |
| 155 | |
| 156 | /-- Two ring homomorphisms `j, j' : Ω → Ω'` that agree on `K` differ by an element of `Γ`: |
| 157 | `j (g • x) = j' x` for some `g` and all `x`. -/ |
| 158 | lemma exists_apply_smul_eq_of_comp_algebraMap_eq (j' : Ω →+* Ω') |
| 159 | (h_agree : j.comp (algebraMap K Ω) = j'.comp (algebraMap K Ω)) : |
| 160 | ∃ g : Γ, ∀ x : Ω, j (g • x) = j' x := by |
| 161 | -- Through `j`, the field `Ω'` is an `Ω`-algebra and `j'` is a `K`-algebra map. As `Ω / K` is |
| 162 | -- normal, every such map is `j` composed with a `K`-automorphism of `Ω`. |
| 163 | algebraize [j, j.comp (algebraMap K Ω)] |
| 164 | obtain ⟨σ, hσ⟩ := (Normal.algHomEquivAut K Ω' Ω).symm.surjective ⟨j', ext_iff.mp h_agree.symm⟩ |
| 165 | obtain ⟨g, rfl⟩ := toAlgAut_surjective Γ σ |
| 166 | exact ⟨g, fun x ↦ DFunLike.congr_fun hσ x⟩ |
| 167 | |
| 168 | /-! ### Restriction maps -/ |
| 169 | |
| 170 | /-- Let `Γ` act as the Galois group of `Ω / K`, `Γ'` as that of `Ω' / L`, and let `j : Ω → Ω'` be a |
| 171 | ring homomorphism such that every element of `Γ'` fixes the image under `j` of each element of `K`. |
| 172 | Then there is a continuous homomorphism `φ : Γ' → Γ` with `j (φ g • x) = g • j x` for all `g` and |
| 173 | `x`. -/ |
| 174 | lemma exists_galois_restrict [IsProGalois Γ' L Ω'] |
| 175 | (h_fix : ∀ (g : Γ') (x : K), g • j (algebraMap K Ω x) = j (algebraMap K Ω x)) : |
| 176 | ∃ φ : Γ' →ₜ* Γ, ∀ (g : Γ') (x : Ω), j (φ g • x) = g • j x := by |
| 177 | -- The embeddings `j` and `g • j` agree on `K`, so they differ by an element of `Γ`. |
| 178 | have h_exists (g : Γ') : ∃ σ : Γ, ∀ x : Ω, j (σ • x) = g • j x := |
| 179 | exists_apply_smul_eq_of_comp_algebraMap_eq Γ j ((toRingHom Γ' Ω' g).comp j) |
| 180 | (RingHom.ext (h_fix g)).symm |
| 181 | choose f hf using h_exists |
| 182 | have h_mul (g g' : Γ') : f (g * g') = f g * f g' := |
| 183 | G.faithful.eq_of_smul_eq_smul fun x ↦ j.injective (by simp [hf, mul_smul]) |
| 184 | exact ⟨⟨.mk' f h_mul, continuous_of_equivariant_emb j hf⟩, hf⟩ |
| 185 | |
| 186 | variable {Γ Γ'} [Algebra K L] [Algebra L Ω] [MulSemiringAction Γ' Ω] [IsScalarTower K L Ω] |
| 187 | [J : IsProGalois Γ' L Ω] (φ : Γ' →* Γ) |
| 188 | |
| 189 | include J in |
| 190 | omit [Algebra K L] [IsScalarTower K L Ω] in |
| 191 | /-- For `K ⊆ Ω`, `L ⊆ Ω` with profinite Galois groups `Γ` of `Ω / K` (`G`) and `Γ'` of `Ω / L` |
| 192 | (`J`), a homomorphism `φ: Γ' →* Γ` with `φ g • x = g • x` for all `g` and `x` (such as |
| 193 | `AlgEquiv.restrictScalarsHom`) is a closed embedding. -/ |
| 194 | lemma isClosedEmbedding_of_smul_eq_smul (hφ : ∀ (g : Γ') (x : Ω), φ g • x = g • x) : |
| 195 | IsClosedEmbedding φ := by |
| 196 | -- `φ` is injective because `Γ'` acts faithfully on `Ω`. |
| 197 | have h_inj : Injective φ := fun g g' h_eq ↦ |
| 198 | J.faithful.eq_of_smul_eq_smul fun x ↦ by rw [← hφ, h_eq, hφ] |
| 199 | -- A continuous injection of a compact space into a Hausdorff one is a closed embedding. |
| 200 | exact (continuous_of_equivariant_emb (RingHom.id Ω) hφ).isClosedEmbedding h_inj |
| 201 | |
| 202 | omit [Algebra K L] [IsScalarTower K L Ω] in |
| 203 | /-- For `K ⊆ Ω`, `L ⊆ Ω` with Galois groups `Γ` of `Ω / K` and `Γ'` of `Ω / L`, the range of a |
| 204 | homomorphism `φ: Γ' →* Γ` with `φ g • x = g • x` for all `g` and `x` is the subgroup of `Γ` fixing |
| 205 | `L` pointwise. -/ |
| 206 | lemma range_eq_fixingSubgroup_of_smul_eq_smul (hφ : ∀ (g : Γ') (x : Ω), φ g • x = g • x) : |
| 207 | φ.range = fixingSubgroup Γ (Set.range (algebraMap L Ω)) := by |
| 208 | refine le_antisymm ?_ fun g hg ↦ ?_ |
| 209 | · -- The image of `φ` fixes `L`, since `Γ'` does. |
| 210 | simp [IsConcreteLE.le_iff, mem_fixingSubgroup_iff, hφ] |
| 211 | -- An element `g` fixing `L` acts on `Ω` as some `g' : Γ'`. |
| 212 | have h_agree_L (y : L) : algebraMap L Ω y = g • algebraMap L Ω y := |
| 213 | ((mem_fixingSubgroup_iff Γ).mp hg _ ⟨y, rfl⟩).symm |
| 214 | obtain ⟨g', hg'⟩ : ∃ g' : Γ', ∀ x : Ω, g' • x = g • x := |
| 215 | exists_apply_smul_eq_of_comp_algebraMap_eq Γ' (RingHom.id Ω) (toRingHom Γ Ω g) |
| 216 | (RingHom.ext h_agree_L) |
| 217 | exact ⟨g', G.faithful.eq_of_smul_eq_smul fun x ↦ (hφ g' x).trans (hg' x)⟩ |
| 218 | |
| 219 | /-- For `K ⊆ L ⊆ Ω` with Galois groups `Γ` of `Ω / K` and `Γ'` of `Ω / L`, the range of a |
| 220 | homomorphism `φ : Γ' →* Γ` with `φ g • x = g • x` for all `g` and `x` has index `[L : K]` in `Γ` |
| 221 | (both sides are `0` if the degree is infinite). -/ |
| 222 | lemma index_range_eq_finrank_of_smul_eq_smul (hφ : ∀ (g : Γ') (x : Ω), φ g • x = g • x) : |
| 223 | φ.range.index = finrank K L := by |
| 224 | -- The index is that of the group fixing the image of `L`, pulled back along `Γ → Gal(Ω/K)`. |
| 225 | rw [range_eq_fixingSubgroup_of_smul_eq_smul φ hφ, |
| 226 | (toAlgHom K L Ω).equivFieldRange.toLinearEquiv.finrank_eq, finrank_eq_fixingSubgroup_index, |
| 227 | ← index_comap_of_surjective _ (toAlgAut_surjective Γ)] |
| 228 | -- The subgroup of `Γ` fixing `L` is, by definition, the preimage of the one in `Gal(Ω/K)`. |
| 229 | rfl |
| 230 | |
| 231 | /-- Restriction to a smaller base field. For `K ⊆ L ⊆ Ω` with Galois groups `Γ` of `Ω / K` and `Γ'` |
| 232 | of `Ω / L`, a homomorphism `φ : Γ' →* Γ` compatible with the actions on `Ω` is (a) a closed |
| 233 | embedding, (b) onto the subgroup fixing `L`, (c) whose index is `[L : K]` (both sides are `0` if the |
| 234 | degree is infinite). -/ |
| 235 | lemma isClosedEmbedding_galois_restrict (hφ : ∀ (g : Γ') (x : Ω), φ g • x = g • x := by tauto) : |
| 236 | IsClosedEmbedding φ ∧ |
| 237 | φ.range = fixingSubgroup Γ (Set.range (algebraMap L Ω)) ∧ |
| 238 | φ.range.index = finrank K L := |
| 239 | ⟨isClosedEmbedding_of_smul_eq_smul φ hφ, range_eq_fixingSubgroup_of_smul_eq_smul φ hφ, |
| 240 | index_range_eq_finrank_of_smul_eq_smul φ hφ⟩ |
| 241 | |
| 242 | /-- For `K ⊆ L ⊆ Ω` with `L / K` finite and Galois groups `Γ` of `Ω / K` and `Γ'` of `Ω / L`, a |
| 243 | homomorphism `φ : Γ' →* Γ` with `φ g • x = g • x` for all `g` and `x` is an open embedding. -/ |
| 244 | lemma isOpenEmbedding_galois_restrict (hφ : ∀ (g : Γ') (x : Ω), φ g • x = g • x) |
| 245 | [Module.Finite K L] : IsOpenEmbedding φ := by |
| 246 | -- The image is a closed subgroup of finite index. |
| 247 | have h_closedEmb := isClosedEmbedding_of_smul_eq_smul φ hφ |
| 248 | have h_finiteIndex : φ.range.FiniteIndex := |
| 249 | ⟨(index_range_eq_finrank_of_smul_eq_smul φ hφ).trans_ne finrank_pos.ne'⟩ |
| 250 | exact ⟨h_closedEmb.isEmbedding, |
| 251 | isOpen_of_isClosed_of_finiteIndex φ.range h_closedEmb.isClosed_range⟩ |
| 252 | |
| 253 | /-! ### The Galois correspondence -/ |
| 254 | |
| 255 | /-- Galois correspondence: the fixed field of the subgroup of `Γ` fixing an intermediate field `L` |
| 256 | of `Ω / K` pointwise is `L`. -/ |
| 257 | lemma fixedFieldOf_fixingSubgroup (L : IntermediateField K Ω) : |
| 258 | fixedFieldOf (fixingSubgroup Γ (L : Set Ω)) = L := by |
| 259 | -- Transfer the statement for `Gal(Ω/K)` along the surjection `Γ → Gal(Ω/K)`. |
| 260 | refine .trans (ext fun x ↦ ?_) (fixedField_fixingSubgroup L) |
| 261 | simp [(toAlgAut_surjective Γ).forall, mem_fixingSubgroup_iff] |
| 262 | |
| 263 | /-- Let Γ act as the Galois group of Ω/K, and K ⊆ L ⊆ Ω. A subgroup V of Γ that acts as the |
| 264 | Galois group of Ω/L is the subgroup fixing L pointwise, and its index is [L : K] (both read as 0 if |
| 265 | infinite). -/ |
| 266 | lemma eq_fixingSubgroup_of_isProGalois {V : Subgroup Γ} [J : IsProGalois V L Ω] : |
| 267 | V = fixingSubgroup Γ (Set.range (algebraMap L Ω)) ∧ V.index = finrank K L := by |
| 268 | obtain ⟨-, h_range, h_index⟩ := |
| 269 | isClosedEmbedding_galois_restrict (K := K) (L := L) V.subtype fun _ _ ↦ rfl |
| 270 | rw [V.range_subtype] at h_range h_index |
| 271 | exact ⟨h_range, h_index⟩ |
| 272 | |
| 273 | /-- Galois correspondence: the subgroup of `Γ` fixing the fixed field of a closed subgroup `H` |
| 274 | pointwise is `H`. -/ |
| 275 | lemma fixingSubgroup_fixedFieldOf : fixingSubgroup Γ (fixedFieldOf H : Set Ω) = H := by |
| 276 | -- `H` acts as the Galois group of `Ω` over its fixed field. |
| 277 | obtain ⟨h_eq, -⟩ := eq_fixingSubgroup_of_isProGalois (K := K) (L := fixedFieldOf H) (V := H) |
| 278 | have h_range : Set.range (algebraMap (fixedFieldOf H) Ω) = (fixedFieldOf H : Set Ω) := |
| 279 | congrArg SetLike.coe (fieldRange_val (fixedFieldOf H)) |
| 280 | rwa [h_range, eq_comm] at h_eq |
| 281 | |
| 282 | /-- The fixed field of a closed subgroup `H` has degree the index of `H` (`0` if infinite). -/ |
| 283 | lemma finrank_fixedFieldOf : finrank K (fixedFieldOf H) = H.index := by |
| 284 | obtain ⟨-, h_index⟩ := eq_fixingSubgroup_of_isProGalois (K := K) (L := fixedFieldOf H) (V := H) |
| 285 | exact h_index.symm |
| 286 | |
| 287 | /-- The fixed field of an open subgroup is finite over `K`. -/ |
| 288 | instance finiteDimensional_fixedFieldOf : FiniteDimensional K (fixedFieldOf U) := by |
| 289 | -- The degree is the index of `U`, which is finite and positive since `U` is open. |
| 290 | have h_index_pos : 0 < U.index := (U.quotient_finite_of_isOpen out).card_pos |
| 291 | exact .of_finrank_pos <| by rwa [finrank_fixedFieldOf U] |
| 292 | |
| 293 | /-- The fixed field of an open subgroup, over a number field `K`, is a number field. -/ |
| 294 | instance [NumberField K] : NumberField (fixedFieldOf U) := .of_module_finite K _ |
| 295 | |
| 296 | end New |