Shannon entropy equality is equivalent to transpose recovery
OpenQAlgorithms.Papers.Independent.Bridge50.P30.shannon_entropy_equality_iff_transpose_recoveryLet , let have nonnegative entries summing to one, and let be a real matrix with nonnegative entries and all row and column sums equal to one. For a probability vector , write , using . Matrices act on column vectors and is the ordinary real transpose. Then
The characterization permits zero probabilities, zero matrix entries and permutation matrices. It describes exactly when a bi-stochastic average preserves Shannon entropy.
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P30
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every positive natural number , every real vector with nonnegative coordinates summing to , and every real matrix with nonnegative entries and all row sums and column sums equal to , one has
Here the entropy used is , with 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.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.