Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A common angle criterion for sums of matrix units

Open
QAlgorithms.Papers.Independent.Intake100.P95.matrixUnitSumInversion

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

prove2quantum

Let n≥1n\ge1n≥1 and let EΣ=∑λ=1mcλEiλjλE_\Sigma=\sum_{\lambda=1}^m c_\lambda E_{i_\lambda j_\lambda}EΣ​=∑λ=1m​cλ​Eiλ​jλ​​, where iλ≠jλi_\lambda\ne j_\lambdaiλ​=jλ​ and cλ∈Cc_\lambda\in\mathbb Ccλ​∈C. Let pλℓp_{\lambda\ell}pλℓ​ be the eigenvalue of Zℓ/2Z_\ell/2Zℓ​/2 at row iλi_\lambdaiλ​ minus its eigenvalue at column jλj_\lambdajλ​. If there are real angles ϕℓ\phi_\ellϕℓ​ such that each ∑ℓpλℓϕℓ\sum_\ell p_{\lambda\ell}\phi_\ell∑ℓ​pλℓ​ϕℓ​ is an odd multiple of π\piπ, then

Kz(ϕ)EΣKz(ϕ)†=−EΣ.K_z(\boldsymbol\phi) E_\Sigma K_z(\boldsymbol\phi)^\dagger=-E_\Sigma.Kz​(ϕ)EΣ​Kz​(ϕ)†=−EΣ​.

The same angle vector serves every constituent. Repeated matrix units, zero coefficients, and cancellations are permitted; the assertion is sufficient only.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P95
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P95

open scoped BigOperators

open QAlgorithms.Papers.Independent.Information100.P32 (Op evolution)

open QAlgorithms.Papers.Independent.Advance50.P38 (comm realHSPairing)

open QAlgorithms.Papers.Independent.Information100.P10 (pauli)

open QAlgorithms.Papers.Independent.Claimed50.P03 (wordMatrix wordSupport)

noncomputable section

/-- Proposition 2, PDF p.10, (51), with p fixed by row-minus-column Z/2
weights. Sufficiency only; coefficients may vanish or cancel. -/
theorem matrixUnitSumInversion {n m : ℕ} (hn : 0 < n)
    (i j : Fin m → QAlgorithms.Qubits n) (hij : ∀ a, i a ≠ j a)
    (c : Fin m → ℂ) (phi : Fin n → ℝ)
    (hphi : ∀ a, OddPi (∑ l, entryOrder (i a) (j a) l * phi l)) :
    adjointConjugation (individualZRotation phi) (matrixUnitSum i j c) = -matrixUnitSum i j c := by sorry

end

end QAlgorithms.Papers.Independent.Intake100.P95
Source
Which Quantum Evolutions Can Be Reversed by Local Unitary Operations? Algebraic Classification and Gradient-Flow-Based Numerical Checks, arXiv:quant-ph/0610061v1, PDF p. 10, Proposition 2: common angle criterion for sums of matrix units
Read-back

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

For every positive integer nnn, every natural number mmm, every two families of nnn-bit strings ia,jai_a,j_aia​,ja​ with ia≠jai_a\ne j_aia​=ja​ for each a<ma<ma<m, every family of complex coefficients cac_aca​, and every real angle vector ϕ=(ϕl)l<n\phi=(\phi_l)_{l<n}ϕ=(ϕl​)l<n​, define

da,l=({−12ia(l)=true12ia(l)=false)−({−12ja(l)=true12ja(l)=false).d_{a,l}= \left(\begin{cases}-\tfrac12&i_a(l)=\mathrm{true}\\ \tfrac12&i_a(l)=\mathrm{false}\end{cases}\right) - \left(\begin{cases}-\tfrac12&j_a(l)=\mathrm{true}\\ \tfrac12&j_a(l)=\mathrm{false}\end{cases}\right).da,l​=({−21​21​​ia​(l)=trueia​(l)=false​)−({−21​21​​ja​(l)=trueja​(l)=false​).

If, for each aaa, there exists an integer zzz such that ∑lda,lϕl=(2z+1)π\sum_l d_{a,l}\phi_l=(2z+1)\pi∑l​da,l​ϕl​=(2z+1)π, then

R(ϕ)(∑a<mcaEiaja)R(ϕ)†=−∑a<mcaEiaja,R(ϕ)=⨂ldiag⁡(e−iϕl/2,e+iϕl/2),R(\phi)\left(\sum_{a<m}c_aE_{i_aj_a}\right)R(\phi)^\dagger =-\sum_{a<m}c_aE_{i_aj_a}, \qquad R(\phi)=\bigotimes_l\operatorname{diag}(e^{-\mathrm i\phi_l/2},e^{+\mathrm i\phi_l/2}),R(ϕ)(a<m∑​ca​Eia​ja​​)R(ϕ)†=−a<m∑​ca​Eia​ja​​,R(ϕ)=l⨂​diag(e−iϕl​/2,e+iϕl​/2),

where EijE_{ij}Eij​ has entry 111 in row iii, column jjj, and zero elsewhere. The families may repeat matrix units, the coefficients may vanish or cancel, and m=0m=0m=0 is allowed, giving an empty sum and vacuous angle hypotheses.

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

    Confirmed by the moderator at approval.

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