Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 22: tensor identities and permutation polynomials from trace identities

Open
QAlgorithms.Papers.Independent.Extend50.P13.tensor_polynomials_from_trace_identities

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

All matrices are complex, d×dd\times dd×d, with d≥1d\ge1d≥1. Write III for the identity and tr⁡\operatorname{tr}tr for the ordinary, unnormalized trace. Matrix inequalities use the Löwner order, so A≥0A\ge0A≥0 includes Hermiticity. Let r≥t≥1r\ge t\ge1r≥t≥1. Let ppp be a finite complex linear combination of ttt ordered output matrix words and products of ordinary traces of input-only words, with each of the rrr input labels appearing exactly once in every monomial. Output words may be empty; closed trace words are nonempty. Form the constant-coefficient group-algebra element β∈C[Sr+t]\beta\in\mathbb C[S_{r+t}]β∈C[Sr+t​] by appending a distinct output marker to each output word, treating each traced word as a closed cycle, and inverting the resulting cycle product. Let hαh_\alphahα​ denote contraction of T^(α)\widehat T(\alpha)T(α) against the rrr inputs, retaining all ttt identity-filled output slots.

For any fixed ρ∈St\rho\in S_tρ∈St​, if p(X)p(X)p(X) is a scalar multiple of T(ρ)T(\rho)T(ρ) for every input tuple, there exists a scalar multilinear pure trace polynomial qqq and a constant-coefficient γ\gammaγ formed from its input trace cycles and the fixed output action ρ\rhoρ, such that

p(X)=q(X)T(ρ),hβ(X)=p(X),hγ(X)=q(X)T(ρ),β−γ∈Jd(C[Sr+t]),p(X)=q(X)T(\rho),\qquad h_\beta(X)=p(X),\qquad h_\gamma(X)=q(X)T(\rho),\qquad \beta-\gamma\in J_d(\mathbb C[S_{r+t}]),p(X)=q(X)T(ρ),hβ​(X)=p(X),hγ​(X)=q(X)T(ρ),β−γ∈Jd​(C[Sr+t​]),

and for every input tuple XXX and arbitrary output test matrices Y1,…,YtY_1,\ldots,Y_tY1​,…,Yt​,

tr⁡[T^(β−γ)(X1⊗⋯⊗Xr⊗Y1⊗⋯⊗Yt)]=0.\operatorname{tr}[\widehat T(\beta-\gamma)(X_1\otimes\cdots\otimes X_r\otimes Y_1\otimes\cdots\otimes Y_t)]=0.tr[T(β−γ)(X1​⊗⋯⊗Xr​⊗Y1​⊗⋯⊗Yt​)]=0.

Here JdJ_dJd​ is the sum of the independently character-defined isotypic ideals with more than ddd rows. If ppp vanishes identically, the same conclusions hold with γ=0\gamma=0γ=0, including β∈Jd\beta\in J_dβ∈Jd​, the full trace identity and hβ=0h_\beta=0hβ​=0. Swaps, fixed permutation outputs, identity outputs, ordinary tensor polynomials, and tensor-trace polynomials are all covered. This is a fixed formal trace-identity consequence, not a tuple-dependent certificate.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P13
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P13

attribute [local instance] Classical.propDecidable

