Integral representatives of ray classes
DefinitionTauCeti_NumberTheory_NumberField_Global_RayClass_Integralnumber-theorytauceti-chebotarev
For a modulus of a number field , congruence to one for a nonzero algebraic integer is equivalent to
A coprime integral ideal has trivial ray class exactly when it has a generator satisfying these conditions. This connects the local definition with integral generators.
Formalization Note. These foundational declarations are transplanted from the Tau Ceti contributors' original source (Apache-2.0, commit 948fe4751b1fe528b6d580c522ca5d743d47f185), with compatibility adaptations for Lean 4.33.1. Mathematical proofs requiring separate theorem nodes are published separately.
Definition code
/- Transplanted from https://github.com/TauCetiProject/TauCeti at 948fe4751b1fe528b6d580c522ca5d743d47f185.
Original source copyright/license notices are retained below.
Generated exclusively from compiler declaration, command, and reference facts. -/
import Definitions.Def_TauCeti_NumberTheory_NumberField_Global_RayClass_Basic
import Definitions.Def_TauCeti_NumberTheory_NumberField_Global_RayClass_Modulus
import Definitions.Def_TauCeti_NumberTheory_NumberField_Ideal_Away
import Definitions.Def_TauCeti_RingTheory_DedekindDomain_Factorization
import Definitions.Def_TauCeti_RingTheory_DedekindDomain_Ideal
import Mathlib.Algebra.Group.Subgroup.Ker
import Mathlib.Algebra.Order.Ring.Units
import Mathlib.Algebra.Ring.Int.Units
import Mathlib.Data.Nat.Prime.Basic
import Mathlib.Data.Nat.Prime.Defs
import Mathlib.GroupTheory.Index
import Mathlib.GroupTheory.IndexNormal
import Mathlib.GroupTheory.Solvable
import Mathlib.GroupTheory.Subgroup.Center
import Mathlib.NumberTheory.NumberField.Basic
import Mathlib.NumberTheory.NumberField.InfinitePlace.Basic
import Mathlib.NumberTheory.NumberField.InfinitePlace.TotallyRealComplex
import Mathlib.RingTheory.ClassGroup.Basic
import Mathlib.RingTheory.DedekindDomain.AdicValuation
import Mathlib.RingTheory.DedekindDomain.Factorization
import Mathlib.RingTheory.DedekindDomain.Ideal.Lemmas
import Mathlib.RingTheory.Valuation.Discrete.IsDiscreteValuationRing
import Mathlib.Tactic.Group
section
set_option autoImplicit true
/-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
/-!
# Integral representatives of ray classes
Every ray class of a modulus `𝔪` of a number field is the class of a nonzero *integral* ideal
prime to `𝔪`, and such an ideal has trivial class exactly when it is generated by an algebraic
integer congruent to one modulo `𝔪`, equivalently when it satisfies an integral equation
`I · (b) = (a)` whose two generators are congruent to one modulo `𝔪`. The construction behind both
is that inside a nonzero ideal `D` comaximal with the finite part `𝔪₀` there is an algebraic
integer congruent to one modulo `𝔪₀` and positive at every real place (`exists_mem_isCongrOne`).
Its existence combines the comaximality, which supplies an element of `D` congruent to one, with
`NumberField.exists_isTotallyPositive_sub_mem`, which corrects the archimedean signs without
leaving the residue class modulo `D · 𝔪₀`.
Applying that construction to an integral ideal `I` prime to `𝔪` produces a principal ideal
`(α) = I · J` generated by an element congruent to one, so `J` is again prime to `𝔪` and the ray
class of `J` inverts the ray class of `I`. The image of `idealClass 𝔪` is therefore a *subgroup*
of the ray class group, and since it contains the class of every prime not dividing `𝔪` it is
everything: this is the moving lemma, `idealClass_surjective`.
## Main results
* `TauCeti.GlobalNumberFields.exists_mem_isCongrOne`: an ideal comaximal with the finite part of
`𝔪` contains a nonzero element whose image in `Kˣ` is congruent to one modulo `𝔪`.
* `TauCeti.GlobalNumberFields.exists_isCongrOne_span_eq_mul`: an integral ideal prime to `𝔪`
divides a principal ideal whose generator is congruent to one modulo `𝔪`, with complementary
ideal again prime to `𝔪`.
* `TauCeti.GlobalNumberFields.exists_idealClass_mul_eq_one`: the ray class of an integral ideal
prime to `𝔪` is inverted by the ray class of another such ideal.
* `TauCeti.GlobalNumberFields.idealClass_surjective`: **the moving lemma**, that every ray class is
the class of a nonzero integral ideal prime to the modulus.
* `TauCeti.GlobalNumberFields.idealClass_eq_one_iff_exists_generator`: the generator form of
`idealClass_eq_one_iff`, with the generator kept inside `𝓞 K` and its two defining conditions
spelled out.
* `TauCeti.GlobalNumberFields.idealClass_eq_one_iff_exists_integral`: the denominator-cleared form
of `idealClass_eq_one_iff`, an equation `I · (b) = (a)` between integral ideals whose generators
are congruent to one modulo `𝔪`.
## References
* J. Neukirch, *Algebraic Number Theory*, Chapter VI, §1.
* S. Lang, *Algebraic Number Theory*, Chapter VI, §1.
-/
section
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum NumberField
open scoped nonZeroDivisors NumberField
namespace TauCeti.GlobalNumberFields
variable {K : Type*} [Field K] [NumberField K]
/-! ### Generators congruent to one modulo a modulus -/
/-- **An algebraic integer in `1 + 𝔪₀` is congruent to one modulo `𝔪`.** Membership of `a - 1` in
the finite part gives the valuation bound at *every* finite place, since the prime power prescribed
by the exponent divides the finite part (`Modulus.pow_exponent_dvd_finitePart`); the real
conditions are carried over unchanged. -/
theorem isCongrOne_of_sub_one_mem {𝔪 : Modulus K} {x : Kˣ} {a : 𝓞 K} (hxa : (x : K) = a)
(hmem : a - 1 ∈ 𝔪.finitePart)
(hpos : ∀ w ∈ 𝔪.infinitePart, 0 < InfinitePlace.embedding_of_isReal w.2 (x : K)) :
IsCongrOne 𝔪 x := by
refine isCongrOne_iff.mpr ⟨fun v _ ↦ ?_, hpos⟩
have hsub : (x : K) - 1 = algebraMap (𝓞 K) K (a - 1) := by rw [map_sub, map_one, hxa]
rw [hsub, valuation_of_algebraMap, intValuation_le_pow_iff_mem]
exact Ideal.le_of_dvd (Modulus.pow_exponent_dvd_finitePart 𝔪 v) hmem
/-- **Congruence to one, read back on an algebraic integer.** The converse of
`isCongrOne_of_sub_one_mem` at the finite places: a unit congruent to one modulo `𝔪` that is the
image of `a : 𝓞 K` has `a - 1` in the finite part. -/
theorem sub_one_mem_of_isCongrOne {𝔪 : Modulus K} {x : Kˣ} {a : 𝓞 K} (hxa : (x : K) = a)
(h : IsCongrOne 𝔪 x) : a - 1 ∈ 𝔪.finitePart := by
refine Modulus.mem_finitePart_of_forall_mem_pow_exponent 𝔪 fun v hv ↦ ?_
have hsub : (x : K) - 1 = algebraMap (𝓞 K) K (a - 1) := by rw [map_sub, map_one, hxa]
simpa only [hsub, valuation_of_algebraMap, intValuation_le_pow_iff_mem]
using h.valuation_sub_one_le hv
/-! ### The moving lemma -/
/-! ### Triviality criteria with integral generators -/
/-- **Trivial ray class, in generator form.** An integral ideal prime to `𝔪` has trivial ray class
exactly when it is generated by an algebraic integer that is congruent to one modulo the finite
part and positive at every real place of the infinite part. This differs from
`idealClass_eq_one_iff` in keeping the generator inside `𝓞 K`, with the two conditions on it
spelled out instead of packaged as `IsCongrOne`. -/
theorem idealClass_eq_one_iff_exists_generator {𝔪 : Modulus K} (J : integralIdealsPrimeTo 𝔪) :
idealClass 𝔪 J = 1 ↔ ∃ α : 𝓞 K, α - 1 ∈ 𝔪.finitePart ∧ (∀ w ∈ 𝔪.infinitePart,
0 < InfinitePlace.embedding_of_isReal w.2 (algebraMap (𝓞 K) K α)) ∧
(J : Ideal (𝓞 K)) = Ideal.span {α} := by
rw [idealClass_eq_one_iff]
constructor
· rintro ⟨x, hx, hJ⟩
-- The generator lies in the integral ideal `J`, so it is an algebraic integer.
obtain ⟨α, -, hα⟩ := (FractionalIdeal.mem_coeIdeal (𝓞 K)⁰).mp
(hJ ▸ FractionalIdeal.mem_spanSingleton_self (𝓞 K)⁰ (x : K))
exact ⟨α, sub_one_mem_of_isCongrOne hα.symm hx, fun w hw ↦ hα ▸ (isCongrOne_iff.mp hx).2 w hw,
(FractionalIdeal.coeIdeal_inj (K := K)).mp <| by simp [hJ, hα]⟩
· rintro ⟨α, hα1, hαpos, hJ⟩
-- `J` is nonzero, so its generator is too.
have hαne : algebraMap (𝓞 K) K α ≠ 0 := by
simpa [hJ] using (NumberFieldArithmetic.mem_integralIdealsAway_iff.mp J.prop).1
exact ⟨Units.mk0 _ hαne, isCongrOne_of_sub_one_mem rfl hα1 hαpos, by simp [hJ]⟩
end TauCeti.GlobalNumberFields
end
end
Source