Documentation

CslibFrontier.Computability.Automata.MPDA.Emptiness

Computing well-nested reachability #

The emptiness procedure for hole-bounded MPDAs, Algorithm 1 of [AGKR20], starts from the set WR of pairs of control states joined by a well-nested run, computed by Algorithm 2 (WellNestedReach, Appendix B). This file computes WR for an MPDA with finitely many control states, letters and stack symbols and a decidable transition relation.

MPDA.wellNestedPairs M iterates the closure rules of MPDA.WellNestedReach on finite sets of pairs, as many times as there are pairs. Algorithm 2 alternates a transitive closure with a push-pop step until nothing changes; any order of applying the rules reaches the same least fixed point, and the number of iterations is not part of the statements here.

The file then defines the search of repaired Algorithm 1 (MPDA.isEmpty). It differs from the printed algorithm in two ways.

Starting from the initial state alone is not complete: the module client test CslibFrontierTests.MPDA.Emptiness defines this printed-start variant and checks a counterexample.

Main definitions #

Main results #

References #

The closure rules of WR as a monotone map #

def Cslib.Automata.MPDA.wellNestedRule {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} (M : MPDA n State Symbol Γ) (R : Set (State × State)) :
Set (State × State)

One application of the closure rules of WellNestedReach to a relation R: reflexive pairs, a nop transition followed by R, and a push followed by R, a matching pop and R.

def Cslib.Automata.MPDA.wellNestedRuleHom {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} (M : MPDA n State Symbol Γ) :
Set (State × State) →o Set (State × State)

The closure rules of WellNestedReach as a monotone map on relations.

theorem Cslib.Automata.MPDA.lfp_wellNestedRuleHom {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} (M : MPDA n State Symbol Γ) :

The least fixed point of the closure rules is WellNestedReach.

Computing WR #

