Langlib

Langlib.Grammars.LR.Equivalence.DPDAToLR.Rules

Rule shapes in the DPDA characteristic grammar #

The PDA-to-CFG conversion stores its finite rule set in a Finset, translates it to Langlib's list-based grammar, and then filters that list for fully productive rules. The lemmas here invert those representation layers and recover the five semantic rule forms of the characteristic grammar.

@[reducible, inline]
abbrev DPDA_to_LR.State {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :
Equations
Instances For
    @[reducible, inline]
    abbrev DPDA_to_LR.StackSymbol {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :
    Equations
    Instances For
      @[reducible, inline]
      abbrev DPDA_to_LR.Nonterminal {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :
      Equations
      Instances For
        def DPDA_to_LR.MathlibRuleShape {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) (r : ContextFreeRule T (Nonterminal M)) :

        The five possible rule forms before translating Mathlib symbols.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Invert membership in the finite rule set of Mathlib's characteristic grammar.

          A retained characteristic rule comes from a rule of Mathlib's characteristic grammar.

          Every retained rule is fully productive in the unfiltered characteristic grammar.

          The five possible rule forms after translating to Langlib symbols.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Inverse rule-shape theorem for the reduced Langlib grammar.