Langlib

Langlib.Grammars.Indexed.NormalForm.Aho.Soundness.RowSystem

Soundness and exactness of Aho's certified row system #

This is the physical-to-semantic direction. Successful finite-control evaluations are decoded into input and work traces, then into semantic padded machine steps. Together with row-system completeness, this yields exact language equality and the positive-input LBA recognizer.

theorem IndexedGrammar.Aho.paddedCompositeStep_of_evalStep_composite {T : Type} (g : IndexedGrammar T) [Fintype g.nt] (old new : List (RowCell g)) (certs : List (RowCert g)) (cert : CompositeCert g) (inputState : InputPhase) (workState : WorkScanState g) (heval : (ahoRowSystem g).evalStep RowState.start old new certs = some (RowState.composite cert inputState workState)) (hdone : rowStepDone (RowState.composite cert inputState workState) = true) :

A successful physical composite scan decodes to one bounded semantic Aho step.

theorem IndexedGrammar.Aho.paddedRowStep_of_rowStep {T : Type} (g : IndexedGrammar T) [Fintype g.nt] {old new : List (RowCell g)} (h : (ahoRowSystem g).RowStep old new) :
PaddedRowStep g old new

Every accepted finite certificate row is one of the intended semantic padded-row edges.

Exactness of the physical synchronized checker on a single row transition.

Soundness converse of rowReachLanguage_of_paddedReachLanguage: every accepting physical row-system run decodes to semantic bounded reachability.

The executable finite row system recognizes exactly semantic bounded Aho reachability.

Semantic bounded Aho reachability is recognized on exactly the input-sized LBA tape.