Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Scalar monotonicity at fixed Hardy statistics

Open
QAlgorithms.Papers.Independent.Intakethird100.P47.hardy_ratio_reduction

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

prove2quantum

Let p(a,b∣A,B)p(a,b\mid A,B)p(a,b∣A,B) be a nonnegative binary conditional distribution normalized for each pair of settings, and let w(A,B)w(A,B)w(A,B) be a nonnegative normalized input law. The joint law is w(A,B)p(a,b∣A,B)w(A,B)p(a,b\mid A,B)w(A,B)p(a,b∣A,B). Set S={a=b=0}S=\{a=b=0\}S={a=b=0}, s=∑A,Bw(A,B)p(00∣A,B)s=\sum_{A,B}w(A,B)p(00\mid A,B)s=∑A,B​w(A,B)p(00∣A,B), and, when s>0s>0s>0, let J(A,B)=w(A,B)p(00∣A,B)/sJ(A,B)=w(A,B)p(00\mid A,B)/sJ(A,B)=w(A,B)p(00∣A,B)/s be the accepted setting law.

Assume www has full support, h=H(p)h=H(p)h=H(p) where H(p)=(p(00∣00),−p(00∣10),−p(00∣01),−p(11∣11))H(p)=(p(00\mid00),-p(00\mid10),-p(00\mid01),-p(11\mid11))H(p)=(p(00∣00),−p(00∣10),−p(00∣01),−p(11∣11)), h1>0h_1>0h1​>0, and σ=∑Bw(0,B)p(00∣0,B)>0\sigma=\sum_Bw(0,B)p(00\mid0,B)>0σ=∑B​w(0,B)p(00∣0,B)>0. Then

σ=h1w(00)−h3w(01).\sigma=h_1w(00)-h_3w(01).σ=h1​w(00)−h3​w(01).

Every other normalized nonnegative behavior p′p'p′ with H(p′)=hH(p')=hH(p′)=h has the same σ\sigmaσ and positive acceptance. Write ν=∑Bw(1,B)p(00∣1,B)\nu=\sum_Bw(1,B)p(00\mid1,B)ν=∑B​w(1,B)p(00∣1,B) and similarly ν′\nu'ν′ for p′p'p′. Then

Pr⁡p[A=0∣S]≤Pr⁡p′[A=0∣S]  ⟺  ν′≤ν,\Pr_p[A=0\mid S]\le\Pr_{p'}[A=0\mid S]\iff \nu'\le\nu,pPr​[A=0∣S]≤p′Pr​[A=0∣S]⟺ν′≤ν, Pr⁡p[A=1∣S]≤Pr⁡p′[A=1∣S]  ⟺  ν≤ν′.\Pr_p[A=1\mid S]\le\Pr_{p'}[A=1\mid S]\iff \nu\le\nu'.pPr​[A=1∣S]≤p′Pr​[A=1∣S]⟺ν≤ν′.

Thus a feasible minimum of ν\nuν maximizes the first ratio and a feasible maximum maximizes the second. No existence or numerical certification of such endpoints is asserted.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P47
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P47

open scoped ComplexConjugate

open scoped BigOperators

/-- V, PDF p.7, using (12),(14)–(15) on pp.5–6: fixed Hardy data fix sigma.
The conditional zero ratio decreases with nu and the one ratio increases with nu.
Endpoints maximize the respective ratios when feasible endpoints exist; none are assumed attained. -/
theorem hardy_ratio_reduction (p : Behavior) (w : PairLaw)
    (hp : IsBehavior p) (hw : IsPairLaw w) (hwpos : ∀ A B, 0 < w A B)
    (hh1 : 0 < hardyStatistics p 0)
    (hsigma : 0 < aliceMass p w false) :
    aliceMass p w false = hardyStatistics p 0 * w false false -
      hardyStatistics p 2 * w false true ∧
    ∀ p2 : Behavior, IsBehavior p2 → hardyStatistics p2 = hardyStatistics p →
      aliceMass p2 w false = aliceMass p w false ∧
      0 < siftingProbability p2 w ∧
      (aliceMarginal (acceptedLaw p w) false ≤ aliceMarginal (acceptedLaw p2 w) false ↔
        aliceMass p2 w true ≤ aliceMass p w true) ∧
      (aliceMarginal (acceptedLaw p w) true ≤ aliceMarginal (acceptedLaw p2 w) true ↔
        aliceMass p w true ≤ aliceMass p2 w true) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P47
Source
Device-independent quantum key distribution based on measurement inputs, arXiv:1308.6447v3, PDF p. 7, V: scalar reduction for Hardy conditional ratios
Read-back

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

Identify the Boolean values false and true with 000 and 111. Let pABabp_{AB}^{ab}pABab​ be real numbers, nonnegative for all A,B,a,b∈{0,1}A,B,a,b\in\{0,1\}A,B,a,b∈{0,1}, with ∑a,bpABab=1\sum_{a,b}p_{AB}^{ab}=1∑a,b​pABab​=1 for every A,BA,BA,B. Let wAB>0w_{AB}>0wAB​>0 for every A,BA,BA,B, with ∑A,BwAB=1\sum_{A,B}w_{AB}=1∑A,B​wAB​=1. For any such behavior qqq, define its four statistics by s(q)=(q0000,−q1000,−q0100,−q1111)s(q)=(q_{00}^{00},-q_{10}^{00},-q_{01}^{00},-q_{11}^{11})s(q)=(q0000​,−q1000​,−q0100​,−q1111​), its masses by mA(q)=∑BwABqAB00m_A(q)=\sum_B w_{AB}q_{AB}^{00}mA​(q)=∑B​wAB​qAB00​, its total mass by S(q)=∑A,BwABqAB00S(q)=\sum_{A,B}w_{AB}q_{AB}^{00}S(q)=∑A,B​wAB​qAB00​, and its normalized first-coordinate marginals by aA(q)=∑BwABqAB00/S(q)a_A(q)=\sum_B w_{AB}q_{AB}^{00}/S(q)aA​(q)=∑B​wAB​qAB00​/S(q). Assume s0(p)>0s_0(p)>0s0​(p)>0 and m0(p)>0m_0(p)>0m0​(p)>0. Then m0(p)=s0(p)w00−s2(p)w01m_0(p)=s_0(p)w_{00}-s_2(p)w_{01}m0​(p)=s0​(p)w00​−s2​(p)w01​. Furthermore, for every nonnegative normalized behavior p2p_2p2​ with s(p2)=s(p)s(p_2)=s(p)s(p2​)=s(p), all of the following hold:

m0(p2)=m0(p),S(p2)>0,m_0(p_2)=m_0(p),\qquad S(p_2)>0,m0​(p2​)=m0​(p),S(p2​)>0, a0(p)≤a0(p2) ⟺ m1(p2)≤m1(p),a1(p)≤a1(p2) ⟺ m1(p)≤m1(p2).a_0(p)\le a_0(p_2)\ \Longleftrightarrow\ m_1(p_2)\le m_1(p), \qquad a_1(p)\le a_1(p_2)\ \Longleftrightarrow\ m_1(p)\le m_1(p_2).a0​(p)≤a0​(p2​) ⟺ m1​(p2​)≤m1​(p),a1​(p)≤a1​(p2​) ⟺ m1​(p)≤m1​(p2​).
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