Documentation

CslibFrontier.Foundations.Data.MvPolynomial.PartialDerivatives

Spaces of partial derivatives #

MvPolynomial.iteratedPDeriv α differentiates along each variable of the tuple α in turn, and MvPolynomial.partialDerivatives k p sends a coefficient vector c to ∑ α, c α • ∂_α p, the sum running over all k-tuples of variables. Its range is the span of the k-th order partial derivatives of p (MvPolynomial.range_partialDerivatives), so its rank is their dimension. This is the order-k measure Γ_k of Kayal and Saptharishi, §5.2. It refines the measure of Nisan and Wigderson, the dimension of the span of the partial derivatives of all orders Nisan and Wigderson, §3. The map is linear in p, so the measure is subadditive, and renaming the variables along an injection does not decrease it.

Every partial derivative of a product of affine forms is a combination of products of fewer of the same forms: differentiating once removes one factor and leaves its coefficient. So the k-th order partial derivatives of a product of d affine forms lie in the span of the choose d k products omitting k of the factors. This is the order-k form of Nisan and Wigderson, Lemma 3, which bounds the all-orders measure of such a product by 2 ^ d, and it is a claim in the chapter "Lower bounds for depth-3 circuits" of Saptharishi's survey. It holds in every characteristic.

Main definitions #

Main results #

References #

noncomputable def MvPolynomial.iteratedPDeriv {R : Type u} {σ : Type v} [CommSemiring R] {k : ℕ} :
(Fin k → σ) → Module.End R (MvPolynomial σ R)

The iterated partial derivative ∂_{α 0} ∘ ⋯ ∘ ∂_{α (k - 1)}.

@[simp]
theorem MvPolynomial.iteratedPDeriv_zero {R : Type u} {σ : Type v} [CommSemiring R] (α : Fin 0 → σ) :
theorem MvPolynomial.iteratedPDeriv_succ_apply {R : Type u} {σ : Type v} [CommSemiring R] {k : ℕ} (α : Fin (k + 1) → σ) (p : MvPolynomial σ R) :
(iteratedPDeriv α) p = (pderiv (α 0)) ((iteratedPDeriv (Fin.tail α)) p)
theorem MvPolynomial.iteratedPDeriv_rename {R : Type u} {σ : Type v} [CommSemiring R] {τ : Type u_1} {f : σ → τ} (hf : Function.Injective f) {k : ℕ} (α : Fin k → σ) (p : MvPolynomial σ R) :
(iteratedPDeriv (f ∘ α)) ((rename f) p) = (rename f) ((iteratedPDeriv α) p)

Injective variable renaming commutes with iterated partial differentiation.

theorem MvPolynomial.iteratedPDeriv_shift {R : Type u} {σ : Type v} [CommSemiring R] {A : Type u_1} [CommSemiring A] [Algebra R A] (a : σ → A) {k : ℕ} (α : Fin k → σ) (p : MvPolynomial σ R) :
(iteratedPDeriv α) ((shift a) p) = (shift a) ((iteratedPDeriv α) p)

Shifting the variables commutes with iterated partial differentiation.

theorem Finsupp.exists_fin_sum_single_one_eq {σ : Type v} (μ : σ →₀ ℕ) :
∃ (k : ℕ) (α : Fin k → σ), ∑ i : Fin k, single (α i) 1 = μ

Every exponent vector is the sum of the unit vectors of a tuple of variables: its variables, repeated according to their exponents.

theorem MvPolynomial.coeff_iteratedPDeriv_ne_zero_iff {R : Type u} {σ : Type v} [CommSemiring R] [CharZero R] [NoZeroDivisors R] {k : ℕ} (α : Fin k → σ) (p : MvPolynomial σ R) (m : σ →₀ ℕ) :
((iteratedPDeriv α) p).coeff m ≠ 0 ↔ p.coeff (m + ∑ i : Fin k, Finsupp.single (α i) 1) ≠ 0

In characteristic zero, the coefficient of a monomial m in the iterated partial derivative along α is not zero exactly when the coefficient of m * ∏ i, X (α i) in the polynomial is not zero.

theorem MvPolynomial.IsWeightedHomogeneous.iteratedPDeriv {R : Type u} {σ : Type v} [CommSemiring R] {M : Type u_1} [AddCommMonoid M] [IsRightCancelAdd M] {w : σ → M} {p : MvPolynomial σ R} {n : M} {k : ℕ} {α : Fin k → σ} (hp : IsWeightedHomogeneous w p (n + ∑ i : Fin k, w (α i))) :

An iterated partial derivative of a weighted homogeneous polynomial is weighted homogeneous: the weighted degree drops by the weights of the variables of the tuple. The case of one variable is MvPolynomial.IsWeightedHomogeneous.pderiv, which asks for an AddCancelCommMonoid of weights; finitely supported functions are not registered as one.

noncomputable def MvPolynomial.partialDerivatives {R : Type u} {σ : Type v} [CommSemiring R] [Fintype σ] (k : ℕ) :
MvPolynomial σ R →ₗ[R] ((Fin k → σ) → R) →ₗ[R] MvPolynomial σ R

The k-th order partial derivatives of p, combined linearly: c ↦ ∑ α, c α • ∂_α p. Its range is their span (MvPolynomial.range_partialDerivatives), and its rank their dimension.

theorem MvPolynomial.partialDerivatives_apply {R : Type u} {σ : Type v} [CommSemiring R] [Fintype σ] (k : ℕ) (p : MvPolynomial σ R) :
(partialDerivatives k) p = Fintype.linearCombination R fun (α : Fin k → σ) => (iteratedPDeriv α) p
theorem MvPolynomial.range_partialDerivatives {R : Type u} {σ : Type v} [CommSemiring R] [Fintype σ] (k : ℕ) (p : MvPolynomial σ R) :
((partialDerivatives k) p).range = Submodule.span R (Set.range fun (α : Fin k → σ) => (iteratedPDeriv α) p)

The range of partialDerivatives k p is the span of the k-th order partial derivatives.

theorem MvPolynomial.rank_partialDerivatives_le_rename {σ : Type v} [Fintype σ] {K : Type u_1} [Field K] {τ : Type v} [Fintype τ] {f : σ → τ} (hf : Function.Injective f) (k : ℕ) (p : MvPolynomial σ K) :

Renaming the variables along an injection does not decrease the partial-derivative measure.

theorem MvPolynomial.rank_partialDerivatives_prod_le {σ : Type v} [Fintype σ] {K : Type u_1} [Field K] {d : ℕ} (a : Fin d → σ → K) (b : Fin d → K) (k : ℕ) :
((partialDerivatives k) (∏ i : Fin d, (∑ v : σ, a i v • X v + C (b i)))).rank ≤ ↑(d.choose k)

The k-th order partial derivatives of a product of d affine forms span at most choose d k dimensions: the order-k form of Nisan and Wigderson, Lemma 3.