Normal numbers #
A real number $x$ is normal in base $b$ if every digit $d \in \{0,1,\dots,b-1\}$ appears with asymptotic frequency $1/b$ in the base-$b$ expansion of $x$.
A number that is normal in every integer base $b \ge 2$ is called absolutely normal.
Despite extensive empirical evidence, it remains unknown whether classical constants such as $\pi$, $e$, or $\sqrt{2}$ are normal in any base.
References:
Main definitions #
digitSeq: the sequence of digits in the base-bfractional expansion of a real number.IsNormalInBase: a real number is normal in baseb.IsAbsolutelyNormal: a real number is normal in every baseb ≥ 2.
The n-th digit (0-indexed) after the radix point in the base-b
expansion of x.
Concretely,
digitSeq b x n = ⌊b^(n+1) * {x}⌋ mod b,
where {x} denotes the fractional part of x.
Instances For
A real number x is normal in base b
if every digit d < b appears with asymptotic frequency 1 / b
in the base-b fractional expansion of x.
Equations
- NormalNumber.IsNormalInBase b x = ∀ d < b, Filter.Tendsto (fun (n : ℕ) => ↑{k ∈ Finset.range n | NormalNumber.digitSeq b x k = d}.card / ↑n) Filter.atTop (nhds (1 / ↑b))
Instances For
A real number x is absolutely normal
if it is normal in every integer base b ≥ 2.
Equations
- NormalNumber.IsAbsolutelyNormal x = ∀ (b : ℕ), 2 ≤ b → NormalNumber.IsNormalInBase b x