Documentation

CslibFrontier.Computability.Complexity.Reduction.TruthTable.Composition

Composing polynomial-time truth-table reductions #

Polynomial-time efficiency certificates for the resource-free truth-table composition operators Cslib.Complexity.truthTableCompQuery and Cslib.Complexity.truthTableCompCombiner from CslibFrontier.Computability.Reduction.TruthTable, together with transitivity of Cslib.Complexity.PolyTimeTruthTableReducible.

Given (r, q, d) from L to B and (r', q', d') from B to C, summing r' (q (a, i)) over i < r a gives a polynomial-time unary block stride M a bounding every inner query count, and unary division and remainder evaluate truthTableCompQuery q q' M directly without materializing a flattened query list.

Main results #

References #

Quotient/remainder block-indexed composite queries are computable in polynomial time when the outer and inner query generators and the unary block stride M are.

Summing the inner query counts across i < r a supplies a polynomial-time unary block stride M bounding every active second-stage query count.

theorem Cslib.Complexity.PolyTimeTruthTableReducible.trans {α β γ : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {encC : γ ↪ List Bool} {L : Set α} {B : Set β} {C : Set γ} (hLB : PolyTimeTruthTableReducible encA encB L B) (hBC : PolyTimeTruthTableReducible encB encC B C) :

Polynomial-time truth-table reductions compose.