The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V32. Logic, model theory and computability

Mathlib.Computability.TuringDegree

17 declarations. Mathlib docs · Source

Turing degrees

This file defines Turing reducibility and equivalence, proves that Turing equivalence is an equivalence relation, and defines Turing degrees as the quotient under this relation.

Main definitions

  • TuringReducible: A relation defining Turing reducibility between partial functions.
  • TuringEquivalent: An equivalence relation defining Turing equivalence between partial functions.
  • TuringDegree: The type of Turing degrees, defined as the quotient of partial functions under TuringEquivalent.

Notation

  • f ≤ᵀ g : f is Turing reducible to g.
  • f ≡ᵀ g : f is Turing equivalent to g.

References

  • [Odifreddi, Piergiorgio, Classical Recursion Theory: The Theory of Functions and Sets of Natural Numbers][odifreddi1989]

Tags

Computability, Oracle, Turing Degrees, Reducibility, Equivalence Relation

abbrev TuringReducible E3 #

(ℕ →. ℕ) → (ℕ →. ℕ) → Prop

f is Turing reducible to g if f is partial recursive given access to the oracle g

abbrev TuringEquivalent E3 #

(ℕ →. ℕ) → (ℕ →. ℕ) → Prop

f is Turing equivalent to g if f is reducible to g and g is reducible to f.

def Computability.«term_≤ᵀ_» E1 #

Lean.TrailingParserDescr

f is Turing reducible to g if f is partial recursive given access to the oracle g

def Computability.«term_≡ᵀ_» E1 #

Lean.TrailingParserDescr

f is Turing equivalent to g if f is reducible to g and g is reducible to f.

theorem Partrec.turingReducible E1 #

∀ {f g : ℕ →. ℕ}, Partrec f → TuringReducible f g

If a function is partial recursive, then it is recursive in every partial function.

theorem TuringReducible.partrec_of_const E1 #

∀ {f : ℕ →. ℕ} {s : Part ℕ}, (TuringReducible f fun x ↦ s) → Partrec f

If a function is recursive in a constant partial function, then it is partial recursive.

theorem partrec_iff_forall_turingReducible E1 #

∀ {f : ℕ →. ℕ}, Partrec f ↔ ∀ (g : ℕ →. ℕ), TuringReducible f g

A partial function f is partial recursive if and only if it is recursive in every partial function g.

theorem TuringReducible.refl E1 #

∀ (f : ℕ →. ℕ), TuringReducible f f

theorem TuringReducible.rfl E1 #

∀ {f : ℕ →. ℕ}, TuringReducible f f

theorem TuringReducible.trans E1 #

∀ {f g h : ℕ →. ℕ}, TuringReducible f g → TuringReducible g h → TuringReducible f h

instance instIsPreorderPFunNatTuringReducible E0 #

IsPreorder (ℕ →. ℕ) TuringReducible

theorem TuringEquivalent.equivalence E1 #

Equivalence TuringEquivalent

theorem TuringEquivalent.refl E1 #

∀ (f : ℕ →. ℕ), TuringEquivalent f f

theorem TuringEquivalent.symm E1 #

∀ {f g : ℕ →. ℕ}, TuringEquivalent f g → TuringEquivalent g f

theorem TuringEquivalent.trans E1 #

∀ (f g h : ℕ →. ℕ), TuringEquivalent f g → TuringEquivalent g h → TuringEquivalent f h

abbrev TuringDegree E3 #

Type

Turing degrees are the equivalence classes of partial functions under Turing equivalence.

instance TuringDegree.instPartialOrder E0 #

PartialOrder TuringDegree