Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq.(30): full-trace cycle identity

Open
QAlgorithms.Papers.Independent.Extend50.P13.full_trace_cycles

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. For π∈Sk\pi\in S_kπ∈Sk​, let σ1,…,σℓ\sigma_1,\ldots,\sigma_\ellσ1​,…,σℓ​ be its disjoint cycles, including singleton cycles, and let R(a1⋯am)=Xa1⋯XamR_{(a_1\cdots a_m)}=X_{a_1}\cdots X_{a_m}R(a1​⋯am​)​=Xa1​​⋯Xam​​. With the same permutation convention as Proposition 2,

tr⁡[T(π−1)(X1⊗⋯⊗Xk)]=∏j=1ℓtr⁡(Rσj).\operatorname{tr}[T(\pi^{-1})(X_1\otimes\cdots\otimes X_k)]=\prod_{j=1}^{\ell}\operatorname{tr}(R_{\sigma_j}).tr[T(π−1)(X1​⊗⋯⊗Xk​)]=j=1∏ℓ​tr(Rσj​​).

The empty tensor case uses the scalar algebra and both empty products equal one. This is the scalar invariant associated with a permutation.

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

/-- Full trace-cycle identity, Eq.30 (PDF p.9), including singleton cycles.
The empty-slot case k=0 is also covered by the literal empty tensor/trace products. -/
theorem full_trace_cycles {d k : ℕ} (hd : 0 < d) (pi : Equiv.Perm (Fin k))
    (X : Fin k → (Matrix (Fin d) (Fin d) ℂ)) :
    Matrix.trace (QAlgorithms.Schur.tensorPermutation d k pi⁻¹ * tensorMatrices X) =
      closedCycleExpression pi X := by sorry

end QAlgorithms.Papers.Independent.Extend50.P13

end
Source
Positive maps and trace polynomials from the symmetric group, arXiv:2002.12887v2, PDF p. 9, Eq.(30): full-trace cycle identity
Read-back

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

For all natural numbers d,kd,kd,k with d>0d>0d>0, every permutation π\piπ of {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}, and every family X0,…,Xk−1X_0,\ldots,X_{k-1}X0​,…,Xk−1​ of complex d×dd\times dd×d matrices, define (Tσ)y,x=1{y=x∘σ−1}(T_\sigma)_{y,x}=\mathbf1_{\{y=x\circ\sigma^{-1}\}}(Tσ​)y,x​=1{y=x∘σ−1}​ and (⨂iXi)x,y=∏i(Xi)xi,yi(\bigotimes_iX_i)_{x,y}=\prod_i(X_i)_{x_i,y_i}(⨂i​Xi​)x,y​=∏i​(Xi​)xi​,yi​​. Order the cycle containing qqq as Cπ(q)=[πq,π2q,…,q]C_\pi(q)=[\pi q,\pi^2q,\ldots,q]Cπ​(q)=[πq,π2q,…,q], using [q][q][q] for a fixed point, and choose its largest label as its leader. Writing X[i1,…,iℓ]=Xi1⋯XiℓX_{[i_1,\ldots,i_\ell]}=X_{i_1}\cdots X_{i_\ell}X[i1​,…,iℓ​]​=Xi1​​⋯Xiℓ​​, the assertion is

tr⁡ ⁣(Tπ−1⨂iXi)=∏cycle leaders qtr⁡(XCπ(q)).\operatorname{tr}\!\left(T_{\pi^{-1}}\bigotimes_iX_i\right) =\prod_{\text{cycle leaders }q}\operatorname{tr}(X_{C_\pi(q)}).tr(Tπ−1​i⨂​Xi​)=cycle leaders q∏​tr(XCπ​(q)​).

The matrices are unrestricted. The case k=0k=0k=0 is included: the tensor index set has one empty assignment, the tensor matrix and permutation matrix are both the 1×11\times11×1 identity, and the product over cycles is empty and equals 111.

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