Documentation

CslibFrontier.Computability.Complexity.Classes.TFNP.Subclasses.PPADS

The total search subclass PPADS #

PPADS Papadimitriou, Beame, Cook, Edmonds, Impagliazzo and Pitassi is the "sink" variant of PPAD: in a directed graph of in-degree and out-degree at most 1 presented by predecessor and successor maps P, S, if the source 0 ^ n has an active outgoing edge then some other vertex is a sink. Unlike endOfLineRel, proper sources other than 0 ^ n are not solutions.

We reuse the active-edge predicates hasOut and hasIn of the end-of-line presentation of PPAD (CslibFrontier/Computability/Complexity/Classes/TFNP/Subclasses/Principles.lean), so a solution of sinkOfLineRel is exactly a solution of endOfLineRel without an active outgoing edge (sinkOfLineRel_iff).

Main definitions #

Main results #

References #

The sink-of-line principle #

def Cslib.Complexity.sinkOfLineRel {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (a : α) (u : List Bool) :

The search relation of a sink-of-line family (PPADS): a vertex u of length n a is a solution if it has no active outgoing edge and is either the source 0 ^ (n a) or has an active incoming edge.

theorem Cslib.Complexity.sinkOfLineRel_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {a : α} {u : List Bool} :
sinkOfLineRel n P S a u ↔ endOfLineRel n P S a u ∧ hasOut n P S a u = false

A sink-of-line solution is exactly an end-of-line solution without an active outgoing edge.

theorem Cslib.Complexity.endOfLineRel_of_sinkOfLineRel {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {a : α} {u : List Bool} (h : sinkOfLineRel n P S a u) :
endOfLineRel n P S a u
theorem Cslib.Complexity.hasOut_select_eq_false_of_pigeonRel {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {a : α} {w : List Bool} (h : pigeonRel n (ppadToPppMap n P S) a w) :
hasOut n P S a (if (!hasOut n P S a (List.take (n a) w)) = true then List.take (n a) w else List.drop (n a) w) = false

The vertex selected from a pigeonhole solution of ppadToPppMap n P S has no active outgoing edge.

theorem Cslib.Complexity.sinkOfLineRel_of_pigeonRel {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {a : α} {w : List Bool} (h : pigeonRel n (ppadToPppMap n P S) a w) :
sinkOfLineRel n P S a (if (!hasOut n P S a (List.take (n a) w)) = true then List.take (n a) w else List.drop (n a) w)

Any solution of pigeonRel for ppadToPppMap n P S yields a solution of sinkOfLineRel n P S by selecting whichever of the two n a-bit halves lacks an active outgoing edge.

theorem Cslib.Complexity.exists_sinkOfLine {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {a : α} (hS : ∀ (u : List Bool), u.length = n a → (S (a, u)).length = n a) :
∃ (u : List Bool), sinkOfLineRel n P S a u

Sink-of-line principle: if S (a, ·) preserves length n a, some vertex of length n a satisfies sinkOfLineRel.

theorem Cslib.Complexity.isTotalSearch_sinkOfLineRel {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} (hS : PreservesWidth n S) :

sinkOfLineRel is total whenever the successor map preserves the vertex bit-length.

FNP and TFNP membership #

The class PPADS #

def Cslib.Complexity.PPADS {α : Type} (enc : α ↪ List Bool) :
Set (α → List Bool → Prop)

Polynomial Parity Argument on Directed graphs, Sink version (PPADS) Papadimitriou, Beame et al.: FNP search problems search-reducible to finding a sink of a uniform polynomial-time directed path family sinkOfLineRel n P S.

theorem Cslib.Complexity.SearchReducible.mem_PPADS {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {R : α → List Bool → Prop} {T : β → List Bool → Prop} (h : SearchReducible enc encB R T) (hR : R ∈ FNP enc) (hT : T ∈ PPADS encB) :
R ∈ PPADS enc

PPADS is closed under polynomial-time search reductions across arbitrary instance types.

Inclusions #

theorem Cslib.Complexity.PPADS_subset_TFNP {α : Type} {enc : α ↪ List Bool} :
PPADS enc ⊆ TFNP enc

PPADS ⊆ TFNP: every problem in PPADS is total and in FNP.

theorem Cslib.Complexity.PPAD_subset_PPADS {α : Type} {enc : α ↪ List Bool} :
PPAD enc ⊆ PPADS enc

PPAD ⊆ PPADS Beame et al.: the identity is a search reduction from end-of-line to sink-of-line, since every sink is an end of a line.

theorem Cslib.Complexity.PPADS_subset_PPP {α : Type} {enc : α ↪ List Bool} :
PPADS enc ⊆ PPP enc

PPADS ⊆ PPP Beame et al.: the pigeonhole map ppadToPppMap, which follows active outgoing edges and fixes every other vertex, reduces sink-of-line to pigeonhole.

theorem Cslib.Complexity.PPAD_subset_PPP {α : Type} {enc : α ↪ List Bool} :
PPAD enc ⊆ PPP enc

PPAD ⊆ PPP Papadimitriou, Beame et al.: every problem in PPAD is in PPP, through PPAD ⊆ PPADS ⊆ PPP.