Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered Motzkin matrix identity and inequality, Eqs.(70)–(71)

Open
QAlgorithms.Papers.Independent.Extend50.P13.motzkin_square_identity_and_positivity

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 A,BA,BA,B be Hermitian and set M(A,B)=AB4A+A2B2A2−3AB2A+IM(A,B)=AB^4A+A^2B^2A^2-3AB^2A+IM(A,B)=AB4A+A2B2A2−3AB2A+I. Then

M(A,B)=(A2−A)B2(A2−A)+(AB2+A2−2A)(B2A+A2−2A)+(I−A)(I+2A−A2)(I−A).M(A,B)=(A^2-A)B^2(A^2-A)+(AB^2+A^2-2A)(B^2A+A^2-2A)+(I-A)(I+2A-A^2)(I-A).M(A,B)=(A2−A)B2(A2−A)+(AB2+A2−2A)(B2A+A2−2A)+(I−A)(I+2A−A2)(I−A).

Consequently,

(1−2)I≤A≤(1+2)I⟹M(A,B)≥0.(1-\sqrt2)I\le A\le(1+\sqrt2)I\quad\Longrightarrow\quad M(A,B)\ge0.(1−2​)I≤A≤(1+2​)I⟹M(A,B)≥0.

In particular, A≥0A\ge0A≥0 and tr⁡A=1\operatorname{tr}A=1trA=1 suffice. No normalization of BBB is needed beyond its Hermiticity. The identity and positivity argument are the proof communicated by Jurij Volčič and reproduced in the source.

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

/-- Motzkin identity and inequality, Eqs.70–71, including the communicated proof
by Jurij Volcic (PDF p.17). Hermitian B is essential to the square-positivity
reading; no normalization is imposed on B. Matrix bounds are Loewner bounds. -/
theorem motzkin_square_identity_and_positivity {d : ℕ} (hd : 0 < d)
    (A B : (Matrix (Fin d) (Fin d) ℂ)) (hA : A.IsHermitian) (hB : B.IsHermitian) :
    motzkin A B = motzkinSquares A B ∧
    (((A-((1-Real.sqrt 2 : ℝ) : ℂ) • (1 : (Matrix (Fin d) (Fin d) ℂ))).PosSemidef ∧
      ((((1+Real.sqrt 2 : ℝ) : ℂ) • (1 : (Matrix (Fin d) (Fin d) ℂ)))-A).PosSemidef) →
        (motzkin A B).PosSemidef) ∧
    (QAlgorithms.IsDensityMatrix A → (motzkin A B).PosSemidef) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P13

end
Source
Positive maps and trace polynomials from the symmetric group, arXiv:2002.12887v2, PDF p. 17, Unnumbered Motzkin matrix identity and inequality, Eqs.(70)–(71)
Read-back

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

For every natural number d>0d>0d>0 and every pair of Hermitian complex d×dd\times dd×d matrices A,BA,BA,B, with III denoting the identity matrix, one has

AB4A+A2B2A2−3AB2A+I=(A2−A)B2(A2−A)+(AB2+A2−2A)(B2A+A2−2A)+(I−A)(I+2A−A2)(I−A).\begin{aligned} AB^4A+A^2B^2A^2-3AB^2A+I ={}&(A^2-A)B^2(A^2-A)\\ &+(AB^2+A^2-2A)(B^2A+A^2-2A)\\ &+(I-A)(I+2A-A^2)(I-A). \end{aligned}AB4A+A2B2A2−3AB2A+I=​(A2−A)B2(A2−A)+(AB2+A2−2A)(B2A+A2−2A)+(I−A)(I+2A−A2)(I−A).​

If both A−(1−2)IA-(1-\sqrt2)IA−(1−2​)I and (1+2)I−A(1+\sqrt2)I-A(1+2​)I−A are positive semidefinite, then the matrix on the left is positive semidefinite. The same positivity conclusion holds if AAA is a density matrix, meaning that AAA is positive semidefinite and Tr⁡A=1\operatorname{Tr}A=1TrA=1; BBB remains subject only to the stated Hermitian assumption.

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