Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A.3: coupling bound is optimal

Open
QAlgorithms.Papers.Independent.Bridge50.P44.coupling_optimality

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let JJJ be any normalized discrete joint law with marginals PPP and QQQ on a common alphabet. Its agreement probability satisfies

Pr⁡J[Z=Z~]=∑zJ(z,z)≤1−D(P,Q).\Pr_J[Z=\widetilde Z]=\sum_zJ(z,z)\le1-D(P,Q).JPr​[Z=Z]=z∑​J(z,z)≤1−D(P,Q).

Together with maximal coupling, this says that the overlap mass is the greatest attainable agreement probability.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P44
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Bridge50.P44

open QAlgorithms

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33 (State traceSize)

open QAlgorithms.Papers.Independent.Dependency50.P24 (cqState)

open QAlgorithms.Papers.Independent.Frontier18.P08 (partialTraceFirst)

open QAlgorithms.Papers.Independent.Information100.P76 (maximallyMixed)

open QAlgorithms.Papers.Independent.Frontier18.P08 (conditionalEntropyNats)

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

/-- PDF p.40, immediately after Theorem A.6: no coupling can have greater
agreement probability than the overlap mass. -/
theorem coupling_optimality {Z : Type*} (p q : Z → ℝ) (j : Z × Z → ℝ)
    (hj : IsCoupling p q j) :
    (∑' z, j (z,z)) ≤ 1 - discreteTV p q := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P44

end
Source
Cryptographic security of quantum key distribution, arXiv:1409.3525v1, PDF p. 40, A.3: coupling bound is optimal
Read-back

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

Let ZZZ be any type, with no finiteness or countability assumption, let p,q:Z→Rp,q:Z\to\mathbb Rp,q:Z→R, and let j:Z×Z→Rj:Z\times Z\to\mathbb Rj:Z×Z→R. Assume that jjj is nonnegative, is summable over Z×ZZ\times ZZ×Z, has total sum 111, and has marginals ppp and qqq, meaning that ∑wj(z,w)=p(z)\sum_w j(z,w)=p(z)∑w​j(z,w)=p(z) for every zzz and ∑zj(z,w)=q(w)\sum_z j(z,w)=q(w)∑z​j(z,w)=q(w) for every www. Then

∑zj(z,z)≤1−12∑z∣p(z)−q(z)∣.\sum_z j(z,z)\le 1-\frac12\sum_z |p(z)-q(z)|.z∑​j(z,z)≤1−21​z∑​∣p(z)−q(z)∣.

All sums here are sums over the indicated entire types. If ZZZ is empty, the total-sum hypothesis on jjj cannot hold.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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