Multistack pushdown automata #
A multistack pushdown automaton (MPDA) with n stacks is a finite control equipped with n
stacks over a common stack alphabet. Every transition carries an input symbol and performs at most
one stack operation: it either leaves all stacks untouched (nop), pushes a symbol onto one stack,
or pops a given symbol from the top of one stack.
Following the conventions of NA, an MPDA extends an LTS over its control states, whose labels
pair an input symbol with a stack operation. We do not impose any finiteness assumption. The
configuration semantics is itself an LTS (MPDA.configLTS), so that the generic LTS API for
multistep transitions applies directly to runs of the automaton.
A word is accepted when some run starts in an initial state with all stacks empty and ends in an
accepting state with all stacks empty, as in Section 2 of [AGKR20].
The paper has a single initial state; we allow a set of initial states, as NA does.
Main definitions #
MPDA.Op: the stack operations of an MPDA.MPDA.OpKind,MPDA.Op.kind: the kind of a stack operation, forgetting the stack symbol.MPDA: multistack pushdown automata.MPDA.Config: configurations, consisting of a control state and the contents of all stacks.MPDA.configLTS: the transition system on configurations.- An
Acceptorinstance for acceptance by final state and empty stacks. MPDA.IsVisibly: every transition on a letter performs the operation kind of that letter.
Main results #
MPDA.configLTS_mTr_state: every run on configurations projects to a run of the control.MPDA.IsVisibly.kind_eq: every operation of a run of a visibly MPDA has the kind of its letter.MPDA.exists_inv_pair_of_configLTS_mTr: an invariant of two-stack configurations and the input read that every transition preserves holds along runs.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
The stack operations of a multistack pushdown automaton with n stacks over the stack
alphabet Γ.
A multistack pushdown automaton with n stacks, control states State, input alphabet Symbol
and stack alphabet Γ. Its transition relation is an LTS over control states, whose labels pair
an input symbol with a stack operation.
Instances For
The contents of n stacks. The head of each list is the top of the stack.
Two stacks #
Two stacks with contents s₀ and s₁.
The kind of a stack operation: a push on stack i, a pop from stack i, or no stack
operation. A visibly pushdown alphabet assigns a kind to each letter.
The transition system on configurations of an MPDA. A configuration c moves to c' with
label μ when the control moves along μ and the stack operation of μ turns the stacks of c
into those of c'.
Repeating a transition #
Repeating k times a transition that pushes γ on stack i and stays in its state.
Repeating k times a transition that pops γ from stack i and stays in its state.
Repeating a transition on two stacks #
An invariant of the control state, the contents of two stacks and the input read so far that holds at the start of a run and is preserved by every transition holds at its end.
Every operation of a run of a visibly MPDA has the kind of its letter.
An MPDA accepts a word if it has a run labelled by that word that starts in an initial state with all stacks empty and ends in an accepting state with all stacks empty.