Completeness of the emptiness procedure #
If an MPDA has a K-hole-bounded accepting run, repaired Algorithm 1 of
[AGKR20] (MPDA.isEmpty) answers false. With soundness, this is
Theorem 1 for repaired Algorithm 1 (MPDA.isEmpty_iff), for every K; the source states
Theorem 1 for positive K. Starting the search from the initial state alone, as printed, is not
complete (CslibFrontierTests.MPDA.Emptiness).
The run is cut at its events: the positions after a maximal well-nested factor, where the next
transition is a pop or a push that is not closed by a well-nested continuation (MPDA.wnEnd). A
hole push opens a chain, which extends greedily by the least later hole push of the same stack
behind a well-nested factor; the chain is one AddHole step. A pop matches the newest push of the
last chain of its stack and is one AddPop step. When a chain opens, Definition 1 counts at least
one more open hole than there are open chains, so a K-hole-bounded run never needs more than K
of them.
Main results #
MPDA.isEmpty_eq_false_of_mem_boundedLanguage: if some word has aK-hole-bounded accepting run, repaired Algorithm 1 answersfalse.MPDA.isEmpty_iff: Theorem 1 for repaired Algorithm 1.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
The next event #
Greedy chains #
The counting guard #
Pushes of different chains are at different positions.
The counting guard: a new hole push at t comes with at least one more open hole, in the
sense of Definition 1, than there are open chains.
Helper lemmas #
The converse of splitLastHole_eq_some.
Blocks of greedy chains along a run #
Prepend an atomic hole segment to a realization.
The block of a greedy chain along a run: from a push at q, the greedy chain is a hole
block, the run through it realizes the hole triple from the state at q to the state at the end of
the block, and pushes the chain's symbols on stack i.
The completeness invariant #
The pop step #
The hole step #
Completeness #
Completeness of repaired Algorithm 1 of [AGKR20]: if some
word has a K-hole-bounded accepting run, the search answers false.
Theorem 1 of [AGKR20], for repaired Algorithm 1: the search
answers true exactly when no word has a K-hole-bounded accepting run. It holds for every K,
including K = 0; the source states Theorem 1 for positive K.