Documentation

CslibFrontier.Computability.Complexity.Reduction.OneOne

Polynomial-time and logspace one-one reductions #

A one-one reduction is a many-one reduction by an injective map. In polynomial time it underlies p-isomorphism and the Berman–Hartmanis conjecture Berman and Hartmanis; in logarithmic space it gives logspace one-one reducibility. Both are instances of ManyOneReducibleBy (Cslib.Complexity.polyTimeOneOneReducible_iff_manyOneReducibleBy, Cslib.Complexity.logSpaceOneOneReducible_iff_manyOneReducibleBy), so the generic many-one kernel applies.

Main definitions #

Main results #

References #

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

A reduces to B by an injective polynomial-time map f with a ∈ A ↔ f a ∈ B.

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

One-one reducibility is many-one reducibility by the injective polynomial-time maps.

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

A one-one reduction is a many-one reduction.

The identity is a one-one reduction.

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

One-one reductions compose.

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

A one-one reduction from A to B is one from Aᶜ to Bᶜ.

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

P is closed under one-one reductions.

Logspace one-one reductions #

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

A reduces to B by an injective logspace map f with a ∈ A ↔ f a ∈ B.

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

Logspace one-one reducibility is many-one reducibility by the injective logspace maps.

theorem Cslib.Complexity.LogSpaceOneOneReducible.logSpaceReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : LogSpaceOneOneReducible encA encB A B) :
LogSpaceReducible encA encB A B

A logspace one-one reduction is a logspace many-one reduction.

theorem Cslib.Complexity.LogSpaceOneOneReducible.polyTimeOneOneReducible {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : LogSpaceOneOneReducible encA encB A B) :

A logspace one-one reduction is a polynomial-time one-one reduction.

The identity is a logspace one-one reduction.

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

Logspace one-one reductions compose.

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

A logspace one-one reduction from A to B is one from Aᶜ to Bᶜ.

theorem Cslib.Complexity.LogSpaceOneOneReducible.mem_L {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : LogSpaceOneOneReducible encA encB A B) (hB : B ∈ L encB) :
A ∈ L encA

L is closed under logspace one-one reductions.

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

P is closed under logspace one-one reductions.