Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

refactor(ClassField): use Tau Ceti for openness of local power subgroups

alkor200008fa331d6057
diff --git a/src/Lib/ClassField/Local/ArtinMap.lean b/src/Lib/ClassField/Local/ArtinMap.lean
index ba83bfc5dcf..87ff0437975 100644
--- a/src/Lib/ClassField/Local/ArtinMap.lean
+++ b/src/Lib/ClassField/Local/ArtinMap.lean
@@ -1,6 +1,5 @@
module
-import Mathlib.Analysis.Calculus.InverseFunctionTheorem.Deriv
import Mathlib.FieldTheory.Galois.Profinite
import Mathlib.Topology.Algebra.Group.Units
import Mathlib.Topology.Algebra.Ring.Compact
@@ -8,6 +7,8 @@ import Mathlib.Topology.Connected.Separation
import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated
import TauCeti.NumberTheory.NumberField.Global.Adeles.Norm.Continuity
import TauCeti.RingTheory.Valuation.ValuationSubring
+import TauCeti.NumberTheory.LocalField.PowerSubgroup.Open
+import TauCeti.RingTheory.DedekindDomain.AdicValuation.ValuativeRel
public import Lib.Adelic.Adeles.IdeleModulus
public import Lib.ClassField.GaloisCohomology.KummerCyclicClasses
public import Lib.ClassField.Places.DecompositionCompletion
@@ -232,15 +233,11 @@ contains all `n`-th powers is open. -/
lemma isOpen_of_forall_pow_mem {n : ℕ} (hn : n ≠ 0) {T : Subgroup (LocField w)ˣ}
(h_pow : ∀ y : (LocField w)ˣ, y ^ n ∈ T) :
T.IsOpen := by
- -- The map `y ↦ y ^ n` has derivative `n ≠ 0` at `1`, so its range is a neighbourhood of `1`.
- let : NontriviallyNormedField (LocField w) := toNontriviallyNormedField (LocField w) _
- have range_mem : Set.range (fun y : LocField w ↦ y ^ n) ∈ nhds (1 ^ n) :=
- ((hasStrictDerivAt_pow n 1).map_nhds_eq (by simpa using hn)).ge range_mem_map
- -- An `n`-th root `y` of a unit `x` is itself a unit.
- refine T.isOpen_of_mem_nhds <| mem_of_superset (continuous_val.tendsto (1 ^ n) range_mem) ?_
- rintro x ⟨y, hy⟩
- have root : x.ofPow y hn hy ^ n = x := ext hy
- simpa [root] using h_pow (x.ofPow y hn hy)
+ -- The open subgroup of `n`-th powers is contained in `T`.
+ refine Subgroup.isOpen_mono ?_
+ (TauCeti.isOpen_range_powMonoidHom (K := LocField w) (Nat.cast_ne_zero.mpr hn))
+ rintro _ ⟨y, rfl⟩
+ exact h_pow y
/-- Every homomorphism from `K_w^×` to the topological abelianisation of a profinite group `Γ`
(compact, totally disconnected) is continuous. -/