Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Partial trace commutes with right multiplication on the retained factor

Proved
QAlgorithms.Papers.Independent.Advance50.P11.partialTrace_rightMultiply

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

prove2quantum

All registers are finite dimensional and have positive dimension. Density operators are positive semidefinite with trace one, pure vectors have norm one, and logarithms are base two. For density operators ρAB\rho_{AB}ρAB​ and σA\sigma_AσA​,

tr⁡B ⁣[ρAB(σA⊗IB)]=(tr⁡BρAB)σA.\operatorname{tr}_B\!\left[\rho_{AB}(\sigma_A\otimes I_B)\right] =(\operatorname{tr}_B\rho_{AB})\sigma_A.trB​[ρAB​(σA​⊗IB​)]=(trB​ρAB​)σA​.

The partial trace is over the actual second tensor factor, and multiplication by σA\sigma_AσA​ remains on the right.

This identity transports an operator through a partial trace without reversing multiplication order.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P11
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P11

open QAlgorithms MeasureTheory

open scoped Matrix ComplexConjugate ComplexOrder

open QAlgorithms.Papers.Independent.Support50.P21
  (conditionalMin conditionalMax hMin hMax largestEigenvalue)

open QAlgorithms.Papers.Independent.Dependency50.P35 (elog supportRank tr)

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower SupportIncluded)

open QAlgorithms.Papers.Independent.Information100.P07 (support)

open QAlgorithms.Papers.Independent.Gap20.P11 (IsLOCC marginalAR)

open QAlgorithms.Papers.Independent.Information100.P22 (bell mixed)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Lemma A.5, PDF p.31, (A.4): preserve RIGHT multiplication by sigma_A.
The source quantifies normalized densities, though the identity extends further. -/
theorem partialTrace_rightMultiply {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] [Nonempty A] [Nonempty B]
    (rho : Matrix (A × B) (A × B) ℂ) (sigma : Matrix A A ℂ)
    (hrho : IsDensityMatrix rho) (hsigma : IsDensityMatrix sigma) :
    traceRight (rho * Matrix.kronecker sigma (1 : Matrix B B ℂ)) =
      traceRight rho * sigma := by sorry

end QAlgorithms.Papers.Independent.Advance50.P11

end
Source
Single-shot Quantum State Merging, arXiv:0912.4495v1, PDF p. 31, Lemma A.5
Read-back

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

For finite, nonempty types AAA and BBB, each with decidable equality, let ρ\rhoρ be a complex matrix indexed by A×BA\times BA×B, and let σ\sigmaσ be a complex matrix indexed by AAA. Assume both matrices are positive semidefinite and have trace 111. Then taking the partial trace over BBB after multiplying ρ\rhoρ on the right by σ⊗IB\sigma\otimes I_Bσ⊗IB​ gives

Tr⁡B ⁣(ρ(σ⊗IB))=Tr⁡B(ρ) σ,\operatorname{Tr}_B\!\bigl(\rho(\sigma\otimes I_B)\bigr) =\operatorname{Tr}_B(\rho)\,\sigma,TrB​(ρ(σ⊗IB​))=TrB​(ρ)σ,

where (Tr⁡BX)a,a′=∑b∈BX(a,b),(a′,b)(\operatorname{Tr}_B X)_{a,a'}=\sum_{b\in B}X_{(a,b),(a',b)}(TrB​X)a,a′​=∑b∈B​X(a,b),(a′,b)​.

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