Documentation

CslibFrontier.Computability.PCP.ParallelRepetition.Embedding

The first stage of Holenstein's embedding lemma #

The proof of Holenstein's Lemma 6.4 Holenstein, Lemma 6.4 embeds the questions of a game G in the n-fold repetition conditioned on the event W_C that strategies ha and hb win every coordinate in C, at a free coordinate j ∉ C. It has two stages. The first, built here, embeds the questions in ((X̃_j, Ỹ_j), (S̃, S̃)): Alice and Bob, from the questions (x, y) of G, produce one common value of the variable S = (T^{(\j)}, V) of Holenstein, (6.11), so that ((x, y), S) is close to the law of ((x_j, y_j), S) under W_C. The second stage, which adds the remaining questions through Lemma 5.4, is not part of this file.

Every law is an image of condLaw of CslibFrontier/Computability/PCP/ParallelRepetition/CoordinateModel.lean, and the chain starts from its bound (6.5), sum_dist_condLaw_le. Write E := √(#Cᶜ (#C ln (|A| |B|) + ln (1 / Pr[W_C])) / 2) for that bound.

Holenstein's constant is 15 = 3 · 3 + 2 · 3, from his Corollary 5.3 constant 3 ε₁ + 2 ε₂; the library's Corollary 5.3 has 7 ε₁ + 2 ε₂, hence 27. His ε_Tot of (6.6) is in bits and has no factor 1 / 2; here the logarithms are natural, with the 1 / 2 of Pinsker's inequality, hence 27 / √2 ≈ 19.09. The sharpened recursion of Lemma 7.1 (CslibFrontier/Computability/PCP/ParallelRepetition/Recursion.lean) accepts any constant up to 21.

Main results #

References #

theorem Cslib.PCP.ParallelRepetition.sum_dist_map_condLaw_pair_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype X] [Fintype Y] {G : TwoProverGame X Y A B} {n : ℕ} {C : Finset (Fin n)} {ha : (Fin n → X) → Fin n → A} {hb : (Fin n → Y) → Fin n → B} (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) :
∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (ω : Sample X Y C) => ω.2 ↑j) (condLaw G C ha hb hC)) G.questions ≤ √(↑Cᶜ.card * Real.log (1 / G.winProbOn ha hb C) / 2)

Holenstein's (6.14) Holenstein, proof of Lemma 6.4, (6.14): under W_C, the question pairs at the free coordinates are close to G.questions on average: ∑_{j ∉ C} ‖P_{X̃_j Ỹ_j} - P_{XY}‖ ≤ √(#Cᶜ ln (1 / Pr[W_C]) / 2). This is Raz's lemma for the n independent pairs, summed over the free coordinates by Cauchy–Schwarz. Holenstein states it for Bob's question Ỹ_j; the bound for the pair implies it.

theorem Cslib.PCP.ParallelRepetition.sum_dist_map_condLaw_shared_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype X] [Fintype Y] {G : TwoProverGame X Y A B} {n : ℕ} {C : Finset (Fin n)} {ha : (Fin n → X) → Fin n → A} {hb : (Fin n → Y) → Fin n → B} [Fintype A] [Fintype B] (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) (b : Bool) :
∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω)) (condLaw G C ha hb hC)) ((PMF.map (fun (ω : Sample X Y C) => (reveal b (ω.2 ↑j), shared ha hb j ω)) (condLaw G C ha hb hC)).bind fun (x : (X ⊕ Y) × Shared X Y A B C j) => match x with | (r, s) => PMF.map (fun (x : X × Y) => (x, s)) (pairGiven G r)) ≤ 2 * √(↑Cᶜ.card * (↑C.card * Real.log (↑(Fintype.card A) * ↑(Fintype.card B)) + Real.log (1 / G.winProbOn ha hb C)) / 2)

Holenstein's (6.7)–(6.12) Holenstein, proof of Lemma 6.4, (6.7)–(6.12): under W_C, drawing the pair at j given only S and the half R_j = reveal b (x_j, y_j) revealed by the bit b changes the law of ((x_j, y_j), S) little on average: ∑_{j ∉ C} ‖P_{X̃_j Ỹ_j S̃} - P_{R̃_j S̃} P_{X_j Y_j | R_j}‖ ≤ 2 E, with E the bound of (6.5). For b = false, R_j is Bob's question y_j and this is (6.12); b = true gives the symmetric statement for Alice's question.

