Documentation

CslibFrontier.Foundations.Computability.SpectorExactPair

Spector's exact pair theorem for degrees of sets #

Spector proved that every countable ideal of Turing degrees of sets has an exact pair: two sets A and B whose common lower bounds among sets are precisely the members of the ideal [Spe56] (see also [Soa87]; original-source locators remain unverified). In particular, applying the construction to a strictly ascending sequence of sets yields two degrees of sets with no greatest lower bound, showing that the Turing degrees of sets (and of total functions) do not form a lattice [KP54], [Spe56].

Scope #

Mathlib's TuringDegree is the quotient of partial functions ℕ →. ℕ under Turing equivalence. The exact pair construction and non-lattice corollary in this file are proved for degrees of sets (TuringDegree.IsSetDegree, represented by {0, 1}-valued indicator functions), which coincide with degrees of total functions (TuringDegree.IsTotalDegree, represented by total f : ℕ → ℕ) by TuringDegree.isSetDegree_iff_isTotalDegree, not for arbitrary partial-function degrees.

Main definitions #

Main results #

References #

Helper combinators for total functions recursive in an oracle #

Binary and finite-prefix joins of sets #

The disjoint-union join of two sets of natural numbers, coded by parity.

A is Turing reducible to setJoin A B.

B is Turing reducible to setJoin A B.

theorem Nat.RecursiveIn.setJoin_turingReducible {A B : Set ℕ} {h : ℕ →. ℕ} (hA : TuringReducible (↑(A.indicator 1)) h) (hB : TuringReducible (↑(B.indicator 1)) h) :

If A and B are both Turing reducible to h, then setJoin A B is reducible to h.

The finite prefix join of a sequence of sets C : ℕ → Set ℕ, coding C 0, …, C n into the first n + 1 columns via Nat.pair.

theorem Nat.RecursiveIn.turingReducible_prefixJoin (C : ℕ → Set ℕ) {k n : ℕ} (hk : k ≤ n) :
TuringReducible ↑((C k).indicator 1) ↑((prefixJoin C n).indicator 1)

Each column C k with k ≤ n is Turing reducible to prefixJoin C n.

theorem Nat.RecursiveIn.prefixJoin_turingReducible (C : ℕ → Set ℕ) (n : ℕ) {h : ℕ →. ℕ} (hh : ∀ k ≤ n, TuringReducible (↑((C k).indicator 1)) h) :

If every C k for k ≤ n is Turing reducible to h, then prefixJoin C n is reducible to h.

Finite-extension exact pair construction #

Oracle-relative search in the no-splitting case #

theorem Nat.RecursiveIn.exists_exactPair_seq (C : ℕ → Set ℕ) :
∃ (A : Set ℕ) (B : Set ℕ), (∀ (n : ℕ), TuringReducible ↑((prefixJoin C n).indicator 1) ↑(A.indicator 1) ∧ TuringReducible ↑((prefixJoin C n).indicator 1) ↑(B.indicator 1)) ∧ ∀ (f : ℕ → ℕ), TuringReducible ↑f ↑(A.indicator 1) → TuringReducible ↑f ↑(B.indicator 1) → ∃ (n : ℕ), TuringReducible ↑f ↑((prefixJoin C n).indicator 1)

Spector's exact pair theorem for sequences of sets: for every sequence C : ℕ → Set ℕ, there exist sets A and B above every finite prefix join prefixJoin C n such that every total function f : ℕ → ℕ Turing reducible to both A and B is already Turing reducible to prefixJoin C n for some n.

Strictly ascending sequence of sets via direct diagonalization #

A diagonal set that is not Turing reducible to S: n ∈ diagSet S iff the n-th oracle code relative to S does not output 1 on input n.

diagSet S is never Turing reducible to S.

A strictly ascending sequence of sets under Turing reducibility, defined directly by iterated joining with diagSet without formalizing the Turing jump operator.

Degrees of sets, countable ideals, and the non-lattice corollaries #

noncomputable def TuringDegree.setDegree (A : Set ℕ) :

The Turing degree of a set A : Set ℕ, represented by its {0, 1}-valued indicator function.

A Turing degree is a degree of a set if it is represented by the indicator function of some set A : Set ℕ.

A Turing degree is a degree of a total function if it is represented by some total function f : ℕ → ℕ.

A Turing degree is a degree of a set if and only if it is a degree of a total function: every total f : ℕ → ℕ is Turing equivalent to the indicator function of its graph.

The Turing degree of setJoin A B is the join setDegree A ⊔ setDegree B.

theorem TuringDegree.IsSetDegree.sup {a b : TuringDegree} (ha : a.IsSetDegree) (hb : b.IsSetDegree) :
(a ⊔ b).IsSetDegree

Degrees of sets are closed under binary joins ⊔.

The 0-th finite prefix join has the same Turing degree as C 0.

Extending a finite prefix join by one column takes the Turing join with C (n + 1).

The sequence of set degrees of strictAscSeq is strictly increasing.

An ideal of degrees of sets is a nonempty set of degrees of sets that is downward closed among degrees of sets and closed under binary joins ⊔.

(a, b) is an exact pair for I in the degrees of sets if a and b are degrees of sets whose common lower bounds among degrees of sets are precisely the elements of I.

Spector's exact pair theorem for countable ideals of degrees of sets: every countable ideal I of degrees of sets has an exact pair (a, b) of degrees of sets.

theorem TuringDegree.IsExactPairForSetDegrees.no_inf_of_no_top {I : Set TuringDegree} {a b : TuringDegree} (hI : IsSetDegreeIdeal I) (hp : IsExactPairForSetDegrees I a b) (hnotop : ∀ d ∈ I, ∃ d' ∈ I, d < d') (m : TuringDegree) :
m.IsSetDegree → m ≤ a → m ≤ b → ∃ (d : TuringDegree), d.IsSetDegree ∧ d ≤ a ∧ d ≤ b ∧ m < d

If I is an ideal of degrees of sets with no greatest element, then any exact pair (a, b) for I has no greatest lower bound among degrees of sets.

theorem TuringDegree.exists_exactPair_strictMono_no_inf {C : ℕ → Set ℕ} (hC : StrictMono fun (n : ℕ) => setDegree (C n)) :
∃ (A : Set ℕ) (B : Set ℕ), (∀ (n : ℕ), setDegree (C n) ≤ setDegree A ∧ setDegree (C n) ≤ setDegree B) ∧ ∀ (m : TuringDegree), m.IsSetDegree → m ≤ setDegree A → m ≤ setDegree B → ∃ (d : TuringDegree), d.IsSetDegree ∧ d ≤ setDegree A ∧ d ≤ setDegree B ∧ m < d

Any strictly increasing sequence of sets yields two sets A and B above every member of the sequence whose degrees have no greatest lower bound among degrees of sets.

theorem TuringDegree.exists_setDegree_no_inf :
∃ (a : TuringDegree) (b : TuringDegree), a.IsSetDegree ∧ b.IsSetDegree ∧ ∀ (m : TuringDegree), m.IsSetDegree → m ≤ a → m ≤ b → ∃ (d : TuringDegree), d.IsSetDegree ∧ d ≤ a ∧ d ≤ b ∧ m < d

The Turing degrees of sets (equivalently, of total functions) do not form a lattice: there exist two degrees of sets a and b with no greatest lower bound among degrees of sets.