Documentation

CslibFrontier.Computability.Circuit.Arithmetic.GridSum

Grid sums are affine projections of the permanent and of the Hamiltonian cycle polynomial #

A grid sum sums over two families of bits, x : V → Bool and r : W' → Bool, a product of weights, one for each incidence n : N between a bit v n of the first family and a bit w n of the second: ∑ x, ∑ r, ∏ n, W n (x (v n)) (r (w n)). A family G of polynomials is complete for grid sums with blow-up κ (GridComplete G κ) when every grid sum whose weights at the incidences of one bit r b are affine in one common variable is an affine projection of G.poly S for every S ≥ κ * |N|.

The permanent is complete for grid sums with blow-up 3 when 2 ≠ 0 (gridComplete_permFamily), and the Hamiltonian cycle polynomial with blow-up 40 in every characteristic (gridComplete_hcFamily), by the matrix forms Matrix.exists_permanent_eq_gridSum and Matrix.exists_hamiltonianCycleSum_eq_gridSum. Sums of products of clauses, weights that apply when all their literals hold (clauseSum), are grid sums, hence affine projections of every family complete for grid sums (GridComplete.isAffineProjection_clauseSum).

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Arithmetic.affineIn {K : Type} [Field K] {ι : Type u_1} :
Option ι → Submodule K (MvPolynomial ι K)

The polynomials affine in the variable o: the constants for o = none, and the span of the constants and X i for o = some i.

theorem Cslib.Circuits.Arithmetic.one_mem_affineIn {K : Type} [Field K] {ι : Type u_1} (o : Option ι) :

The constant 1 is affine in every variable.

theorem Cslib.Circuits.Arithmetic.C_mem_affineIn {K : Type} [Field K] {ι : Type u_1} (o : Option ι) (b : K) :

Constants are affine in every variable.

theorem Cslib.Circuits.Arithmetic.IsAffine.of_mem_affineIn {K : Type} [Field K] {ι : Type u_1} {o : Option ι} {P : MvPolynomial ι K} (h : P ∈ affineIn o) :

A polynomial affine in one variable is affine.

A family G of polynomials is complete for grid sums with blow-up κ: a grid sum ∑ x, ∑ r, ∏ n, W n (x (v n)) (r (w n)) over surjections v and w, whose weights at the incidences n with one value w n = b are affine in the variable o b, is an affine projection of G.poly S for every S ≥ κ * |N|.

The permanent is complete for grid sums with blow-up 3 when 2 ≠ 0 Claude, VP ≠ VNP over every field, Proposition prop:grid.

The Hamiltonian cycle polynomial is complete for grid sums with blow-up 40 in every characteristic Claude, VP ≠ VNP over every field, Proposition prop:hc-grid.

Clause sums #

theorem Cslib.Circuits.Arithmetic.GridComplete.isAffineProjection_clauseSum {K : Type} [Field K] {G : PolynomialFamily K} {c : ℕ} (hG : GridComplete G c) {ι V Θ : Type} [Fintype V] [DecidableEq V] [Fintype Θ] (lits : Θ → List (V × Bool)) (hne : ∀ (κ : Θ), lits κ ≠ []) (hocc : ∀ (b : V), ∃ (κ : Θ), ∃ l ∈ lits κ, l.1 = b) (wt : Θ → MvPolynomial ι K) (hwt : ∀ (κ : Θ), (∃ (i : ι), wt κ = MvPolynomial.X i) ∨ ∃ (a : K), wt κ = MvPolynomial.C a) {S : ℕ} (hS : c * ∑ κ : Θ, (lits κ).length ≤ S) :

Clause sums are affine projections of every family complete for grid sums Claude, VP ≠ VNP over every field, Corollary cor:clauses. Let every clause have a literal, every bit occur in a literal, and every weight be a variable or a constant. Then the clause sum is an affine projection of G.poly S for every S ≥ κ * N, where N is the total number of literals. Each literal is an incidence between its bit and its clause.