Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Parallel-XOR distillability depends only on correlators

Open
QAlgorithms.Papers.Independent.Intakethird100.P48.parity_correlations

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

prove2quantum

Let PPP and QQQ be valid binary non-signaling behaviors, and let n≥0n\ge0n≥0 be an integer. Define Xxy(P)=P(00∣xy)+P(11∣xy)−P(01∣xy)−P(10∣xy)X_{xy}(P)=P(00\mid xy)+P(11\mid xy)-P(01\mid xy)-P(10\mid xy)Xxy​(P)=P(00∣xy)+P(11∣xy)−P(01∣xy)−P(10∣xy). Let NDP⁡n(P)\operatorname{NDP}_n(P)NDPn​(P) be the separate local XORs of nnn independent copies receiving the same input pair, and write NL⁡\operatorname{NL}NL for the maximum absolute CHSH expression. Each output correlator satisfies

Xxy(NDP⁡n(P))=Xxy(P)n.X_{xy}(\operatorname{NDP}_n(P))=X_{xy}(P)^n.Xxy​(NDPn​(P))=Xxy​(P)n.

If Xxy(P)=Xxy(Q)X_{xy}(P)=X_{xy}(Q)Xxy​(P)=Xxy​(Q) for every input pair, then their original non-localities agree, their output non-localities agree, and

NDP⁡n strictly distills P⟺NDP⁡n strictly distills Q.\operatorname{NDP}_n\text{ strictly distills }P \quad\Longleftrightarrow\quad \operatorname{NDP}_n\text{ strictly distills }Q.NDPn​ strictly distills P⟺NDPn​ strictly distills Q.

Strict distillation requires valid non-signaling input/output behaviors and NL⁡(output)>NL⁡(input)>2\operatorname{NL}(\text{output})>\operatorname{NL}(\text{input})>2NL(output)>NL(input)>2. At n=0n=0n=0 both outputs are the deterministic pair 000000 and the correlator identity uses the empty-product value 111. This statement concerns only the presented parallel-XOR protocol, not arbitrary adaptive wirings.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P48
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P48

open scoped BigOperators TensorProduct

noncomputable section

/-- PDF p.3, marginal-independence observation and proof-used parity identity:
all output correlators are input correlators raised to n. Consequently equal
correlators imply equal original/output NL and the same strict distillability.
Scope is the presented parallel-XOR protocol only. -/
theorem parity_correlations (P Q : Behavior) (n : ℕ)
    (hP : IsBinaryNS P) (hQ : IsBinaryNS Q) :
    (∀ x y, binaryCorrelator (parallelOutputLaw (parityProtocol n) P) x y =
      (binaryCorrelator P x y) ^ n) ∧
    ((∀ x y, binaryCorrelator P x y = binaryCorrelator Q x y) →
      nonlocality P = nonlocality Q ∧
      nonlocality (parallelOutputLaw (parityProtocol n) P) =
        nonlocality (parallelOutputLaw (parityProtocol n) Q) ∧
      (StrictlyDistills (parityProtocol n) P ↔ StrictlyDistills (parityProtocol n) Q)) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P48
Source
Distilling Non-Locality, arXiv:0809.3173v4, PDF p. 3, Unnumbered: parity distillability depends only on correlators
Read-back

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

For every pair of real Boolean-indexed arrays P,QP,QP,Q and every natural number nnn, assume that each array has nonnegative entries, total mass one at each input pair, first-output marginals independent of the second input, and second-output marginals independent of the first input. Identify Boolean values with 0,10,10,1, and for any such array SSS define

CS(x,y)=S(x,y,0,0)+S(x,y,1,1)−S(x,y,0,1)−S(x,y,1,0),(TnS)(x,y,a,b)=∑u,v∈{0,1}n⨁iui=a, ⨁ivi=b∏i=0n−1S(x,y,ui,vi),C_S(x,y)=S(x,y,0,0)+S(x,y,1,1)-S(x,y,0,1)-S(x,y,1,0), \qquad (T_nS)(x,y,a,b)= \sum_{\substack{u,v\in\{0,1\}^n\\ \bigoplus_i u_i=a,\ \bigoplus_i v_i=b}} \prod_{i=0}^{n-1}S(x,y,u_i,v_i),CS​(x,y)=S(x,y,0,0)+S(x,y,1,1)−S(x,y,0,1)−S(x,y,1,0),(Tn​S)(x,y,a,b)=u,v∈{0,1}n⨁i​ui​=a, ⨁i​vi​=b​∑​i=0∏n−1​S(x,y,ui​,vi​),

where ⨁\bigoplus⨁ is addition modulo two, and put L(S)=max⁡x,y∣CS(x,y)+CS(x,1−y)+CS(1−x,y)−CS(1−x,1−y)∣L(S)=\max_{x,y}|C_S(x,y)+C_S(x,1-y)+C_S(1-x,y)-C_S(1-x,1-y)|L(S)=maxx,y​∣CS​(x,y)+CS​(x,1−y)+CS​(1−x,y)−CS​(1−x,1−y)∣. Then CTnP(x,y)=CP(x,y)nC_{T_nP}(x,y)=C_P(x,y)^nCTn​P​(x,y)=CP​(x,y)n for every Boolean input pair x,yx,yx,y. Furthermore, if CP(x,y)=CQ(x,y)C_P(x,y)=C_Q(x,y)CP​(x,y)=CQ​(x,y) for every input pair, then L(P)=L(Q)L(P)=L(Q)L(P)=L(Q), L(TnP)=L(TnQ)L(T_nP)=L(T_nQ)L(Tn​P)=L(Tn​Q), and the following condition for PPP is equivalent to the same condition for QQQ: both SSS and TnST_nSTn​S have nonnegative entries, total mass one at each input pair, and the two marginal-independence properties above, and 2<L(S)<L(TnS)2<L(S)<L(T_nS)2<L(S)<L(Tn​S). The natural number nnn may be 000 or 111. At n=0n=0n=0, the empty product is one and both empty parities are zero, so T0ST_0ST0​S puts mass one on output (0,0)(0,0)(0,0) at every input pair; the power on the right is one even when CP(x,y)=0C_P(x,y)=0CP​(x,y)=0. At n=0n=0n=0 and n=1n=1n=1, the strict-distillation conditions are unsatisfiable.

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