Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Shannon entropy equality is equivalent to transpose recovery

Open
QAlgorithms.Papers.Independent.Bridge50.P30.shannon_entropy_equality_iff_transpose_recovery

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

prove2quantum

Let N≥1N\ge1N≥1, let p∈RNp\in\mathbb R^Np∈RN have nonnegative entries summing to one, and let BBB be a real N×NN\times NN×N matrix with nonnegative entries and all row and column sums equal to one. For a probability vector rrr, write H(r)=−∑irilog⁡2riH(r)=-\sum_i r_i\log_2 r_iH(r)=−∑i​ri​log2​ri​, using 0log⁡20=00\log_2 0=00log2​0=0. Matrices act on column vectors and BTB^TBT is the ordinary real transpose. Then

H(Bp)=H(p)⟺BTBp=p.H(Bp)=H(p)\quad\Longleftrightarrow\quad B^TBp=p.H(Bp)=H(p)⟺BTBp=p.

The characterization permits zero probabilities, zero matrix entries and permutation matrices. It describes exactly when a bi-stochastic average preserves Shannon entropy.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P30
Formal statement
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.6, Corollary 3.2. The p.5 conventions allow zero probabilities and
zero matrix entries. The transpose is the ordinary real transpose, acting on columns. -/
theorem shannon_entropy_equality_iff_transpose_recovery
    {N : ℕ} (hN : 0 < N) (p : Fin N → ℝ)
    (B : Matrix (Fin N) (Fin N) ℝ)
    (hp : p ∈ stdSimplex ℝ (Fin N))
    (hB : B ∈ doublyStochastic ℝ (Fin N)) :
    classicalEntropy (B.mulVec p) = classicalEntropy p ↔
      B.transpose.mulVec (B.mulVec p) = p := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P30

end
Source
Von Neumann Entropy-Preserving Quantum Operations, arXiv:1104.2992v4, PDF p. 6, Corollary 3.2
Read-back

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

For every positive natural number NNN, every real vector p∈RNp\in\mathbb R^Np∈RN with nonnegative coordinates summing to 111, and every real N×NN\times NN×N matrix BBB with nonnegative entries and all row sums and column sums equal to 111, one has

H(Bp)=H(p)⟺BT(Bp)=p.H(Bp)=H(p) \quad\Longleftrightarrow\quad B^{\mathsf T}(Bp)=p.H(Bp)=H(p)⟺BT(Bp)=p.

Here the entropy used is H(v)=−Re⁡tr⁡[g(diag⁡(v))]=−∑jvjlog⁡2vjH(v)=-\operatorname{Re}\operatorname{tr}[g(\operatorname{diag}(v))]=-\sum_jv_j\log_2v_jH(v)=−Retr[g(diag(v))]=−∑j​vj​log2​vj​, with g(t)=tlog⁡2tg(t)=t\log_2tg(t)=tlog2​t applied by continuous functional calculus. Coordinates equal to zero are allowed and contribute zero, since the real logarithm used here takes value zero at 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