Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Von Neumann Entropy-Preserving Quantum Operations

Definition
QAlgorithms_Papers_Independent_Bridge50_P30

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

prove2quantum

The objects the formalized statements of Von Neumann Entropy-Preserving Quantum Operations (arXiv:1104.2992) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsBistochastic: PDF p.2, Section 1: a bi-stochastic operation is a trace-preserving CP map that preserves the identity. The accepted finite Kraus predicate IsChannel encodes CP and trace preservation on every operator; complex linearity is bundled.
  • mapEntropy: PDF p.2, Section 1: map entropy S(J(Phi)/N). The accepted Choi matrix is unnormalized and output-first. All theorem uses have N > 0 and a channel Phi.
  • krausMatrix: PDF p.5, Section 3: the Kraus matrix B(Phi). Its (i,j) entry is the output i population of the input matrix unit |j><j|, equivalently sum_mu |M_mu(i,j)|^2 for any Kraus representation of the channel. This coordinate expression is independent of the choice of Kraus representation.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P50
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P08

/-!
Statements from Zhang and Wu, *Von Neumann Entropy-Preserving Quantum Operations*,
arXiv:1104.2992v4. All locators are PDF pages. The system is C^(Fin N), N > 0,
with its coordinate orthonormal basis. Entropies are in bits and allow zero eigenvalues.
The full structural Theorem 2.1 and its extension in Remark 2.2 are deferred:
the single invariant block decomposition in (iii) fails for Hadamard after dephasing.
The separately inventoried equivalence (i) iff (ii) is explicitly proved on PDF p.3.
-/

noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Bridge50.P30

open QAlgorithms.Papers.Independent.Information100.P50
  (M Lin choiMatrix hilbertSchmidtAdjoint)
open QAlgorithms.Papers.Independent.Claimed50.P08 (classicalEntropy)

/-- PDF p.2, Section 1: a bi-stochastic operation is a trace-preserving CP map
that preserves the identity. The accepted finite Kraus predicate `IsChannel`
encodes CP and trace preservation on every operator; complex linearity is bundled. -/
def IsBistochastic {N : ℕ} (Phi : Lin N N) : Prop :=
  IsChannel Phi ∧ Phi 1 = 1

/-- PDF p.2, Section 1: map entropy S(J(Phi)/N). The accepted Choi matrix is
unnormalized and output-first. All theorem uses have N > 0 and a channel Phi. -/
def mapEntropy {N : ℕ} (Phi : Lin N N) : ℝ :=
  vnEntropy (((N : ℂ)⁻¹) • choiMatrix Phi)

/-- PDF p.5, Section 3: the Kraus matrix B(Phi). Its (i,j) entry is the
output i population of the input matrix unit |j><j|, equivalently
sum_mu |M_mu(i,j)|^2 for any Kraus representation of the channel.
This coordinate expression is independent of the choice of Kraus representation. -/
def krausMatrix {N : ℕ} (Phi : Lin N N) : Matrix (Fin N) (Fin N) ℝ :=
  fun i j => (Phi (Matrix.single j j 1) i i).re

/-- Sanity check: the identity channel is bi-stochastic in every finite dimension. -/
example (N : ℕ) : IsBistochastic (LinearMap.id : Lin N N) := by
  refine ⟨?_, rfl⟩
  refine ⟨1, fun _ => 1, ?_, ?_⟩
  · simp [IsKrausFamily]
  · intro X
    simp [krausApply]

/-- Sanity check: the one-dimensional zero map has zero normalized Choi matrix. -/
example : mapEntropy (0 : Lin 1 1) =
    vnEntropy (0 : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ) := by
  have hchoi : choiMatrix (0 : Lin 1 1) =
      (0 : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ) := rfl
  simp only [mapEntropy, hchoi, smul_zero]

/-- Sanity check: B(id) has its single entry equal to one when N = 1. -/
example : krausMatrix (LinearMap.id : Lin 1 1) 0 0 = 1 := by
  simp [krausMatrix, Matrix.single]

