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 #
alwaysHaltTM_halts: the trivial halting TM halts on every input.neverHaltTM_diverges: the trivial moving TM never halts.is_TM_of_empty: every language overEmptyis TM-recognizable.
A TM that always halts (transition function returns none).
Equations
- alwaysHaltTM Γ x✝¹ x✝ = none
Instances For
theorem
alwaysHaltTM_halts
(Γ : Type)
[Inhabited Γ]
(l : List Γ)
:
(Turing.TM0.eval (alwaysHaltTM Γ) l).Dom
A TM that loops forever (always moves right).
Equations
Instances For
theorem
neverHaltTM_diverges
(Γ : Type)
[Inhabited Γ]
(l : List Γ)
:
¬(Turing.TM0.eval (neverHaltTM Γ) l).Dom
Any language over the empty type is TM-recognizable.