Lemma 2 — almost all satisfy (6) (corrected: ; from transposed tables)
ProvedNoSignalPA.lemma_2cryptographynonlocalityp2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1privacy-amplificationquantum-information
Assume . For and let and . If is chosen uniformly at random, then the probability that the entrywise inequality
fails for some is less than
Here has all entries equal to one, is the entrywise absolute value and the entrywise order. Lemma 2 is the random-hashing half of the proof of the main result; the other half derives security from (6).
Differences from the source:
- correction: Lemma 2 for all Nr, Ns → hypothesis Ns + √Nr ≤ Nr + 2; reason: for Nr = 144, Ns = 160 (6) fails for every h at the entry a = b = x = y = 0 and any k in the image of h (left side ≥ 2^{−272}(1 − 2^{−16}), right side 2^{−274}), while the claimed failure probability 2exp(720 − 1024) is below 1; the added hypothesis is the constraint the proof needs
- correction: |Γ_a⟩ built from the tables |γ₀⟩, |γ₁⟩ printed in Lemma 1 (p. 2) → |Γ_a⟩ built from their transposes (gammaCoef); reason: the printed tables are transposed relative to layout (3): for Nr = 1 and the nonsignaling box a = 1 ⊕ x, b = 0, P_{a=0|x=0} = 0 but the printed ⟨γ₀|P⟩ = 1; with the transposes Lemma 1 holds; this statement is unchanged by the transposition, because a ⊕ b ⊕ x·y is symmetric under (a, x) ↔ (b, y)
- encoding: 'almost all functions h satisfy (6)' → OAI.ThorpCompatibility.uniformProbability (fun h => ¬ SatisfiesEq6 h) < 2 exp(5Nr − 2^{√Nr}/4); reason: the definition of 'almost all' on p.2
Preamble
import Mathlib import Definitions.Def_NoSignalPA_SatisfiesEq6 import Definitions.Def_OAI_Probability_ThorpCompatibility_PermutationProbability
Formal statement
namespace NoSignalPA
/-- **Lemma 2 (corrected: `Ns + √Nr ≤ Nr + 2`): almost all `h` satisfy (6).**
Ll. Masanes, *Universally-composable privacy amplification from causality constraints*,
arXiv:0807.2158v4, Lemma 2, eq. (6), p. 2 (PDF p. 2), proved in the Appendix, eq. (15), p. 5, with the definition
of "almost all" on p. 2: "Almost all functions h satisfy `|2^{Ns} |Γ_{A_k}⟩ − 4^{−Nr} |1s⟩| ⪯
√2^{Ns+√Nr} |CHSH⟩^{⊗Nr}`, (6) for all k"; "the probability that h does not have that particular
property is lower than `2 exp(5Nr − 2^{√Nr}/4)`".
Assume `Ns + √Nr ≤ Nr + 2`. For a uniformly random `h : {0,1}^{Nr} → {0,1}^{Ns}`, the probability
that (6) fails for some `k` and some entry is less than `2 exp(5Nr − 2^{√Nr}/4)`.
**Formalization Note.** (1) Correction: the hypothesis `Ns + √Nr ≤ Nr + 2` is added. Without it
the lemma is false: at `Nr = 144`, `Ns = 160` (6) fails at the entry `a = b = x = y = 0` for every
`h`, while the claimed failure probability `2 exp(720 − 1024)` is below 1. (2) `Γ_a` is the
corrected vector (transposed tables); the facts the proof uses hold for either table. -/
theorem lemma_2 {Nr Ns : ℕ} (hN : (Ns : ℝ) + Real.sqrt Nr ≤ Nr + 2) :
OAI.ThorpCompatibility.uniformProbability (fun h : Str Nr → Str Ns => ¬ SatisfiesEq6 h)
< 2 * Real.exp (5 * Nr - (2 : ℝ) ^ Real.sqrt Nr / 4) := by sorry
end NoSignalPA
Source
Masanes, Universally-composable privacy amplification from causality constraints, arXiv:0807.2158v4, Lemma 2, eq. (6), p.2; proof in the Appendix, eq. (15), p.5
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.