Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4.1, (4.3a), p. 7 — vec(C^(q)E)ᵀ = vec(C^(q))ᵀF^(q) and ∂/∂C^(q) = ∂/∂A^(P+q)·Eᵀ

Proved
TensorBTD.Cogradient.proposition_4_1

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

chain-rulekronecker-productp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1wirtinger-derivative

Let F(q)=E⊗IIP+qF^{(q)}=E\otimes\mathbb I_{I_{P+q}}F(q)=E⊗IIP+q​​, the Kronecker product of the R×R′R\times R'R×R′ matrix EEE with the identity of order IP+qI_{P+q}IP+q​. Then:

  1. for every C(q)∈CIP+q×RC^{(q)}\in\mathbb C^{I_{P+q}\times R}C(q)∈CIP+q​×R,
vec⁡(C(q)E)T=vec⁡(C(q))TF(q);\operatorname{vec}(C^{(q)}E)^{\mathrm T}=\operatorname{vec}(C^{(q)})^{\mathrm T}F^{(q)};vec(C(q)E)T=vec(C(q))TF(q);
  1. (chain rule (4.3a)) let ggg be a complex-valued function of the factor matrices A(1),…,A(N)A^{(1)},\dots,A^{(N)}A(1),…,A(N) of the unstructured CPD, and let zzz be the structured unknowns. If ggg is real-differentiable at the factor matrices (3.6) of zzz, then the cogradient of z↦g(A(1),…,A(P),C(1)E,…,C(Q)E)z\mapsto g(A^{(1)},\dots,A^{(P)},C^{(1)}E,\dots,C^{(Q)}E)z↦g(A(1),…,A(P),C(1)E,…,C(Q)E) with respect to C(q)C^{(q)}C(q) is
∂∂C(q)=∂∂A(P+q)⋅ET,\frac{\partial}{\partial C^{(q)}}=\frac{\partial}{\partial A^{(P+q)}}\cdot E^{\mathrm T},∂C(q)∂​=∂A(P+q)∂​⋅ET,

the right-hand side being the cogradient of ggg with respect to A(P+q)A^{(P+q)}A(P+q) evaluated at A(P+q)=C(q)EA^{(P+q)}=C^{(q)}EA(P+q)=C(q)E.

The proposition lets one first differentiate with respect to A(P+q)A^{(P+q)}A(P+q) as if it were unstructured and then transfer to C(q)C^{(q)}C(q); it gives (4.5b) from (4.5a).

Formalization Note. vec is column-major (index (column, row), Mathlib's Matrix.vec) and ⊗\otimes⊗ is Mathlib's Kronecker product, whose row and column pairs are ordered as in Definition 2.9. The hypothesis that ggg is real-differentiable (Fréchet, over R\mathbb RR) at the point is the presupposition of "applying the chain rule"; without it the identity can fail because deriv returns 000 at non-differentiable points. Every function the mission applies it to (in particular fff) is a polynomial in the real and imaginary parts and satisfies it. The Jacobian form (4.3b) is not stated here.

Preamble
import Mathlib
import Definitions.Def_TensorBTD_Cogradient_Setting
Formal statement
namespace TensorBTD.Cogradient

open Matrix

/-- Proposition 4.1, p. 7, with (4.3a): `vec(C^(q) E)ᵀ = vec(C^(q))ᵀ F^(q)` for
`F^(q) = E ⊗ 𝕀_{I_(P+q)}`, and the chain rule `∂/∂C^(q) = ∂/∂A^(P+q) · Eᵀ` for the cogradient of
a function `g` of the unstructured factor matrices, real-differentiable at the point, composed with
`A^(P+q) = C^(q) E`. -/
theorem proposition_4_1 {P Q R : ℕ} {I : Fin P ⊕ Fin Q → ℕ} {L : Fin R → ℕ} :
    (∀ (q : Fin Q) (C : Matrix (Fin (I (.inr q))) (Fin R) ℂ),
      vec (C * TensorBTD.Gramian.E L) = vecMul (vec C) (kronecker (TensorBTD.Gramian.E L) (1 : Matrix (Fin (I (.inr q))) (Fin (I (.inr q))) ℂ))) ∧
    ∀ (g : (TensorBTD.Gramian.GIdx I L → ℂ) → ℂ) (z : TensorBTD.Gramian.Unk I L → ℂ), DifferentiableAt ℝ g (TensorBTD.Gramian.fullVec z) →
      ∀ q : Fin Q, cogradC (g ∘ TensorBTD.Gramian.fullVec) z q = cogradMatG g (TensorBTD.Gramian.fullVec z) (.inr q) * (TensorBTD.Gramian.E L)ᵀ := by sorry

end TensorBTD.Cogradient
Source
Sorber, Van Barel & De Lathauwer, Optimization-Based Algorithms for Tensor Decompositions, SIAM J. Optim. 23(2) (2013), doi:10.1137/120868323, authors' manuscript (Lirias), p. 7, Proposition 4.1, (4.3a)
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me