Langlib

Langlib.Grammars.Indexed.NormalForm.Aho.Machine.Transitions

Aho machine transitions #

Zipper configurations, finite composite certificates, and the mathematical transition relation.

Zipper configurations and finite composite certificates #

A work word with its hatted (active) symbol exposed.

Instances For

    One logical work square, including the unique active-head marker.

    Instances For

      Forget the work head.

      Equations
      Instances For

        Encode the work cursor without losing its active position.

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

          The marked slot word retains the whole cursor, not merely its underlying work word.

          A composite configuration: inputPos input symbols have already been compared, and work is the marked work-tape zipper.

          Instances For

            The initial composite configuration on every input.

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

              The final composite configuration after all n input symbols have been compared.

              Equations
              Instances For

                Finite evidence selecting one of Aho's composite moves. All fields range over types fixed by the grammar, so this is a finite certificate alphabet.

                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  noncomputable def IndexedGrammar.Aho.CertStep {T : Type} (g : IndexedGrammar T) [Fintype g.nt] (input : List T) :
                  CompositeCert gConfig gConfig gProp

                  Semantics of one finite composite certificate on a fixed input word.

                  The clauses are Aho's moves 1--6, split into their nondeterministic subcases. The paper's active hat is represented by WorkCursor.focus; consequently every equality below also fixes the new work-head position.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def IndexedGrammar.Aho.CompositeStep {T : Type} (g : IndexedGrammar T) [Fintype g.nt] (input : List T) (c c' : Config g) :

                    One composite move is a move selected by some finite certificate.

                    Equations
                    Instances For
                      theorem IndexedGrammar.Aho.compositeStep_iff_exists_cert {T : Type} (g : IndexedGrammar T) [Fintype g.nt] (input : List T) (c c' : Config g) :
                      CompositeStep g input c c' ∃ (cert : CompositeCert g), CertStep g input cert c c'