Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sections b and d, pp.5–9 — if a pure-state commitment conceals the bit, Alice opens 000 honestly and 111 with probability ≥\ge≥ honest − 4ε-\,4\sqrt\varepsilon−4ε​

Proved
MayersBC.attack_of_concealing

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

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

Consider any commitment scheme in which Alice commits to bbb by sending Bob a pure state ψw\psi_wψw​ chosen with probability pb(w)p_b(w)pb​(w) (p0,p1p_0, p_1p0​,p1​ probability distributions on a finite set WWW, each ψw\psi_wψw​ a unit vector), Bob measures with a POVM {Ey}\{E_y\}{Ey​}, and Bob accepts an opening www of bbb when a test Tb(w,y)T_b(w, y)Tb​(w,y) returns ok. Let

ρb=∑wpb(w) ∣ψw⟩⟨ψw∣,\rho_b = \sum_w p_b(w)\, |\psi_w\rangle\langle\psi_w| ,ρb​=w∑​pb​(w)∣ψw​⟩⟨ψw​∣,

and suppose Bob's criterion holds: every binary guess between ρ0\rho_0ρ0​ and ρ1\rho_1ρ1​ has ∣PE−12∣≤ε|\mathrm{PE} - \tfrac12| \le \varepsilon∣PE−21​∣≤ε. Then Alice can prepare one pure state φ\varphiφ of her register CW\mathbb C^WCW and Bob's system, whose reduced state on Bob's side is ρ0\rho_0ρ0​, and there are measurements N0,N1N_0, N_1N0​,N1​ on her register alone such that

  1. opening 000 with N0N_0N0​ is accepted with exactly the honest probability Pr⁡(T0(W(0))=ok)\Pr(T_0(W^{(0)}) = ok)Pr(T0​(W(0))=ok);
  2. opening 111 with N1N_1N1​ is accepted with probability at least
Pr⁡(T1(W(1))=ok)−4ε.\Pr\big(T_1(W^{(1)}) = ok\big) - 4\sqrt{\varepsilon} .Pr(T1​(W(1))=ok)−4ε​.

So a commitment that is secure against Bob in this sense is not binding: Alice decides the bit after the commit phase.

Differences from the source:

  • generalization: the BCJL commitment (BB84 product states, the coset distribution, Bob's random-basis measurement) → any finite mixture of pure states {p_b(w), ψ_w}, any Bob POVM E and any test T; reason: the argument of pp.7–9 uses none of the BCJL specifics (p.3: one need not understand the protocol in detail); BCJL is the instance proved in bcjl_insecure
  • generalization: ε = 1/25 → any real ε; reason: the argument uses no property of the value
  • reading: Bob's best guess X satisfies |PE − 1/2| ≤ ε → IsConcealing ε ρ0 ρ1 (every binary guess); reason: equivalent, as in IsConcealing
  • encoding: Alice's system A, measurements M_b^(A), and 'Alice measures after Bob' (the measurements commute) → Alice's register ℂ^W as the first tensor factor, POVMs N_0, N_1 indexed by W, and the joint probability ⟨φ|N_w ⊗ E_y|φ⟩ (cheatAccept); reason: the outcome law of commuting measurements on different systems does not depend on their order; a register of dimension |W| purifies ρ_0 and ρ_1
Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Basic
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_FuchsVdGraaf_IsProbDist
import Definitions.Def_MayersBC_mixtureDensity
import Definitions.Def_MayersBC_IsConcealing
import Definitions.Def_MayersBC_honestAccept
import Definitions.Def_MayersBC_cheatAccept
open QAlgorithms
Formal statement
namespace MayersBC

/-- Mayers, arXiv:quant-ph/9603015v3, sections b and d, pp.5–9: "In the remainder of this paper,
we show that for all practical purposes, if the protocol is secure against Bob, then the above
condition holds" (p.5–6), carried out on pp.7–9 for any commitment in which Alice commits to `b`
by sending a pure state `ψ_w` drawn with probability `p_b(w)`.

Let `p_0, p_1` be probability distributions on a finite set `W`, `ψ_w` unit vectors of the
photon space, `E` Bob's measurement (outcomes `Y`), and `T_b(w, y)` any test. If Bob's criterion
holds, `|PE − ½| ≤ ε` for every guess between `ρ_0 = Σ_w p_0(w)|ψ_w⟩⟨ψ_w|` and
`ρ_1 = Σ_w p_1(w)|ψ_w⟩⟨ψ_w|`, then Alice can prepare **one** unit vector `φ` of `ℂ^W ⊗ photons`
whose reduced state on the photons is `ρ_0`, and there are measurements `N_0, N_1` on her register
alone such that opening `0` with `N_0` is accepted with exactly the honest probability, and
opening `1` with `N_1` is accepted with probability at least the honest one minus `4√ε`.

**Formalization Note.** Alice's system is the register `ℂ^W` (first tensor factor), and her
announced `w` is the outcome of `N_b`; acceptance probabilities are `honestAccept` and
`cheatAccept`. Bob's measurement and the test are arbitrary; nothing about BCJL is assumed. -/
theorem attack_of_concealing {W Y ι : Type} [Fintype W] [DecidableEq W] [Fintype Y]
    [Fintype ι] [DecidableEq ι] (p : ZMod 2 → W → ℝ) (hp : ∀ b, FuchsVdGraaf.IsProbDist (p b))
    (ψ : W → EuclideanSpace ℂ ι) (hψ : ∀ w, IsState (ψ w)) (E : Y → Matrix ι ι ℂ)
    (hE : IsPOVM E) (T : ZMod 2 → W → Y → Prop) (ε : ℝ)
    (hBob : IsConcealing ε (mixtureDensity (p 0) ψ) (mixtureDensity (p 1) ψ)) :
    ∃ φ : EuclideanSpace ℂ (W × ι), IsState φ ∧
      traceLeft (pureDensity φ) = mixtureDensity (p 0) ψ ∧
      ∃ N0 N1 : W → Matrix W W ℂ, IsPOVM N0 ∧ IsPOVM N1 ∧
        cheatAccept φ N0 E T 0 = honestAccept p ψ E T 0 ∧
        honestAccept p ψ E T 1 - 4 * Real.sqrt ε ≤ cheatAccept φ N1 E T 1 := by sorry

end MayersBC
Source
Mayers, The Trouble with Quantum Bit Commitment, arXiv:quant-ph/9603015v3, section b, pp.5–6, and section d, pp.7–9
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