Documentation

CslibFrontier.Computability.Complexity.Classes.RecursivelyPresentable

Recursively presentable classes and finite-variation closure #

Schöning's uniform diagonalization theorem Schöning separates two complexity classes whenever each is recursively presentable (Cslib.Complexity.RecursivelyPresentable) and closed under finite variations (Cslib.Complexity.ClosedUnderFiniteVariation). A class of sets is recursively presentable when it is the range i ↦ {a | F (i, a) = true} of a total computable Boolean function F taking the index i in unary; because ℕ is nonempty, the empty class is excluded. Closure under finite variations means closure under finite symmetric differences.

This module isolates the two predicates and their basic closure properties from the delayed diagonalization construction of CslibFrontier.Computability.Complexity.Classes.UniformDiagonalization, while CslibFrontier.Computability.Complexity.Classes.RecursivelyPresentable.PolyTime presents P, polynomial-time transducers, and lower ≤ₘᵖ-cones without importing that construction. As a result, CslibFrontier.Computability.Complexity.Classes.RecursivelyPresentable.Classes need not import delayed diagonalization; CslibFrontier.Computability.Complexity.Classes.Ladner.Density imports UniformDiagonalization to construct intermediate degrees.

Main definitions #

Main results #

References #

A class of sets is recursively presentable when it is the class of the sets {a | F (i, a) = true}, i : ℕ, for a computable F. Such a class is nonempty, so the empty class is not recursively presentable.

A class of sets is closed under finite variations when it contains every set finitely different from one of its members.

theorem Cslib.Complexity.exists_notMem_and_mem_of_notMem_P {α : Type} {enc : α ↪ List Bool} {B : Set α} (hB : B ∉ P enc) :
(∃ (y₀ : α), y₀ ∉ B) ∧ ∃ (y₁ : α), y₁ ∈ B

A problem outside P is neither ∅ nor Set.univ, so it has a non-member and a member.

theorem Cslib.Complexity.ClosedUnderFiniteVariation.infinite_symmDiff {α : Type} {C : Set (Set α)} (hC : ClosedUnderFiniteVariation C) {A L : Set α} (hA : A ∉ C) (hL : L ∈ C) :

A set outside a class closed under finite variations is infinitely different from each of its members.

Closure under finite variations passes to the complement class compl ⁻¹' C.

theorem Cslib.Complexity.ClosedUnderFiniteVariation.of_inter_union_mem_P {α : Type} {enc : α ↪ List Bool} {C : Set (Set α)} (hinter : ∀ ⦃L M : Set α⦄, L ∈ C → M ∈ P enc → L ∩ M ∈ C) (hunion : ∀ ⦃L M : Set α⦄, L ∈ C → M ∈ P enc → L ∪ M ∈ C) :

Any class closed under intersection and union with problems in P is closed under finite variations: L' = (L ∩ (L ∆ L')ᶜ) ∪ ((L ∆ L') \ L), and finite sets belong to P.

P is closed under finite variations.

Recursive presentability passes to the complement class compl ⁻¹' C by negating the presentation.

A countable union ⋃ k, C k of classes uniformly presented by one computable function of ((k, i), a) is recursively presentable via Nat.unpair.