FormalConjecturesForMathlib/NumberTheory/NormalNumber.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
5 declarations, 0 contain sorry, 0 declared as axioms
Normal numbers
A real number $x$ is simply 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$. It is normal in base $b$ if, for every $k \ge 1$, every string of $k$ digits appears with asymptotic frequency $1/b^k$.
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.IsSimplyNormalInBase: a real number is simply normal in baseb.IsNormalInBase: a real number is normal in baseb.IsAbsolutelyNormal: a real number is normal in every baseb ≥ 2.
Imported by 3 files
- def
NormalNumber.digitSeqThen-th digit (0-indexed) after the radix point in the base-bexpansion ofxline 59 sourceSource documentation
The
n-th digit (0-indexed) after the radix point in the base-bexpansion ofx.Concretely,
digitSeq b x n = ⌊b^(n+1) * {x}⌋ mod b, where{x}denotes the fractional part ofx.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
HMod.hMod,Nat.floor,HMul.hMul,HPow.hPow,HAdd.hAdd,OfNat.ofNat,Int.fract19 instances, coercions and auxiliary constants left out.
noncomputable def digitSeq (b : ℕ) (x : ℝ) (n : ℕ) : ℕ := …
- def
NormalNumber.IsSimplyNormalInBaseA real numberxis simply normal in basebif every digitd < bappears with asymptotic frequency1 / bin the base-bfractional expansion ofxline 65 sourceSource documentation
A real number
xis simply normal in basebif every digitd < bappears with asymptotic frequency1 / bin the base-bfractional expansion ofx.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
LT.lt,Filter.Tendsto,HDiv.hDiv,Finset.card,Finset.filter,Eq, NormalNumber.digitSeq,Finset.range,Filter.atTop,nhds,OfNat.ofNat13 instances, coercions and auxiliary constants left out.
noncomputable def IsSimplyNormalInBase (b : ℕ) (x : ℝ) : Prop := …
- def
NormalNumber.IsNormalInBaseDocumented declaration: IsNormalInBase line 77 sourceSource documentation
A real number
xis normal in basebif every stringwofkdigits< bappears with asymptotic frequency1 / b ^ kin the base-bfractional expansion ofx, that is, the proportion of positionsi < nat whichwoccurs tends to1 / b ^ k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
Fin,LT.lt,Filter.Tendsto,HDiv.hDiv,Finset.card,Finset.filter,Eq, NormalNumber.digitSeq,HAdd.hAdd,Finset.range,Filter.atTop,nhds,OfNat.ofNat,HPow.hPow21 instances, coercions and auxiliary constants left out.
noncomputable def IsNormalInBase (b : ℕ) (x : ℝ) : Prop := …
- theorem
NormalNumber.IsNormalInBase.isSimplyNormalInBaseA number that is normal in basebis simply normal in basebline 86 sourceSource documentation
A number that is normal in base
bis simply normal in baseb.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real, NormalNumber.IsNormalInBase, NormalNumber.IsSimplyNormalInBaseProof uses:
LT.lt,Eq.mpr,Filter.Tendsto,HDiv.hDiv,Finset.card,Finset.filter,Eq, NormalNumber.digitSeq,Finset.range,Filter.atTop,nhds,OfNat.ofNat,Inv.inv,id,congrArg,Filter,one_div,Eq.mp,Fin,HAdd.hAddand 13 more31 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem IsNormalInBase.isSimplyNormalInBase {b : ℕ} {x : ℝ} (h : IsNormalInBase b x) : IsSimplyNormalInBase b x := by …Mentions: NormalNumber.IsNormalInBase, NormalNumber.IsSimplyNormalInBase
- def
NormalNumber.IsAbsolutelyNormalA real numberxis absolutely normal if it is normal in every integer baseb ≥ 2line 93 sourceSource documentation
A real number
xis absolutely normal if it is normal in every integer baseb ≥ 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
Nat,LE.le,OfNat.ofNat, NormalNumber.IsNormalInBase2 instances, coercions and auxiliary constants left out.
noncomputable def IsAbsolutelyNormal (x : ℝ) : Prop := …