Documentation

CslibFrontier.Computability.Automata.MPDA.ScopeHoles

Scope-bounded runs are hole-bounded #

The first sentence of Proposition 2 in Section 2.1 of [AGKR20] says that the accepted runs bounded by K in rounds, contexts or scope are K'-hole-bounded for some K' ≤ K. For scope and contexts we prove this with K' = K; for rounds we prove it with K' = K * n.

At a position x, take the first pending push of each open hole, and the pop matching the earliest of them, which comes after x. No two of these positions lie in a common context:

The factor from the earliest push to its pop has at most K + 1 contexts, so there are at most K open holes at x.

Main results #

Implementation notes #

The statements are about complete runs, from empty stacks to empty stacks, as are the accepting runs of the source. Without this, pushes that are never popped could open unboundedly many holes in a sequence that is trivially scope-bounded.

References #

Factors and runs #

Single contexts #

Matches #

Open holes and contexts #

Scope-bounded runs are hole-bounded #

theorem Cslib.Automata.MPDA.ScopeBounded.holeBounded {n : ℕ} {Γ : Type u_1} {α : Type u_2} {State : Type u_4} {M : MPDA n State α Γ} {s s' : State} {w : List (α × Op n Γ)} {K : ℕ} (h : ScopeBounded K w) (hrun : M.configLTS.MTr { state := s, contents := Stacks.empty } w { state := s', contents := Stacks.empty }) :

The first sentence of Proposition 2 in Section 2.1 of [AGKR20], for scope: the label sequence of a complete K-scope-bounded run is K-hole-bounded.

theorem Cslib.Automata.MPDA.RoundBounded.holeBounded {n : ℕ} {Γ : Type u_1} {α : Type u_2} {State : Type u_4} {M : MPDA n State α Γ} {s s' : State} {w : List (α × Op n Γ)} {K : ℕ} (h : RoundBounded K w) (hrun : M.configLTS.MTr { state := s, contents := Stacks.empty } w { state := s', contents := Stacks.empty }) :
HoleBounded (K * n) w

The first sentence of Proposition 2 in Section 2.1 of [AGKR20], for rounds, with the bound K * n instead of K: the label sequence of a complete run with at most K rounds is K * n-hole-bounded.