Mathematical logic and foundations Definition
Computable function
Builds on Turing machineNatural numbers
Definition
Let and let be a partial function, where is the set of natural numbers. Fix an encoding of tuples of natural numbers as words on the input alphabet, for example in unary separated by a marker. The function is computable, or partial computable, if there is a Turing machine with the following property for every .
- If is defined, then halts on input with the code of on its tape.
- If is undefined, then does not halt on input .
A total computable function is a computable function defined at every point of .
Remarks
Example: addition is computable. With unary codes , a machine that replaces the by and erases the last halts with on its tape.
Non-example: the function if the machine with index halts on input , and otherwise, is total but not computable. No machine satisfies clause 1 for ; see the halting problem.
A partial function is computable if and only if it is partial general recursive. The definition does not depend on the choice of a reasonable encoding or a variant of Turing machines.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Natural numbers object
- Turing machine concept
- Computable function definition
Further reading
About this page
| Tag | D9AWNH60RM |
|---|---|
| URI | m2://D9AWNH60RM |
| Kind | definition |
| Writing | W0 stub |
| MSC | 03D20, 03D10 |
| Defines | Computable function |
| Uses | Turing machine, Natural numbers |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.