end QAlgorithms.Papers.Independent.Bridge50.P30
Source
Von Neumann Entropy-Preserving Quantum Operations, arXiv:1104.2992v4, https://arxiv.org/abs/1104.2992v4
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P30.IsBistochastic

For any natural number NNN, including N=0N=0N=0, and any complex-linear map Φ:MN(C)→MN(C)\Phi:M_N(\mathbb C)\to M_N(\mathbb C)Φ:MN​(C)→MN​(C), this predicate means that Φ\PhiΦ is a channel and preserves the identity matrix: Φ(IN)=IN\Phi(I_N)=I_NΦ(IN​)=IN​. Here being a channel means that there exist a natural number mmm and matrices E0,…,Em−1∈MN(C)E_0,\ldots,E_{m-1}\in M_N(\mathbb C)E0​,…,Em−1​∈MN​(C) such that ∑j=0m−1Ej†Ej=IN\sum_{j=0}^{m-1}E_j^\dagger E_j=I_N∑j=0m−1​Ej†​Ej​=IN​ and, for every matrix XXX, Φ(X)=∑j=0m−1EjXEj†\Phi(X)=\sum_{j=0}^{m-1}E_jXE_j^\daggerΦ(X)=∑j=0m−1​Ej​XEj†​. The Kraus family may be empty when these conditions permit it; when N=0N=0N=0, all matrices involved have empty index sets.

QAlgorithms.Papers.Independent.Bridge50.P30.krausMatrix

For any natural number NNN, including zero, and any complex-linear map Φ:MN(C)→MN(C)\Phi:M_N(\mathbb C)\to M_N(\mathbb C)Φ:MN​(C)→MN​(C), this defines a real N×NN\times NN×N matrix KΦK_\PhiKΦ​ by

(KΦ)ij=Re⁡(Φ(Ejj)ii)(0≤i,j<N),(K_\Phi)_{ij}=\operatorname{Re}\bigl(\Phi(E_{jj})_{ii}\bigr) \qquad(0\le i,j<N),(KΦ​)ij​=Re(Φ(Ejj​)ii​)(0≤i,j<N),

where EjjE_{jj}Ejj​ has entry 111 at (j,j)(j,j)(j,j) and zero elsewhere. No channel or identity-preservation assumption is required. For N=0N=0N=0, this is the empty matrix.

QAlgorithms.Papers.Independent.Bridge50.P30.mapEntropy

For any natural number NNN, including zero, and any complex-linear map Φ:MN(C)→MN(C)\Phi:M_N(\mathbb C)\to M_N(\mathbb C)Φ:MN​(C)→MN​(C), define the matrix CΦC_\PhiCΦ​, indexed by pairs in {0,…,N−1}2\{0,\ldots,N-1\}^2{0,…,N−1}2, by (CΦ)(y,a),(z,b)=Φ(Eab)yz(C_\Phi)_{(y,a),(z,b)}=\Phi(E_{ab})_{yz}(CΦ​)(y,a),(z,b)​=Φ(Eab​)yz​, where EabE_{ab}Eab​ has a single entry 111 at (a,b)(a,b)(a,b) and zero elsewhere. The value defined is

−Re⁡tr⁡ ⁣[g ⁣(N−1CΦ)],g(t)=tlog⁡2t,-\operatorname{Re}\operatorname{tr}\!\left[g\!\left(N^{-1}C_\Phi\right)\right], \qquad g(t)=t\log_2 t,−Retr[g(N−1CΦ​)],g(t)=tlog2​t,

where ggg is applied by the continuous functional calculus and N−1N^{-1}N−1 is taken in C\mathbb CC. No channel, positivity, or normalization condition is imposed on Φ\PhiΦ. Inversion is total, with 0−1=00^{-1}=00−1=0; for N=0N=0N=0, the matrix has empty indices and the value is 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