Layering a bounded reachability problem #
A vertex records its time layer and its original vertex. Each edge advances exactly one
layer and either follows the original relation or stays at the original vertex. Thus a walk
of at most T original steps is represented at layer T, including computations that finish
early. The lifted relation has no self edges, even when the original relation does.
This is the bounded-walk construction used by the native configuration-graph reduction in #6747, not an unambiguity or resource theorem for a reachability algorithm.
Main results #
Relation.LayeredVertex.reachable_iff: final-layer reachability is bounded reachability.Relation.LayeredVertex.bounded_reachable_iff_relatesWithinSteps: the same criterion in the finite window from layer zero to the horizon.
A vertex together with its time layer in a layered reachability graph.
- layer : ℕ
The time layer.
- vertex : α
The original vertex.
Edges advance one layer, before the horizon, and follow an original edge or wait. Waiting changes the layered vertex and therefore introduces no self edge.
Layering turns even a reflexive original relation into an irreflexive relation.
Reachability at the final layer is exactly reachability in at most the horizon many original steps. In particular, early termination can be padded without changing the answer.
Vertices in the finite window of layers from zero through the horizon.
Instances For
Restricting to the finite window loses no layered walk between vertices in the window.
In the finite layered window, reaching b at layer T from a at layer zero is equivalent
to an original walk of at most T steps.