Endpoint minima as orbit checkpoints #
Rank the states of a functional graph. Mark a state when its next L + 1 states, counting
the state itself, are distinct and either endpoint has minimum rank. An orbit with a simple
prefix of length 2 * L then reaches a mark in fewer than L steps. More precisely, the
index of any minimum in the prefix determines the mark by a single comparison.
The selection rule adapts Edgar's closed syncmers to orbit windows Edgar, Methods, “Closed syncmers”, and Fig. 1. Edgar breaks ties on the left. Here either endpoint may be tied for the minimum. The size of the mark set depends on the ranking.
The orbit window from z through f^[L] z is simple and has a minimum at an endpoint.
Folding a minimum index in a simple prefix of length 2 * L selects a window whose
minimum is at the left endpoint in the first half and at the right endpoint in the second.
Every simple prefix of length 2 * L reaches an endpoint checkpoint within its first
L states. The ranking and the starting state are arbitrary.
For an orbit still in its transient part after at least 2 * L steps, some checkpoint
on that orbit is at most 2 * L steps before the target. The first inequality on depths
ensures that a forward walk from the checkpoint can reach the target.
Every ancestor in the target depth window yields the same answer. Taking the difference of depths gives the exact suffix length to walk, bounded by the width of the window.