least_preperiod
def
The least preperiod of a sequence s : ℕ → α with respect to a period p is the infimum of the set of natural numbers L such that s (n + p) = s n for all n ≥ L.
Statement
noncomputable def least_preperiod {α : Type*} (s : ℕ → α) (p : ℕ) : ℕ
- Defined in
- arXiv:2611.31336
- Verified
- 25 Nov 2026
- Axioms
- none listed
Read back from the Lean
least_preperiod is defined as a noncomputable function taking an implicit type α, a sequence s : ℕ → α, and a natural number p : ℕ, returning the infimum (sInf) in ℕ of the set of natural numbers L such that for all n ≥ L, s (n + p) = s n.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The least preperiod of a sequence with respect to a period. -/ noncomputable def least_preperiod {α : Type*} (s : ℕ → α) (p : ℕ) : ℕ := sInf {L : ℕ | ∀ n ≥ L, s (n + p) = s n}