Math 2.0

Mathematical logic and foundations Definition

Computable function

Builds on Turing machineNatural numbers

Definition

Let k≥1k \ge 1 and let f ⁣:ℕk⇀ℕf \colon \N^k \rightharpoonup \N be a partial function, where ℕ\N 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 ff is computable, or partial computable, if there is a Turing machine MM with the following property for every xˉ∈ℕk\bar x \in \N^k.

  1. If f(xˉ)f(\bar x) is defined, then MM halts on input xˉ\bar x with the code of f(xˉ)f(\bar x) on its tape.
  2. If f(xˉ)f(\bar x) is undefined, then MM does not halt on input xˉ\bar x.

A total computable function is a computable function defined at every point of ℕk\N^k.

Remarks

Example: addition (x,y)↦x+y(x, y) \mapsto x + y is computable. With unary codes 1x01y1^x 0 1^y, a machine that replaces the 00 by 11 and erases the last 11 halts with 1x+y1^{x+y} on its tape.

Non-example: the function h(e)=1h(e) = 1 if the machine with index ee halts on input ee, and h(e)=0h(e) = 0 otherwise, is total but not computable. No machine satisfies clause 1 for hh; 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
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Natural numbers object
  2. Turing machine concept
  3. Computable function definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Computable_function
About this page
TagD9AWNH60RM
URIm2://D9AWNH60RM
Kinddefinition
WritingW0 stub
MSC03D20, 03D10
DefinesComputable function
UsesTuring machine, Natural numbers
Changed2 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.