The trivial-modulus ray class is the ordinary ideal class
ProvedTauCeti.GlobalNumberFields.oneEquivClassGroup_rayClassMknumber-theorytauceti-chebotarev
Let be a number field, let be the ray class group for the trivial modulus, and let be the canonical equivalence with the ordinary ideal class group. For every invertible fractional ideal ,
This identifies the two class-group constructions on their canonical ideal representatives.
Source: the Tau Ceti contributors (Apache-2.0, commit 948fe4751b1fe528b6d580c522ca5d743d47f185).
Preamble
/- 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 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
-/
/-!
# The ray class group of a modulus
Let `𝔪` be a modulus of a number field `K`. The **ray** of `𝔪` is the subgroup of principal
fractional ideals generated by the elements of `Kˣ` congruent to one modulo `𝔪`, and the **ray
class group** `RayClassGroup 𝔪` is the quotient of the group `idealsPrimeTo 𝔪` of invertible
fractional ideals prime to the finite part of `𝔪` by that ray.
The ray really is a subgroup of `idealsPrimeTo 𝔪`, and not merely of all invertible fractional
ideals: an element congruent to one is a unit at every prime dividing the finite part of `𝔪`
(`IsCongrOne.valuation_eq_one`), so its principal ideal has vanishing multiplicity there. That is
the content of `TauCeti.GlobalNumberFields.rayHom`, from which the ray is obtained as a range.
The class of an ideal is defined on the monoid `integralIdealsPrimeTo 𝔪` of nonzero integral ideals
prime to the finite part, never on all of `Ideal (𝓞 K)`: an ideal sharing a prime with the finite
part has no ray class, and carrying the coprimality proof in the argument makes multiplicativity
literally `map_mul`.
For the trivial modulus the congruence condition is empty, and the ray class group is the ordinary
class group (`oneEquivClassGroup`).
## Main definitions
* `TauCeti.GlobalNumberFields.principalIdealPrimeTo`: the principal fractional ideals whose
generators are units at the finite part.
* `TauCeti.GlobalNumberFields.rayHom`, `TauCeti.GlobalNumberFields.ray`: the principal ideals of
the elements congruent to one, and the subgroup they form.
* `TauCeti.GlobalNumberFields.idealsPrimeToClassGroup`: the ordinary ideal class of an invertible
fractional ideal prime to a modulus.
* `TauCeti.GlobalNumberFields.RayClassGroup`: the quotient of `idealsPrimeTo 𝔪` by the ray, with
`TauCeti.GlobalNumberFields.rayClassMk` and the universal property
`TauCeti.GlobalNumberFields.rayClassLift`.
* `TauCeti.GlobalNumberFields.idealClass`: the ray class of an integral ideal prime to `𝔪`, as a
monoid homomorphism out of `integralIdealsPrimeTo 𝔪`.
* `TauCeti.GlobalNumberFields.classMap`: the transition map, running from the ray class group of a
larger modulus to that of a divisor of it.
## Main results
* `TauCeti.GlobalNumberFields.toPrincipalIdeal_mem_idealsPrimeTo_iff`: a principal fractional ideal
is prime to the modulus exactly when its generator is a unit at every prime dividing the finite
part, with `TauCeti.GlobalNumberFields.IsCongrOne.toPrincipalIdeal_mem_idealsPrimeTo` the
consequence for an element congruent to one.
* `TauCeti.GlobalNumberFields.idealsPrimeTo_eq_top`: every invertible fractional ideal is prime
to a modulus whose support is empty, so `TauCeti.GlobalNumberFields.idealsPrimeToEquiv`
identifies the two carriers there.
* `TauCeti.GlobalNumberFields.idealClass_apply`: the ray class of an integral ideal is the ray
class of the fractional ideal it generates.
* `TauCeti.GlobalNumberFields.idealClass_mul`: taking the ray class of an integral ideal respects
multiplication.
* `TauCeti.GlobalNumberFields.idealClass_eq_one_iff`: an ideal has trivial ray class exactly when
it is generated, as a fractional ideal, by an element of `Kˣ` congruent to one modulo `𝔪`.
* `TauCeti.GlobalNumberFields.classMap_comp_classMap` and
`TauCeti.GlobalNumberFields.classMap_comp_idealClass`: the transition maps compose along a tower
of moduli, and carry the class of an integral ideal to the class of the same ideal. Both are
equalities of homomorphisms, with the pointwise forms `classMap_classMap` and
`classMap_idealClass` derived from them. The transition map from a modulus to itself is the
identity (`TauCeti.GlobalNumberFields.classMap_refl`).
* `TauCeti.GlobalNumberFields.oneEquivClassGroup`: at the trivial modulus the ray class group is
the class group of `𝓞 K`, carrying a ray class to the class of the same fractional ideal
(`TauCeti.GlobalNumberFields.oneEquivClassGroup_rayClassMk`).
## References
* J. Neukirch, *Algebraic Number Theory*, Chapter VI, §1.
* S. Lang, *Algebraic Number Theory*, Chapter VI, §1.
-/
section
open _root_.IsDedekindDomain _root_.IsDedekindDomain.HeightOneSpectrum _root_.NumberField
open scoped _root_.nonZeroDivisors _root_.NumberField
namespace TauCeti.GlobalNumberFields
end TauCeti.GlobalNumberFields
section TauCeti.GlobalNumberFields
open TauCeti TauCeti.GlobalNumberFields
variable {K : Type*} [Field K] [NumberField K]
/-! ### The transition map between ray class groups -/
/-! ### Moduli with unit finite part -/
/-! ### The trivial modulus -/
Formal statement
@[simp] theorem TauCeti.GlobalNumberFields.oneEquivClassGroup_rayClassMk (I : _root_.TauCeti.GlobalNumberFields.idealsPrimeTo (_root_.TauCeti.GlobalNumberFields.Modulus.one K)) :
_root_.TauCeti.GlobalNumberFields.oneEquivClassGroup (_root_.TauCeti.GlobalNumberFields.rayClassMk (_root_.TauCeti.GlobalNumberFields.Modulus.one K) I) =
_root_.ClassGroup.mk K (I : (_root_.FractionalIdeal (𝓞 K)⁰ K)ˣ) := by sorry
Source