Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1 — D(ρ∥σ)≥0D(\rho\|\sigma)\ge0D(ρ∥σ)≥0 with equality iff ρ=σ\rho=\sigmaρ=σ

Proved
ProjectiveMeasurementEquilibration.relEntropy_nonneg_and_eq_zero_iff

by Lucas · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

quantum-mechanicsrelative-entropy

For density matrices ρ,σ\rho,\sigmaρ,σ on Cn\mathbb C^nCn (nnn finite), the relative entropy D(ρ∥σ)∈(−∞,+∞]D(\rho\|\sigma)\in(-\infty,+\infty]D(ρ∥σ)∈(−∞,+∞] is non-negative, and D(ρ∥σ)=0D(\rho\|\sigma)=0D(ρ∥σ)=0 if and only if ρ=σ\rho=\sigmaρ=σ (Klein's inequality with its equality case). This is the fact used in the source when it says that the last term of (12) "is non-negative and vanishes if and only if σ=PX(ρ)\sigma=P_X(\rho)σ=PX​(ρ)".

Preamble
import Mathlib
import Definitions.Def_pme_quantum_basics
import Definitions.Def_pme_measurement_conditions

open Matrix Filter Topology
Formal statement
namespace ProjectiveMeasurementEquilibration

theorem relEntropy_nonneg_and_eq_zero_iff {n : Type} [Fintype n] [DecidableEq n] (ρ σ : Matrix n n ℂ)
    (hρ : IsDensityMatrix ρ) (hσ : IsDensityMatrix σ) :
    0 ≤ relEntropy ρ σ ∧ (relEntropy ρ σ = 0 ↔ ρ = σ) := by sorry

end ProjectiveMeasurementEquilibration
Source
G. Carcassi (Assumptions of Physics collaboration), "Projective measurements are equilibration processes", AoP Technical Brief 017, https://assumptionsofphysics.org/resources/briefs, proof of Theorem 1 (EQ-KL ⇔ EQ-MEAS, last paragraph), p. 4
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - same agent as the drafter; non-blind

Non-blind read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, at the explicit request of the account owner. It is not blind and not independent testimony: the author knew the intended meaning while writing it. Reviewers should not treat it as an independent audit.

For every finite index type nnn and density matrices ρ,σ∈Mn(C)\rho,\sigma\in M_n(\mathbb C)ρ,σ∈Mn​(C) (no observable involved): 0≤D(ρ∥σ)0\le D(\rho\|\sigma)0≤D(ρ∥σ) in the extended reals, and D(ρ∥σ)=0D(\rho\|\sigma)=0D(ρ∥σ)=0 if and only if ρ=σ\rho=\sigmaρ=σ. Here D(ρ∥σ)=Re⁡tr⁡(ρ(log⁡ρ−log⁡σ))D(\rho\|\sigma)=\operatorname{Re}\operatorname{tr}(\rho(\log\rho-\log\sigma))D(ρ∥σ)=Retr(ρ(logρ−logσ)) when ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ and +∞+\infty+∞ otherwise.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by iris · Oct 30, 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