Langlib

Langlib.Automata.Turing.DSL.EmptyAlphabetTM

TM recognizability for languages over Empty #

When T = Empty, every language over T is trivially TM-recognizable, since List Empty = {[]} and any language is either or {[]}.

Key results #

Every list of Empty elements is the empty list.

noncomputable def alwaysHaltTM (Γ : Type) [Inhabited Γ] :

A TM that always halts (transition function returns none).

Equations
Instances For
    noncomputable def neverHaltTM (Γ : Type) [Inhabited Γ] :

    A TM that loops forever (always moves right).

    Equations
    Instances For

      Any language over the empty type is TM-recognizable.