Successors in a partition into listed directed cycles #
The executed successor scans the supplied words and wraps within the first containing word.
When their flattening is duplicate-free, this is exactly the product of Mathlib's
List.formPerm permutations. Empty words contribute no points, singleton words retain their
fixed points, and points outside the words are fixed. No bound on the ambient type is needed.
Follow the first listed cycle containing a point; fix points absent from every word. The scan is bounded by the actual lists, independently of the representation of a point.
The directed permutation represented by a list of cycle words. Overlapping words are composed in list order; the successor scan agrees when the flattening is Nodup.
A head word not containing the point is skipped by the literal scan.
Points absent from every word are fixed by the product permutation.
The product preserves membership in the union of its words, even if they overlap.
A partition into directed words executes precisely the product of its cycle permutations. In particular the total lookup routine is a permutation on every covered finite carrier.
The product follows each constituent word's own directed successor.
Each nonempty listed word is a complete orbit of the product. Singleton words give fixed-point orbits; empty words make the assertion vacuous.
A point in a stored word has exactly that word as its complete orbit, with no ambient finiteness assumption and without discarding singleton cycles.
Restrict the listed cycle product to a completely covered finite interval. This is a
proof-side permutation of actual positions; the executed successor remains nextInCycles.