Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

One round from a fixed incorrect pair has error exactly two over d

Open
QAlgorithms.Papers.Independent.Intakethird100.P78.round_incorrect_pair_error

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

prove2quantum

Let d>2d>2d>2 and let fff be the target permutation at a fixed input pair. Fix starting labels (a^,b^)(\hat a,\hat b)(a^,b^) with f(a^)≠b^f(\hat a)\ne\hat bf(a^)=b^. Draw a fresh shared coin, independently of an exact copy of the corrected smaller resource from Lemma 1. With probability 1/d1/d1/d retain the starting pair; otherwise query the resource at the augmented local inputs and relabel its two outputs with ra^r_{\hat a}ra^​ and rb^r_{\hat b}rb^​.

If (A,B)(A,B)(A,B) is the resulting pair, then

Pr⁡[f(A)≠B∣a^,b^]=2d.\Pr[f(A)\ne B\mid\hat a,\hat b]=\frac{2}{d}.Pr[f(A)=B∣a^,b^]=d2​.

The equality describes the error of a single round conditioned on its fixed initial pair. It uses the disclosed correction to equation (7), whose independent moderation is pending.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P78
Formal statement
noncomputable section

open scoped BigOperators

namespace QAlgorithms.Papers.Independent.Intakethird100.P78

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.6, Lemma 2: conditional on a fixed incorrect initial pair, the
round's mismatch probability equals 2/d. This uses corrected (7), as
disclosed above; it does not assume the conclusion that Dprime is a permutation.
Independent source-correction moderation is pending. -/
theorem round_incorrect_pair_error
    {m : ℕ} (hm : 1 < m) (f : Equiv.Perm (Fin (m + 1)))
    (ahat bhat : Fin (m + 1)) (hbad : f ahat ≠ bhat) :
    (∑ a, ∑ b, if f a ≠ b then
      roundKernel (lt_trans Nat.zero_lt_one hm) f ahat bhat a b else 0) =
        2 / ((m + 1 : ℕ) : ℝ) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P78

end
Source
Bipartite Units of Non-Locality, arXiv:0808.0651v4, PDF p. 6, Lemma 2: one round from an incorrect pair has error probability 2/d
Read-back

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

Let m∈Nm\in\mathbb Nm∈N satisfy 1<m1<m1<m, let fff be a permutation of Im+1={0,…,m}I_{m+1}=\{0,\ldots,m\}Im+1​={0,…,m}, and let α,β∈Im+1\alpha,\beta\in I_{m+1}α,β∈Im+1​ satisfy f(α)≠βf(\alpha)\ne\betaf(α)=β. Put Im={0,…,m−1}I_m=\{0,\ldots,m-1\}Im​={0,…,m−1}, let ShS_hSh​ exchange hhh and mmm, and define Lh(u)=Sh(u)L_h(u)=S_h(u)Lh​(u)=Sh​(u) for u∈Imu\in I_mu∈Im​ and Dh(v)=Sh(v) mod mD_h(v)=S_h(v)\bmod mDh​(v)=Sh​(v)modm for v∈Im+1v\in I_{m+1}v∈Im+1​. Define r(u)=Dβ(f(α))r(u)=D_\beta(f(\alpha))r(u)=Dβ​(f(α)) if f(Lα(u))=βf(L_\alpha(u))=\betaf(Lα​(u))=β, and r(u)=Dβ(f(Lα(u)))r(u)=D_\beta(f(L_\alpha(u)))r(u)=Dβ​(f(Lα​(u))) otherwise. For a,b∈Im+1a,b\in I_{m+1}a,b∈Im+1​, define the real-valued array

W(a,b)=1{a=α, b=β}m+1+mm+1∑u∈Im∑v∈Im1{Lα(u)=a, Lβ(v)=b, r(u)=v}m,W(a,b)= \frac{\mathbf 1_{\{a=\alpha,\ b=\beta\}}}{m+1} +\frac{m}{m+1} \sum_{u\in I_m}\sum_{v\in I_m} \frac{\mathbf 1_{\{L_\alpha(u)=a,\ L_\beta(v)=b,\ r(u)=v\}}}{m},W(a,b)=m+11{a=α, b=β}​​+m+1m​u∈Im​∑​v∈Im​∑​m1{Lα​(u)=a, Lβ​(v)=b, r(u)=v}​​,

where an indicator is one when its condition holds and zero otherwise. Then the sum of W(a,b)W(a,b)W(a,b) over all pairs a,b∈Im+1a,b\in I_{m+1}a,b∈Im+1​ satisfying f(a)≠bf(a)\ne bf(a)=b is exactly

∑a,b∈Im+1f(a)≠bW(a,b)=2m+1.\sum_{\substack{a,b\in I_{m+1}\\f(a)\ne b}}W(a,b)=\frac{2}{m+1}.a,b∈Im+1​f(a)=b​∑​W(a,b)=m+12​.
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