Documentation

CslibFrontier.Computability.Complexity.Reduction.TruthTableVariants

Bounded, disjunctive, conjunctive and positive truth-table reductions #

Restrictions of polynomial-time truth-table reductions (Cslib.Complexity.PolyTimeTruthTableReducible) Ladner, Lynch and Selman:

Each definition instantiates a resource-free kernel of CslibFrontier.Computability.Reduction.TruthTable (Cslib.Complexity.TruthTableReducibleBy, Cslib.Complexity.PTTReducibleBy, Cslib.Complexity.DTTReducibleBy or Cslib.Complexity.CTTReducibleBy), whose lemmas prove the inclusions, complementation, duality and composition laws below.

Main definitions #

Main results #

References #

Bounded truth-table reductions #

def Cslib.Complexity.PolyTimeKTruthTableReducible {α β : Type} (k : ℕ) (encA : α ↪ List Bool) (encB : β ↪ List Bool) (L : Set α) (B : Set β) :

A truth-table reduction making at most k queries on every input.

def Cslib.Complexity.PolyTimeBTTReducible {α β : Type} (encA : α ↪ List Bool) (encB : β ↪ List Bool) (L : Set α) (B : Set β) :

A truth-table reduction making a bounded number of queries.

theorem Cslib.Complexity.PolyTimeReducible.polyTimeKTruthTableReducible_one {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeReducible encA encB L B) :

A many-one reduction is a 1-truth-table reduction.

theorem Cslib.Complexity.PolyTimeKTruthTableReducible.mono {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} {k k' : ℕ} (h : PolyTimeKTruthTableReducible k encA encB L B) (hk : k ≤ k') :

Allowing more queries.

theorem Cslib.Complexity.PolyTimeKTruthTableReducible.polyTimeBTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} {k : ℕ} (h : PolyTimeKTruthTableReducible k encA encB L B) :
PolyTimeBTTReducible encA encB L B

A k-truth-table reduction is a bounded truth-table reduction.

theorem Cslib.Complexity.PolyTimeBTTReducible.polyTimeTruthTableReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeBTTReducible encA encB L B) :

A bounded truth-table reduction is a truth-table reduction.

theorem Cslib.Complexity.PolyTimeReducible.polyTimeBTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeReducible encA encB L B) :
PolyTimeBTTReducible encA encB L B

A many-one reduction is a bounded truth-table reduction.

theorem Cslib.Complexity.PolyTimeBTTReducible.refl {α : Type} (encA : α ↪ List Bool) (L : Set α) :
PolyTimeBTTReducible encA encA L L

Bounded truth-table reducibility is reflexive.

theorem Cslib.Complexity.PolyTimeKTruthTableReducible.compl_left {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} {k : ℕ} (h : PolyTimeKTruthTableReducible k encA encB L B) :

Negating the combiner keeps the queries, so a k-truth-table reduction from L to B gives one from Lᶜ to B.

theorem Cslib.Complexity.PolyTimeKTruthTableReducible.compl_right {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} {k : ℕ} (h : PolyTimeKTruthTableReducible k encA encB L B) :

Negating each answer bit before evaluation turns a k-truth-table reduction from L to B into one from L to Bᶜ.

theorem Cslib.Complexity.PolyTimeKTruthTableReducible.compl {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} {k : ℕ} (h : PolyTimeKTruthTableReducible k encA encB L B) :

A k-truth-table reduction from L to B gives one from Lᶜ to Bᶜ.

theorem Cslib.Complexity.PolyTimeBTTReducible.compl_left {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeBTTReducible encA encB L B) :

Negating the combiner turns a bounded truth-table reduction from L to B into one from Lᶜ to B.

theorem Cslib.Complexity.PolyTimeBTTReducible.compl_right {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeBTTReducible encA encB L B) :

Negating the answer bits turns a bounded truth-table reduction from L to B into one from L to Bᶜ.

theorem Cslib.Complexity.PolyTimeBTTReducible.compl {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeBTTReducible encA encB L B) :

A bounded truth-table reduction from L to B gives one from Lᶜ to Bᶜ.

theorem Cslib.Complexity.PolyTimeBTTReducible.mem_P {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeBTTReducible encA encB L B) (hB : B ∈ P encB) :
L ∈ P encA

P is closed under bounded truth-table reductions.

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

Composing a k-truth-table and a k'-truth-table reduction gives a k * k'-truth-table reduction, via quotient/remainder block indexing (TruthTableReducibleBy.trans_bounded).

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

