Documentation

Complexitylib.Classes.FNP.Defs

FNP and TFNP — Definitions #

Core definitions for the function/search complexity classes FNP and TFNP, and the OrRelation combinator used to construct TFNP problems from NP ∩ coNP witness pairs.

FNP is the class of search problems defined by NP relations: binary relations that are polynomially balanced and decidable in polynomial time. A relation R is in FNP if witnesses have poly-bounded length and the pair language {pair(x, y) | R x y} is in P.

Equations
Instances For

    TFNP is the class of total FNP search problems: every instance has at least one witness.

    Equations
    Instances For
      def Complexity.OrRelation (R₁ R₂ : List BoolList BoolProp) :

      Combine two witness relations by disjunction. Used to construct TFNP problems from NP ∩ coNP witness pairs: the combined relation accepts any witness valid for either component.

      Equations
      Instances For