Generating a witness run #
When the search of Algorithm 1 of [AGKR20] answers false, the
function MPDA.witness computes an accepting K-hole-bounded run (Section 4, Algorithms 5 and 6
of Appendix C).
The run is built backwards from an accepting list, as in Algorithm 6. Each open hole carries a
realization: its atomic hole segments, newest first. These play the role of the source's witness
stacks. A step back over a pop (AddPop) adds the popped atomic segment to the realization of the
hole it shrinks or closes, and appends the pop and a well-nested run (MPDA.wrWitness). A step
back over a new hole (AddHole) appends the block of the hole's realization, each atomic segment a
push followed by a well-nested run (MPDA.blockWitness). Each step reuses a step of the soundness
proof (MPDA.RunsTo).
To keep the backward search finite, predecessors are taken from the lists the search reaches in
one round fewer (MPDA.reachUpTo), computed once until they stabilize (MPDA.stableLayers).
The search enumerates letters, stack symbols and control states, so these types are FinEnum.
Main definitions #
MPDA.witness: a run for aK-hole-bounded accepting run, if the search finds one.
Main results #
MPDA.witness_spec: a returned run is accepting andK-hole-bounded.MPDA.isSome_witness_iff: a run is returned exactly when the search answersfalse.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
Blocks of realizations #
A run of the atomic hole segment (s, γ, t) of stack i: a push of γ, then a well-nested
run.
The run of a realization from s: its atomic segments, oldest first.
The run of a realization is a block run of it.
Rounds of the search #
The lists reached in at most k steps of the search.
The rounds reachUpTo K (k - 1), …, reachUpTo K 0, newest first.
The rounds of the search, computed until they stabilize or the fuel runs out.
The worklist loop only adds lists reached in as many more steps as it has fuel.
The stabilized rounds are the rounds up to some e, and contain every list reached within the
fuel.
The backward search #
The lists rs realize the hole triples holes, one by one.
A list without holes reached by a well-nested run from an initial state.
A step back over a new hole: the last hole of μ is new, and its realization is the last of
rs.
A step back over a pop that shrinks the hole at position j of μ: the parent list has the
larger hole, whose realization adds the popped atomic segment.
A step back over a pop that closes a hole: the parent list has one more hole, at position
j, realized by the popped atomic segment alone.
The backward search (Algorithm 6) from the list μ whose holes are realized by rs, with
predecessors taken from the rounds Rs, newest first.
Soundness of the backward search #
The hypothesis on the recursive call of a backward step.
Soundness of the backward search: a found run reaches the list.
Completeness of the backward search #
Completeness of the backward search: from a list reached in d steps, with any
realization of its holes, the search with at least d rounds succeeds.
The witness #
Witness generation (Section 4 of [AGKR20]): an accepting
K-hole-bounded run, if the search of Algorithm 1 finds one. The rounds of the search are
computed until they stabilize; from an accepting list, the run is built backwards
(MPDA.holeWitness) and ends with a well-nested run to a final state.
Soundness of the witness: a returned run is accepting and K-hole-bounded.
A returned run reads a word of the K-hole-bounded language.
Completeness of the witness: a run is returned exactly when the search of Algorithm 1
answers false, that is, by Theorem 1, exactly when the K-hole-bounded language is not
empty.