Documentation

CslibFrontier.Foundations.Data.Matrix.Permanent.Grid

Sums over two families of bits as permanents #

Let v : N → V and w : N → K be surjections of finite types: every incidence n : N joins a bit x (v n) of a first family x : V → Bool to a bit r (w n) of a second family r : K → Bool. A grid sum sums over both families the product of one weight W n for each incidence, ∑ x, ∑ r, ∏ n, W n (x (v n)) (r (w n)). Over a commutative ring in which 2 is invertible, every grid sum is a permanent of size 3 * |N|, with entries 0, ±1, ±1/2 and sums of weights (Matrix.exists_permanent_eq_gridSum), and so of every larger size, padding with an identity block.

The proof has three steps. First, the permanent of M is the coefficient of the product of all variables in ∏ i, ∑ j, M i j * X j, and that coefficient does not change modulo the squares of the variables. Second, the grid matrix has three rows and columns (n, none), (n, some true), (n, some false) for every incidence; modulo squares, the product of its first two rows at n collapses to two terms, so that expanding the product of all rows chooses, at every incidence, a bit of a cycle of a permutation σ, a bit of a cycle of ρ, and a weight. The choices whose columns are all distinct are the families of bits constant on the cycles. Third, σ and ρ are chosen with the fibres of v and w as cycles.

Main results #

References #

theorem Matrix.exists_permanent_eq_gridSum {R : Type u_1} [CommRing R] (h : R) (hh : h * 2 = 1) {N : Type u_2} {V : Type u_3} {K : Type u_4} [Fintype N] [Fintype V] [DecidableEq V] [Fintype K] [DecidableEq K] (v : N → V) (w : N → K) (hv : Function.Surjective v) (hw : Function.Surjective w) (W : N → Bool → Bool → R) {S : ℕ} (hS : 3 * Fintype.card N ≤ S) :
∃ (M : Matrix (Fin S) (Fin S) R), (∀ (i j : Fin S), M i j ∈ {0, 1, -1, h, -h} ∨ ∃ (k : K), M i j ∈ AddSubmonoid.closure {y : R | ∃ (n : N) (x : Bool) (r : Bool), w n = k ∧ y = W n x r}) ∧ M.permanent = ∑ x : V → Bool, ∑ r : K → Bool, ∏ n : N, W n (x (v n)) (r (w n))

Grid sums are permanents Claude, VP ≠ VNP over every field, Proposition prop:grid. Let R be a commutative ring in which 2 has an inverse h, let v : N → V and w : N → K be surjections of finite types, and let W n x r ∈ R. Then the grid sum ∑ x, ∑ r, ∏ n, W n (x (v n)) (r (w n)) is the permanent of an S × S matrix, for every S ≥ 3 * |N|, whose entries are 0, ±1, ±h, or sums of values W n x r with one value of w n.