Hole-bounded languages that are not scope-bounded #
The second sentence of Proposition 2 of [AGKR20] states that some
languages are K-hole-bounded for a constant K but not K'-round-, context- or scope-bounded for
any K'. The witness is the visibly pushdown language
L_bh = {aⁿ bⁿ (a^{p₁} c^{p₁+1} b^{q₁} d^{q₁+1}) ⋯ (a^{pₙ} c^{pₙ+1} b^{qₙ} d^{qₙ+1})},
where a, b push on stacks 0, 1 and c, d pop from them. We prove both halves for every
MPDA that reads these letters visibly, that is, whose transitions on each letter perform an
operation of the kind the letter prescribes.
Main definitions #
MPDA.HoleSeparation.language: the languageL_bh.
Main results #
MPDA.HoleSeparation.holeBounded_two: complete runs of a visibly MPDA on words ofL_bhare2-hole-bounded.MPDA.HoleSeparation.not_scopeBounded: for everyKand everymwithK < 2 * m, complete runs of a visibly MPDA onaᵐ bᵐ (c d)ᵐ ∈ L_bhare notK-scope-bounded.MPDA.HoleSeparation.exists_not_roundBounded: hence for everyK,L_bhhas a word on which no run isK-scope-, context- or round-bounded.
These are the run-level steps. MPDA.HoleSeparation.language_separates_holeBounded_scopeBounded in
SeparationAutomaton.lean combines them with a finite visibly MPDA recognizing exactly L_bh into
the separation of languages.
Implementation notes #
The paper's argument is about the visible operation sequence of the words of L_bh, and this file
states the result for visibly MPDAs. Whether the separation holds when stack operations are hidden,
as in the acceptance condition of MPDA, is open (cslib-frontier issue #6712). The paper's witness
for unbounded scope is aᵐ bᵐ (a c² b d²)ᵐ; we use the simpler aᵐ bᵐ (c d)ᵐ, the words of L_bh
with pᵢ = qᵢ = 0, whose scope is likewise 2 * m.
References #
- [S. Akshay, P. Gastin, S. Krishna, S. Roychowdhury, Revisiting Underapproximate Reachability for Multipushdown Systems] [AGKR20]
Contexts of visibly read factors #
The language L_bh #
A group aᵖ cᵖ⁺¹ b^q d^(q+1): a well-nested factor on each stack, each followed by one extra
pop.
The language L_bh = {aⁿ bⁿ G₁ ⋯ Gₙ} of [AGKR20], where each Gᵢ
is a group.
L_bh is 2-hole-bounded, the hole bound in the second sentence of Proposition 2 of
[AGKR20] (arXiv:2002.05950v2, Section 2.1, printed pp. 6-7): every
run of a visibly MPDA on a word of L_bh is 2-hole-bounded. At each position, the only first
pending hole pushes can be the first a and the first b: pushes inside groups are closed by
well-nested continuations, and every other pending a or b belongs to the hole of the push
before it.
Unbounded scope #
L_bh has unbounded scope, the scope half of the second sentence of Proposition 2 of
[AGKR20] (arXiv:2002.05950v2, Section 2.1, printed pp. 6-7): a run of a
visibly MPDA on aᵐ bᵐ (c d)ᵐ is not K-scope-bounded for K < 2 * m. The first a is popped by
the last c, and the 2 * m + 1 positions of the first a, the first b and every c and d
but the last d alternate between the two stacks, so they lie in pairwise distinct contexts.
For every K, L_bh has a word on which no run of a visibly MPDA is K-scope-, K-context-
or K-round-bounded. This is the run-level step of the second sentence of Proposition 2 of
[AGKR20]; the separation of languages is
MPDA.HoleSeparation.language_separates_holeBounded_scopeBounded, which also shows that a finite
visibly MPDA recognizes exactly L_bh.