Documentation

CslibFrontier.Computability.Complexity.Reduction.Isomorphism

Polynomial-time isomorphism and invertible/length-increasing reductions #

In structural complexity, the Berman–Hartmanis conjecture states that all NP-complete sets are polynomial-time isomorphic (≅ᵖ) Berman and Hartmanis. This module formalizes:

  1. Polynomial-time isomorphism (Cslib.Complexity.PolyTimeIsomorphic): an equivalence e : α ≃ β where both e and e.symm are polynomial-time computable, preserving language membership (∀ a, a ∈ A ↔ e a ∈ B).
  2. Polynomial-time-invertible one-one reductions (Cslib.Complexity.PolyTimeInvertibleOneOneReducible): an injective polynomial-time reduction f : α → β with a polynomial-time left inverse g : β → α satisfying g (f a) = a.
  3. Length-increasing one-one reductions (Cslib.Complexity.PolyTimeLengthIncreasingOneOneReducible): an injective polynomial-time reduction f : α → β strictly increasing input length: (encA a).length < (encB (f a)).length.
  4. Length-increasing, invertible one-one reductions (Cslib.Complexity.PolyTimeInvertibleLengthIncreasingOneOneReducible, ≤₁,ᵢₗ): an injective polynomial-time reduction that is simultaneously length-increasing and has a polynomial-time left inverse Berman and Hartmanis, Ladner, Lynch and Selman.

Each of the three strengthened one-one reducibilities is by definition an instance of Cslib.Complexity.ManyOneReducibleBy (Cslib.Complexity.polyTimeInvertibleOneOneReducible_iff_manyOneReducibleBy, Cslib.Complexity.polyTimeLengthIncreasingOneOneReducible_iff_manyOneReducibleBy, Cslib.Complexity.polyTimeInvertibleLengthIncreasingOneOneReducible_iff_manyOneReducibleBy), so reflexivity, transitivity, complementation, and forgetful projections follow from the kernel API.

Main definitions #

Main results #

References #

1. Polynomial-Time Isomorphism (≅ᵖ) #

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

Two languages A and B are polynomial-time isomorphic (A ≅ᵖ B) if there exists an equivalence e : α ≃ β whose forward map e and inverse map e.symm are both computable in polynomial time, preserving membership: ∀ a, a ∈ A ↔ e a ∈ B Berman and Hartmanis.

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

The identity equivalence is a polynomial-time isomorphism.

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

Polynomial-time isomorphism is symmetric.

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

Polynomial-time isomorphisms compose.

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

A polynomial-time isomorphism between A and B is one between Aᶜ and Bᶜ.

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

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

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

A polynomial-time isomorphism is a many-one reduction.

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

A polynomial-time isomorphism is a Turing reduction.

theorem Cslib.Complexity.PolyTimeIsomorphic.mem_P_iff {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : PolyTimeIsomorphic encA encB A B) :
A ∈ P encA ↔ B ∈ P encB

P is invariant under polynomial-time isomorphisms.

theorem Cslib.Complexity.PolyTimeIsomorphic.mem_NP_iff {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : PolyTimeIsomorphic encA encB A B) :
A ∈ NP encA ↔ B ∈ NP encB

NP is invariant under polynomial-time isomorphisms.

2. Invertible One-One Reductions (≤₁,ᵢ) #

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

A polynomial-time one-one reduction f : α → β is polynomial-time invertible (≤₁,ᵢ) if there exists a polynomial-time left inverse g : β → α with g (f a) = a for all a Berman and Hartmanis.

Invertible one-one reducibility is many-one reducibility by the polynomial-time maps with a polynomial-time left inverse.

The identity is a polynomial-time-invertible one-one reduction.

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

Polynomial-time-invertible one-one reductions compose.

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

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

A polynomial-time isomorphism is an invertible one-one reduction.

An invertible one-one reduction is an injective one-one reduction.

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

An invertible one-one reduction is a many-one reduction.

An invertible one-one reduction is a Turing reduction.

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

P is closed under invertible one-one reductions.

3. Length-Increasing One-One Reductions (≤₁,ₗᵢ) #

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

A polynomial-time one-one reduction f : α → β is length-increasing (≤₁,ₗᵢ) if (encA a).length < (encB (f a)).length for every input a Berman and Hartmanis.

theorem Cslib.Complexity.polyTimeLengthIncreasingOneOneReducible_iff_manyOneReducibleBy {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} :
PolyTimeLengthIncreasingOneOneReducible encA encB A B ↔ ManyOneReducibleBy (fun (f : α → β) => Turing.MultiTapeTM.ComputableInPolyTime f encA encB ∧ Function.Injective f ∧ ∀ (a : α), (encA a).length < (encB (f a)).length) A B

Length-increasing one-one reducibility is many-one reducibility by the injective, length-increasing polynomial-time maps.

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

Length-increasing one-one reductions compose.

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

A length-increasing one-one reduction is an injective one-one reduction.

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

A length-increasing one-one reduction is a Turing reduction.

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

P is closed under length-increasing one-one reductions.

4. Invertible and Length-Increasing One-One Reductions (≤₁,ᵢₗ) #

A polynomial-time one-one reduction f : α → β is length-increasing and polynomial-time invertible (≤₁,ᵢₗ) if it has a polynomial-time left inverse g : β → α and strictly increases length: (encA a).length < (encB (f a)).length for all a Berman and Hartmanis.

theorem Cslib.Complexity.polyTimeInvertibleLengthIncreasingOneOneReducible_iff_manyOneReducibleBy {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} :
PolyTimeInvertibleLengthIncreasingOneOneReducible encA encB A B ↔ ManyOneReducibleBy (fun (f : α → β) => ∃ (g : β → α), Turing.MultiTapeTM.ComputableInPolyTime f encA encB ∧ Turing.MultiTapeTM.ComputableInPolyTime g encB encA ∧ Function.LeftInverse g f ∧ ∀ (a : α), (encA a).length < (encB (f a)).length) A B

Invertible, length-increasing one-one reducibility is many-one reducibility by the length-increasing polynomial-time maps with a polynomial-time left inverse.

Length-increasing, invertible one-one reductions compose.

An invertible, length-increasing one-one reduction from A to B is one from Aᶜ to Bᶜ.

An invertible, length-increasing one-one reduction is an invertible one-one reduction.

An invertible, length-increasing one-one reduction is a length-increasing one-one reduction.

An invertible, length-increasing one-one reduction is an injective one-one reduction.

An invertible, length-increasing one-one reduction is a many-one reduction.

An invertible, length-increasing one-one reduction is a Turing reduction.

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

P is closed under invertible, length-increasing one-one reductions.