Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 23: alternating tensor identity for 2×2 matrices

Open
QAlgorithms.Papers.Independent.Extend50.P13.alternating_tensor_identity_two_by_two

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

prove2quantum

For arbitrary complex 2×22\times22×2 matrices X1,X2,X3,X4X_1,X_2,X_3,X_4X1​,X2​,X3​,X4​,

∑π∈S4sgn⁡(π) (Xπ(1)Xπ(2))⊗(Xπ(3)Xπ(4))=04×4.\sum_{\pi\in S_4}\operatorname{sgn}(\pi)\,(X_{\pi(1)}X_{\pi(2)})\otimes(X_{\pi(3)}X_{\pi(4)})=0_{4\times4}.π∈S4​∑​sgn(π)(Xπ(1)​Xπ(2)​)⊗(Xπ(3)​Xπ(4)​)=04×4​.

The tensor factors retain the displayed multiplication order. The identity does not assume Hermiticity, tracelessness, or a factorization into individual polynomial identities.

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

/-- Example 23, Eq.86 (PDF p.19). The sum is zero as an operator on C²⊗C²,
for all complex 2×2 inputs; none are required Hermitian or traceless. -/
theorem alternating_tensor_identity_two_by_two (X : Fin 4 → (Matrix (Fin 2) (Fin 2) ℂ)) :
    (∑ pi : Equiv.Perm (Fin 4), (((Equiv.Perm.sign pi : ℤˣ) : ℤ) : ℂ) •
      Matrix.kronecker (X (pi 0)*X (pi 1)) (X (pi 2)*X (pi 3))) = 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. 19, Example 23: alternating tensor identity for 2×2 matrices
Read-back

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

For every collection X0,X1,X2,X3X_0,X_1,X_2,X_3X0​,X1​,X2​,X3​ of arbitrary complex 2×22\times22×2 matrices, the following sum over all permutations of the four labels is the zero matrix on C2⊗C2\mathbb C^2\otimes\mathbb C^2C2⊗C2:

∑π∈S4sgn⁡(π)(Xπ(0)Xπ(1))⊗(Xπ(2)Xπ(3))=0.\sum_{\pi\in S_4}\operatorname{sgn}(\pi) \bigl(X_{\pi(0)}X_{\pi(1)}\bigr)\otimes \bigl(X_{\pi(2)}X_{\pi(3)}\bigr)=0.π∈S4​∑​sgn(π)(Xπ(0)​Xπ(1)​)⊗(Xπ(2)​Xπ(3)​)=0.

The tensor product here is the Kronecker product, whose ((a,c),(b,d))((a,c),(b,d))((a,c),(b,d))-entry is the product of the corresponding (a,b)(a,b)(a,b)- and (c,d)(c,d)(c,d)-entries; no positivity, Hermitian, or distinctness conditions are imposed on the four 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