Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The quantum two-parameter parity maximum is attained at one plus sqrt two

Open
QAlgorithms.Papers.Independent.Intakethird100.P48.quantum_maximum

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

prove2quantum

For 0≤ε,δ≤10\le\varepsilon,\delta\le10≤ε,δ≤1, let Pε,δP_{\varepsilon,\delta}Pε,δ​ put probability (1−r)/2(1-r)/2(1−r)/2 on each equal-output pair and r/2r/2r/2 on each unequal-output pair, where r=εr=\varepsilonr=ε at input 111111 and r=δr=\deltar=δ at the other inputs. Let NL⁡\operatorname{NL}NL be the maximum of the four absolute CHSH expressions, and let Pε,δ(n)P_{\varepsilon,\delta}^{(n)}Pε,δ(n)​ be the output of the parallel local-XOR protocol on nnn independent identical copies. Consider all actual distilled values

S={NL⁡(Pε,δ(n)):0≤ε,δ≤1, n>1, Pε,δ quantum,NL⁡(Pε,δ(n))>NL⁡(Pε,δ)>2}.S=\left\{\operatorname{NL}(P_{\varepsilon,\delta}^{(n)}): 0\le\varepsilon,\delta\le1,\ n>1,\ P_{\varepsilon,\delta}\text{ quantum}, \operatorname{NL}(P_{\varepsilon,\delta}^{(n)})>\operatorname{NL}(P_{\varepsilon,\delta})>2\right\}.S={NL(Pε,δ(n)​):0≤ε,δ≤1, n>1, Pε,δ​ quantum,NL(Pε,δ(n)​)>NL(Pε,δ​)>2}.

Then SSS has greatest element 1+21+\sqrt21+2​. It is attained by

nmax⁡=2,δmax⁡=1−cos⁡(π/8)2,εmax⁡=1−cos⁡(3π/8)2,n_{\max}=2,\qquad \delta_{\max}=\frac{1-\cos(\pi/8)}2,\qquad \varepsilon_{\max}=\frac{1-\cos(3\pi/8)}2,nmax​=2,δmax​=21−cos(π/8)​,εmax​=21−cos(3π/8)​,

where 0<δmax⁡<εmax⁡<1/20<\delta_{\max}<\varepsilon_{\max}<1/20<δmax​<εmax​<1/2, the resource is quantum, and strict distillation holds. These exact parameters correspond to the source's roundings 0.038060.038060.03806 and 0.308660.308660.30866. This is an attained maximum for this family and this protocol, not a bound on all quantum distillation protocols.

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.4, attained maximum: 1+sqrt(2) for this quantum two-parameter family
and NDP, with n=2 at the displayed optimizer. The CHSH maximum is used throughout
the full positivity square; 3(1-2delta)^n-(1-2epsilon)^n is not used outside its sector.
The cosine coordinates identify exactly the source's rounded parameter values.
Printed/changed/why: the source's signed scalar formula is sector-specific;
Definition 1's actual absolute maximum replaces it on the full positivity square
(epsilon=delta=1 has actual NL=2, whereas the printed signed expression is -2).
Independent moderation of this transcription choice remains pending. -/
theorem quantum_maximum :
    IsGreatest quantumDistilledValues (1 + Real.sqrt 2) ∧
    0 < optimalDelta ∧ optimalDelta < optimalEpsilon ∧ optimalEpsilon < 1 / 2 ∧
    IsQuantum (parameterBox optimalEpsilon optimalDelta) ∧
    StrictlyDistills (parityProtocol 2) (parameterBox optimalEpsilon optimalDelta) ∧
    nonlocality (parallelOutputLaw (parityProtocol 2) (parameterBox optimalEpsilon optimalDelta)) =
      1 + Real.sqrt 2 := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P48
Source
Distilling Non-Locality, arXiv:0809.3173v4, PDF p. 4, Unnumbered: attained maximum for the quantum two-parameter family
Read-back

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

Identify Boolean values with 0,10,10,1. For real parameters ϵ,δ\epsilon,\deltaϵ,δ, let Pϵ,δ(x,y,a,b)=(1−rxy)/2P_{\epsilon,\delta}(x,y,a,b)=(1-r_{xy})/2Pϵ,δ​(x,y,a,b)=(1−rxy​)/2 when a=ba=ba=b, and rxy/2r_{xy}/2rxy​/2 otherwise, where r11=ϵr_{11}=\epsilonr11​=ϵ and rxy=δr_{xy}=\deltarxy​=δ at the other input pairs. For any real Boolean-indexed array SSS, define

