Langlib

Langlib.Grammars.LR.Equivalence.MachineCorrectness

Correctness of the buffered canonical LR machine #

The lemmas in this file relate stable parser controls of the concrete marked DPDA to the grammar-symbol-stack semantics of CanonicalParser.

def CF_grammar.LRk.Buffered.stableConfig {T : Type} [Fintype T] (G : CF_grammar T) (k : ) (hk : 0 < k) (c : CanonicalParser.Config T G) :
(machine G k hk).toPDA.conf

Concrete machine configuration corresponding to a stable canonical parser configuration.

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

    Canonical reachability is simulated by the concrete DPDA.

    Canonical acceptance implies acceptance of the explicitly endmarked word by the concrete DPDA.

    Acceptance of a properly endmarked word by the concrete machine yields a canonical accepting run.

    On properly endmarked inputs, the concrete machine recognizes exactly the language of its LR(k) grammar.