Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fractional ideals away from a finite set are generated by the remaining primes

Proved
TauCeti.NumberFieldArithmetic.idealsAway_eq_closure_primes

by riccardo.brasca · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theorytauceti-chebotarev

Let KKK be a number field and let SSS be a finite set of nonzero primes of OK\mathcal O_KOK​. In the group of invertible fractional ideals, let

IS={I:vp(I)=0 for every p∈S},I^S=\{I:v_{\mathfrak p}(I)=0\text{ for every }\mathfrak p\in S\},IS={I:vp​(I)=0 for every p∈S},

where vp(I)v_{\mathfrak p}(I)vp​(I) is the prime-ideal exponent. Then

IS=⟨p:p∉S⟩.I^S=\langle\mathfrak p:\mathfrak p\notin S\rangle.IS=⟨p:p∈/S⟩.

This gives generators for the ideal group underlying coprimality and ray class constructions.

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_Ideal_Away
import Mathlib.NumberTheory.NumberField.Basic
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

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
-/
/-!
# Fractional ideals away from finitely many primes

For a number field `K` and a finite set `S` of its finite places, this file defines the subgroup
`idealsAway S` of invertible fractional ideals whose multiplicity vanishes at every member of
`S`. It proves that this subgroup is generated by the prime ideals outside `S` and supplies the
inclusion induced by enlarging `S`.

The integral counterpart `integralIdealsAway S` consists of the nonzero integral ideals divisible
by no prime in `S`. Its map to `idealsAway S` is the restriction of Mathlib's
`FractionalIdeal.mk0`.

The generation proof transports Mathlib's unique factorization of a nonzero fractional ideal,
`FractionalIdeal.finprod_heightOneSpectrum_factorization'`, to fractional-ideal units.

## Main definitions

* `NumberFieldArithmetic.idealsAway`: unit fractional ideals trivial at the primes in `S`.
* `NumberFieldArithmetic.idealsAwayEmptyEquiv`: ideals away from no primes are all invertible
  fractional ideals.
* `NumberFieldArithmetic.idealsAwayInclusion`: inclusion obtained from `S ⊆ S'`.
* `NumberFieldArithmetic.integralIdealsAway`: nonzero integral ideals prime to `S`.
* `NumberFieldArithmetic.integralIdealsAwayHom`: the map from integral to fractional ideals.

## Main results

* `NumberFieldArithmetic.integralIdealsAway_hom_ext`: a monoid homomorphism out of
  `integralIdealsAway S` is determined by its values on the primes outside `S`.

## References

The shared lift of fractional-ideal factorization to units,
`FractionalIdeal.finprod_unitOfPrime_zpow_count`, is also used by
`TauCeti.RingTheory.ClassGroup.HeightOneSpectrum`. It is adapted from Michael Stoll's
`EllipticCurves/Mathlib/FractionalIdeal.lean` at commit `66889eada51a` of the
`MichaelStollBayreuth/EllipticCurves` repository (Apache 2.0).
-/

 section

open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum NumberField
open scoped nonZeroDivisors NumberField

namespace TauCeti.NumberFieldArithmetic
end TauCeti.NumberFieldArithmetic
section TauCeti.NumberFieldArithmetic
open TauCeti TauCeti.NumberFieldArithmetic

variable {K : Type*} [Field K] [NumberField K]


















Formal statement
theorem TauCeti.NumberFieldArithmetic.idealsAway_eq_closure_primes (S : _root_.Finset (_root_.IsDedekindDomain.HeightOneSpectrum (𝓞 K))) :
    _root_.TauCeti.NumberFieldArithmetic.idealsAway S = _root_.Subgroup.closure {I : (_root_.FractionalIdeal (𝓞 K)⁰ K)ˣ |
      ∃ v : _root_.IsDedekindDomain.HeightOneSpectrum (𝓞 K), v ∉ S ∧
        ((I : _root_.FractionalIdeal (𝓞 K)⁰ K) =
          (v.asIdeal : _root_.FractionalIdeal (𝓞 K)⁰ K))} := by sorry
Source
https://github.com/TauCetiProject/TauCeti/blob/948fe4751b1fe528b6d580c522ca5d743d47f185/TauCeti/NumberTheory/NumberField/Ideal/Away.lean#L126-L145

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me