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 #
NumberField.Set.HasNaturalDensity: ratio-normalized natural density for a set of prime ideals.NumberField.Set.hasNaturalDensity_def: the defining ratio-convergence characterization.NumberField.Set.HasNaturalDensity.union,NumberField.Set.hasNaturalDensity_biUnion_finsetandNumberField.Set.HasNaturalDensity.compl: finite Boolean calculus for natural density.NumberField.Set.hasNaturalDensity_of_finite: every finite set of prime ideals has natural density zero.NumberField.Set.hasNaturalDensity_iff_of_symmDiff: two prime sets whose symmetric difference has natural density zero have the same natural densities;NumberField.Set.hasNaturalDensity_iff_of_finite_symmDiffis the case of a finite symmetric difference.NumberField.Set.hasNaturalDensity_iff_tendsto_div_div_logandNumberField.Set.hasNaturalDensity_iff_isLittleO_logIntegral:Shas natural densityδif and only ifπ_S(x) / (x / log x) → δ, if and only ifπ_S(x) = δ Li(x) + o(x / log x).NumberField.Set.hasNaturalDensity_zero_iff_isLittleO:Shas natural density zero if and only ifπ_S(x) = o(x / log x).NumberField.Set.isUpperDirichletDensityBound_of_eventually_primeCount_leandNumberField.Set.isLowerDirichletDensityBound_of_eventually_le_primeCount: an eventual one-sided bound on the proportion of primes ofSbelowxis the same one-sided bound for Dirichlet density.NumberField.Set.hasDirichletDensity_of_hasNaturalDensity: natural density implies Dirichlet density, with the same value.
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
- NumberField.Set.HasNaturalDensity S δ = Filter.Tendsto (fun (x : ℝ) => TauCeti.primeCount K S x / TauCeti.primeCount K Set.univ x) Filter.atTop (nhds δ)
Instances For
Unfolds HasNaturalDensity to the convergence of the ratio of prime counts.
A set of prime ideals has at most one natural density.
The empty set of prime ideals has natural density zero.
The set of all prime ideals has natural density one.
A natural density is nonnegative.
A natural density is at most one.
Inclusion of prime sets orders their natural densities, when both densities exist.
Natural density is additive on disjoint unions of prime sets.
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).