Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3: nonzero coefficient entries are constant within each component

Open
QAlgorithms.Papers.Independent.Advance50.P40.lemma3_block_constant

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

prove2quantum

Fix positive integers n,mn,mn,m and fixed orthonormal system and bath coordinates. Write MnM_nMn​ for the complex system matrices, Eij=∣i⟩⟨j∣E_{ij}=|i\rangle\langle j|Eij​=∣i⟩⟨j∣, and let ϕij∈Mm\phi_{ij}\in M_mϕij​∈Mm​ be fixed bath operators with ϕji=ϕij†\phi_{ji}=\phi_{ij}^{\dagger}ϕji​=ϕij†​ and, for each i,ji,ji,j, either ϕij=0\phi_{ij}=0ϕij​=0 or Tr⁡ϕij=1\operatorname{Tr}\phi_{ij}=1Trϕij​=1. Define

Aϕ(X)=∑i,jXijEij⊗ϕij,ΦU,ϕ(X)=Tr⁡B[UAϕ(X)U†].\mathcal A_\phi(X)=\sum_{i,j}X_{ij}E_{ij}\otimes\phi_{ij},\qquad \Phi_{U,\phi}(X)=\operatorname{Tr}_B\bigl[U\mathcal A_\phi(X)U^{\dagger}\bigr].Aϕ​(X)=i,j∑​Xij​Eij​⊗ϕij​,ΦU,ϕ​(X)=TrB​[UAϕ​(X)U†].

Here UUU is a joint unitary and the bath is the second tensor factor. A scalar matrix RRR is admissible when it is Hermitian, ∑iRii=1\sum_i R_{ii}=1∑i​Rii​=1, and Aϕ(R)\mathcal A_\phi(R)Aϕ​(R) is a positive semidefinite trace-one matrix. Zero bath operators annihilate their corresponding matrix units on every input.

Assume that the same fixed family ϕ\phiϕ has the following property: for every joint unitary UUU, the map ΦU,ϕ\Phi_{U,\phi}ΦU,ϕ​ is completely positive on all system matrices. Fix an admissible RRR; this retains the initial-state setting of the enclosing necessity proof. Complete positivity here does not require trace preservation. Let i∼ji\sim ji∼j be the equivalence relation generated by the nonzero entries ϕij≠0\phi_{ij}\ne0ϕij​=0, retaining isolated indices. Write [i][i][i] for the component of iii. There is an operator Cα∈MmC_\alpha\in M_mCα​∈Mm​ for each component α\alphaα such that

i≁j⟹ϕij=0,i∼j⟹ϕij∈{0,C[i]}.i\not\sim j\Longrightarrow\phi_{ij}=0,\qquad i\sim j\Longrightarrow\phi_{ij}\in\{0,C_{[i]}\}.i∼j⟹ϕij​=0,i∼j⟹ϕij​∈{0,C[i]​}.

Thus [ϕij][\phi_{ij}][ϕij​] is a direct sum over its connected components with one common nonzero-entry value per component. The common operator may be zero for a wholly zero singleton; it is not asserted to be a density matrix. This is the block structure needed in the necessity argument.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P40
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P40

/-- Lemma 3, PDF pp. 3-4, under the all-unitary CP necessity hypothesis.
Components determine the direct sum; within a component every entry is zero
or one common operator. A zero singleton may have common operator zero,
and no density-matrix property is asserted for the common operators. -/
theorem lemma3_block_constant {n m : ℕ} [NeZero n] [NeZero m]
    (phi : BathFamily n m) (hphi : IsSLFamily phi)
    (R : SystemMatrix n) (hR : IsSLAdmissibleInput phi R) (hcp : AllUnitaryCP phi) :
    ∃ common : Quotient (operatorComponent phi) → SystemMatrix m,
      (∀ i j, ¬ (operatorComponent phi).r i j → phi i j = 0) ∧
      ∀ i j, (operatorComponent phi).r i j →
        phi i j = 0 ∨ phi i j = common (Quotient.mk (operatorComponent phi) i) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P40

end
Source
Vanishing quantum discord is necessary and sufficient for completely positive maps, arXiv:0808.0175v2, PDF p. 3, Lemma 3
Read-back

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

For all positive natural numbers n,mn,mn,m, let ϕ=(ϕij)0≤i,j<n\phi=(\phi_{ij})_{0\le i,j<n}ϕ=(ϕij​)0≤i,j<n​ be complex m×mm\times mm×m matrices such that each ϕij\phi_{ij}ϕij​ is either zero or has trace 111, and ϕji=ϕij∗\phi_{ji}=\phi_{ij}^*ϕji​=ϕij∗​. Put

Sϕ(X)(i,a),(j,b)=Xij(ϕij)ab,(Tr⁡BY)ij=∑a=0m−1Y(i,a),(j,a).S_\phi(X)_{(i,a),(j,b)}=X_{ij}(\phi_{ij})_{ab}, \qquad (\operatorname{Tr}_B Y)_{ij}=\sum_{a=0}^{m-1}Y_{(i,a),(j,a)}.Sϕ​(X)(i,a),(j,b)​=Xij​(ϕij​)ab​,(TrB​Y)ij​=a=0∑m−1​Y(i,a),(j,a)​.

Let RRR be Hermitian with ∑iRii=1\sum_iR_{ii}=1∑i​Rii​=1, and suppose Sϕ(R)S_\phi(R)Sϕ​(R) is positive semidefinite with trace 111. Suppose further that for every unitary joint matrix UUU, there is a complex-linear map FUF_UFU​ satisfying FU(X)=Tr⁡B(USϕ(X)U∗)F_U(X)=\operatorname{Tr}_B(US_\phi(X)U^*)FU​(X)=TrB​(USϕ​(X)U∗) for every complex n×nn\times nn×n matrix XXX, and such that for every natural number rrr, including 000, applying FUF_UFU​ to every n×nn\times nn×n block of any positive semidefinite matrix indexed by {0,…,r−1}×{0,…,n−1}\{0,\ldots,r-1\}\times\{0,\ldots,n-1\}{0,…,r−1}×{0,…,n−1} gives a positive semidefinite matrix. Let ∼\sim∼ be the smallest equivalence relation on {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} containing every pair (i,j)(i,j)(i,j) for which ϕij≠0\phi_{ij}\ne0ϕij​=0; thus it includes reflexive pairs and all pairs obtained by symmetry and transitivity. There exists a function CCC assigning a complex m×mm\times mm×m matrix to each equivalence class such that, for all i,ji,ji,j,

i≁j ⟹ ϕij=0,i∼j ⟹ (ϕij=0 or ϕij=C([i])).i\not\sim j\ \Longrightarrow\ \phi_{ij}=0, \qquad i\sim j\ \Longrightarrow\ \bigl(\phi_{ij}=0\ \text{or}\ \phi_{ij}=C([i])\bigr).i∼j ⟹ ϕij​=0,i∼j ⟹ (ϕij​=0 or ϕij​=C([i])).

Zero entries are permitted within an equivalence class, and the conclusion imposes no further condition on CCC, including on its value for a class whose entries are all 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