There are countably many decidable sets and computable functions #
A machine with finitely many states is determined, up to renaming its states, by its description
(Turing.MultiTapeTM.Universal.desc), and descriptions are encoded injectively as bit words
(Turing.MultiTapeTM.Universal.eDesc). A machine computes at most one output on each input, so a
computable function is determined by the description of a machine computing it, and there are
countably many computable functions (Turing.MultiTapeTM.countable_setOf_isComputable), while
there are continuum many functions from bit strings to bit strings. A decidable set is the set
where some computable Boolean function is true, so there are also countably many decidable sets
(Turing.MultiTapeTM.countable_setOf_isDecidable).
Main results #
Turing.MultiTapeTM.computes_true_iff: a machine deciding a set halts with output[true]exactly on its members.Turing.MultiTapeTM.countable_setOf_isComputable: there are countably many computable functions, for all encodings of inputs and outputs.Turing.MultiTapeTM.countable_setOf_isDecidable: there are countably many decidable sets, for every encoding.Turing.MultiTapeTM.countable_setOf_isComputable_and_mk_eq_continuum: Goldreich, Theorem 1.4; the computable functions on bit strings are countable, all functions form a continuum.
References #
- O. Goldreich, Computational Complexity: A Conceptual Perspective, Theorem 1.4
(draft
r1.pdfof 30 December 2006, PDF p. 54, printed p. 29).
A machine computing a Boolean function f halts with output [true] exactly where f is
true.
There are countably many computable functions, for all encodings of their inputs and outputs: a computable function is determined by the description of a machine computing it, since a machine computes at most one output on each input and the output encoding is injective.
On the scarcity of computable functions Goldreich, Theorem 1.4: the functions from bit strings to bit strings computable by a native machine form a countable set, whereas the set of all such functions has the cardinality of the continuum.