Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Determinant.Projection

Specialization matrices, branching programs and projections of the determinant #

A polynomial over a commutative ring K is a projection of the m × m generic determinant (genericMatrix K m).det if and only if it is the determinant of an m × m specialization matrix (IsSubstMatrix), whose entries are variables X i or constants C c (IsSubstEntry). Through block-diagonal specialization matrices, projections of generic determinants are closed under multiplication (with dimensions adding) and monotone in the matrix dimension.

To close under addition as well, IsSubstABP k P represents P as the source-to-sink path sum of a strictly upper-triangular specialization branching program on Fin (k + 2) in topological order. By Matrix.eq_det_submatrix_sub_one_of_eq_single_add_vecMul, such a program yields a projection of (genericMatrix K (k + 1)).det, with -1 along the subdiagonal of N - 1 absorbing the cycle signs over every commutative ring K without field or characteristic hypotheses. Series and parallel-bridge compositions add at most k₁ + k₂ + 1 steps, giving both linear-size formula simulation (CslibFrontier/Computability/Circuit/Arithmetic/Determinant/Formula.lean) and Valiant's projection universality (exists_isProjection_det) for arbitrary multivariate polynomials.

Main definitions #

Main results #

References #

The determinant of a square specialization matrix indexed by α is a projection of the |α| × |α| generic determinant.

A polynomial P is a projection of (genericMatrix K m).det if and only if it is the determinant of an m × m specialization matrix.

theorem Cslib.Circuits.Arithmetic.IsProjection.det_mul {K : Type u} [CommRing K] {σ : Type u_1} {P Q : MvPolynomial σ K} {m k : ℕ} (hP : IsProjection P (genericMatrix K m).det) (hQ : IsProjection Q (genericMatrix K k).det) :
IsProjection (P * Q) (genericMatrix K (m + k)).det

Multiplicative closure of determinant projections: if P is a projection of the m × m generic determinant and Q is a projection of the k × k generic determinant, then P * Q is a projection of the (m + k) × (m + k) generic determinant.

theorem Cslib.Circuits.Arithmetic.isProjection_det_mono {K : Type u} [CommRing K] {σ : Type u_1} {P : MvPolynomial σ K} {m k : ℕ} (hmk : m ≤ k) (hP : IsProjection P (genericMatrix K m).det) :

Monotonicity of determinant projections in the matrix dimension: if m ≤ k and P is a projection of (genericMatrix K m).det, then P is a projection of (genericMatrix K k).det.

Acyclic specialization branching programs #

def Cslib.Circuits.Arithmetic.IsSubstABP {K : Type u} [CommRing K] {σ : Type u_1} (k : ℕ) (P : MvPolynomial σ K) :

A polynomial P is computed by a specialization branching program of size k + 1 when some strictly upper-triangular specialization matrix N on Fin (k + 2) has path-sum vector q (q = Pi.single 0 1 + q ᵥ* N) ending at q (Fin.last (k + 1)) = P.

A specialization branching program of size k + 1 gives a projection of the (k + 1) × (k + 1) generic determinant.

Every single substitution entry (a variable X i or constant C c) is computed by a 1-step specialization branching program (k = 0).

theorem Cslib.Circuits.Arithmetic.IsSubstABP.mul {K : Type u} [CommRing K] {σ : Type u_1} {k₁ k₂ : ℕ} {P Q : MvPolynomial σ K} (hP : IsSubstABP k₁ P) (hQ : IsSubstABP k₂ Q) :
IsSubstABP (k₁ + k₂ + 1) (P * Q)

Multiplicative closure of specialization branching programs by series composition.

theorem Cslib.Circuits.Arithmetic.IsSubstABP.add {K : Type u} [CommRing K] {σ : Type u_1} {k₁ k₂ : ℕ} {P Q : MvPolynomial σ K} (hP : IsSubstABP k₁ P) (hQ : IsSubstABP k₂ Q) :
IsSubstABP (k₁ + k₂ + 1) (P + Q)

Additive closure of specialization branching programs by parallel composition with a unit bridge edge between sinks.

theorem Cslib.Circuits.Arithmetic.exists_isSubstABP {K : Type u} [CommRing K] {σ : Type u_1} (f : MvPolynomial σ K) :
∃ (k : ℕ), IsSubstABP k f

Every polynomial in MvPolynomial σ K is computed by a specialization branching program of some finite size.

Valiant's projection universality: over every commutative ring K and arbitrary variable index type σ, every polynomial f : MvPolynomial σ K is a projection of (genericMatrix K m).det for some m : ℕ Valiant.