Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9: positivity of both twirls for appropriate block-positive inputs

Open
QAlgorithms.Papers.Independent.Bridge50.P37.block_positive_twirls

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

prove2quantum

Write MdM_dMd​ for complex d×dd\times dd×d matrices in fixed orthonormal bases; positive means positive semidefinite. All maps are complex-linear and all dimensions are positive integers. The symbols ∥⋅∥⋄\|\cdot\|_\diamond∥⋅∥⋄​, ∥⋅∥1\|\cdot\|_1∥⋅∥1​ and ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ denote the diamond, trace and spectral norms, respectively; ∗*∗ denotes the Hilbert--Schmidt adjoint. Choi matrices and maximally entangled projections use the normalized, reference-first convention.

Let d≥1d\ge1d≥1 and let C∈Md⊗MdC\in M_d\otimes M_dC∈Md​⊗Md​ be Hermitian and block-positive. With normalized Haar measure on U(d)\mathcal U(d)U(d),

tr⁡(CFd)≤0 ⟹ ∫(U⊗U)C(U⊗U)† dU≥0,\operatorname{tr}(CF_d)\le0\ \Longrightarrow\ \int(U\otimes U)C(U\otimes U)^\dagger\,dU\ge0,tr(CFd​)≤0 ⟹ ∫(U⊗U)C(U⊗U)†dU≥0, tr⁡(Cωd)≥0 ⟹ ∫(U⊗U‾)C(U⊗U‾)† dU≥0.\operatorname{tr}(C\omega_d)\ge0\ \Longrightarrow\ \int(U\otimes\overline U)C(U\otimes\overline U)^\dagger\,dU\ge0.tr(Cωd​)≥0 ⟹ ∫(U⊗U)C(U⊗U)†dU≥0.

Here Fd∣ij⟩=∣ji⟩F_d|ij\rangle=|ji\rangleFd​∣ij⟩=∣ji⟩. The second factor is entrywise conjugate UUU, not its adjoint. Both continuous compact-group integrands are integrable; block positivity includes Hermiticity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P37
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter MeasureTheory

-- Only the following exact definition bodies are reused from pinned accepted papers.

open QAlgorithms.Papers.Independent.Information100.P04 (gamma copies)

open QAlgorithms.Papers.Independent.Information100.P30 (MatrixMap IsPositiveMap)

open QAlgorithms.Papers.Independent.Information100.P50 (maxEigenvalue)

open QAlgorithms.Papers.Independent.Information100.P63 (Mat)

open QAlgorithms.Papers.Independent.Information100.P69 (diamond)

open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)

open QAlgorithms.Papers.Independent.Information100.P76 (swapMatrix)

open QAlgorithms.Papers.Independent.Next46.P39 (inverseSqrt)

namespace QAlgorithms.Papers.Independent.Bridge50.P37

attribute [local instance] Classical.propDecidable Classical.decEq

variable {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
  [DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D]

/-- Lemma 9, PDF pp.23--24: both twirls with their distinct trace tests.
Every positive dimension is included; at d=1 both twirls are the identity. -/
theorem block_positive_twirls (d : ℕ) [NeZero d]
    (C : Mat (Fin d × Fin d)) (hC : ProductBlockPositive C) :
    ((C * (swapMatrix (I := Fin d))).trace.re ≤ 0 → (bipartiteHaarTwirl d false C).PosSemidef) ∧
    (0 ≤ (C * normalizedEntangledProjection (Fin d)).trace.re → (bipartiteHaarTwirl d true C).PosSemidef) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P37

end
Source
Positivity of linear maps under tensor powers, arXiv:1502.05630v2, PDF p. 23, Lemma 9: positivity of both twirls for appropriate block-positive inputs
Read-back

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

For every nonzero natural number ddd, including d=1d=1d=1, let CCC be a complex matrix indexed by {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2. Assume that CCC is Hermitian and that, for every u,v∈Cdu,v\in\mathbb C^du,v∈Cd, including zero vectors, Re⁡⟨u⊗v,C(u⊗v)⟩≥0\operatorname{Re}\langle u\otimes v,C(u\otimes v)\rangle\ge0Re⟨u⊗v,C(u⊗v)⟩≥0, where (u⊗v)(i,j)=uivj(u\otimes v)_{(i,j)}=u_i v_j(u⊗v)(i,j)​=ui​vj​. Define the matrices SSS and PPP by S(i,j),(k,l)=1S_{(i,j),(k,l)}=1S(i,j),(k,l)​=1 if i=li=li=l and j=kj=kj=k, and 000 otherwise, and P=ΩΩ†P=\Omega\Omega^\daggerP=ΩΩ†, where Ω(i,j)=1/d\Omega_{(i,j)}=1/\sqrt dΩ(i,j)​=1/d​ if i=ji=ji=j, and 000 otherwise. Using normalized Haar measure μ\muμ on the unitary group U(d)U(d)U(d), define the following matrices by integrating each entry:

T0(C)=∫U(d)(U⊗U)C(U⊗U)† dμ(U),T1(C)=∫U(d)(U⊗U‾)C(U⊗U‾)† dμ(U),T_0(C)=\int_{U(d)}(U\otimes U)C(U\otimes U)^\dagger\,d\mu(U), \qquad T_1(C)=\int_{U(d)}(U\otimes\overline U)C(U\otimes\overline U)^\dagger\,d\mu(U),T0​(C)=∫U(d)​(U⊗U)C(U⊗U)†dμ(U),T1​(C)=∫U(d)​(U⊗U)C(U⊗U)†dμ(U),

where U‾\overline UU denotes entrywise complex conjugation. Then both implications hold: if Re⁡tr⁡(CS)≤0\operatorname{Re}\operatorname{tr}(CS)\le0Retr(CS)≤0, then T0(C)T_0(C)T0​(C) is positive semidefinite; and if 0≤Re⁡tr⁡(CP)0\le\operatorname{Re}\operatorname{tr}(CP)0≤Retr(CP), then T1(C)T_1(C)T1​(C) is positive semidefinite.

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