/-- Theorem 22 (PDF pp.18–19), including permutation, swap, and tensor identities,
and the proof's tensor-trace extension. The headline range r≥t≥1 is explicit.
SOURCE REPAIR: expand the scalar invariant c in fixed pure trace words before
forming gamma; Eq.83's input-dependent c is not treated as a constant coefficient.
The resulting fixed trace identity lies in the independently defined isotypic ideal,
and its all-output contraction yields the original equation. -/
theorem tensor_polynomials_from_trace_identities {d r t : ℕ} (hd : 0 < d)
    (ht : 1 ≤ t) (hrt : t ≤ r) (p : TensorTracePolynomial r t) :
    (∀ rho : Equiv.Perm (Fin t),
      (∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), ∃ c : ℂ,
        evaluateTensorTrace p X = c • QAlgorithms.Schur.tensorPermutation d t rho) →
      ∃ q : PureTracePolynomial r,
        (∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ),
          evaluateTensorTrace p X = evaluatePureTrace q X •
            QAlgorithms.Schur.tensorPermutation d t rho) ∧
        InAntisymmetricIdeal d (tensorPermutationExpansion p-pureTraceExpansion q rho) ∧
        (∀ (X : Fin r → (Matrix (Fin d) (Fin d) ℂ)) (Y : Fin t → (Matrix (Fin d) (Fin d) ℂ)),
          Matrix.trace (groupOperator d
            (tensorPermutationExpansion p-pureTraceExpansion q rho) *
              tensorMatrices (joinSlots X Y)) = 0) ∧
        (∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ),
          hPolynomial (tensorPermutationExpansion p) X = evaluateTensorTrace p X ∧
          hPolynomial (pureTraceExpansion q rho) X = evaluatePureTrace q X •
            QAlgorithms.Schur.tensorPermutation d t rho)) ∧
    ((∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), evaluateTensorTrace p X = 0) →
      InAntisymmetricIdeal d (tensorPermutationExpansion p) ∧
      (∀ (X : Fin r → (Matrix (Fin d) (Fin d) ℂ)) (Y : Fin t → (Matrix (Fin d) (Fin d) ℂ)),
        Matrix.trace (groupOperator d (tensorPermutationExpansion p) *
          tensorMatrices (joinSlots X Y)) = 0) ∧
      (∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ),
        hPolynomial (tensorPermutationExpansion p) X = evaluateTensorTrace p X ∧
        hPolynomial (tensorPermutationExpansion p) X = 0)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P13

end
Source
Positive maps and trace polynomials from the symmetric group, arXiv:2002.12887v2, PDF p. 18, Theorem 22: tensor identities and permutation polynomials from trace identities
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let d,r,td,r,td,r,t be natural numbers with d>0d>0d>0 and 1≤t≤r1\le t\le r1≤t≤r, and let ppp be a finite complex linear combination of tensor trace monomials. Each such monomial consists of one ordered input word for each of the ttt outputs, together with a list of nonempty closed words, with every input label 0,…,r−10,\ldots,r-10,…,r−1 occurring exactly once across all these words; output words may be empty. For matrices X0,…,Xr−1∈Md(C)X_0,\ldots,X_{r-1}\in M_d(\mathbb C)X0​,…,Xr−1​∈Md​(C), write XwX_wXw​ for their product in word order, with X∅=IdX_{\varnothing}=I_dX∅​=Id​, and define Tp(X)T_p(X)Tp​(X) by replacing each monomial with the tensor product of its ttt output-word products, multiplied by its coefficient and by the traces of all its closed-word products, and summing. For a pure trace polynomial qqq, consisting of a finite list of complex coefficients and nonempty closed words using all rrr labels exactly once, let Qq(X)Q_q(X)Qq​(X) be the corresponding sum of coefficient times product of traces. Write PσP_\sigmaPσ​ for the permutation matrix on (Cd)⊗k(\mathbb C^d)^{\otimes k}(Cd)⊗k whose entry at (y,x)(y,x)(y,x) is 111 when y=x∘σ−1y=x\circ\sigma^{-1}y=x∘σ−1 and 000 otherwise. The coefficient function apa_pap​ on permutations of k=r+tk=r+tk=r+t slots is obtained by turning each output word followed by its own output slot into a cycle, multiplying these output cycles and then the closed-word cycles, inverting the resulting permutation, and accumulating the monomial’s coefficient at that permutation. Likewise, bq,ρb_{q,\rho}bq,ρ​ accumulates each pure trace coefficient at the inverse product of its input-word cycles followed by the output permutation formed from ρ\rhoρ’s cycles on the shifted slots r+jr+jr+j. In this construction, cycles use the list-to-cycle convention; the output-cycle list is the singleton for a fixed label and otherwise the ordered permutation-cycle list rotated left once, with the greatest label chosen to represent each cycle. For any coefficient function aaa, put Gd(a)=∑σa(σ)PσG_d(a)=\sum_\sigma a(\sigma)P_\sigmaGd​(a)=∑σ​a(σ)Pσ​, and define its contraction Ha(X)H_a(X)Ha​(X), indexed by u,v∈{0,…,d−1}tu,v\in\{0,\ldots,d-1\}^tu,v∈{0,…,d−1}t, by

Ha(X)u,v=∑x,y∈{0,…,d−1}rGd(a)(x,u),(y,v)∏i=0r−1(Xi)yi,xi.H_a(X)_{u,v} =\sum_{x,y\in\{0,\ldots,d-1\}^r} G_d(a)_{(x,u),(y,v)} \prod_{i=0}^{r-1}(X_i)_{y_i,x_i}.Ha​(X)u,v​=x,y∈{0,…,d−1}r∑​Gd​(a)(x,u),(y,v)​i=0∏r−1​(Xi​)yi​,xi​​.

