stein_number_count
def
Given a real number X, the counting function stein_number_count X is defined as the real number of natural numbers n in Finset.Ioc 0 ⌊X⌋₊ that satisfy is_stein_number n.
Statement
noncomputable def stein_number_count (X : ℝ) : ℝ
- Defined in
- arXiv:2611.05898, Definition 1.5
- Verified
- 05 Nov 2026
- Axioms
- none listed
- Built on 1
- is_stein_numberA positive integer n is an E. P. Stein number if, with m = Nat.sqrt n, both n - m^2 and n + m^2 are positive squares.
- Used by 1
- stein_residualGiven a real number Y, the normalized residual stein_residual Y is defined as stein_number_count (Y ^ 4) / Y - (4 / Real.pi ^ 2) *…
Read back from the Lean
stein_number_count X is defined as the number (coerced to a real number) of natural numbers n in the half-open interval (0, ⌊X⌋₊] that satisfy is_stein_number n.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The number of E. P. Stein numbers less than or equal to X. -/ noncomputable def stein_number_count (X : ℝ) : ℝ := open Classical in ((Finset.Ioc 0 ⌊X⌋₊).filter is_stein_number).card