def Cslib.Automata.MPDA.wellNestedStep {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (R : Finset (State × State)) :
Finset (State × State)

One application of the closure rules of WellNestedReach to a finite relation.

def Cslib.Automata.MPDA.wellNestedPairs {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] :
Finset (State × State)

The set WR of Algorithm 2 of [AGKR20]: the closure rules of WellNestedReach, iterated from the empty relation once for each pair of control states.

theorem Cslib.Automata.MPDA.coe_wellNestedStep {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (R : Finset (State × State)) :
theorem Cslib.Automata.MPDA.coe_iterate_wellNestedStep {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (k : ℕ) :
theorem Cslib.Automata.MPDA.mem_wellNestedPairs {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {s s' : State} :

Lemma 1 for the computed set: (s, s') ∈ WR exactly when the MPDA has a well-nested run from s to s' (MPDA.wellNestedReach_iff).

Hole segments #

structure Cslib.Automata.MPDA.AtomicHole (State : Type u_4) (Γ : Type u_5) :
Type (max u_4 u_5)

An atomic hole segment (s, α, s'): a push of α from s, followed by a well-nested run to s'. The stack of the push is the index of the set AHSᵢ that contains the segment.

  • src : State

    The state where the push starts.

  • sym : Γ

    The pushed stack symbol.

  • dst : State

    The state where the well-nested run after the push ends.

Instances For
    def Cslib.Automata.MPDA.instDecidableEqAtomicHole.decEq {State✝ : Type u_4} {Γ✝ : Type u_5} [DecidableEq State✝] [DecidableEq Γ✝] (x✝ x✝¹ : AtomicHole State✝ Γ✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Cslib.Automata.MPDA.instDecidableEqAtomicHole {State✝ : Type u_4} {Γ✝ : Type u_5} [DecidableEq State✝] [DecidableEq Γ✝] :
    DecidableEq (AtomicHole State✝ Γ✝)
    def Cslib.Automata.MPDA.AtomicHole.equivProd (State : Type u_4) (Γ : Type u_5) :
    AtomicHole State Γ ≃ State × Γ × State

    Atomic hole segments are in bijection with the triples of their fields.

    @[instance_reducible]
    instance Cslib.Automata.MPDA.instFintypeAtomicHole {State : Type u_1} {Γ : Type u_3} [Fintype State] [Fintype Γ] :
    Fintype (AtomicHole State Γ)
    def Cslib.Automata.MPDA.atomicHoles {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (i : Fin n) :
    Finset (AtomicHole State Γ)

    The atomic hole segments AHSᵢ of stack i (Algorithm 1, lines 5–8, of [AGKR20]): the segments (s, α, s') such that a push of α on stack i from s, followed by a well-nested run, reaches s'.

    theorem Cslib.Automata.MPDA.mem_atomicHoles {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {i : Fin n} {s s' : State} {γ : Γ} :
    { src := s, sym := γ, dst := s' } ∈ M.atomicHoles i ↔ ∃ (a : Symbol) (s₁ : State), M.Tr s (a, Op.push i γ) s₁ ∧ M.WellNestedReach s₁ s'
    theorem Cslib.Automata.MPDA.mem_atomicHoles_iff_mTr {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {i : Fin n} {s s' : State} {γ : Γ} :
    { src := s, sym := γ, dst := s' } ∈ M.atomicHoles i ↔ ∃ (a : Symbol) (w : List (Symbol × Op n Γ)), WellNested w ∧ M.MTr s ((a, Op.push i γ) :: w) s'

    An atomic hole segment is a push of α on stack i followed by a well-nested run.

    def Cslib.Automata.MPDA.holeSegments {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidableEq Γ] (i : Fin n) :
    Finset (State × State)

    The hole segments HSᵢ of stack i (Algorithm 1, line 9): the reflexive-transitive closure of the atomic hole segments, forgetting the pushed symbols. The source writes TransitiveClosure; the closure must be reflexive, since AddPop (Algorithm 4) splits off the only atomic segment of a hole through a triple (i, s, s). Reflexivity also lets AddHole (Algorithm 3) open a hole (i, s, s) without taking a transition, even from a state with no push; such a hole is realized by the empty factor.

    theorem Cslib.Automata.MPDA.mem_holeSegments {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidableEq Γ] {i : Fin n} {s s' : State} :
    (s, s') ∈ M.holeSegments i ↔ Relation.ReflTransGen (fun (s s' : State) => ∃ (γ : Γ), { src := s, sym := γ, dst := s' } ∈ M.atomicHoles i) s s'
    structure Cslib.Automata.MPDA.HoleTriple (n : ℕ) (State : Type u_4) :
    Type u_4

    A hole triple (i, s, s') of a list of the search: an open hole of stack i, abstracted by a hole segment from s to s'.

    • stack : Fin n

      The stack of the hole.

    • src : State

      The state where the hole starts, the source of its first push.

    • dst : State

      The state where the hole segment ends.

    Instances For
      @[instance_reducible]
      instance Cslib.Automata.MPDA.instDecidableEqHoleTriple {n✝ : ℕ} {State✝ : Type u_4} [DecidableEq State✝] :
      DecidableEq (HoleTriple n✝ State✝)
      def Cslib.Automata.MPDA.instDecidableEqHoleTriple.decEq {n✝ : ℕ} {State✝ : Type u_4} [DecidableEq State✝] (x✝ x✝¹ : HoleTriple n✝ State✝) :
      Decidable (x✝ = x✝¹)
      def Cslib.Automata.MPDA.HoleTriple.equivProd (n : ℕ) (State : Type u_4) :
      HoleTriple n State ≃ Fin n × State × State

      Hole triples are in bijection with the triples of their fields.

      @[instance_reducible]
      instance Cslib.Automata.MPDA.instFintypeHoleTriple {n : ℕ} {State : Type u_1} [Fintype State] :
      structure Cslib.Automata.MPDA.HoleList (n : ℕ) (State : Type u_4) :
      Type u_4

      A list of the search of Algorithm 1 of [AGKR20]: the open hole triples, oldest first, and the last control state. The source's lists also start with the initial state, which the search does not need.

      • holes : List (HoleTriple n State)

        The open hole triples, oldest first.

      • last : State

        The last control state.

      @[instance_reducible]
      instance Cslib.Automata.MPDA.instDecidableEqHoleList {n✝ : ℕ} {State✝ : Type u_4} [DecidableEq State✝] :
      DecidableEq (HoleList n✝ State✝)
      def Cslib.Automata.MPDA.instDecidableEqHoleList.decEq {n✝ : ℕ} {State✝ : Type u_4} [DecidableEq State✝] (x✝ x✝¹ : HoleList n✝ State✝) :
      Decidable (x✝ = x✝¹)
      def Cslib.Automata.MPDA.splitLastHole {n : ℕ} {State : Type u_1} (i : Fin n) :
      List (HoleTriple n State) → Option (List (HoleTriple n State) × (State × State) × List (HoleTriple n State))

      Split a list of hole triples at its last triple of stack i, l = pre ++ ⟨i, s, s'⟩ :: post where post has no triple of stack i: the result is pre, the endpoints (s, s') and post. This is lastHoleᵢ of Algorithm 4.

      theorem Cslib.Automata.MPDA.splitLastHole_eq_some {n : ℕ} {State : Type u_1} {i : Fin n} {l pre post : List (HoleTriple n State)} {s s' : State} :
      splitLastHole i l = some (pre, (s, s'), post) → l = pre ++ { stack := i, src := s, dst := s' } :: post ∧ ∀ h ∈ post, h.stack ≠ i
      def Cslib.Automata.MPDA.addHole {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (i : Fin n) (μ : HoleList n State) :
      Finset (HoleList n State)

      AddHoleᵢ (Algorithm 3 of [AGKR20]): extend the list with a hole segment of stack i that starts at its last state. Since HSᵢ is reflexive here, this includes the empty hole (i, s, s) at the last state s, opened without a transition.

      def Cslib.Automata.MPDA.addPop {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (i : Fin n) (μ : HoleList n State) :
      Finset (HoleList n State)

      AddPopᵢ (Algorithm 4): a pop from stack i at the last state that matches the last pending push of the last open hole (i, s₁, s₃) of stack i. The hole splits into a hole segment (i, s₁, s₂) and an atomic hole segment (s₂, α, s₃) pushing α, the pop of α leads to s', and a well-nested run continues to s''. The hole shrinks to (i, s₁, s₂); when s₁ = s₂ it may also be removed. Without an open hole of stack i there is no successor.

      def Cslib.Automata.MPDA.successors {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (K : ℕ) (μ : HoleList n State) :
      Finset (HoleList n State)

      The children of a list in the search: holes while fewer than K are open, and pops.

      def Cslib.Automata.MPDA.explore {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (K : ℕ) :
      ℕ → Finset (HoleList n State) → Finset (HoleList n State) → Finset (HoleList n State)

      The worklist loop of Algorithm 1: add the new children of the lists to do, until there are none, or the fuel runs out.

      def Cslib.Automata.MPDA.initialLists {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidablePred fun (x : State) => x ∈ M.start] :
      Finset (HoleList n State)

      The initial lists of the repaired search: a state reached from an initial state by a well-nested run, and no holes. The search as printed starts from the initial state itself (line 10 of Algorithm 1), and so misses runs whose first hole push follows a nonempty well-nested factor.

      def Cslib.Automata.MPDA.listBound (n : ℕ) (State : Type u_4) [Fintype State] (K : ℕ) :

      A bound on the number of lists with at most K holes, used as the fuel of the search.

      def Cslib.Automata.MPDA.isEmptyFrom {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidablePred fun (x : State) => x ∈ M.accept] (init : Finset (HoleList n State)) (K : ℕ) :

      The search of Algorithm 1 from the lists init: true when no list reached without open holes reaches an accepting state through a well-nested run. The source checks the initial state before the loop (line 3) and each new list obtained by a pop (line 25); both checks are this one.

      def Cslib.Automata.MPDA.isEmpty {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidablePred fun (x : State) => x ∈ M.start] [DecidablePred fun (x : State) => x ∈ M.accept] (K : ℕ) :

      Repaired Algorithm 1 of [AGKR20]. It differs from the printed algorithm in two ways: the search starts from the states reached from an initial state by a well-nested run (initialLists), not from the initial state alone; and HSᵢ is the reflexive-transitive closure of AHSᵢ (holeSegments).

      The search computes the reachable lists #

      inductive Cslib.Automata.MPDA.Reachable {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] (M : MPDA n State Symbol Γ) [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (K : ℕ) (init : Finset (HoleList n State)) :
      HoleList n State → Prop

      The lists the search of Algorithm 1 reaches from the lists init: closed under successors.

      theorem Cslib.Automata.MPDA.mem_initialLists {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] [DecidablePred fun (x : State) => x ∈ M.start] {μ : HoleList n State} :
      μ ∈ M.initialLists ↔ μ.holes = [] ∧ ∃ s₀ ∈ M.start, (s₀, μ.last) ∈ M.wellNestedPairs
      theorem Cslib.Automata.MPDA.length_holes_le_of_mem_successors {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {K : ℕ} {μ ν : HoleList n State} (hμ : μ.holes.length ≤ K) (hν : ν ∈ M.successors K μ) :
      theorem Cslib.Automata.MPDA.Reachable.length_le {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {K : ℕ} {init : Finset (HoleList n State)} (hinit : ∀ μ ∈ init, μ.holes = []) {μ : HoleList n State} (h : M.Reachable K init μ) :
      theorem Cslib.Automata.MPDA.mem_explore {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {K : ℕ} {init : Finset (HoleList n State)} (hinit : ∀ μ ∈ init, μ.holes = []) {μ : HoleList n State} :
      μ ∈ M.explore K (listBound n State K) init init ↔ M.Reachable K init μ

      The search of Algorithm 1 returns exactly the reachable lists: the fuel listBound is never exhausted.

      The complexity paragraph after Theorem 1 of [AGKR20] (printed p. 10) bounds the running time by the number of lists the search may generate, times the work per list. Whenever 2 ≤ n |S|², there are fewer than |S| (n |S|²) ^ (K + 1) = |S| ^ (2 * K + 3) * n ^ (K + 1) lists with at most K holes, so the search visits at most |S| ^ (2 * K + 3) * n ^ (K + 1) lists; the printed bound can fail only in the degenerate range n |S|² ≤ 1 (for n = |S| = 1 and K ≥ 1, there are K + 1 lists with at most K holes against the printed bound 1, and for n = 0, |S| ≥ 1, and nonempty init, the printed bound is 0; it still holds when n = |S| = 1, K = 0 or |S| = 0). Each list also has at most n (|S|² + 2 |S|) children under AddHole and AddPop.

      theorem Cslib.Automata.MPDA.card_explore_le {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] {K : ℕ} {init : Finset (HoleList n State)} (hinit : ∀ μ ∈ init, μ.holes = []) (h : 2 ≤ n * Fintype.card State ^ 2) :
      (M.explore K (listBound n State K) init init).card ≤ Fintype.card State ^ (2 * K + 3) * n ^ (K + 1)

      The number of lists of the search: whenever 2 ≤ n * |S|², the search visits at most |S| ^ (2 * K + 3) * n ^ (K + 1) lists, matching the list count in the complexity paragraph after Theorem 1 of [AGKR20] (printed p. 10). The hypothesis 2 ≤ n * |S|² excludes only the degenerate range n * |S|² ≤ 1 where the printed bound can fail (for n = |S| = 1 and K ≥ 1, there are K + 1 lists with at most K holes against the printed bound 1; for n = 0, |S| ≥ 1, and nonempty init, the printed bound is 0; it still holds when n = |S| = 1, K = 0 or |S| = 0).

      theorem Cslib.Automata.MPDA.card_addHole_le {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (i : Fin n) (μ : HoleList n State) :
      (M.addHole i μ).card ≤ Fintype.card State
      theorem Cslib.Automata.MPDA.card_addPop_le {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (i : Fin n) (μ : HoleList n State) :
      (M.addPop i μ).card ≤ Fintype.card State ^ 2 + Fintype.card State
      theorem Cslib.Automata.MPDA.card_successors_le {n : ℕ} {State : Type u_1} {Symbol : Type u_2} {Γ : Type u_3} [Fintype State] [DecidableEq State] [Fintype Symbol] [Fintype Γ] [DecidableEq Γ] {M : MPDA n State Symbol Γ} [(s : State) → (μ : Symbol × Op n Γ) → (s' : State) → Decidable (M.Tr s μ s')] (K : ℕ) (μ : HoleList n State) :
      (M.successors K μ).card ≤ n * (Fintype.card State ^ 2 + 2 * Fintype.card State)

      The children of a list: a list has at most n (|S|² + 2 |S|) children in the search.