Double-counting certificates for bounded reachability #
This is the branch semantics of Figure 1 in the March 31, 1999 version of
Reinhardt and Allender, Making Nondeterminism Unambiguous,
Section 2, proof of Theorem 2.2. The edges are unweighted, and a scan in a fixed order
makes one choice per vertex: skip it or supply an actual walk of at most k edges.
The transcript is indexed by vertex so that permuting scan order cannot introduce spurious
ambiguity. Walks are vertex lists in a directed relation, with no padding steps.
The supplied count must equal the size of the breadth-first round, and the supplied sum must equal the sum of its shortest distances. The count forces the scan to cover the round, and the sum forces each supplied walk to be shortest. Thus a successful transcript determines membership even for a vertex outside the round. Its uniqueness is equivalent to uniqueness of the shortest walk at every vertex of the round.
Main results #
Cslib.DoubleCounting.passes_iff: exact characterization of successful transcripts.Cslib.DoubleCounting.existsUnique_passes_iff: exact ambiguity criterion for Figure 1.
This certificate model does not encode machine choice bits or certify the resources of a machine generating the transcript.
The least number of edges in a walk from s to v, with zero used outside the reachable set.
Only distances of vertices in the current round enter the sum.
A reached vertex has a walk whose length is its distance, bounded by the round index.
A scan transcript chooses either no walk or a list of vertices for each vertex.
Vertices for which the scan guessed a walk.
Number of edges guessed for a vertex. A skipped vertex contributes zero.
The two registers checked at the end of a scan.
Terminal count and length sum of the chosen walks.
The final test compares the two registers with their expected values.
The scan's terminal checks, using the correct count and distance sum as inputs. The chain condition also checks the initial and final vertices of each guess.
Exactly the successful transcripts choose a shortest walk at every vertex of the round and skip every other vertex. This also determines the Boolean answer for any queried vertex.
A successful scan returns true exactly for vertices in the breadth-first round.
The correct count and sum always admit a successful scan, even when shortest walks tie.
With exact counts, Figure 1 has exactly one successful transcript if and only if each round vertex has exactly one shortest walk from the source.
The only successful radius-zero transcript selects the singleton walk at the source.
Relabeling the graph preserves the existence of a unique passing transcript. In particular, a finite carrier can be indexed by consecutive vertex IDs.