Documentation

CslibFrontier.Computability.Complexity.Reduction.LogSpaceBoundedAutoreducibility

Bounded disjunctive and conjunctive completeness gives autoreducibility #

Main definitions #

Main results #

Source mapping #

[GNR+13], expanded ECCC TR13-047, 18 March 2013, Proposition 2.7(2,3), printed page 5 (PDF index 4), asserts that for every complement-closed class and every k ≥ 1, logspace k-dtt/k-ctt completeness implies logspace k-tt autoreducibility. The class corollaries below use CompleteUnder, including membership and hardness for every encoded problem. On bit words with encBits these are the paper's languages; other injective encodings follow the existing library convention. Count is unary, query input uses encPair encA encUnary, and the evaluator uses encPair encA encBits and encBool.

Our bounds mean at most k, and also cover k = 0. The OR of an empty answer word is false; its AND is true. We retain the inherited L evaluator convention. All queries are nonadaptive, and only indices below the count are active. Equality is computed on encoded instances in logspace; no free oracle or query-avoidance premise is added.

Clause (2) uses the paper's proof: a complement witness with a self-query forces nonmembership by monotonicity of OR. All queries are then suppressed by setting the count to zero. Without self-queries, negate the OR. Clause (3) follows the paper's route through complement duality (Propositions 2.5 and 2.6): a conjunctive witness for Aᶜ to A is a disjunctive witness for A to Aᶜ, so Aᶜ is autoreducible by clause (2), and k-tt autoreducibility is closed under complement. Neither the remaining full-paper results nor the additional parity-logspace application is claimed here.

def Cslib.Complexity.activeSelfQuery {α : Type} (encA : α ↪ List Bool) (r : α → ℕ) (q : α × ℕ → α) (a : α) :

Test only active query indices; unused generator values are irrelevant.

@[simp]
theorem Cslib.Complexity.activeSelfQuery_eq_true {α : Type} {encA : α ↪ List Bool} {r : α → ℕ} {q : α × ℕ → α} {a : α} :
activeSelfQuery encA r q a = true ↔ ∃ i < r a, q (a, i) = a

The self-query test is exactly equality at an index below the count.

A bounded family of queries can be checked for self-queries in logarithmic space.

Suppress all queries when a logspace test determines the answer. Otherwise preserve the original generator and evaluator. Only active queries in the surviving branch must avoid input.

A bounded disjunctive complement reduction yields query-avoiding k-tt autoreducibility.

A bounded conjunctive complement reduction yields query-avoiding k-tt autoreducibility, by duality with the disjunctive case and closure under complement.

theorem Cslib.Complexity.logSpaceKTruthTableAutoreducible_of_kdtt_complete {α : Type} {encA : α ↪ List Bool} {A : Set α} {k : ℕ} {C : {α : Type} → (α ↪ List Bool) → Set (Set α)} (h : CompleteUnder (fun {α_1 : Type} (enc : α_1 ↪ List Bool) => LogSpaceKDTTReducible k enc encA) (fun {α : Type} => C) encA A) (hcompl : ∀ {β : Type} (enc : β ↪ List Bool), ∀ B ∈ C enc, Bᶜ ∈ C enc) :

Proposition 2.7(2): bounded disjunctive completeness in a complement-closed class.

theorem Cslib.Complexity.logSpaceKTruthTableAutoreducible_of_kctt_complete {α : Type} {encA : α ↪ List Bool} {A : Set α} {k : ℕ} {C : {α : Type} → (α ↪ List Bool) → Set (Set α)} (h : CompleteUnder (fun {α_1 : Type} (enc : α_1 ↪ List Bool) => LogSpaceKCTTReducible k enc encA) (fun {α : Type} => C) encA A) (hcompl : ∀ {β : Type} (enc : β ↪ List Bool), ∀ B ∈ C enc, Bᶜ ∈ C enc) :

Proposition 2.7(3): bounded conjunctive completeness in a complement-closed class.