Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Equal weights are forced for four signed biases

Proved
QAlgorithms.Papers.Independent.Intakethird100.P47.signed_bias_equal_weights

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

prove2quantum

Let 0<pA,pB<10<p_A,p_B<10<pA​,pB​<1 and 0<ϵ≤min⁡(pA,1−pA,pB,1−pB)0<\epsilon\le\min(p_A,1-p_A,p_B,1-p_B)0<ϵ≤min(pA​,1−pA​,pB​,1−pB​). For e=(eA,eB)∈{−1,+1}2e=(e_A,e_B)\in\{-1,+1\}^2e=(eA​,eB​)∈{−1,+1}2, let wew_ewe​ be the independent binary setting law with probabilities of input zero pA+eAϵp_A+e_A\epsilonpA​+eA​ϵ and pB+eBϵp_B+e_B\epsilonpB​+eB​ϵ. Let www be the product law with parameters pA,pBp_A,p_BpA​,pB​, and let te≥0t_e\ge0te​≥0 sum to one. Then

(∀A,B, ∑etewe(A,B)=w(A,B))⟺∀e, te=14.\bigl(\forall A,B,\ \sum_e t_e w_e(A,B)=w(A,B)\bigr) \quad\Longleftrightarrow\quad \forall e,\ t_e=\tfrac14.(∀A,B, e∑​te​we​(A,B)=w(A,B))⟺∀e, te​=41​.

This is uniqueness of the prior mixture producing the nominal input distribution. It does not give the bias-label distribution after acceptance.

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

open scoped ComplexConjugate

open scoped BigOperators

/-- III, PDF p.4: the four signed-bias mixture equals (5) exactly for equal weights.
The necessary exclusion epsilon=0 is explicit; endpoint component probabilities may be zero. -/
theorem signed_bias_equal_weights (pA pB epsilon : ℝ)
    (hA : 0 < pA ∧ pA < 1) (hB : 0 < pB ∧ pB < 1)
    (he : 0 < epsilon)
    (heA : epsilon ≤ pA ∧ epsilon ≤ 1 - pA)
    (heB : epsilon ≤ pB ∧ epsilon ≤ 1 - pB)
    (t : (Bool × Bool) → ℝ) (ht : ∀ e, 0 ≤ t e) (hsum : ∑ e, t e = 1) :
    ((∀ A B, (∑ e, t e * biasedInput pA pB epsilon e A B) = binarySettingLaw pA pB A B) ↔
      ∀ e, t e = 1 / 4) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P47
Source
Device-independent quantum key distribution based on measurement inputs, arXiv:1308.6447v3, PDF p. 4, III: equal weights of four signed biases
Read-back

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

For all real pA,pB,ϵp_A,p_B,\epsilonpA​,pB​,ϵ satisfying 0<pA<10<p_A<10<pA​<1, 0<pB<10<p_B<10<pB​<1, ϵ>0\epsilon>0ϵ>0, ϵ≤pA\epsilon\le p_Aϵ≤pA​, ϵ≤1−pA\epsilon\le1-p_Aϵ≤1−pA​, ϵ≤pB\epsilon\le p_Bϵ≤pB​, and ϵ≤1−pB\epsilon\le1-p_Bϵ≤1−pB​, and every function t:{0,1}2→Rt:\{0,1\}^2\to\mathbb Rt:{0,1}2→R satisfying t(e)≥0t(e)\ge0t(e)≥0 for every eee and ∑et(e)=1\sum_e t(e)=1∑e​t(e)=1, the following equivalence holds. Write 000 for false and 111 for true, define s(0)=−1s(0)=-1s(0)=−1, s(1)=1s(1)=1s(1)=1, and define b(r,0)=rb(r,0)=rb(r,0)=r, b(r,1)=1−rb(r,1)=1-rb(r,1)=1−r. Then

[∀A,B∈{0,1}, ∑e∈{0,1}2t(e) b(pA+s(e1)ϵ,A) b(pB+s(e2)ϵ,B)=b(pA,A)b(pB,B)]  ⟺  [∀e∈{0,1}2, t(e)=14].\left[ \forall A,B\in\{0,1\},\ \sum_{e\in\{0,1\}^2}t(e)\, b(p_A+s(e_1)\epsilon,A)\, b(p_B+s(e_2)\epsilon,B) =b(p_A,A)b(p_B,B) \right] \iff \left[\forall e\in\{0,1\}^2,\ t(e)=\frac14\right].​∀A,B∈{0,1}, e∈{0,1}2∑​t(e)b(pA​+s(e1​)ϵ,A)b(pB​+s(e2​)ϵ,B)=b(pA​,A)b(pB​,B)​⟺[∀e∈{0,1}2, t(e)=41​].

The non-strict upper bounds on ϵ\epsilonϵ permit shifted parameters to equal 000 or 111.

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