Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Symmetric private information of independent binary symmetric channels

Open
QAlgorithms.Papers.Independent.Intakethird100.P74.bsc_private_information

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let pB,pE∈[0,1]p_B,p_E\in[0,1]pB​,pE​∈[0,1]. Conditioned on a uniform binary input xxx, Bob and Eve receive independent BSC outputs, with transition law p(y,z∣x)=pB(y∣x)pE(z∣x)p(y,z\mid x)=p_B(y\mid x)p_E(z\mid x)p(y,z∣x)=pB​(y∣x)pE​(z∣x), where each factor equals 1−p1-p1−p for an unchanged bit and ppp for a flipped bit. Let WB,WEW_B,W_EWB​,WE​ be their diagonal quantum output ensembles and let H2H_2H2​ denote binary entropy in bits. Then

I(WB)−I(WE)=H2(pE)−H2(pB).I(W_B)-I(W_E)=H_2(p_E)-H_2(p_B).I(WB​)−I(WE​)=H2​(pE​)−H2​(pB​).

Under the additional flip convention pB,pE≤1/2p_B,p_E\le1/2pB​,pE​≤1/2,

I(WB)−I(WE)>0⟺pB<pE.I(W_B)-I(W_E)>0\quad\Longleftrightarrow\quad p_B<p_E.I(WB​)−I(WE​)>0⟺pB​<pE​.

The entropy identity applies on the full probability square; the positivity equivalence uses the parameter convention visible in the source's figure.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P74
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P74

open QAlgorithms

open scoped ComplexConjugate Matrix

noncomputable section

local instance (p : Prop) : Decidable p := Classical.propDecidable p

variable {B E S1 S2 : Type}

variable [Fintype B] [Fintype E] [Fintype S1] [Fintype S2]

variable [DecidableEq B] [DecidableEq E] [DecidableEq S1] [DecidableEq S2]

/-- PDF p.7, Appendix C.A: exact entropy identity on [0,1]^2; the stated positivity
criterion uses the [0,1/2]^2 flip convention of Fig.1. -/
theorem bsc_private_information (pB pE : ℝ)
    (hB0 : 0 ≤ pB) (hB1 : pB ≤ 1) (hE0 : 0 ≤ pE) (hE1 : pE ≤ 1) :
    uniformHolevo (bscOutput pB) - uniformHolevo (bscOutput pE) =
      binEntropy2 pE - binEntropy2 pB ∧
    (pB ≤ 1 / 2 → pE ≤ 1 / 2 →
      (0 < uniformHolevo (bscOutput pB) - uniformHolevo (bscOutput pE) ↔ pB < pE)) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P74
Source
Polar codes for private classical communication, arXiv:1203.5794v1, PDF p. 7, Appendix C.A, unnumbered: symmetric private information of independent BSC wiretap channel
Read-back

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

For every pair of real numbers pB,pEp_B,p_EpB​,pE​ satisfying 0≤pB≤10\le p_B\le10≤pB​≤1 and 0≤pE≤10\le p_E\le10≤pE​≤1, let Wp(false)=diag⁡(1−p,p)W_p(\mathrm{false})=\operatorname{diag}(1-p,p)Wp​(false)=diag(1−p,p) and Wp(true)=diag⁡(p,1−p)W_p(\mathrm{true})=\operatorname{diag}(p,1-p)Wp​(true)=diag(p,1−p), with Boolean indices ordered as (false,true)(\mathrm{false},\mathrm{true})(false,true). For a density matrix ρ\rhoρ, write S2(ρ)=−Re⁡tr⁡(ρlog⁡2ρ)S_2(\rho)=-\operatorname{Re}\operatorname{tr}(\rho\log_2\rho)S2​(ρ)=−Retr(ρlog2​ρ), using spectral functional calculus and the convention 0log⁡20=00\log_2 0=00log2​0=0, and define

χunif(W)=S2 ⁣(W(false)+W(true)2)−S2(W(false))+S2(W(true))2.\chi_{\mathrm{unif}}(W) =S_2\!\left(\frac{W(\mathrm{false})+W(\mathrm{true})}{2}\right) -\frac{S_2(W(\mathrm{false}))+S_2(W(\mathrm{true}))}{2}.χunif​(W)=S2​(2W(false)+W(true)​)−2S2​(W(false))+S2​(W(true))​.

Writing h2(p)=[−plog⁡p−(1−p)log⁡(1−p)]/log⁡2h_2(p)=[-p\log p-(1-p)\log(1-p)]/\log2h2​(p)=[−plogp−(1−p)log(1−p)]/log2, with zero terms interpreted as zero, the assertion is

χunif(WpB)−χunif(WpE)=h2(pE)−h2(pB).\chi_{\mathrm{unif}}(W_{p_B})-\chi_{\mathrm{unif}}(W_{p_E}) =h_2(p_E)-h_2(p_B).χunif​(WpB​​)−χunif​(WpE​​)=h2​(pE​)−h2​(pB​).

Additionally, if pB≤12p_B\le\tfrac12pB​≤21​ and pE≤12p_E\le\tfrac12pE​≤21​, then this difference is strictly positive if and only if pB<pEp_B<p_EpB​<pE​. All interval endpoints are included.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me