p. 472 — every add-with-carry sequence is periodic after at most iterations
ProvedCarryRNG.AWC.iterate_r_mem_periodicPtsadd-with-carryp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1random-number-generation
Let be a base, lags, and the add-with-carry map. For every seed , the state is a periodic point of : there is with
Hence the generated sequence is periodic from the -th iterate on, possibly after a short preperiod: "after a few iterations (at most ), the periodic cycle begins". Without the bound the statement would hold for any self-map of a finite set; the content is that the preperiod never exceeds .
Formalization Note Periodicity is Mathlib's Function.periodicPts.
Preamble
import Mathlib import Definitions.Def_CarryRNG_AWC_step
Formal statement
namespace CarryRNG.AWC
theorem iterate_r_mem_periodicPts (b : ℕ) (L : Lags) (hb : 2 ≤ b) (z : State b L.r) :
(step b L)^[L.r] z ∈ Function.periodicPts (step b L) := by sorry
end CarryRNG.AWC
Source
G. Marsaglia and A. Zaman, A new class of random number generators, Ann. Appl. Probab. 1 (1991), p. 472, Section 4.5
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.