Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Permanent

The permanent belongs to VNP #

The permanent family permFamily K belongs to the existing nonuniform class VNP K over every commutative ring K. Its witness is the inner polynomial of Ryser's formula Schauz, Theorem 1.2, p. 3:

(∏ j, (2 * Y j - 1)) * ∏ i, ∑ j, Y j * X (i, j).

The first n * n variables are matrix entries in row-major order; the last n are Boolean column selectors. The witness has degree at most 3 * n and an arithmetic circuit with at most 2 * n ^ 2 + 4 * n + 5 gates, constants included. Substituting Boolean selectors and summing with the existing booleanSum yields the generic permanent as a formal polynomial. No field, nontriviality or characteristic assumption is needed.

The witness is certified through the existing synthesis API. Only nonuniform circuit existence and gate counts are proved; construction runtime is not certified. Valiant's VNP-hardness of the permanent, including its restriction on characteristic, remains unproved here.

Main definitions #

Main results #

References #

The witness and Boolean substitution proof adapt the saved Complexitylib development at revision 5b8acca7; the synthesis proof and explicit gate bound are new.

noncomputable def Cslib.Circuits.Arithmetic.ryserPoly (R : Type u) [CommRing R] (n : ℕ) :
MvPolynomial (Fin (n * n + n)) R

The inner polynomial of Ryser's formula in n * n + n variables: the first n * n variables are the entries of genericMatrix R n and the last n variables are {0, 1}-valued column indicators.

The Ryser inner polynomial has total degree at most 3 * n.

theorem Cslib.Circuits.Arithmetic.exists_circuit_ryserPoly {R : Type u} [CommRing R] (n : ℕ) :
∃ (c : Circuit (arithSignature R) (n * n + n) 1), c.polynomial 0 = ryserPoly R n ∧ c.size ≤ 2 * n ^ 2 + 4 * n + 5

A circuit computing the Ryser witness with at most 2 * n ^ 2 + 4 * n + 5 gates, including constants. Only nonuniform existence and gate count are certified.

Summing ryserPoly R n over all {0, 1} assignments to the n indicator variables yields the permanent of genericMatrix R n.

The permanent family belongs to VNP over every commutative ring R. The witness has n selectors and is computed by polynomial-size arithmetic circuits. This is the membership direction of Valiant's completeness theorem; no hardness is asserted.