Documentation

CslibFrontier.Computability.Circuit.Arithmetic.DepthThree

Depth-three circuits for the determinant and permanent #

A depth-three circuit with product fan-in at most d adds products of at most d affine forms. The partial-derivative method of Nisan and Wigderson [NW96] bounds such circuits by a subadditive measure, the dimension of a span of partial derivatives. Here the measure is the span of the k-th order partial derivatives (MvPolynomial.partialDerivatives), as in Kayal and Saptharishi, §5.2. A product of d affine forms has measure at most choose d k (MvPolynomial.rank_partialDerivatives_prod_le), the order-k form of Nisan and Wigderson, Lemma 3. The generic n × n determinant and permanent have measure at least choose n k ^ 2, by the minors argument of Kayal and Saptharishi, §5.2 (Matrix.choose_sq_le_rank_partialDerivatives_det_mvPolynomialX). So every such circuit computing either one has at least choose n k ^ 2 / choose d k product gates. For n ≥ 4 and product fan-in at most 2 * n on the 2n × 2n determinant or permanent, the middle split gives more than 4 ^ n / n product gates. This covers homogeneous circuits, whose product fan-in is at most the degree Nisan and Wigderson, §3. Exponential lower bounds for the determinant against homogeneous depth-three circuits are due to Nisan [Nis91b], as Nisan and Wigderson, §2.2 record.

A Term K σ d is a product of exactly d affine forms. For d > 0 it covers every scalar multiple of a product of at most d affine forms: pad with the constant form 1 and absorb the scalar into a factor. At d = 0 its polynomial is the empty product 1. Circuits add terms (Cslib.Circuits.SumOfTerms): additions and wiring are free and a reused product gate is charged once, so the cost counts product gates and is at most the size of the circuit. The field is arbitrary, and the premise is equality of formal polynomials. These are bounds for this restricted model, not for unrestricted arithmetic circuits.

Main definitions #

Main results #

References #

structure Cslib.Circuits.DepthThree.Term (K : Type u_1) (σ : Type u_2) (d : ℕ) :
Type (max u_1 u_2)

A product of exactly d affine forms in the variables σ: one product gate of a depth-three circuit with product fan-in at most d, fewer factors being padded with the constant form 1.

  • coefficients : Fin d → σ → K

    The coefficient of each variable in each factor.

  • constants : Fin d → K

    The constant term of each factor.

noncomputable def Cslib.Circuits.DepthThree.Term.polynomial {K : Type u_1} {σ : Type u_2} {d : ℕ} [CommSemiring K] [Fintype σ] (t : Term K σ d) :

The polynomial represented by a depth-three term.

Every output of a depth-three circuit with product fan-in at most d has k-th order partial-derivative dimension at most choose d k times the number of product gates: the order-k form of Nisan and Wigderson, Lemma 3. Additions and wiring are free, and shared gates are charged once.

A depth-three circuit with product fan-in at most d computing the generic n × n determinant has at least choose n k ^ 2 / choose d k product gates, for every k.

A depth-three circuit with product fan-in at most d computing the generic n × n permanent has at least choose n k ^ 2 / choose d k product gates, for every k.

theorem Cslib.Circuits.DepthThree.four_pow_lt_mul_cost_det {K : Type u_1} [Field K] {n m : ℕ} (hn : 4 ≤ n) (c : Circuit (SumOfTerms.signature (Term K (Fin (2 * n) × Fin (2 * n)) (2 * n))) 0 m) (j : Fin m) (hcompute : c.eval (SumOfTerms.interpretation Term.polynomial) Fin.elim0 j = (Matrix.mvPolynomialX (Fin (2 * n)) (Fin (2 * n)) K).det) :

For n ≥ 4, depth-three circuits with product fan-in at most 2 * n, in particular homogeneous ones, computing the generic 2n × 2n determinant need more than 4 ^ n / n product gates.

theorem Cslib.Circuits.DepthThree.four_pow_lt_mul_cost_permanent {K : Type u_1} [Field K] {n m : ℕ} (hn : 4 ≤ n) (c : Circuit (SumOfTerms.signature (Term K (Fin (2 * n) × Fin (2 * n)) (2 * n))) 0 m) (j : Fin m) (hcompute : c.eval (SumOfTerms.interpretation Term.polynomial) Fin.elim0 j = (Matrix.mvPolynomialX (Fin (2 * n)) (Fin (2 * n)) K).permanent) :

For n ≥ 4, depth-three circuits with product fan-in at most 2 * n, in particular homogeneous ones, computing the generic 2n × 2n permanent need more than 4 ^ n / n product gates.