Langlib

Langlib.Classes.RecursivelyEnumerable.Examples.Halting

The halting language is recursively enumerable #

This file proves haltingUnaryLanguage_RE: the language of all halting Turing machines (haltingUnaryLanguage) is recursively enumerable.

Bounded evaluation Nat.Partrec.Code.evaln gives a computable test haltingUnaryTest that, searched over the step budget k, accepts exactly the words whose length decodes to a halting code. A computable search is partial-recursive, hence realizable by a Turing machine, hence RE.

def haltingUnaryTest (k : ) (w : List Unit) :

Bounded halting test for the unary language.

Equations
Instances For

    The unary halting language is recursively enumerable.