Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.PartialDerivatives

Partial derivatives of the generic determinant and permanent #

The k-th order partial derivatives of the generic n × n determinant and permanent include, up to sign, all their (n - k) × (n - k) minors, which have disjoint sets of monomials and so are linearly independent Kayal and Saptharishi, §5.2. So their partial-derivative measure is at least choose n k ^ 2. Kayal and Saptharishi state equality; this file proves the lower bound, over every field.

Both polynomials are sums ∑ σ, w σ • ∏ i, X (σ i, i) over the permutations, with nonzero weights w σ: signs and ones. Fix sets R of rows and C of columns, both of size k, and a permutation τ mapping C onto R. Differentiating along the entries (τ c, c), c ∈ C, keeps the permutations that agree with τ on C, without these entries: the minor deleting R and C, up to sign. Instead of comparing supports, evaluate at the 0/1 point of the entries (τ' i, i) of another such pair (R', C', τ'), with i ∉ C'. Some permutation survives only if (R', C') = (R, C), and then only τ. So these choose n k ^ 2 derivatives are linearly independent.

Main results #

References #

theorem Matrix.det_mvPolynomialX_eq_sum {ι : Type u_2} {R : Type u_3} [Fintype ι] [DecidableEq ι] [CommRing R] :
(mvPolynomialX ι ι R).det = ∑ σ : Equiv.Perm ι, ↑↑(Equiv.Perm.sign σ) • ∏ i : ι, MvPolynomial.X (σ i, i)

The generic determinant as a signed sum of permutation monomials.

theorem Matrix.permanent_mvPolynomialX_eq_sum {ι : Type u_2} {R : Type u_3} [Fintype ι] [DecidableEq ι] [CommSemiring R] :
(mvPolynomialX ι ι R).permanent = ∑ σ : Equiv.Perm ι, 1 • ∏ i : ι, MvPolynomial.X (σ i, i)

The generic permanent as a sum of permutation monomials.

theorem Matrix.pderiv_prod_X {ι : Type u_2} {R : Type u_3} [DecidableEq ι] [CommSemiring R] (σ : Equiv.Perm ι) (r c : ι) (S : Finset ι) :
(MvPolynomial.pderiv (r, c)) (∏ i ∈ S, MvPolynomial.X (σ i, i)) = if c ∈ S ∧ σ c = r then ∏ i ∈ S.erase c, MvPolynomial.X (σ i, i) else 0

The partial derivative of a product of permutation entries X (σ i, i) along (r, c) deletes the factor of column c when it is the entry (r, c), and vanishes otherwise.

The k-th order partial derivatives of the generic n × n determinant span at least choose n k ^ 2 dimensions: up to sign, the (n - k) × (n - k) minors are among them, and they are linearly independent Kayal and Saptharishi, §5.2. This holds over every field.

The k-th order partial derivatives of the generic n × n permanent span at least choose n k ^ 2 dimensions: the (n - k) × (n - k) subpermanents are among them, and they are linearly independent Kayal and Saptharishi, §5.2. This holds over every field.