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 #
Cslib.Complexity.RecursivelyPresentable: classes of the form{a | F (i, a) = true}for a computableF, with the indexiin unary.Cslib.Complexity.ClosedUnderFiniteVariation: closure under finite symmetric differences.
Main results #
Cslib.Complexity.exists_notMem_and_mem_of_notMem_P: a problem outsidePhas both a non-member and a member.Cslib.Complexity.ClosedUnderFiniteVariation.infinite_symmDiff: a set outside a class closed under finite variations is infinitely different from every member.Cslib.Complexity.ClosedUnderFiniteVariation.compl,Cslib.Complexity.ClosedUnderFiniteVariation.of_inter_union_mem_P,Cslib.Complexity.closedUnderFiniteVariation_P: closure under finite variations for complement classes, classes closed under intersection and union withP, andPitself.Cslib.Complexity.RecursivelyPresentable.compl,Cslib.Complexity.RecursivelyPresentable.iUnion_of_isComputable: recursive presentability passes to complement classes and uniformly computable countable unions.
References #
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.
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.