Documentation

FormalConjecturesForMathlib.NumberTheory.NormalNumber

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 #

noncomputable def NormalNumber.digitSeq (b : ) (x : ) (n : ) :

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.

Equations
Instances For
    noncomputable def NormalNumber.IsNormalInBase (b : ) (x : ) :

    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
    Instances For
      noncomputable def NormalNumber.IsAbsolutelyNormal (x : ) :

      A real number x is absolutely normal if it is normal in every integer base b ≥ 2.

      Equations
      Instances For