Executed clockwise successors of an orthogonal drawing #
Each dart reads the actual first or last segment of its supplied route. Four scans of the actual dart list look for the next occupied cardinal ray, in the clockwise order east, south, west, north. Binary vertex labels and coordinates remain lookup/comparison data; neither coordinate magnitudes nor vertex names bound a loop.
This module defines the finite computation and its output bounds. Correctness requires comparing it with actual segment germs and deriving numerical genus; neither invariant is an input to the computation.
A dart's actual endpoint label, with the same zero fallback as indexed graph darts.
The next point on the route leaving an indexed dart's endpoint. Shared normalization first fixes the graph's edge orientation; malformed lists keep the original zero fallback.
A fixed clockwise rank: east, south, west, north. The direction function's existing fallback also makes this a total rank on malformed or degenerate segments.
Clockwise cardinal rank of the actual outgoing end segment of an indexed route.
Enumerate candidate successors by positive clockwise displacement, keeping every indexed incidence distinct. The only nonconstant scan bound is the actual edge-list length.
Next occupied clockwise cardinal ray. The fourth pass includes the starting ray, so a genuine degree-one vertex fixes its only dart.
Emit one actual binary successor entry per indexed edge end. This does not perform a planarity search or use an abstract rotation chosen in a proof.
An indexed dart reads the corresponding actual route end, with the original total fallbacks. This separates binary edge/end arithmetic from geometric callers.
Every direction has one of the four fixed ranks, even on malformed route data.
The output table has exactly the actual number of indexed darts.
A candidate is precisely a same-vertex dart together with its positive clockwise displacement. Distinct edge occurrences and end tags remain distinct natural indices.
Every actual input dart appears in the fourth pass. In particular the executed scan has a candidate even before requiring a valid geometric drawing.
The executed successor remains an actual same-vertex dart on every raw drawing. Its geometric correctness requires more, but no malformed point list can escape this bound.
The executed scan returns the unique dart on the first occupied clockwise ray. The hypotheses concern the actual four bounded scans, including the fourth return ray; they do not supply a permutation or a genus certificate.