Total function NP

The class of total search problems in FNP — search problems where a solution is guaranteed to exist for every input but may be hard to find. Formally, a problem is in TFNP if there is a polynomial-time verifier such that:

  1. For every input , there exists a witness with (totality).
  2. The witness has length polynomial in .

Totality means the problem cannot be NP-complete (unless NP = coNP), since a reduction from SAT to a total problem yields NP certificates of unsatisfiability (Megiddo–Papadimitriou, TCS 1991). This makes TFNP a natural home for problems believed to be hard but not NP-hard.

See the complexity zoo entry here.

Subclasses

TFNP contains several important subclasses defined by the combinatorial principle guaranteeing existence of a solution:

  • PPAD (Polynomial Parity Argument, Directed): finding a Nash equilibrium is PPAD-complete, already for two-player games — DGP09, CDT09. PPAD is hard assuming iO and one-way functions, both sub-exponentially secure — BPR15 — or sub-exponential LWE — JKKZ21.
  • PPP (Polynomial Pigeonhole Principle): contains the problem of finding either a preimage of or a collision in a function (pigeonhole guarantees one exists) — Pap94. Integer factorization reduces to the PPP problem WeakPigeon in randomized polynomial time, and deterministically under the generalized Riemann hypothesis — Jer16. Suitable formulations of discrete logarithm in general groups are PPP-complete — HV21.
  • PPA (Polynomial Parity Argument): related to graph parity arguments. Integer factorization reduces to a PPA problem in randomized polynomial time, and deterministically under the generalized Riemann hypothesis — Jer16.
  • PLS (Polynomial Local Search): finding local optima. Contains many optimization problems.

Known relationships

  • .
  • No TFNP problem is NP-hard unless NP = coNP (Megiddo–Papadimitriou, TCS 1991).

Relevance to cryptography

Integer factorization and discrete logarithm — the two most historically important hard problems in cryptography — are both in TFNP, formalizing the intuition that they are “hard search problems with guaranteed solutions.” Recent work derives hardness of TFNP subclasses (especially PPAD) from cryptographic assumptions: PPAD is hard assuming indistinguishability obfuscation and one-way functions, both sub-exponentially secure — BPR15.

Participates in

Produces Total function NP