Soundness of the emptiness procedure #
If repaired Algorithm 1 of [AGKR20] (MPDA.isEmpty) answers false,
the MPDA has a K-hole-bounded accepting run.
A list of the search abstracts each open hole by a triple (i, s, t) of HSᵢ. For every choice
of a chain of atomic hole segments realizing each triple (MPDA.Realizes), a reachable list comes
from a hole derivation (MPDA.HoleDerivation) together with a run of the MPDA whose stacks hold
the symbols pushed by the chosen segments (MPDA.RunsTo). Each step of the search extends such a
run: a new hole by a block of atomic segments (MPDA.BlockRun), a pop by the pop and a well-nested
run (MPDA.RunsTo.pop, MPDA.RunsTo.popClose). The witness generation of Section 4 reuses these
steps. A pop of the search splits off the last atomic segment
of a hole, so the realization of the shrunk hole extends to one of the old hole that ends with the
popped push. Hole derivations build K-hole-bounded sequences (MPDA.HoleDerivation.holeBounded).
Main results #
MPDA.Reachable.exists_runsTo: every realization of the holes of a reachable list is pushed by a run that reaches the list.MPDA.exists_mem_boundedLanguage_of_isEmpty_eq_false: ifisEmpty M K = false, some word has aK-hole-bounded accepting run.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
Stack contents of open chains #
Runs that reach a list #
The run v from s to t is a hole block of stack i at every position, and pushes the
symbols of the realization r on stack i from any stacks.
A block extends by an atomic hole segment: a push of γ on stack i, then a well-nested
run.
A run of the MPDA from an initial state with empty stacks to the last state of the list μ,
with a hole derivation whose chains have the stacks of the hole triples of μ and push the symbols
of the realizations rs.
A well-nested run from an initial state reaches a list without holes.
A new hole: a block run of a realization extends the run by the
new hole triple, while fewer than K holes are open.
A pop that shrinks a hole: the pop of the newest push of the last hole of stack i,
followed by a well-nested run, drops the last atomic segment of that hole's realization.
A pop that closes a hole: the pop of the only pending push of the last hole of stack i,
followed by a well-nested run, removes that hole.
A run reaching a list without holes, followed by a well-nested run to a final state, is an
accepting K-hole-bounded run.
Realizations of hole triples #
A chain of atomic hole segments of stack i from s to t, as the pushed symbols and the
states after each segment, newest first.
- nil {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {i : Fin n} {s : State} : M.Realizes i s s []
- cons {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {i : Fin n} {s t' t : State} {γ : Γ} {r : List (Γ × State)} : M.Realizes i s t' r → { src := t', sym := γ, dst := t } ∈ M.atomicHoles i → M.Realizes i s t ((γ, t) :: r)
The hole triples of HSᵢ are exactly those with a realization.
A realization of a hole triple gives a run of the MPDA that is a hole block at every position
and pushes the realization's symbols on stack i from any stacks (MPDA.BlockRun).
Reachable lists come from hole derivations #
The soundness invariant: for every realization of the hole triples of a reachable list,
some run of the MPDA reaches the list (MPDA.RunsTo).
Soundness of repaired Algorithm 1 of [AGKR20]: if the search
answers false, some word has a K-hole-bounded accepting run.