Here (x,u)(x,u)(x,u) concatenates the input and output coordinates. To specify the ideal condition used below, for each Young diagram λ\lambdaλ with kkk cells and at most kkk rows, choose the definition’s bijection between its cells and the kkk labels, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the permutations preserving respectively row and column coordinates, and form the matrix on the symmetric group

Yλ(g,h)=∑α∈Rλ∑β∈Cλsgn⁡(β) 1{g=hαβ}.Y_\lambda(g,h)= \sum_{\alpha\in R_\lambda}\sum_{\beta\in C_\lambda} \operatorname{sgn}(\beta)\,\mathbf1_{\{g=h\alpha\beta\}}.Yλ​(g,h)=α∈Rλ​∑​β∈Cλ​∑​sgn(β)1{g=hαβ}​.

Let Πλ\Pi_\lambdaΠλ​ be the orthogonal projection onto the range of YλY_\lambdaYλ​, let Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​, set χλ(σ)=tr⁡(LσΠλ)\chi_\lambda(\sigma)=\operatorname{tr}(L_\sigma\Pi_\lambda)χλ​(σ)=tr(Lσ​Πλ​), and set cλ(σ)=χλ(1)χλ(σ−1)/k!c_\lambda(\sigma)=\chi_\lambda(1)\chi_\lambda(\sigma^{-1})/k!cλ​(σ)=χλ​(1)χλ​(σ−1)/k!. Say that aaa satisfies the ideal condition when there exist arbitrary complex coefficient functions bλb_\lambdabλ​ such that, for every π\piπ,

a(π)=∑λ: height⁡(λ)>d∑σcλ(σ)bλ(σ−1π).a(\pi)= \sum_{\lambda:\,\operatorname{height}(\lambda)>d} \sum_\sigma c_\lambda(\sigma)b_\lambda(\sigma^{-1}\pi).a(π)=λ:height(λ)>d∑​σ∑​cλ​(σ)bλ​(σ−1π).

The theorem asserts two implications. First, for every permutation ρ\rhoρ of the ttt output labels, if for every complex matrix tuple XXX there exists a scalar c∈Cc\in\mathbb Cc∈C, allowed to depend on XXX, with Tp(X)=cPρT_p(X)=cP_\rhoTp​(X)=cPρ​, then there exists a pure trace polynomial qqq such that, for every XXX, Tp(X)=Qq(X)PρT_p(X)=Q_q(X)P_\rhoTp​(X)=Qq​(X)Pρ​; the coefficient difference ap−bq,ρa_p-b_{q,\rho}ap​−bq,ρ​ satisfies the ideal condition; for every input tuple XXX and every output tuple Y0,…,Yt−1∈Md(C)Y_0,\ldots,Y_{t-1}\in M_d(\mathbb C)Y0​,…,Yt−1​∈Md​(C),

tr⁡ ⁣(Gd(ap−bq,ρ)⨂i=0r+t−1Zi)=0,Z=(X0,…,Xr−1,Y0,…,Yt−1);\operatorname{tr}\!\left( G_d(a_p-b_{q,\rho}) \bigotimes_{i=0}^{r+t-1} Z_i \right)=0, \qquad Z=(X_0,\ldots,X_{r-1},Y_0,\ldots,Y_{t-1});tr(Gd​(ap​−bq,ρ​)i=0⨂r+t−1​Zi​)=0,Z=(X0​,…,Xr−1​,Y0​,…,Yt−1​);

and, for every XXX, Hap(X)=Tp(X)H_{a_p}(X)=T_p(X)Hap​​(X)=Tp​(X) and Hbq,ρ(X)=Qq(X)PρH_{b_{q,\rho}}(X)=Q_q(X)P_\rhoHbq,ρ​​(X)=Qq​(X)Pρ​. Second, if Tp(X)=0T_p(X)=0Tp​(X)=0 for every XXX, then apa_pap​ satisfies the ideal condition, the same displayed trace vanishes with apa_pap​ in place of the difference for every X,YX,YX,Y, and Hap(X)=Tp(X)=0H_{a_p}(X)=T_p(X)=0Hap​​(X)=Tp​(X)=0 for every XXX. All matrix tuples in these assertions are unrestricted complex matrices.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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