Langlib

Langlib.Grammars.Indexed.NormalForm.Aho.Soundness.Acceptance

Accepting-run soundness for Aho's machine #

The forward derivation invariant and the final theorem from accepting machine runs to grammar generation.

Forward derivation invariant and accepting-run soundness #

The consumed input prefix followed by the execution-ordered remaining form is derivable from the grammar start symbol.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem IndexedGrammar.Aho.ControlDenotation.compositeStep_preserves_represents {T : Type} {g : IndexedGrammar T} [Fintype g.nt] (input : List T) {c c' : Config g} {form : List g.ISym} (hstep : CompositeStep g input c c') (hrep : Config.Represents c form) :
    ∃ (form' : List g.ISym), Config.Represents c' form' StepEffect g input c c' form form'
    theorem IndexedGrammar.Aho.ControlDenotation.compositeStep_preserves_forwardInvariant {T : Type} {g : IndexedGrammar T} [Fintype g.nt] (input : List T) {c c' : Config g} (hstep : CompositeStep g input c c') (hinv : ForwardInvariant g input c) :
    ForwardInvariant g input c'

    Every accepting run of the composite machine spells a genuine indexed-grammar derivation.