(TnS)(x,y,a,b)=∑u,v∈{0,1}n⨁iui=a, ⨁ivi=b∏i=0n−1S(x,y,ui,vi),CS(x,y)=S(x,y,0,0)+S(x,y,1,1)−S(x,y,0,1)−S(x,y,1,0),(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), \qquad C_S(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​),CS​(x,y)=S(x,y,0,0)+S(x,y,1,1)−S(x,y,0,1)−S(x,y,1,0),

where ⨁\bigoplus⨁ is addition modulo two, and define 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)∣. Say that SSS is quantum when there exist complete complex inner-product spaces A,BA,BA,B, a unit vector ψ∈A⊗CB^\psi\in\widehat{A\otimes_{\mathbb C}B}ψ∈A⊗C​B​, and positive continuous complex-linear operators Mx,a,Ny,bM_{x,a},N_{y,b}Mx,a​,Ny,b​, summing to the respective identity over each output index for every input, with S(x,y,a,b)=Re⁡⟨ψ,Mx,a⊗Ny,b^ψ⟩S(x,y,a,b)=\operatorname{Re}\langle\psi,\widehat{M_{x,a}\otimes N_{y,b}}\psi\rangleS(x,y,a,b)=Re⟨ψ,Mx,a​⊗Ny,b​​ψ⟩ for every Boolean quadruple; the hat denotes the induced map on the completion. Say that SSS satisfies the probability and marginal conditions when its entries are nonnegative, ∑a,bS(x,y,a,b)=1\sum_{a,b}S(x,y,a,b)=1∑a,b​S(x,y,a,b)=1 for every input pair, ∑bS(x,y,a,b)\sum_bS(x,y,a,b)∑b​S(x,y,a,b) is independent of yyy for each x,ax,ax,a, and ∑aS(x,y,a,b)\sum_aS(x,y,a,b)∑a​S(x,y,a,b) is independent of xxx for each y,by,by,b. The set of values L(TnPϵ,δ)L(T_nP_{\epsilon,\delta})L(Tn​Pϵ,δ​) obtained from ϵ,δ∈[0,1]\epsilon,\delta\in[0,1]ϵ,δ∈[0,1] and natural numbers n>1n>1n>1, subject to Pϵ,δP_{\epsilon,\delta}Pϵ,δ​ being quantum, both Pϵ,δP_{\epsilon,\delta}Pϵ,δ​ and TnPϵ,δT_nP_{\epsilon,\delta}Tn​Pϵ,δ​ satisfying those probability and marginal conditions, and 2<L(Pϵ,δ)<L(TnPϵ,δ)2<L(P_{\epsilon,\delta})<L(T_nP_{\epsilon,\delta})2<L(Pϵ,δ​)<L(Tn​Pϵ,δ​), has greatest element 1+21+\sqrt21+2​: this value belongs to the set and every element is at most it. In addition, the specific real numbers

δ∗=1−cos⁡(π/8)2,ϵ∗=1−cos⁡(3π/8)2\delta_*=\frac{1-\cos(\pi/8)}2, \qquad \epsilon_*=\frac{1-\cos(3\pi/8)}2δ∗​=21−cos(π/8)​,ϵ∗​=21−cos(3π/8)​

satisfy 0<δ∗<ϵ∗<1/20<\delta_*<\epsilon_*<1/20<δ∗​<ϵ∗​<1/2; the array Pϵ∗,δ∗P_{\epsilon_*,\delta_*}Pϵ∗​,δ∗​​ is quantum; both it and T2Pϵ∗,δ∗T_2P_{\epsilon_*,\delta_*}T2​Pϵ∗​,δ∗​​ satisfy the probability and marginal conditions; and

2<L(Pϵ∗,δ∗)<L(T2Pϵ∗,δ∗),L(T2Pϵ∗,δ∗)=1+2.2<L(P_{\epsilon_*,\delta_*})<L(T_2P_{\epsilon_*,\delta_*}), \qquad L(T_2P_{\epsilon_*,\delta_*})=1+\sqrt2.2<L(Pϵ∗​,δ∗​​)<L(T2​Pϵ∗​,δ∗​​),L(T2​Pϵ∗​,δ∗​​)=1+2​.
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