AFTD Auto-Formalizing Theoretical Domains

least_eventual_period_nat

def

The least eventual period of a sequence g : ℕ → ℕ of natural numbers is the infimum of the set of its positive eventual periods.

Statement

noncomputable def least_eventual_period_nat (g : ℕ → ℕ) : ℕ
Defined in
arXiv:2611.31336
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • is_eventual_period_natA positive integer p is an eventual period of a sequence g : ℕ → ℕ of natural numbers if there exists N : ℕ such that g (n + p) = g n for…

Read back from the Lean

least_eventual_period_nat defines a function mapping each sequence g : ℕ → ℕ to the infimum (sInf) in ℕ of the set of all positive natural numbers p that are eventual periods of g (meaning 0 < p and there exists N : ℕ such that for all n ≥ N, g (n + p) = g 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 eventual period of a sequence of natural numbers. -/
noncomputable def least_eventual_period_nat (g : ℕ → ℕ) : ℕ := sInf {p : ℕ | is_eventual_period_nat g p}
See it in the graphDiscuss this resultChallenge it