Documentation

CslibFrontier.Computability.Automata.MPDA.Separation

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 #

Main results #

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 #

Contexts of visibly read factors #

The language L_bh #

a and b push on stacks 0 and 1, c and d pop from them.

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.

theorem Cslib.Automata.MPDA.HoleSeparation.holeBounded_two {State : Type u_1} {Γ : Type u_2} {M : MPDA 2 State Letter Γ} (hM : M.IsVisibly kind) {c c' : Config 2 State Γ} {w : List (Letter × Op 2 Γ)} (h : M.configLTS.MTr c w c') (hw : List.map Prod.fst w ∈ language) :

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 #

The word aᵐ bᵐ (c d)ᵐ of L_bh, with groups c d.

theorem Cslib.Automata.MPDA.HoleSeparation.not_scopeBounded {State : Type u_1} {Γ : Type u_2} {M : MPDA 2 State Letter Γ} (hM : M.IsVisibly kind) {c c' : Config 2 State Γ} {w : List (Letter × Op 2 Γ)} (h : M.configLTS.MTr c w c') {m : ℕ} (hw : List.map Prod.fst w = word m) {K : ℕ} (hK : K < 2 * m) :

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.

theorem Cslib.Automata.MPDA.HoleSeparation.exists_not_roundBounded {State : Type u_1} {Γ : Type u_2} {M : MPDA 2 State Letter Γ} (hM : M.IsVisibly kind) (K : ℕ) :
∃ v ∈ language, ∀ {c c' : Config 2 State Γ} {w : List (Letter × Op 2 Γ)}, M.configLTS.MTr c w c' → List.map Prod.fst w = v → ¬ScopeBounded K w ∧ ¬ContextBounded K w ∧ ¬RoundBounded K w

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.