Skip to content

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

Python

feat(ClassField): compute the index of simultaneous local power conditions

alkor20001384905a5868
diff --git a/src/Lib/ClassField/Global/ExistenceTheorem.lean b/src/Lib/ClassField/Global/ExistenceTheorem.lean
index 25d7f90fdbb..d246f03546f 100644
--- a/src/Lib/ClassField/Global/ExistenceTheorem.lean
+++ b/src/Lib/ClassField/Global/ExistenceTheorem.lean
@@ -15,6 +15,7 @@ import Lib.ClassField.Global.ArtinReciprocity
import Lib.ClassField.Global.NormTheorems
import Lib.ClassField.Places.LocalFields
import Lib.ClassField.Places.TameInertia
+import Lib.General.Groups.IndexOfProduct
import Lib.General.NumberTheory.SUnitsAndClassNumber
import TauCeti.RingTheory.DedekindDomain.SInteger.Power
@@ -31,6 +32,7 @@ unity; otherwise it passes to a cyclic extension of `K` inside `K(μ_n)` and com
* `New.exists_comp_artinMap`: the existence theorem.
* `New.exists_kummer_chars`: Kummer characters, and the ideles killed by those of the `S`-units.
+* `New.index_idelesPowAt_eq_prod`: the index factors into the indices at the prescribed places.
* `New.index_pow_local_le`, `New.index_idelesPowAt_ne_zero_and_le`: bounds on the index of local
`n`-th powers.
* `New.QZChar.eq_zero_of_unramified_off`, `New.sum_ord_smul_frob_eq_zero`: consequences of the
@@ -141,16 +143,35 @@ lemma index_pow_local_le (v : FinPlace K) :
rw [h_index_eq, sq]
gcongr
+omit [NeZero n] in
+/-- At finitely many places, local power conditions are independent: the index of their
+intersection is the product of the local power indices. -/
+lemma index_idelesPowAt_eq_prod [Fintype S] :
+ (idelesPowAt S n).index = ∏ v : S, (powMonoidHom n : (LocField v.val)ˣ →* _).range.index := by
+ classical
+ let eval : (𝔸f K)ˣ →* ∀ v : S, (LocField v.val)ˣ :=
+ MonoidHom.pi fun v ↦ ideleAt v.val
+ have h_surj : Function.Surjective eval := by
+ intro x
+ -- Extend the prescribed components by one outside `S` and take their finite product.
+ let component (v : FinPlace K) : (LocField v)ˣ := if hv : v ∈ S then x ⟨v, hv⟩ else 1
+ refine ⟨∏ v ∈ S.toFinset, locIdele v (component v), funext fun v ↦ ?_⟩
+ change ideleAt v.val _ = x v
+ rw [ideleAt_prod_locIdele]
+ simp [component, v.property]
+ let H (v : S) : Subgroup (LocField v.val)ˣ := (powMonoidHom n).range
+ have h_pow : idelesPowAt S n = (Subgroup.pi Set.univ H).comap eval := by
+ ext x
+ simp [idelesPowAt, Subgroup.mem_pi, eval, H]
+ rw [h_pow, index_comap_of_surjective _ h_surj, Seesaw.index_pi_univ]
+
/-- For `n ≠ 0` and a finite set `S` of finite places of `K`, the ideles that are `n`-th powers at
the places of `S` have finite index, at most `n ^ (2 |S| + [K : ℚ])`. -/
lemma index_idelesPowAt_ne_zero_and_le [Fintype S] :
(idelesPowAt S n).index ≠ 0 ∧
(idelesPowAt S n).index ≤ n ^ (2 * S.ncard + finrank ℚ K) := by
- have h_index_comap (v : FinPlace K) (H : Subgroup (LocField v)ˣ) :
- (H.comap (ideleAt v)).index = H.index :=
- index_comap_of_surjective _ fun x ↦ ⟨locIdele v x, ideleAt_locIdele v x⟩
- refine ⟨index_iInf_ne_zero fun v ↦
- (h_index_comap v.val _).trans_ne (index_pow_local_le n v.val).left, ?_⟩
+ rw [index_idelesPowAt_eq_prod]
+ refine ⟨Finset.prod_ne_zero_iff.mpr fun v _ ↦ (index_pow_local_le n v.val).left, ?_⟩
-- Multiply the bounds `n ^ 2 * N(v-part of (n))` of `index_pow_local_le`. The `v`-parts of
-- `(n)` are coprime, so their product divides `(n)`, of norm `n ^ [K : ℚ]`.
have h_dvd : ∏ v : S, v.val.asIdeal ^ multiplicity v.val.asIdeal (Ideal.span {(n : 𝓞 K)}) ∣
@@ -160,10 +181,10 @@ lemma index_idelesPowAt_ne_zero_and_le [Fintype S] :
fun v ↦ pow_multiplicity_dvd v.val.asIdeal _
have h_norm : (Ideal.span {(n : 𝓞 K)}).absNorm = n ^ finrank ℚ K := by
rw [Ideal.absNorm_span_natCast, RingOfIntegers.rank]
- calc (idelesPowAt S n).index
+ calc (∏ v : S, (powMonoidHom n : (LocField v.val)ˣ →* _).range.index)
≤ ∏ v : S, n ^ 2 *
- (v.val.asIdeal ^ multiplicity v.val.asIdeal (Ideal.span {(n : 𝓞 K)})).absNorm := by
- grw [index_iInf_le, (h_index_comap _ _).le, (index_pow_local_le n _).right]
+ (v.val.asIdeal ^ multiplicity v.val.asIdeal (Ideal.span {(n : 𝓞 K)})).absNorm :=
+ Finset.prod_le_prod fun v _ ↦ (index_pow_local_le n v.val).right
_ = (n ^ 2) ^ S.ncard * (∏ v : S,
v.val.asIdeal ^ multiplicity v.val.asIdeal (Ideal.span {(n : 𝓞 K)})).absNorm := by
simp [Finset.prod_mul_distrib]