Bounded truth-table reductions compose.

Disjunctive and conjunctive truth-table reductions #

def Cslib.Complexity.PolyTimeDTTReducible {α β : Type} (encA : α ↪ List Bool) (encB : β ↪ List Bool) (L : Set α) (B : Set β) :

a ∈ L exactly when some of the r a queries q (a, i) is in B.

def Cslib.Complexity.PolyTimeCTTReducible {α β : Type} (encA : α ↪ List Bool) (encB : β ↪ List Bool) (L : Set α) (B : Set β) :

a ∈ L exactly when every one of the r a queries q (a, i) is in B.

theorem Cslib.Complexity.polyTimeDTTReducible_iff_polyTimeCTTReducible_compl {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} :

Disjunctive reductions of L to B are the conjunctive reductions of Lᶜ to Bᶜ, with the same queries.

theorem Cslib.Complexity.PolyTimeReducible.polyTimeDTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeReducible encA encB L B) :
PolyTimeDTTReducible encA encB L B

A many-one reduction is a disjunctive reduction with one query.

theorem Cslib.Complexity.PolyTimeReducible.polyTimeCTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeReducible encA encB L B) :
PolyTimeCTTReducible encA encB L B

A many-one reduction is a conjunctive reduction with one query.

theorem Cslib.Complexity.PolyTimeDTTReducible.refl {α : Type} (encA : α ↪ List Bool) (L : Set α) :
PolyTimeDTTReducible encA encA L L

Disjunctive truth-table reducibility is reflexive.

theorem Cslib.Complexity.PolyTimeCTTReducible.refl {α : Type} (encA : α ↪ List Bool) (L : Set α) :
PolyTimeCTTReducible encA encA L L

Conjunctive truth-table reducibility is reflexive.

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

Composing disjunctive reductions via DTTReducibleBy.trans.

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

Composing conjunctive reductions via CTTReducibleBy.trans.

Positive truth-table reductions #

def Cslib.Complexity.PolyTimePTTReducible {α β : Type} (encA : α ↪ List Bool) (encB : β ↪ List Bool) (L : Set α) (B : Set β) :

A truth-table reduction whose combiner is monotone in the answers: turning answers from false to true never turns acceptance into rejection.

theorem Cslib.Complexity.PolyTimePTTReducible.polyTimeTruthTableReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimePTTReducible encA encB L B) :

A positive truth-table reduction is a truth-table reduction.

theorem Cslib.Complexity.PolyTimeReducible.polyTimePTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeReducible encA encB L B) :
PolyTimePTTReducible encA encB L B

A many-one reduction is a positive truth-table reduction with one query.

theorem Cslib.Complexity.PolyTimePTTReducible.refl {α : Type} (encA : α ↪ List Bool) (L : Set α) :
PolyTimePTTReducible encA encA L L

Positive truth-table reducibility is reflexive.

theorem Cslib.Complexity.PolyTimeDTTReducible.polyTimePTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeDTTReducible encA encB L B) :
PolyTimePTTReducible encA encB L B

A disjunctive reduction is positive, with the disjunction of the answers as combiner.

theorem Cslib.Complexity.PolyTimeCTTReducible.polyTimePTTReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeCTTReducible encA encB L B) :
PolyTimePTTReducible encA encB L B

A conjunctive reduction is positive, with the conjunction of the answers as combiner.

theorem Cslib.Complexity.PolyTimeDTTReducible.polyTimeTruthTableReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeDTTReducible encA encB L B) :

A disjunctive truth-table reduction is a truth-table reduction.

theorem Cslib.Complexity.PolyTimeCTTReducible.polyTimeTruthTableReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeCTTReducible encA encB L B) :

A conjunctive truth-table reduction is a truth-table reduction.

theorem Cslib.Complexity.PolyTimeDTTReducible.mem_P {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeDTTReducible encA encB L B) (hB : B ∈ P encB) :
L ∈ P encA

P is closed under disjunctive truth-table reductions.

theorem Cslib.Complexity.PolyTimeCTTReducible.mem_P {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimeCTTReducible encA encB L B) (hB : B ∈ P encB) :
L ∈ P encA

P is closed under conjunctive truth-table reductions.

theorem Cslib.Complexity.PolyTimePTTReducible.mem_P {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {L : Set α} {B : Set β} (h : PolyTimePTTReducible encA encB L B) (hB : B ∈ P encB) :
L ∈ P encA

P is closed under positive truth-table reductions.

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

Positive truth-table reductions compose.