Documentation

CslibFrontier.Computability.Automata.MPDA.PhaseSeparation

Hole-bounded and phase-bounded languages are incomparable #

The last sentence of Proposition 2 of [AGKR20] states that there is a language accepted by phase-bounded MPDAs but not by hole-bounded ones, and vice versa. The witnesses are visibly pushdown languages over a, b, c, d, where a and b push on stacks 0 and 1 and c and d pop from them:

As in MPDA.HoleSeparation, the statements are for MPDAs that read the letters visibly, and the separation of languages uses bounded acceptance (MPDA.boundedLanguage). A finite visibly MPDA MPDA.HoleSeparation.phaseAutomaton recognizes exactly L'.

Main definitions #

Main results #

References #

L_bh is not phase-bounded #

theorem Cslib.Automata.MPDA.HoleSeparation.not_phaseBounded {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 is not phase-bounded: a run of a visibly MPDA on aᵐ bᵐ (c d)ᵐ is not K-phase-bounded for K < 2 * m, since its 2 * m pops alternate between the two stacks. This is the claim "L_bh is not k-phase bounded" in the proof of Proposition 2 of [AGKR20] (arXiv:2002.05950v2, printed p. 7).

The language L' #

The word (a b)ⁿ cⁿ dⁿ.

theorem Cslib.Automata.MPDA.HoleSeparation.phaseBounded_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 ∈ phaseLanguage) :

L' is 2-phase-bounded: every run of a visibly MPDA on a word of L' splits into the phase (a b)ⁿ cⁿ, which pops only from stack 0, and the phase dⁿ. This is the claim "L' is 2-phase bounded" in the proof of Proposition 2 of [AGKR20] (arXiv:2002.05950v2, printed p. 7).

L' is not hole-bounded #

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

L' is not hole-bounded: a run of a visibly MPDA on (a b)ⁿ cⁿ dⁿ is not K-hole-bounded for K < n. After (a b)ⁿ, each pending a is a hole push, since the b after it stays pending until after its matching c, and two pending as never belong to the same hole, since a b separates them. This is the claim "L' is not hole-bounded" in the proof of Proposition 2 of [AGKR20] (arXiv:2002.05950v2, printed p. 7).

An automaton recognizing L' #

Control states of phaseAutomaton: reading (a b)ⁿ before an a (x) or before a b (y), reading cⁿ (cs), and reading dⁿ (ds).

Instances For

    A visibly MPDA recognizing L': the as and bs push, and the cs and ds pop them.

    The incomparability of languages #

    theorem Cslib.Automata.MPDA.HoleSeparation.holeBounded_incomparable_phaseBounded :
    ((∃ (State : Type) (Sym : Type) (_ : Finite State) (_ : Finite Sym) (M : MPDA 2 State Letter Sym), M.IsVisibly kind ∧ Acceptor.language M = phaseLanguage ∧ M.boundedLanguage (PhaseBounded 2) = phaseLanguage) ∧ ∀ (K : ℕ) {State : Type u₁} {Γ : Type u₂} (M : MPDA 2 State Letter Γ), M.IsVisibly kind → M.boundedLanguage (HoleBounded K) ≠ phaseLanguage) ∧ (∃ (State : Type) (Sym : Type) (_ : Finite State) (_ : Finite Sym) (M : MPDA 2 State Letter Sym), M.IsVisibly kind ∧ Acceptor.language M = language ∧ M.boundedLanguage (HoleBounded 2) = language) ∧ ∀ (K : ℕ) {State : Type u₃} {Γ : Type u₄} (M : MPDA 2 State Letter Γ), M.IsVisibly kind → M.boundedLanguage (PhaseBounded K) ≠ language

    Hole-bounded and phase-bounded languages are incomparable, the last sentence of Proposition 2 of [AGKR20] (arXiv:2002.05950v2, Section 2.1, printed pp. 6–7) for visibly MPDAs, with bounded acceptance (MPDA.boundedLanguage). The language L' is the 2-phase-bounded language of a finite visibly MPDA, which also recognizes exactly L', but for every K it is not the K-hole-bounded language of any visibly MPDA; and the language L_bh is the 2-hole-bounded language of a finite visibly MPDA (language_separates_holeBounded_scopeBounded), but for every K it is not the K-phase-bounded language of any visibly MPDA. So neither class of languages contains the other.