Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 9 / Eq.(40): trace of a product

Open
QAlgorithms.Papers.Independent.Extend50.P17.word_product_trace

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

prove2quantum

For d,k≥1d,k\ge1d,k≥1, k≤Nk\le Nk≤N, and separately injective ordered port lists a,ba,ba,b, let W(a),W(b)W(a),W(b)W(a),W(b) be the unnormalized permutation words partially transposed on the last kkk of N+kN+kN+k factors. Define rrr using Notation 5 as the number of equalities as=Ls−1⋯L1(bs)a_s=L_{s-1}\cdots L_1(b_s)as​=Ls−1​⋯L1​(bs​). Then

Tr⁡(W(a)W(b))=dN−kd2r.\operatorname{Tr}(W(a)W(b))=d^{N-k}d^{2r}.Tr(W(a)W(b))=dN−kd2r.

Here N−k=n−2kN-k=n-2kN−k=n−2k. The prefactor is required by the trace on the full tensor space; it disappears only after explicitly applying signal normalization.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P17
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P17

open Filter MeasureTheory

open scoped BigOperators Matrix ComplexOrder Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

/-- PDF p.10, Corollary 9, Eq.(40): the factor d^(n-2k)=d^(N-k) is retained. -/
theorem word_product_trace (d N k : ℕ) (hd : 1 ≤ d)
    (hk : 1 ≤ k) (hNk : k ≤ N) (a b : MPBTPortSelection N k) :
    (mpbtWordOperator d N k a * mpbtWordOperator d N k b).trace =
      (d : ℂ)^(N-k) * (d : ℂ)^(2 * collisionCount a b) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P17

end
Source
Multiport based teleportation -- transmission of a large amount of quantum information, arXiv:2008.00856v3, PDF p. 10, Corollary 9 / Eq.(40): trace of a product
Read-back

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

For all natural numbers d,N,kd,N,kd,N,k with d≥1d\ge1d≥1 and 1≤k≤N1\le k\le N1≤k≤N, and all injections a,b:{0,…,k−1}→{0,…,N−1}a,b:\{0,\ldots,k-1\}\to\{0,\ldots,N-1\}a,b:{0,…,k−1}→{0,…,N−1}, the following complex trace identity holds. Write [q]={0,…,q−1}[q]=\{0,\ldots,q-1\}[q]={0,…,q−1}. For an injection c:[k]→[N]c:[k]\to[N]c:[k]→[N], let pcp_cpc​ be the permutation of [N+k][N+k][N+k] given by the product, in increasing order of i∈[k]i\in[k]i∈[k], of the transpositions exchanging c(i)c(i)c(i) and N+k−1−iN+k-1-iN+k−1−i. Define a matrix WcW_cWc​, indexed by pairs (u,v)∈[d][N]×[d][k](u,v)\in[d]^{[N]}\times[d]^{[k]}(u,v)∈[d][N]×[d][k], by

(Wc)(u,v),(u′,v′)={1,u∥v′=(u′∥v)∘pc−1,0,otherwise,(W_c)_{(u,v),(u',v')}= \begin{cases} 1,&u\mathbin{\|}v'=(u'\mathbin{\|}v)\circ p_c^{-1},\\ 0,&\text{otherwise}, \end{cases}(Wc​)(u,v),(u′,v′)​={1,0,​u∥v′=(u′∥v)∘pc−1​,otherwise,​

where ∥\|∥ denotes concatenation. Define permutations P0,…,PkP_0,\ldots,P_kP0​,…,Pk​ of [N][N][N] by P0=idP_0=\mathrm{id}P0​=id and Pi+1=(a(i)    Pi(b(i)))∘PiP_{i+1}=(a(i)\;\;P_i(b(i)))\circ P_iPi+1​=(a(i)Pi​(b(i)))∘Pi​, where a transposition exchanging equal elements is the identity, and put c(a,b)=#{i∈[k]:a(i)=Pi(b(i))}c(a,b)=\#\{i\in[k]:a(i)=P_i(b(i))\}c(a,b)=#{i∈[k]:a(i)=Pi​(b(i))}. Then

tr⁡(WaWb)=d N−kd 2c(a,b).\operatorname{tr}(W_aW_b)=d^{\,N-k}d^{\,2c(a,b)}.tr(Wa​Wb​)=dN−kd2c(a,b).

The powers and equality here are in C\mathbb CC; the assumptions allow d=1d=1d=1 and N=kN=kN=k, so N−kN-kN−k may be zero.

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