Documentation

CslibFrontier.Computability.Complexity.Classes.RecursivelyPresentable.PolyTime

Recursive presentations of P, polynomial-time transducers, and lower ≤ₘᵖ-cones #

This module presents P, enumerates polynomial-time transducers List Bool → List Bool, and establishes recursive presentability and finite-variation closure for lower ≤ₘᵖ-cones and for any ≤ₘᵖ-closed class on bit words with a decidable ≤ₘᵖ-complete problem, without importing the delayed diagonalization construction of CslibFrontier.Computability.Complexity.Classes.UniformDiagonalization.

Main definitions #

Main results #

References #

Computability of polynomial clocks #

The polynomial clock (i, l) ↦ clock i l is computable on unary inputs, by padding an exponential unary budget with exists_computableInO_unary_two_pow and computing capPow within that budget.

P is recursively presentable #

The presentation of P: whether the machine with index i accepts w within its clock.

Every problem in P on bit words appears in pIndexed at arbitrarily large indices.

The presentation of P with the clock capped at c.

Once the cap c is at least clock i |w|, pIndexedCap agrees with pIndexed.

P is recursively presentable, by the machines run within polynomial clocks.

Enumerating polynomial-time transducers #

The output of the i-th machine on w within its polynomial clock clock i |w|, decoded as a bit word if the machine has halted, and [] otherwise.

Every polynomial-time function List Bool → List Bool is realized by transducerIndexed at arbitrarily large indices.

Finite-variation patching of reductions #

theorem Cslib.Complexity.polyTimeReducible_of_symmDiff_finite_left {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L L' : Set α} {B : Set β} (hLB : PolyTimeReducible encA encB L B) (hfin : (symmDiff L L').Finite) {b₀ b₁ : β} (hb₀ : b₀ ∉ B) (hb₁ : b₁ ∈ B) :
PolyTimeReducible encA encB L' B

Modifying the source of a polynomial-time reduction on finitely many instances preserves reducibility whenever the target has a non-member and a member.

theorem Cslib.Complexity.closedUnderFiniteVariation_polyTimeReducible_le {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {B : Set β} {b₀ b₁ : β} (hb₀ : b₀ ∉ B) (hb₁ : b₁ ∈ B) :

The lower ≤ₘᵖ-cone of a problem with a non-member and a member is closed under finite variations.

theorem Cslib.Complexity.polyTimeReducible_of_symmDiff_finite_right {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {B : Set α} {L L' : Set β} (hBL : PolyTimeReducible encA encB B L) (hfin : (symmDiff L L').Finite) {z₀ z₁ : β} (hz₀ : z₀ ∉ L') (hz₁ : z₁ ∈ L') :
PolyTimeReducible encA encB B L'

Modifying the target of a polynomial-time reduction on finitely many instances preserves reducibility whenever the modified target still has a non-member and a member.

Presenting lower cones and classes with a complete problem #

Any class on bit words closed under ≤ₘᵖ that has a decidable ≤ₘᵖ-complete problem is recursively presentable.