Math 2.0

Mathematical logic and foundations Definition

Oracle machine

Builds on Turing machine

Definition

An oracle machine is a Turing machine with these extra parts:

  1. a second tape, the oracle tape, on which the machine can read and write;
  2. three special states: a query state q?q_?, a yes state qyesq_{\mathrm{yes}} and a no state qnoq_{\mathrm{no}}.

Let O⊆ℕO \subseteq \N be a set, the oracle. The machine MM with oracle OO, written MOM^O, runs like a Turing machine, except at the query state. Suppose MOM^O enters q?q_? while the oracle tape holds the binary code of a number nn. Then its next state is qyesq_{\mathrm{yes}} if n∈On \in O and qnoq_{\mathrm{no}} if n∉On \notin O. A partial function f ⁣:ℕ→ℕf \colon \N \to \N is computable relative to OO if there is an oracle machine MM with this property. For every xx, the run of MOM^O on input xx halts with output f(x)f(x) when f(x)f(x) is defined, and does not halt otherwise.

Remarks

Example: let MM copy its input xx to the oracle tape, enter q?q_?, and then output 11 from qnoq_{\mathrm{no}} and 00 from qyesq_{\mathrm{yes}}. For each oracle OO, the machine MOM^O halts on every input and computes the characteristic function of ℕ∖O\N \setminus O.

Non-example: a device that may query two sets O1O_1 and O2O_2 is not an oracle machine, because an oracle machine queries one fixed set. It can be simulated by an oracle machine with the single oracle {2n:n∈O1}∪{2n+1:n∈O2}\set{2n : n \in O_1} \cup \set{2n + 1 : n \in O_2}.

A machine that never enters q?q_? is an ordinary Turing machine, so every computable function is computable relative to every oracle. Oracle machines can be listed effectively as M0,M1,…M_0, M_1, \ldots, and ΦeO\Phi_e^O often denotes the partial function computed by MeOM_e^O.

Reading path

To understand this page from the ground up, read these 2 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. Turing machine concept
  2. Oracle machine definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Oracle_machine
About this page
TagDJMXZX0G9G
URIm2://DJMXZX0G9G
Kinddefinition
WritingW0 stub
MSC03D10, 03D30
DefinesOracle machine
UsesTuring machine
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • 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.