Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Normalized Gellmann basis and multiplication identities

Proved
QAlgorithms.Papers.Independent.Support50.P35.gellmann_basis_and_products

by Goku · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let D≥1D\geq1D≥1. In the computational basis, take the diagonal matrices Γa=(∑b<a∣b⟩⟨b∣−(a−1)∣a⟩⟨a∣)/a(a−1)\Gamma_a=(\sum_{b<a}|b\rangle\langle b|-(a-1)|a\rangle\langle a|)/\sqrt{a(a-1)}Γa​=(∑b<a​∣b⟩⟨b∣−(a−1)∣a⟩⟨a∣)/a(a−1)​ for 2≤a≤D2\leq a\leq D2≤a≤D, and the off-diagonal matrices (∣a⟩⟨b∣+∣b⟩⟨a∣)/2(|a\rangle\langle b|+|b\rangle\langle a|)/\sqrt2(∣a⟩⟨b∣+∣b⟩⟨a∣)/2​ and −i(∣a⟩⟨b∣−∣b⟩⟨a∣)/2-i(|a\rangle\langle b|-|b\rangle\langle a|)/\sqrt2−i(∣a⟩⟨b∣−∣b⟩⟨a∣)/2​ for a<ba<ba<b. Denote this family of D2−1D^2-1D2−1 traceless Hermitian matrices by λj\lambda_jλj​, and set λ0=I/D\lambda_0=I/\sqrt Dλ0​=I/D​. Then the complete family is a real basis for Hermitian D×DD\times DD×D matrices and

tr⁡(λαλβ)=δαβ,λjλk=δjkDI+∑l(djkl+ifjkl)λl,{λj,λk}=2δjkDI+2∑ldjklλl.\operatorname{tr}(\lambda_\alpha\lambda_\beta)=\delta_{\alpha\beta},\qquad \lambda_j\lambda_k=\frac{\delta_{jk}}D I+\sum_l(d_{jkl}+if_{jkl})\lambda_l,\qquad \{\lambda_j,\lambda_k\}=\frac{2\delta_{jk}}D I+2\sum_l d_{jkl}\lambda_l.tr(λα​λβ​)=δαβ​,λj​λk​=Dδjk​​I+l∑​(djkl​+ifjkl​)λl​,{λj​,λk​}=D2δjk​​I+2l∑​djkl​λl​.

Here djkl=Re⁡tr⁡(λjλkλl)d_{jkl}=\operatorname{Re}\operatorname{tr}(\lambda_j\lambda_k\lambda_l)djkl​=Retr(λj​λk​λl​) is completely symmetric and fjkl=Im⁡tr⁡(λjλkλl)f_{jkl}=\operatorname{Im}\operatorname{tr}(\lambda_j\lambda_k\lambda_l)fjkl​=Imtr(λj​λk​λl​) is completely antisymmetric. Roman indices exclude zero; Greek indices include it. At D=1D=1D=1, only λ0=I\lambda_0=Iλ0​=I remains. These identities fix the paper's normalization for all coordinate statements.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P35
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate Topology Manifold

namespace QAlgorithms.Papers.Independent.Support50.P35

/-- PDF pp.11--12, Eqs.(18)--(24): completeness, orthonormality, product and
anticommutator identities, and the full symmetry/antisymmetry conventions. -/
theorem gellmann_basis_and_products (D : ℕ) (hD : 0 < D) :
    Fintype.card (TracelessIndex D) = D ^ 2 - 1 ∧
    IsHermitianONBasis (gellmann D) ∧
    (∀ j : TracelessIndex D, (normOneGellmannGenerator j).trace = 0) ∧
    (∀ j k : TracelessIndex D,
      normOneGellmannGenerator j * normOneGellmannGenerator k =
        (if j = k then (D : ℂ)⁻¹ else 0) • (1 : Matrix (Fin D) (Fin D) ℂ) +
        ∑ l, ((symmetricConstant j k l : ℂ) + Complex.I * antisymmetricConstant j k l) • normOneGellmannGenerator l) ∧
    (∀ j k : TracelessIndex D,
      normOneGellmannGenerator j * normOneGellmannGenerator k + normOneGellmannGenerator k * normOneGellmannGenerator j =
        (if j = k then 2 / (D : ℂ) else 0) • (1 : Matrix (Fin D) (Fin D) ℂ) +
        ∑ l, ((2 * symmetricConstant j k l : ℝ) : ℂ) • normOneGellmannGenerator l) ∧
    (∀ j k l : TracelessIndex D,
      symmetricConstant j k l = symmetricConstant k j l ∧
      symmetricConstant j k l = symmetricConstant k l j ∧
      antisymmetricConstant j k l = -antisymmetricConstant k j l ∧
      antisymmetricConstant j k l = antisymmetricConstant k l j) := by sorry

