Documentation

TauCeti.NumberTheory.ArithmeticDirichletSeries.NaturalDensity

Natural density of sets of prime ideals #

For a number field K, this file defines the natural density of a set S of nonzero prime ideals as the limit

  primeCount K S x / primeCount K Set.univ x

as the inclusive real cutoff x tends to infinity. This normalization matches Mathlib's ratio-normalized NumberField.Set.HasDirichletDensity: a density is measured relative to all prime ideals of the same number field, rather than relative to an external approximation such as x / log x.

The denominator really tends to infinity. Indeed, lying over supplies a prime of 𝓞 K above every rational prime, so the height-one spectrum is infinite. Its bounded-norm subsets are finite and exhaust the spectrum, whence their cardinalities tend to infinity. This fact both makes the whole spectrum have density one and ensures that a fixed finite error disappears in the ratio. More generally, a set of density zero can be added or removed without changing a natural density.

Comparison with x / log x is a theorem rather than the definition. The prime ideal theorem π_K(x) ~ x / log x (TauCeti.primeCount_univ_isEquivalent_div_log) shows that S has natural density δ exactly when π_S(x) / (x / log x) → δ, equivalently when π_S(x) = δ Li(x) + o(x / log x).

Main results #

The comparison with Dirichlet density rests on two inputs. Abel summation against the decreasing function t ↦ t ^ (-s) (TauCeti.tsum_mul_le_of_summatory_le) turns an eventual bound π_S(x) ≤ c · π(x) into a bound P_S(s) ≤ c · P(s) + C with C independent of s > 1, where P_S is Mathlib's NumberField.Set.primeIdealZetaSum S. The all-prime sum P(s) tends to infinity as s → 1⁺ (TauCeti.tendsto_primeIdealZetaSum_univ_atTop), so the constant C disappears from the ratio P_S(s) / P(s).

For the natural and Dirichlet densities of rational primes and the implication from natural to Dirichlet density, see J.-P. Serre, A Course in Arithmetic, Chapter VI, §4.5. For Dirichlet density of prime ideals in number fields, see J. Neukirch, Algebraic Number Theory, Chapter VII, §13.

A set S of height-one primes of a number field has natural density δ when the proportion of primes of S below x, relative to all primes below x, tends to δ as x → ∞.

Both counts use the inclusive real cutoff fixed by TauCeti.primeCount.

Equations
Instances For

    Unfolds HasNaturalDensity to the convergence of the ratio of prime counts.

    A set of prime ideals has at most one natural density.

    @[simp]

    The empty set of prime ideals has natural density zero.

    @[simp]

    The set of all prime ideals has natural density one.

    A natural density is nonnegative.

    A natural density is at most one.

    theorem NumberField.Set.HasNaturalDensity.mono {K : Type u_1} [Field K] [NumberField K] {S T : Set (IsDedekindDomain.HeightOneSpectrum (RingOfIntegers K))} {δ ε : ℝ} (hST : S ⊆ T) (hS : HasNaturalDensity S δ) (hT : HasNaturalDensity T ε) :
    δ ≤ ε

    Inclusion of prime sets orders their natural densities, when both densities exist.

    Natural density is additive on disjoint unions of prime sets.

    theorem NumberField.Set.hasNaturalDensity_biUnion_finset {K : Type u_1} [Field K] [NumberField K] {ι : Type u_2} {s : Finset ι} {f : ι → Set (IsDedekindDomain.HeightOneSpectrum (RingOfIntegers K))} {d : ι → ℝ} (hf : ∀ i ∈ s, HasNaturalDensity (f i) (d i)) (hdisj : (↑s).PairwiseDisjoint f) :
    HasNaturalDensity (⋃ i ∈ s, f i) (∑ i ∈ s, d i)

    Natural density is additive on a finite family of pairwise disjoint prime sets.

    The complement of a set of natural density δ has natural density 1 - δ.

    Every finite set of prime ideals has natural density zero: its count is eventually constant, while the all-prime count tends to infinity.

    A set of prime ideals with nonzero natural density is infinite.

    Every subset of a set of natural density zero has natural density zero.

    Sets of natural density zero are negligible. If T has natural density δ and the symmetric difference of S and T has natural density zero, then S has natural density δ.

    Two prime sets whose symmetric difference has natural density zero have natural density δ simultaneously.

    Changing a set on finitely many prime ideals preserves its natural density.

    Two prime sets with finite symmetric difference have natural density δ simultaneously.

    Natural density implies Dirichlet density #

    Upper natural bounds are upper Dirichlet bounds. If eventually at most the proportion c of the primes of norm at most x lie in S, then c is an upper Dirichlet-density bound for S.

    Lower natural bounds are lower Dirichlet bounds. If eventually at least the proportion c of the primes of norm at most x lie in S, then c is a lower Dirichlet-density bound for S.

    Natural density implies Dirichlet density. A set of prime ideals with natural density δ has Dirichlet density δ.

    Comparison with x / log x #

    Natural density against x / log x. By the prime ideal theorem the all-prime count is asymptotic to x / log x, so a set S of prime ideals has natural density δ exactly when π_S(x) / (x / log x) → δ.

    Natural density from prime counting against the logarithmic integral. A set S of prime ideals has natural density δ exactly when π_S(x) = δ Li(x) + o(x / log x).

    Natural density zero. A set S of prime ideals has natural density zero exactly when π_S(x) = o(x / log x).