Langlib

Langlib.Grammars.LR.Equivalence.Initial

Initial item of an augmented grammar #

The fresh-start rule is the head of the augmented grammar's rule list. This file records its finite rule index and the canonical item [S' -> . S, EOF^k], and proves the semantic validity of the initial item closure.

The rule-list index of the distinguished augmentation rule.

Equations
Instances For

    The canonical kernel item [S' -> . S, EOF^k].

    Equations
    Instances For
      @[simp]
      theorem CF_grammar.LRk.startItem_position {T : Type} (G : CF_grammar T) (k : ) :
      (startItem G k).position = 0
      @[simp]
      @[simp]

      The fresh-start item is semantically valid before scanning any grammar symbol.

      The raw kernel of the canonical viable-prefix automaton.

      Equations
      Instances For
        theorem CF_grammar.LRk.startClosure_valid {T : Type} [Fintype T] (G : CF_grammar T) (k : ) {i : Item G.augment k} (hi : i closure G.augment k (startKernel G k)) :

        Every item in the epsilon closure of the start kernel is valid at the empty prefix.