Chebotarëv density theorem: densities, Frobenius substitutions, cycle patterns, decomposition types
DefinitionChebotarevDensity_DefsShared definitions for the statements of Chebotarëv's, Frobenius's and Dirichlet's density theorems over , following Stevenhagen–Lenstra (1996).
- Analytic density. A set of natural numbers has analytic (Dirichlet) density if
- Natural density. has natural density among the primes if as .
- For : its splitting field over (a number field) and Galois group .
- Frobenius substitution. is a Frobenius substitution of the prime if there is a prime ideal of the ring of integers with for all .
- Chebotarëv set. For a conjugacy class of : the set of primes with having some Frobenius substitution in .
- Cycle pattern of : the multiset of cycle lengths (fixed points included) of the permutation of the complex zeros of induced by .
- Decomposition type of modulo a prime : the multiset of degrees of the monic irreducible factors of in , with multiplicity; and the set of primes with a given decomposition type.
- Frobenius cycle pattern of : the cycle pattern of acting on the zeros of in its splitting field.
Formalization Note The discriminant is Mathlib's Polynomial.discr; the Frobenius condition uses Mathlib's IsArithFrobAt; cycle patterns use Equiv.Perm.partition. The file also registers the instance that the splitting field of a rational polynomial is a number field.
import Mathlib
open Polynomial NumberField
namespace ChebotarevDensity
/-- The splitting field of a rational polynomial is a number field. -/
noncomputable instance splittingField_numberField (g : ℚ[X]) : NumberField g.SplittingField := {}
/-- Analytic (Dirichlet) density: a set `S` of natural numbers has density `δ` if
`(∑_{p ∈ S prime} p^{-s}) / log (1 / (s - 1)) → δ` as `s → 1⁺`. -/
def HasDirichletDensity (S : Set ℕ) (δ : ℝ) : Prop :=
Filter.Tendsto
(fun s : ℝ =>
(∑' p : {p : ℕ // p.Prime ∧ p ∈ S}, ((p : ℕ) : ℝ) ^ (-s)) / Real.log (1 / (s - 1)))
(nhdsWithin 1 (Set.Ioi 1)) (nhds δ)
open scoped Classical in
/-- Natural density among the primes: `#{p ≤ x : p ∈ S prime} / #{p ≤ x : p prime} → δ`. -/
def HasNaturalDensity (S : Set ℕ) (δ : ℝ) : Prop :=
Filter.Tendsto
(fun x : ℕ =>
((Finset.Iic x).filter (fun p => p.Prime ∧ p ∈ S)).card /
(((Finset.Iic x).filter Nat.Prime).card : ℝ))
Filter.atTop (nhds δ)
/-- An integer polynomial viewed as a rational polynomial. -/
noncomputable abbrev ratPoly (f : ℤ[X]) : ℚ[X] := f.map (Int.castRingHom ℚ)
/-- The splitting field `K = ℚ(α₁, …, αₙ)` of an integer polynomial `f`. -/
abbrev SplitField (f : ℤ[X]) : Type := (ratPoly f).SplittingField
/-- The Galois group `G = Gal(K/ℚ)` of an integer polynomial `f`. -/
abbrev GalGroup (f : ℤ[X]) : Type := (ratPoly f).Gal
/-- `σ ∈ G` is a Frobenius substitution of the prime `p`: there is a prime ideal `Q` of the
ring of integers of `K` containing `p` such that `σ x ≡ x ^ p (mod Q)` for every algebraic
integer `x` of `K`. -/
def IsFrobeniusAt (f : ℤ[X]) (p : ℕ) (σ : GalGroup f) : Prop :=
∃ Q : Ideal (𝓞 (SplitField f)), Q.IsPrime ∧ (p : 𝓞 (SplitField f)) ∈ Q ∧ IsArithFrobAt ℤ σ Q
/-- The set of primes `p ∤ Δ(f)` whose Frobenius substitution lies in the conjugacy class `C`. -/
def chebotarevSet (f : ℤ[X]) (C : ConjClasses (GalGroup f)) : Set ℕ :=
{p | p.Prime ∧ ¬ (p : ℤ) ∣ f.discr ∧ ∃ σ ∈ C.carrier, IsFrobeniusAt f p σ}
open scoped Classical in
/-- The cycle pattern of `σ ∈ G`: the multiset of lengths of the cycles (including cycles of
length `1`) of the permutation induced by `σ` on the complex zeros of `f`. -/
noncomputable def cyclePattern (f : ℤ[X]) (σ : GalGroup f) : Multiset ℕ :=
haveI : Fact ((ratPoly f).map (algebraMap ℚ ℂ)).Splits := ⟨IsAlgClosed.splits _⟩
(Gal.galActionHom (ratPoly f) ℂ σ).partition.parts
/-- The decomposition type of `f` modulo the prime `p`: the multiset of degrees of the monic
irreducible factors of `f mod p` over `𝔽_p` (counted with multiplicity). -/
noncomputable def decompositionType (f : ℤ[X]) (p : ℕ) [Fact p.Prime] : Multiset ℕ :=
(UniqueFactorizationMonoid.normalizedFactors (f.map (Int.castRingHom (ZMod p)))).map natDegree
/-- The set of primes `p ∤ Δ(f)` for which `f mod p` has decomposition type `t`. -/
def decompositionTypeSet (f : ℤ[X]) (t : Multiset ℕ) : Set ℕ :=
{p | ∃ hp : p.Prime, ¬ (p : ℤ) ∣ f.discr ∧
(haveI : Fact p.Prime := ⟨hp⟩; decompositionType f p) = t}
open scoped Classical in
/-- The cycle pattern of the Frobenius automorphism `x ↦ x ^ p`, acting on the zeros of a
polynomial `g` over `𝔽_p` in its splitting field. -/
noncomputable def frobeniusCyclePattern (p : ℕ) [Fact p.Prime] (g : (ZMod p)[X]) :
Multiset ℕ :=
haveI : Fact (g.map (algebraMap (ZMod p) g.SplittingField)).Splits :=
⟨SplittingField.splits g⟩
(Gal.galActionHom g g.SplittingField
(FiniteField.frobeniusAlgEquivOfAlgebraic (ZMod p) g.SplittingField)).partition.parts
end ChebotarevDensity
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent that drafted the statements
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statements (Aristotle, by Harmonic), at the proposal owner's explicit request. It is not independent testimony: the author knew the intended meaning when writing it. Reviewers should compare it against the Lean code themselves rather than rely on it as a blind audit.
The file declares, in namespace ChebotarevDensity:
- An instance: for every , the splitting field of is a number field.
- for , : the real function
tends to as with . The sum is an unconditional sum over the subtype of primes in (Lean's tsum, which is if the family is not summable; for it is summable). Non-primes in are ignored. The logarithm is the real logarithm.
3. : as through , (real division; the denominator is for , where the quotient is by convention, which does not affect the limit).
4. For : is the image of in ; is the splitting field of over ; is the group of -algebra automorphisms of .
5. for , : there exists an ideal of the ring of integers which is prime (in particular proper), contains the image of , and satisfies for all , where is the cardinality of (this equals when is prime; if is not prime, is the prime below , or if , which can happen only for ). The action of on is the restriction of .
6. for a conjugacy class of : the set of such that is prime, does not divide the discriminant (Mathlib's Polynomial.discr, the usual discriminant with the usual sign convention), and some satisfies .
7. : the multiset of cycle lengths, including cycles of length , of the permutation that induces on the set of distinct complex roots of (via the embedding of into used by Gal.galActionHom). Repeated roots are counted once, since the root set is a set.
8. for a prime : the multiset of degrees of the normalized (monic) irreducible factors of in , counted with multiplicity (empty if is a nonzero constant; if the normalized factor multiset is empty by Mathlib convention).
9. for a multiset of naturals: the set of primes with and .
10. for a prime and : the multiset of cycle lengths (fixed points included) of the permutation of the distinct roots of in its splitting field induced by the automorphism of over .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.