Documentation

CslibFrontier.Computability.Complexity.Classes.TFNP.Subclasses.PotentialLine

The potential-line subclasses EOPL and SOPL #

EOPL Fearnley, Gordon, Mehta and Savani is the class of total search problems reducible to End-of-Potential-Line: a directed graph of in-degree and out-degree at most 1, presented by predecessor and successor maps P, S, carries a potential V that strictly increases along every edge, and one must find a sink or a proper source other than the distinguished source 0 ^ n. SOPL Göös et al. is its sink-only variant, Sink-of-Potential-Line, suggested by Göös, Kamath, Robere and Sokolov and named and studied in Göös et al..

Presentation #

We present an instance by maps P, S : α × List Bool → List Bool and a potential V : α × List Bool → ℕ (computed in binary), and prune every edge along which the potential does not strictly increase: hasPotentialOut and hasPotentialIn are the active-edge predicates hasOut, hasIn of PPAD restricted to strict potential increase. The pruned graph is again an end-of-line graph, presented by potentialPred and potentialSucc (hasOut_potential, hasIn_potential), and potentials strictly increase along all its edges, so it is a disjoint union of directed paths and isolated vertices, as in the structural definition of Göös et al., Section 1. The solutions of endOfPotentialLineRel (resp. sinkOfPotentialLineRel) are its ends (resp. sinks), with the same convention at 0 ^ n as endOfLineRel.

Correspondence with the circuit definition of Fearnley et al. #

Fearnley, Gordon, Mehta and Savani, Definition 9 instead keeps the raw maps and asks for a solution of type

under the syntactic promise P (0 ^ n) = 0 ^ n ≠ S (0 ^ n) (LineSourcePromise). The relation endOfPotentialLineViolationRel is this definition, made total by also accepting 0 ^ n when the promise fails; sinkOfPotentialLineViolationRel drops the start-of-line clause S (P x) ≠ x ≠ 0 ^ n of (R1). The two presentations define the same class:

Hence mem_EOPL_iff_violation and mem_SOPL_iff_violation: a problem lies in EOPL (resp. SOPL) iff it search-reduces to the violation relation of some uniform polynomial-time family. The potential range {0, …, 2 ^ m - 1} of Definition 9 corresponds to the polynomial bit-length of the binary output of V (exists_potentialBound).

Two syntactic conditions of Definition 9 are not imposed here, just as endOfLineRel does not impose the promise of End-of-Line: an instance violating LineSourcePromise has the extra solution 0 ^ n, and the normalization V (0 ^ n) = 0, which does not occur in (R1) or (R2), is omitted. CslibFrontier.Computability.Complexity.Classes.TFNP.Subclasses.PotentialLineNormalization formalizes the uniform polynomial-time (n + 1)-bit normalization to both conditions (PromisedPotentialLine, endOfPotentialLinePromisedRel, sinkOfPotentialLinePromisedRel, mem_EOPL_iff_promised, mem_SOPL_iff_promised): the instance on n + 1 bits with S' (0 ^ (n + 1)) = 1 0 ^ n, P' (0 ^ (n + 1)) = 0 ^ (n + 1), V' (0 ^ (n + 1)) = 0, with S' (1 u) = 1 (potentialSucc u), P' (1 u) = 1 (potentialPred u) (except P' (1 0 ^ n) = 0 ^ (n + 1)) and V' (1 u) = V u + 1, and with every other string isolated at potential 0 satisfies both conditions, and its pure (R1)/(R2) solutions are exactly the strings 1 u with u an end (resp., without the start-of-line clause, a sink) of the original potential line. Both presentations use uniform polynomial-time families rather than canonical circuit codes; UEOPL and CLS are not formalized.

Main definitions #

Main results #

References #

Potential-increasing active edges #

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

Vertex u has an active outgoing edge u → S (a, u) (hasOut) along which the potential strictly increases.

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

Vertex u has an active incoming edge P (a, u) → u (hasIn) along which the potential strictly increases.

