Hole-bounded sequences of multistack pushdown automata #
Holes are the underapproximation introduced in Section 2.1 of
[AGKR20] (Definition 1). A hole of stack i is a factor of the form
(↓ᵢ ws)⁺: pending pushes on stack i, each followed by a well-nested sequence. Well-nested
sequences do not distinguish stacks, so the sequences ws may use any stack, while the pending
pushes of a hole all use the same stack. A push that is closed by a well-nested continuation, that
is a push ↓ with matching pop ↑ such that ↓ ws ↑ is well-nested, belongs to a well-nested
sequence and never opens a hole.
A sequence is K-hole-bounded if at most K holes are open at each position.
Main definitions #
MPDA.Matches: the push at one position is matched by the pop at another.MPDA.PendingAt: a push has not been popped by a given position.MPDA.HolePush: a push that is not closed by a well-nested continuation.MPDA.SameHole: two pending hole pushes that belong to the same open hole.MPDA.openHoles: the number of holes open at a position.MPDA.HoleBounded: at mostKholes are open at each position.
Main results #
MPDA.WellNested.holeBounded_zero: well-nested sequences are0-hole-bounded.MPDA.OpenHolePush.sameHole_pred: a hole push directly preceded by a push on the same stack belongs to the hole of that push.
Implementation notes #
Positions are 0-indexed. Matching between a push and a pop is defined by counting the pushes and
pops of the relevant stack in between, so it does not depend on the stack symbols. On runs of an
MPDA the symbols of matching pushes and pops coincide.
Definition 1 of [AGKR20] takes holes to be maximal factors and counts
the holes that have a pending push at a position. We count open holes through their pending
pushes instead. At position x, take the hole pushes that are pending at x, in order. Two
consecutive ones belong to the same hole exactly when they push on the same stack and the factor
between them is well-nested. Each open hole is then counted once, through its first pending push.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
Matching pushes and pops #
The push at position p of w is matched by the pop at position m: they act on the same
stack i, and the factor strictly between them never pops below its initial height of stack i
and returns to it.
Net effect on a stack #
Shifting positions #
Hole pushes and open holes #
Well-nested sequences have no holes #
Every push of a well-nested sequence is closed by a well-nested continuation.
Well-nested sequences are 0-hole-bounded.
Hole pushes on adjacent positions #
A hole push directly preceded by a push on the same stack is not the first pending push of its hole: the two pushes belong to the same hole.