Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section d, p.7 — for a binary guess, K(p0,p1)=4 ∣PE−12∣K(p_0,p_1) = 4\,|\mathrm{PE} - \tfrac12|K(p0​,p1​)=4∣PE−21​∣

Proved
MayersBC.binary_kolmogorov_eq

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

cryptographyp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1quantum-information

Let ρ0,ρ1\rho_0, \rho_1ρ0​,ρ1​ be density matrices and let QQQ be an effect (0≤Q≤I0 \le Q \le I0≤Q≤I). Let pbp_bpb​ be the outcome distribution of the two-outcome measurement {Q,I−Q}\{Q, I - Q\}{Q,I−Q} on ρb\rho_bρb​, and let PE\mathrm{PE}PE be the probability of error of the guess "000 on outcome QQQ, 111 on outcome I−QI-QI−Q" for a uniformly random bit. Then

K(p0,p1)=4 ∣PE−12∣,K(p_0, p_1) = 4\,\big|\mathrm{PE} - \tfrac12\big| ,K(p0​,p1​)=4​PE−21​​,

where KKK is the Kolmogorov distance without the factor 12\tfrac1221​. In particular Bob's criterion ∣PE−12∣≤ε|\mathrm{PE} - \tfrac12| \le \varepsilon∣PE−21​∣≤ε gives K(p0,p1)≤4εK(p_0, p_1) \le 4\varepsilonK(p0​,p1​)≤4ε for every binary measurement.

Differences from the source:

  • generalization: the criterion |PE − 1/2| ≤ ε implies K(p0, p1) ≤ 4ε → the identity K(p0, p1) = 4|PE − 1/2|; reason: the identity gives the implication for every ε; it is the 'some algebra' of the page
  • encoding: Bob's guess X from a measurement with two outcomes → the measurement binaryPOVM Q = {Q, I − Q} with guess 0 on outcome Q; reason: a two-outcome guess is exactly such a measurement
Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_MayersBC_guessError
import Definitions.Def_MayersBC_outcomeDist
import Definitions.Def_MayersBC_binaryPOVM
import Definitions.Def_MayersBC_kolmogorov
open QAlgorithms
Formal statement
namespace MayersBC

/-- Mayers, *The Trouble with Quantum Bit Commitment*, arXiv:quant-ph/9603015v3, section d, p.7:
"After some algebra, one obtains that the criteria |PE − 1/2| ≤ ε implies that K(p0, p1) ≤ 4ε."
For density matrices `ρ_0, ρ_1` and a two-outcome measurement `{Q, I − Q}`, the Kolmogorov
distance (no ½) between the two outcome distributions equals `4 |PE − ½|`, where `PE` is the
error of the guess "`0` on `Q`, `1` on `I − Q`" for a uniformly random bit.

**Formalization Note.** Stated as the identity behind "after some algebra", which gives the
implication `|PE − ½| ≤ ε → K ≤ 4ε` for every `ε`. Trace one of both states is used. -/
theorem binary_kolmogorov_eq {ι : Type} [Fintype ι] [DecidableEq ι] (ρ0 ρ1 Q : Matrix ι ι ℂ)
    (h0 : IsDensityMatrix ρ0) (h1 : IsDensityMatrix ρ1) (hQ : IsEffect Q) :
    kolmogorov (outcomeDist (binaryPOVM Q) ρ0) (outcomeDist (binaryPOVM Q) ρ1) =
      4 * |guessError ρ0 ρ1 Q - 1 / 2| := by sorry

end MayersBC
Source
Mayers, The Trouble with Quantum Bit Commitment, arXiv:quant-ph/9603015v3, section d, p.7
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

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