theorem Cslib.PCP.ParallelRepetition.sum_dist_condLaw_withKernel_condY_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype X] [Fintype Y] {G : TwoProverGame X Y A B} {n : ℕ} {C : Finset (Fin n)} {ha : (Fin n → X) → Fin n → A} {hb : (Fin n → Y) → Fin n → B} [Fintype A] [Fintype B] (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) :
∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω)) (condLaw G C ha hb hC)) (Probability.CorrelatedSampling.withKernel G.questions fun (xy : X × Y) => Probability.CorrelatedSampling.condY (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω)) (condLaw G C ha hb hC)) xy.2) ≤ 3 * √(↑Cᶜ.card * (↑C.card * Real.log (↑(Fintype.card A) * ↑(Fintype.card B)) + Real.log (1 / G.winProbOn ha hb C)) / 2)

Holenstein's (6.15) Holenstein, proof of Lemma 6.4, (6.13)–(6.15): under W_C, the law of ((x_j, y_j), S) is close on average to drawing the pair from G.questions and then S given Bob's question: ∑_{j ∉ C} ‖P_{X̃_j Ỹ_j S̃} - P_{XY} P_{S̃ | Ỹ_j}‖ ≤ 3 E, with E the bound of (6.5). This is the second hypothesis of Corollary 5.3.

theorem Cslib.PCP.ParallelRepetition.sum_dist_condLaw_withKernel_condX_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype X] [Fintype Y] {G : TwoProverGame X Y A B} {n : ℕ} {C : Finset (Fin n)} {ha : (Fin n → X) → Fin n → A} {hb : (Fin n → Y) → Fin n → B} [Fintype A] [Fintype B] (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) :
∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω)) (condLaw G C ha hb hC)) (Probability.CorrelatedSampling.withKernel G.questions fun (xy : X × Y) => Probability.CorrelatedSampling.condX (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω)) (condLaw G C ha hb hC)) xy.1) ≤ 3 * √(↑Cᶜ.card * (↑C.card * Real.log (↑(Fintype.card A) * ↑(Fintype.card B)) + Real.log (1 / G.winProbOn ha hb C)) / 2)

Holenstein's (6.16) Holenstein, proof of Lemma 6.4, (6.16): the mirror image of (6.15), with S drawn given Alice's question: ∑_{j ∉ C} ‖P_{X̃_j Ỹ_j S̃} - P_{XY} P_{S̃ | X̃_j}‖ ≤ 3 E, with E the bound of (6.5). This is the first hypothesis of Corollary 5.3.

theorem Cslib.PCP.ParallelRepetition.exists_isEmbeddable_condLaw_shared {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype X] [Fintype Y] {G : TwoProverGame X Y A B} {n : ℕ} {C : Finset (Fin n)} {ha : (Fin n → X) → Fin n → A} {hb : (Fin n → Y) → Fin n → B} [Fintype A] [Fintype B] (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) :
∃ (ε : { i : Fin n // i ∉ C } → ℝ), (∀ (j : { i : Fin n // i ∉ C }), Probability.CorrelatedSampling.IsEmbeddable G.questions (PMF.map (fun (ω : Sample X Y C) => (ω.2 ↑j, shared ha hb j ω, shared ha hb j ω)) (condLaw G C ha hb hC)) (ε j)) ∧ ∑ j : { i : Fin n // i ∉ C }, ε j ≤ 27 / √2 * √(↑Cᶜ.card * (↑C.card * Real.log (↑(Fintype.card A) * ↑(Fintype.card B)) + Real.log (1 / G.winProbOn ha hb C)))

The first stage of Holenstein's Lemma 6.4 Holenstein, proof of Lemma 6.4, p. 157, from (6.15) and (6.16) by Corollary 5.3. At each free coordinate j, the questions of G embed in the law of ((x_j, y_j), (S, S)) under W_C, where S = (T^{(\j)}, V) is shared: from their questions, Alice and Bob produce the same value of S with error ε_j. The errors satisfy ∑_{j ∉ C} ε_j ≤ 27 / √2 · √(#Cᶜ (#C ln (|A| |B|) + ln (1 / Pr[W_C]))).

Holenstein's bound is 15 √k √((n - k) log (|A| |B|) + log (1 / Pr[W])) in bits, with k = #Cᶜ and n - k = #C. Here the constant is 27 = 7 · 3 + 2 · 3 from the library's Corollary 5.3, and the logarithms are natural, with the factor 1 / √2 of Pinsker's inequality.