Langlib

Langlib.Grammars.Indexed.Shrinking.Basis

A finite common basis for indexed-grammar scope frontiers #

Gilman's marked Higman argument is applied separately to the finitely many sources A and Af. This file takes their finite union, adds all words of length at most one, and chooses one common length bound.

@[reducible, inline]

A source relevant to a beta word: either A or Af.

Equations
Instances For

    Sentential form represented by a beta source key.

    Equations
    Instances For
      def IndexedGrammar.NFParse.betaKeyOf {T : Type} {g : IndexedGrammar T} (A : g.nt) (sigma : List g.flag) :

      The source key of a concrete parse node.

      Equations
      Instances For

        All unstacked frontier words derivable from one source.

        Equations
        Instances For
          @[simp]
          theorem IndexedGrammar.NFParse.betaKeyForm_betaKeyOf {T : Type} {g : IndexedGrammar T} (A : g.nt) (sigma : List g.flag) :
          betaKeyForm g (betaKeyOf A sigma) = betaSource A sigma
          theorem IndexedGrammar.NFParse.beta_mem_frontierLanguage {T : Type} {g : IndexedGrammar T} {A : g.nt} {sigma : List g.flag} {w : List T} (p : g.NFParse A sigma w) :
          theorem IndexedGrammar.NFParse.exists_globalRetainingBasis {T : Type} (g : IndexedGrammar T) [Fintype T] [Fintype g.nt] [Fintype g.flag] :
          ∃ (Z : Finset (List (g.nt T))) (C : ), 2 C (∀ zZ, z.length C) (∀ (z : List (g.nt T)), z.length 1z Z) ∀ (key : BetaKey g), yfrontierLanguage g key, yZ∀ (i : Fin y.length), xZ, x.length < y.length MarkedHigman.RetainsAt x y i x frontierLanguage g key

          A common finite retaining basis for every source A and Af, together with a common bound C ≥ 2.