end QAlgorithms.Papers.Independent.Support50.P35

end
Source
Convex Hulls of Varieties and Entanglement Measures Based on the Roof Construction, arXiv:quant-ph/0402055v2, PDF p. 12, Unnumbered Eqs.(18)–(24): normalized operator basis and product identities
Read-back

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

For every natural number D>0D>0D>0, let JDJ_DJD​ be the index set consisting of diagonal labels a=1,…,D−1a=1,\ldots,D-1a=1,…,D−1 and labels (p,q,β)(p,q,\beta)(p,q,β) with 0≤p<q<D0\le p<q<D0≤p<q<D and β∈{false,true}\beta\in\{\mathrm{false},\mathrm{true}\}β∈{false,true}. Writing EpqE_{pq}Epq​ for the matrix unit, define

Ga=∑i<aEii−aEaaa(a+1),Gpq,false=Epq+Eqp2,Gpq,true=−iEpq+iEqp2.G_a=\frac{\sum_{i<a}E_{ii}-aE_{aa}}{\sqrt{a(a+1)}},\qquad G_{pq,\mathrm{false}}=\frac{E_{pq}+E_{qp}}{\sqrt2},\qquad G_{pq,\mathrm{true}}=\frac{-\mathrm iE_{pq}+\mathrm iE_{qp}}{\sqrt2}.Ga​=a(a+1)​∑i<a​Eii​−aEaa​​,Gpq,false​=2​Epq​+Eqp​​,Gpq,true​=2​−iEpq​+iEqp​​.

Then ∣JD∣=D2−1|J_D|=D^2-1∣JD​∣=D2−1, where the subtraction in the stated cardinality is natural-number subtraction. The family consisting of ID/DI_D/\sqrt DID​/D​ together with all GjG_jGj​, j∈JDj\in J_Dj∈JD​, consists of Hermitian matrices, satisfies tr⁡(μjμk)=1\operatorname{tr}(\mu_j\mu_k)=1tr(μj​μk​)=1 when j=kj=kj=k and 000 otherwise, and expresses every Hermitian D×DD\times DD×D complex matrix as a real linear combination of its members. Every GjG_jGj​ has trace zero. Define djkl=Re⁡tr⁡(GjGkGl)d_{jkl}=\operatorname{Re}\operatorname{tr}(G_jG_kG_l)djkl​=Retr(Gj​Gk​Gl​) and fjkl=Im⁡tr⁡(GjGkGl)f_{jkl}=\operatorname{Im}\operatorname{tr}(G_jG_kG_l)fjkl​=Imtr(Gj​Gk​Gl​). For every j,k∈JDj,k\in J_Dj,k∈JD​,

GjGk=δjkDID+∑l∈JD(djkl+ifjkl)Gl,GjGk+GkGj=2δjkDID+∑l∈JD2djklGl.G_jG_k=\frac{\delta_{jk}}D I_D+\sum_{l\in J_D}(d_{jkl}+\mathrm i f_{jkl})G_l,\qquad G_jG_k+G_kG_j=\frac{2\delta_{jk}}D I_D+\sum_{l\in J_D}2d_{jkl}G_l.Gj​Gk​=Dδjk​​ID​+l∈JD​∑​(djkl​+ifjkl​)Gl​,Gj​Gk​+Gk​Gj​=D2δjk​​ID​+l∈JD​∑​2djkl​Gl​.

For every j,k,l∈JDj,k,l\in J_Dj,k,l∈JD​, djkl=dkjl=dkljd_{jkl}=d_{kjl}=d_{klj}djkl​=dkjl​=dklj​, fjkl=−fkjlf_{jkl}=-f_{kjl}fjkl​=−fkjl​, and fjkl=fkljf_{jkl}=f_{klj}fjkl​=fklj​. The case D=1D=1D=1 is included: JDJ_DJD​ is empty, and the full family consists only of the 1×11\times11×1 identity.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 24, 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