Langlib

Langlib.Automata.DeterministicPushdown.Totalization.RegularAnalysis

Regular Epsilon Analysis for DPDA Totalization #

The totalizer needs finite, stack-regular lookahead for two semantic questions:

This file packages the finite analysis data. The remaining existence theorem is provided by the pushdown-system saturation construction: every finite DPDA has such an analysis.

structure DPDA.RegularEpsilonAnalysis {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :

A finite regular analysis of the epsilon-only behavior of a DPDA.

Instances For
    def DPDA.HasRegularEpsilonAnalysis {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :

    The semantic epsilon-analysis existence theorem needed by the finite totalizer.

    Equations
    Instances For
      noncomputable def DPDA.regularEpsilonAnalysisOfSaturation {Q T S : Type} [Fintype Q] [Fintype T] [Fintype S] (M : DPDA Q T S) :

      The saturation construction supplies the finite regular epsilon analysis used by the totalizer. For each control state q, the DFA state is the current set of P-automaton states reachable after reading the stack prefix.

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

        Every finite DPDA has a regular epsilon analysis.