A bounded first-return scan lists one complete periodic orbit #
The scan's clock may exceed the orbit length. Stopping just before the first return produces the literal directed orbit word, retaining a singleton for a fixed point. The bound is independent of the representation of the orbit's elements.
theorem Function.firstReturnWord_eq {α : Type u_1} [DecidableEq α] (f : α → α) (a : α) (bound : ℕ) (hpos : 0 < minimalPeriod f a) (hbound : minimalPeriod f a ≤ bound) :
have following := List.map (fun (k : ℕ) => f^[k + 1] a) (List.range bound);
a :: List.take (List.idxOf a following) following = List.map (fun (k : ℕ) => f^[k] a) (List.range (minimalPeriod f a))
A bounded first-return scan is exactly one directed orbit period, including period one. No assumption is made about the behavior of the function outside the selected orbit.