Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 11: rank-one one-to-three evaluation, Eq.(45)

Open
QAlgorithms.Papers.Independent.Extend50.P12.example11_rankOne

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

prove2quantum

Let d≥1d\ge1d≥1, let α,β∈{1,…,d}\alpha,\beta\in\{1,\ldots,d\}α,β∈{1,…,d} be product-basis labels, and let A=∣α⟩⟨β∣A=|\alpha\rangle\langle\beta|A=∣α⟩⟨β∣. Under Eq. (2)'s permutation convention,

tr⁡1 ⁣[V(1234)T4(A⊗I⊗I⊗I)]=∑k,l=1d∣α⟩⟨k∣⊗∣k⟩⟨l∣⊗∣β⟩⟨l∣=[(A⊗I⊗I)R3,2]R3,1.\begin{aligned} \operatorname{tr}_1\!\left[V(1234)^{T_4}(A\otimes I\otimes I\otimes I)\right] &=\sum_{k,l=1}^d|\alpha\rangle\langle k|\otimes|k\rangle\langle l|\otimes|\beta\rangle\langle l|\\ &=\left[(A\otimes I\otimes I)^{R_{3,2}}\right]^{R_{3,1}}. \end{aligned}tr1​[V(1234)T4​(A⊗I⊗I⊗I)]​=k,l=1∑d​∣α⟩⟨k∣⊗∣k⟩⟨l∣⊗∣β⟩⟨l∣=[(A⊗I⊗I)R3,2​]R3,1​.​

Here T4T_4T4​ is ordinary partial transpose, the partial trace is unnormalized, and Rs,tR_{s,t}Rs,t​ exchanges ket site sss with bra site ttt. The first reshuffling is R3,2R_{3,2}R3,2​ and the second is R3,1R_{3,1}R3,1​.

This gives both the explicit rank-one output and its ordered-reshuffling form. Direct index substitution confirms that the printed forward-cycle kernel agrees with Eq. (2), contrary to the plan's orientation objection.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P12
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P12

attribute [local instance] Classical.propDecidable

/-- Example 11, PDF pp.7-8, Eq.(45). Both the explicit summed matrix-unit kernel
and the two ordered reshufflings are retained. Under Eq.(2), the named forward
four-cycle expands exactly as its printed kernel; no cycle correction is made. -/
theorem example11_rankOne (d : ℕ) (hd : 0 < d) (alpha beta : Fin d) :
    let L := productInputContraction (r := 1) (m := 3)
      (transposeRegisterSet {3} (permutation d 4 (finRotate 4))) ![Matrix.single alpha beta (1 : ℂ)]
    L = rankOneThreeOutput alpha beta ∧
      L = reshuffleSites 2 0 (reshuffleSites 2 1
        (leadingInput 3 (by omega) (Matrix.single alpha beta (1 : ℂ)))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P12

end
Source
Positive maps from the walled Brauer algebra, arXiv:2112.12738v3, PDF p. 7, Example 11, Eq.(45)
Read-back

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

For every natural number d>0d>0d>0 and indices α,β∈D={0,…,d−1}\alpha,\beta\in D=\{0,\ldots,d-1\}α,β∈D={0,…,d−1}, define C4C_4C4​ on D4D^4D4 by (C4)u,v=1(C_4)_{u,v}=1(C4​)u,v​=1 when ui=vi−1 mod 4u_i=v_{i-1\bmod4}ui​=vi−1mod4​ for every iii, and 000 otherwise. Write (τ3C4)u,v=(C4)u′,v′(\tau_3C_4)_{u,v}=(C_4)_{u',v'}(τ3​C4​)u,v​=(C4​)u′,v′​, where u′,v′u',v'u′,v′ are obtained by exchanging u3u_3u3​ and v3v_3v3​ and leaving the other coordinates unchanged, and define the matrix LLL on D3D^3D3 by

Lx,y=∑p,q∈D(τ3C4)(p,x0,x1,x2),(q,y0,y1,y2)δq,αδp,β.L_{x,y} =\sum_{p,q\in D} (\tau_3C_4)_{(p,x_0,x_1,x_2),(q,y_0,y_1,y_2)} \delta_{q,\alpha}\delta_{p,\beta}.Lx,y​=p,q∈D∑​(τ3​C4​)(p,x0​,x1​,x2​),(q,y0​,y1​,y2​)​δq,α​δp,β​.

Then both

Lx,y={1,x0=α, x2=β, x1=y0, y1=y2,0,otherwisefor all x,y∈D3,L=R2,0(R2,1(E))L_{x,y}= \begin{cases} 1,&x_0=\alpha,\ x_2=\beta,\ x_1=y_0,\ y_1=y_2,\\ 0,&\text{otherwise} \end{cases} \quad\text{for all }x,y\in D^3, \qquad L=R_{2,0}\bigl(R_{2,1}(E)\bigr)Lx,y​={1,0,​x0​=α, x2​=β, x1​=y0​, y1​=y2​,otherwise​for all x,y∈D3,L=R2,0​(R2,1​(E))

hold. Here Ex,y=δx0,αδy0,βδx1,y1δx2,y2E_{x,y}=\delta_{x_0,\alpha}\delta_{y_0,\beta}\delta_{x_1,y_1}\delta_{x_2,y_2}Ex,y​=δx0​,α​δy0​,β​δx1​,y1​​δx2​,y2​​, and, for a matrix MMM on D3D^3D3, (Rp,qM)x,y=Mx′,y′(R_{p,q}M)_{x,y}=M_{x',y'}(Rp,q​M)x,y​=Mx′,y′​, where x′x'x′ is xxx with coordinate ppp replaced by yqy_qyq​, and y′y'y′ is yyy with coordinate qqq replaced by xpx_pxp​. Every Kronecker delta is 111 for equal indices and 000 otherwise; α=β\alpha=\betaα=β is allowed.

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