Length-bounded directed connectivity #
A BoundedSTCONInstance consists of an adjacency-matrix connectivity instance and a binary
length bound. BoundedSTCON asks for a walk of at most that many arcs; allowing repeated
vertices does not change this question, since cycles can be removed.
This module proves the mathematical layered-graph construction for Exercise 5.19 of
[Gol08] (January 2007 draft, printed p. 197). The machine certificate and NL membership
are in BoundedSTCON/LogSpace and BoundedSTCON/Membership.
Main results #
BoundedSTCONInstance.capped_iff: capping the bound at the vertex count preserves the answer.BoundedSTCONInstance.layered_mem_iff: the layered graph is inSTCONexactly when the original instance has a walk within its bound.
Directed connectivity with a bound on the number of arcs.
- graph : STCONInstance
The adjacency-matrix graph and its source and target, in the existing STCON format.
- bound : ℕ
The maximum number of arcs, encoded in binary.
The tuple of the fields of encBoundedSTCON.
A framed encSTCON graph followed by the binary digits (encNat) of the length bound.
Instances admitting a directed source-to-target walk with at most bound arcs.
The number of useful transitions: longer walks can have their cycles removed.
Capping the binary bound at the vertex count preserves bounded reachability.
The directed layered instance: each arc advances one layer and follows an original arc or stays at the same original vertex.
The layered graph reaches its final-layer target exactly when the original graph has a source-to-target walk within the given bound. Zero bounds and coinciding terminals are included.