Prefix-coherence API #
Supporting lemmas relating champBlocks to champPrefix/champDigit:
champBlocks is
prefix-monotone in N, so champBlocks_getElem shows any sufficiently
long block computes the same digit as champDigit, and champPrefix
(the first n digits) agrees with mapping champDigit over
List.range n. Used by Positions.lean, Asymptotics.lean, and
Main.lean's proof; not needed to state champernowne_normal itself
(see Defs.lean).
Coherence: any sufficiently long prefix computes champDigit.
The first n digits of the base-b Champernowne sequence.
Equations
- Champernowne.champPrefix b n = List.take n (Champernowne.champBlocks b n)