Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 12: ordered sequence of reshufflings, Eq.(46)

Open
QAlgorithms.Papers.Independent.Extend50.P12.ordered_reshuffling_evaluation

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

prove2quantum

Let d≥1d\ge1d≥1, let n≥2n\ge2n≥2 be the number of output registers, and put k=n+1≥3k=n+1\ge3k=n+1≥3. For arbitrary A∈Md(C)A\in M_d(\mathbb C)A∈Md​(C), with the fixed product-basis permutation action and ordinary partial transpose,

tr⁡1 ⁣[V(1⋯k)Tk(A⊗I⊗n)]=[⋯[(A⊗I⊗(n−1))Rn,n−1]Rn,n−2⋯ ]Rn,1.\operatorname{tr}_1\!\left[V(1\cdots k)^{T_k}(A\otimes I^{\otimes n})\right] =\left[\cdots\left[(A\otimes I^{\otimes(n-1)})^{R_{n,n-1}}\right]^{R_{n,n-2}}\cdots\right]^{R_{n,1}}.tr1​[V(1⋯k)Tk​(A⊗I⊗n)]=[⋯[(A⊗I⊗(n−1))Rn,n−1​]Rn,n−2​⋯]Rn,1​.

Each Rs,tR_{s,t}Rs,t​ exchanges ket site sss with bra site ttt. The displayed order is applied from Rn,n−1R_{n,n-1}Rn,n−1​ down to Rn,1R_{n,1}Rn,1​, and the trace is unnormalized. This is the domain where the printed sequence has no site-zero endpoint.

The identity replaces the given contraction by a specified sequence of reshufflings. Appendix C's matrix-unit expansion agrees with Eq. (2); its orientation is unchanged.

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

/-- Proposition 12, PDF p.7, Eq.(46), and p.14, Eq.(C5). There are n=k-1>=2
outputs, the domain where the printed ordered reshuffling sequence is defined.
The partial transpose on the last input/output-kernel site is retained.
Appendix C's cycle expansion agrees with Eq.(2), contrary to the plan's audit. -/
theorem ordered_reshuffling_evaluation (d n : ℕ) (hd : 0 < d) (hn : 2 ≤ n)
    (A : LocalMatrix d) :
    productInputContraction (r := 1) (m := n)
      (transposeRegisterSet {⟨n, by omega⟩} (permutation d (1 + n) (finRotate (1 + n))))
      ![A] =
    orderedReshuffles n hn (leadingInput n (by omega) A) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P12

end
Source
Positive maps from the walled Brauer algebra, arXiv:2112.12738v3, PDF p. 7, Proposition 12, Eq.(46); Appendix C, Eq.(C5)
Read-back

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

For all natural numbers d,nd,nd,n satisfying d>0d>0d>0 and n≥2n\ge2n≥2, and every complex d×dd\times dd×d matrix AAA, put D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}. Define Cn+1C_{n+1}Cn+1​ on Dn+1D^{n+1}Dn+1 by (Cn+1)u,v=1(C_{n+1})_{u,v}=1(Cn+1​)u,v​=1 when ui=vi−1 mod (n+1)u_i=v_{i-1\bmod(n+1)}ui​=vi−1mod(n+1)​ for every iii, and 000 otherwise, and define τnCn+1\tau_nC_{n+1}τn​Cn+1​ by exchanging coordinate nnn between the row and column arguments. Define matrices L,EL,EL,E on DnD^nDn by

Lx,y=∑p,q∈D(τnCn+1)(p,x0,…,xn−1),(q,y0,…,yn−1)Aq,p,Ex,y=Ax0,y0∏i=1n−1δxi,yi.L_{x,y} =\sum_{p,q\in D} (\tau_nC_{n+1})_{(p,x_0,\ldots,x_{n-1}),(q,y_0,\ldots,y_{n-1})}A_{q,p}, \qquad E_{x,y}=A_{x_0,y_0}\prod_{i=1}^{n-1}\delta_{x_i,y_i}.Lx,y​=p,q∈D∑​(τn​Cn+1​)(p,x0​,…,xn−1​),(q,y0​,…,yn−1​)​Aq,p​,Ex,y​=Ax0​,y0​​i=1∏n−1​δxi​,yi​​.

Starting with EEE, successively apply Rn−1,jR_{n-1,j}Rn−1,j​ for j=n−2,n−3,…,0j=n-2,n-3,\ldots,0j=n−2,n−3,…,0, in that order, where (Rp,qM)x,y=Mx′,y′(R_{p,q}M)_{x,y}=M_{x',y'}(Rp,q​M)x,y​=Mx′,y′​, 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​. The assertion is that the resulting matrix equals LLL. For n=2n=2n=2, the sequence consists of the single operation R1,0R_{1,0}R1,0​; each δi,j\delta_{i,j}δi,j​ is 111 for equality and 000 otherwise.

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