theorem Cslib.Complexity.hasPotentialOut_eq_true_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :
hasPotentialOut n P S V a u = true ↔ P (a, S (a, u)) = u ∧ S (a, u) ≠ u ∧ S (a, u) ≠ zeroVertex (n a) ∧ V (a, u) < V (a, S (a, u))
theorem Cslib.Complexity.hasPotentialIn_eq_true_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :
hasPotentialIn n P S V a u = true ↔ S (a, P (a, u)) = u ∧ P (a, u) ≠ u ∧ u ≠ zeroVertex (n a) ∧ V (a, P (a, u)) < V (a, u)
theorem Cslib.Complexity.hasPotentialIn_of_hasPotentialOut {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialOut n P S V a u = true) :
hasPotentialIn n P S V a (S (a, u)) = true

A potential-increasing edge u → S (a, u) is the potential-increasing edge into S (a, u).

theorem Cslib.Complexity.hasPotentialOut_of_hasPotentialIn {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialIn n P S V a u = true) :
hasPotentialOut n P S V a (P (a, u)) = true

A potential-increasing edge P (a, u) → u is the potential-increasing edge out of P (a, u).

@[simp]
theorem Cslib.Complexity.hasPotentialIn_zeroVertex {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (a : α) :
hasPotentialIn n P S V a (zeroVertex (n a)) = false

The pruned maps #

def Cslib.Complexity.potentialSucc {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (p : α × List Bool) :

The pruned successor map: follow S only along potential-increasing active edges.

def Cslib.Complexity.potentialPred {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (p : α × List Bool) :

The pruned predecessor map: follow P only along potential-increasing active edges.

theorem Cslib.Complexity.potentialSucc_of_true {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialOut n P S V a u = true) :
potentialSucc n P S V (a, u) = S (a, u)
theorem Cslib.Complexity.potentialSucc_of_false {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialOut n P S V a u = false) :
potentialSucc n P S V (a, u) = u
theorem Cslib.Complexity.potentialPred_of_true {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialIn n P S V a u = true) :
potentialPred n P S V (a, u) = P (a, u)
theorem Cslib.Complexity.potentialPred_of_false {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : hasPotentialIn n P S V a u = false) :
potentialPred n P S V (a, u) = u
theorem Cslib.Complexity.length_potentialSucc {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (hS : ∀ (u : List Bool), u.length = n a → (S (a, u)).length = n a) (hu : u.length = n a) :
(potentialSucc n P S V (a, u)).length = n a
theorem Cslib.Complexity.length_potentialPred {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (hP : ∀ (u : List Bool), u.length = n a → (P (a, u)).length = n a) (hu : u.length = n a) :
(potentialPred n P S V (a, u)).length = n a
theorem Cslib.Complexity.hasOut_potential {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :
hasOut n (potentialPred n P S V) (potentialSucc n P S V) a u = hasPotentialOut n P S V a u

The active outgoing edges of the pruned maps are the potential-increasing active outgoing edges of the original maps.

theorem Cslib.Complexity.hasIn_potential {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :
hasIn n (potentialPred n P S V) (potentialSucc n P S V) a u = hasPotentialIn n P S V a u

The active incoming edges of the pruned maps are the potential-increasing active incoming edges of the original maps.

End and sink of a potential line #

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

The search relation of an end-of-potential-line family (EOPL): a vertex u of length n a is a solution if its potential-increasing incoming/outgoing parity is unbalanced relative to 0 ^ (n a): either u = 0 ^ (n a) lacks a potential-increasing outgoing edge, or u ≠ 0 ^ (n a) is a sink or a proper source of the pruned graph.

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

The search relation of a sink-of-potential-line family (SOPL): a vertex u of length n a is a solution if it has no potential-increasing outgoing edge and is either 0 ^ (n a) or has a potential-increasing incoming edge.

theorem Cslib.Complexity.endOfPotentialLineRel_eq {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) :

endOfPotentialLineRel is endOfLineRel for the pruned maps.

theorem Cslib.Complexity.sinkOfPotentialLineRel_eq {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) :

sinkOfPotentialLineRel is sinkOfLineRel for the pruned maps.

theorem Cslib.Complexity.endOfPotentialLineRel_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :

An end of a potential line is either a sink (sinkOfPotentialLineRel) or a proper source of the pruned graph.

theorem Cslib.Complexity.endOfPotentialLineRel_of_sinkOfPotentialLineRel {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : sinkOfPotentialLineRel n P S V a u) :

Every sink of a potential line is an end of it.

theorem Cslib.Complexity.sinkOfPotentialLineRel_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} :

The sinks of a potential line are its ends without a potential-increasing outgoing edge.

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

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

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

The circuit-style solution types of Fearnley et al. #

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

The syntactic promise of Fearnley et al., Definition 9: P (0 ^ n) = 0 ^ n ≠ S (0 ^ n).

Instances For
    def Cslib.Complexity.endOfPotentialLineViolationRel {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (a : α) (x : List Bool) :

    The solutions of End-of-Potential-Line in the form of Fearnley et al., Definition 9, made total by also accepting 0 ^ (n a) when the promise LineSourcePromise fails: a vertex x of length n a with

    • (R1) S (P x) ≠ x ≠ 0 ^ (n a) or P (S x) ≠ x; or
    • (R2) x ≠ S x, P (S x) = x and V (S x) ≤ V x.
    def Cslib.Complexity.sinkOfPotentialLineViolationRel {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (a : α) (x : List Bool) :

    The solutions of Sink-of-Potential-Line in circuit form: those of endOfPotentialLineViolationRel without the start-of-line clause S (P x) ≠ x ≠ 0 ^ (n a).

    theorem Cslib.Complexity.lineSourcePromise_potential_iff {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} :

    The pruned maps satisfy the promise exactly when 0 ^ (n a) has a potential-increasing outgoing edge.

    theorem Cslib.Complexity.endOfPotentialLineRel_of_violation {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {x : List Bool} (h : endOfPotentialLineViolationRel n (potentialPred n P S V) (potentialSucc n P S V) V a x) :

    Pruned violations are ends. Every circuit-style violation of the pruned instance is an end of the potential line, at the same vertex.

    theorem Cslib.Complexity.sinkOfPotentialLineRel_of_violation {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {x : List Bool} (h : sinkOfPotentialLineViolationRel n (potentialPred n P S V) (potentialSucc n P S V) V a x) :

    Pruned violations are sinks. Every circuit-style sink violation of the pruned instance is a sink of the potential line, at the same vertex.

    def Cslib.Complexity.potentialLineBack {α : Type} (n : α → ℕ) (P S : α × List Bool → List Bool) (V : α × List Bool → ℕ) (p : α × List Bool) :

    The back-map from ends of a potential line to circuit-style violations: 0 ^ (n a) if the promise LineSourcePromise fails; otherwise the predecessor P (a, u) if u has an active incoming edge (hasIn) along which the potential does not increase; otherwise u itself.

    theorem Cslib.Complexity.potentialLineBack_of_promise {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : LineSourcePromise n P S a) :
    potentialLineBack n P S V (a, u) = if (hasIn n P S a u && decide (V (a, u) ≤ V (a, P (a, u)))) = true then P (a, u) else u
    theorem Cslib.Complexity.potentialLineBack_of_not_promise {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : ¬LineSourcePromise n P S a) :
    theorem Cslib.Complexity.sinkOfPotentialLineViolationRel_potentialLineBack {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (h : sinkOfPotentialLineRel n P S V a u) :

    Sinks yield circuit-style sink violations.

    theorem Cslib.Complexity.endOfPotentialLineViolationRel_potentialLineBack {α : Type} {n : α → ℕ} {P S : α × List Bool → List Bool} {V : α × List Bool → ℕ} {a : α} {u : List Bool} (hP : ∀ (u : List Bool), u.length = n a → (P (a, u)).length = n a) (h : endOfPotentialLineRel n P S V a u) :

    Ends yield circuit-style violations. Every end u of the potential line yields the circuit-style violation potentialLineBack (a, u) of the raw instance.

    Polynomial-time computability #

    FNP and TFNP membership #

    The classes EOPL and SOPL #

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

    End of Potential Line (EOPL) Fearnley, Gordon, Mehta and Savani: FNP search problems search-reducible to finding an end of a uniform polynomial-time potential-line family endOfPotentialLineRel n P S V.

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

    Sink of Potential Line (SOPL) Göös et al.: FNP search problems search-reducible to finding a sink of a uniform polynomial-time potential-line family sinkOfPotentialLineRel n P S V. This sink-only variant of EOPL was suggested by Göös, Kamath, Robere and Sokolov.

    theorem Cslib.Complexity.SearchReducible.mem_EOPL {α β : 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 ∈ EOPL encB) :
    R ∈ EOPL enc

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

    theorem Cslib.Complexity.SearchReducible.mem_SOPL {α β : 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 ∈ SOPL encB) :
    R ∈ SOPL enc

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

    Equivalence with the circuit-style solution types #

    Inclusions #

    theorem Cslib.Complexity.EOPL_subset_TFNP {α : Type} {enc : α ↪ List Bool} :
    EOPL enc ⊆ TFNP enc

    EOPL ⊆ TFNP.

    theorem Cslib.Complexity.SOPL_subset_TFNP {α : Type} {enc : α ↪ List Bool} :
    SOPL enc ⊆ TFNP enc

    SOPL ⊆ TFNP.

    theorem Cslib.Complexity.EOPL_subset_SOPL {α : Type} {enc : α ↪ List Bool} :
    EOPL enc ⊆ SOPL enc

    EOPL ⊆ SOPL Göös et al., Figure 1: every sink of a potential line is an end of it, so the identity is a search reduction.

    theorem Cslib.Complexity.EOPL_subset_PPAD {α : Type} {enc : α ↪ List Bool} :
    EOPL enc ⊆ PPAD enc

    EOPL ⊆ PPAD Fearnley et al.: an end-of-potential-line family is the end-of-line family of its pruned maps.

    theorem Cslib.Complexity.SOPL_subset_PPADS {α : Type} {enc : α ↪ List Bool} :
    SOPL enc ⊆ PPADS enc

    SOPL ⊆ PPADS Göös et al.: a sink-of-potential-line family is the sink-of-line family of its pruned maps.

    SOPL ⊆ PLS #

    A polynomial-time potential is bounded on each cube {0, 1} ^ (n a) by a polynomial-time power of two B a = 2 ^ m a, with the exponent m a computed in unary. This is the potential range {0, …, 2 ^ m - 1} of Fearnley et al., Definition 9.

    theorem Cslib.Complexity.SOPL_subset_PLS {α : Type} {enc : α ↪ List Bool} :
    SOPL enc ⊆ PLS enc

    SOPL ⊆ PLS Göös et al.: follow the pruned successor along potential lines, with cost B - V below a polynomial-time potential bound B, and send every vertex off the potential lines to 0 ^ n at the higher cost B + 1. Local optima are exactly the sinks.

    theorem Cslib.Complexity.EOPL_subset_PLS {α : Type} {enc : α ↪ List Bool} :
    EOPL enc ⊆ PLS enc

    EOPL ⊆ PLS Fearnley et al..

    theorem Cslib.Complexity.EOPL_subset_PLS_inter_PPAD {α : Type} {enc : α ↪ List Bool} :
    EOPL enc ⊆ PLS enc ∩ PPAD enc

    EOPL ⊆ PLS ∩ PPAD Fearnley et al..

    theorem Cslib.Complexity.SOPL_subset_PLS_inter_PPADS {α : Type} {enc : α ↪ List Bool} :
    SOPL enc ⊆ PLS enc ∩ PPADS enc

    SOPL ⊆ PLS ∩ PPADS Göös et al..