Langlib

Langlib.Classes.Regular.Definition

Regular Languages #

This file defines the class of regular languages via unrestricted grammars satisfying the right-regular rule-shape property.

def right_regular_output {T N : Type} (s : List (symbol T N)) :

An output string has right-regular form if it is one of:

  • [terminal a, nonterminal B],
  • [terminal a], or
  • [].
Equations
Instances For

    An unrestricted grammar is right-regular if every rule is context-free and has right-regular output.

    Equations
    Instances For
      def is_RG {T : Type} (L : Language T) :

      A language is regular if it is generated by some right-regular unrestricted grammar.

      Equations
      Instances For
        def is_RG_via_rg {T : Type} (L : Language T) :

        Characterization of regular languages via RG_grammar.

        Equations
        Instances For
          def RG {T : Type} :

          The class of regular languages.

          Equations
          Instances For