Documentation

CslibFrontier.Computability.PCP.ParallelRepetition.CoordinateModel

The coordinate model of Holenstein's embedding lemma #

Holenstein's proof of Lemma 6.4 Holenstein, Lemma 6.4 conditions the questions of the n-fold repetition of a game G on the event W_C that strategies ha and hb win every coordinate in a set C, and studies the free coordinates j ∉ C. Holenstein takes C = {k + 1, …, n}; here C is any Finset (Fin n), which removes the relabeling of coordinates in his proof of Lemma 6.5. The proof adds a uniform bit D_j for each free coordinate and reveals one half of the question pair there: Bob's question y_j when D_j = 0, Alice's question x_j otherwise. This file builds that model on one finite sample space and identifies its laws.

Main definitions #

Main results #

References #

One coordinate #

def Cslib.PCP.ParallelRepetition.reveal {X : Type u_1} {Y : Type u_2} (d : Bool) (q : X × Y) :
X ⊕ Y

The half of a question pair (x, y) revealed by the bit d: Alice's question inl x when d is true, Bob's question inr y when d is false.

@[simp]
theorem Cslib.PCP.ParallelRepetition.reveal_true {X : Type u_1} {Y : Type u_2} (q : X × Y) :
@[simp]
theorem Cslib.PCP.ParallelRepetition.reveal_false {X : Type u_1} {Y : Type u_2} (q : X × Y) :
@[simp]
theorem Cslib.PCP.ParallelRepetition.isLeft_reveal {X : Type u_1} {Y : Type u_2} (d : Bool) (q : X × Y) :
(reveal d q).isLeft = d

The tag of the revealed half is the bit.

noncomputable def Cslib.PCP.ParallelRepetition.revealLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
PMF (X ⊕ Y)

The law of the revealed half of a question pair of G, for a uniform bit.

noncomputable def Cslib.PCP.ParallelRepetition.pairGiven {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
X ⊕ Y → PMF (X × Y)

The law of the question pair of G given its revealed half: given Alice's question x, Bob's question is drawn from P_{Y | X = x}; given Bob's question y, Alice's is drawn from P_{X | Y = y}.

theorem Cslib.PCP.ParallelRepetition.bind_pairGiven_inl {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
((PMF.map Prod.fst G.questions).bind fun (x : X) => pairGiven G (Sum.inl x)) = G.questions

Drawing Alice's question and then the pair given it is drawing the pair: P_X P_{Y | X} = P_{XY}.

theorem Cslib.PCP.ParallelRepetition.bind_pairGiven_inr {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
((PMF.map Prod.snd G.questions).bind fun (y : Y) => pairGiven G (Sum.inr y)) = G.questions

Drawing Bob's question and then the pair given it is drawing the pair: P_Y P_{X | Y} = P_{XY}.

theorem Cslib.PCP.ParallelRepetition.bind_reveal_pair {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
((Probability.PMF.uniformOfFintype Bool).bind fun (d : Bool) => PMF.map (fun (q : X × Y) => (reveal d q, q)) G.questions) = (revealLaw G).bind fun (r : X ⊕ Y) => PMF.map (fun (x : X × Y) => (r, x)) (pairGiven G r)

Drawing a uniform bit and a question pair, and revealing one half, is drawing the revealed half and then the pair given that half.

The sample space #

structure Cslib.PCP.ParallelRepetition.Revealed (X : Type u_5) (Y : Type u_6) {n : ℕ} (C : Finset (Fin n)) :
Type (max u_5 u_6)

The variable T of Holenstein, (6.3): the questions on the coordinates in C, and on each free coordinate i ∉ C the half of the question pair revealed by the bit D_i. The tag of the half records D_i (Revealed.bit).

  • questions : ↥C → X × Y

    The question pairs on the coordinates in C.

  • halves : { i : Fin n // i ∉ C } → X ⊕ Y

    On each free coordinate, Alice's question inl x (bit true) or Bob's inr y (bit false).

Instances For
    @[instance_reducible]
    instance Cslib.PCP.ParallelRepetition.instFintypeRevealed {X✝ : Type u_5} {Y✝ : Type u_6} {n✝ : ℕ} {C✝ : Finset (Fin n✝)} [Fintype X✝] [Fintype Y✝] :
    Fintype (Revealed X✝ Y✝ C✝)
    structure Cslib.PCP.ParallelRepetition.Shared (X : Type u_5) (Y : Type u_6) (A : Type u_7) (B : Type u_8) {n : ℕ} (C : Finset (Fin n)) (j : { i : Fin n // i ∉ C }) :
    Type (max (max (max u_5 u_6) u_7) u_8)

    The variable S = (T^{(\j)}, V) of Holenstein, (6.8) and (6.11) for a free coordinate j: the variable T without the revealed half at j, and the answers on C.

    • questions : ↥C → X × Y

      The question pairs on the coordinates in C.

    • halves : { i : { i : Fin n // i ∉ C } // i ≠ j } → X ⊕ Y

      The revealed halves on the free coordinates other than j.

    • answers : ↥C → A × B

      The answers on the coordinates in C.

    Instances For
      @[instance_reducible]
      instance Cslib.PCP.ParallelRepetition.instFintypeShared {X✝ : Type u_5} {Y✝ : Type u_6} {A✝ : Type u_7} {B✝ : Type u_8} {n✝ : ℕ} {C✝ : Finset (Fin n✝)} {j✝ : { i : Fin n✝ // i ∉ C✝ }} [Fintype X✝] [Fintype Y✝] [Fintype A✝] [Fintype B✝] :
      Fintype (Shared X✝ Y✝ A✝ B✝ C✝ j✝)
      @[reducible, inline]
      abbrev Cslib.PCP.ParallelRepetition.Sample (X : Type u_5) (Y : Type u_6) {n : ℕ} (C : Finset (Fin n)) :
      Type (max u_5 u_6)

      The sample space of the coordinate model: a bit D_i for each free coordinate i ∉ C, and a question pair for each of the n coordinates.

      def Cslib.PCP.ParallelRepetition.Revealed.bit {X : Type u_1} {Y : Type u_2} {n : ℕ} {C : Finset (Fin n)} (t : Revealed X Y C) (j : { i : Fin n // i ∉ C }) :

      The bit D_j recorded in the tag of the revealed half at a free coordinate j.

      def Cslib.PCP.ParallelRepetition.Revealed.combine {X : Type u_1} {Y : Type u_2} {n : ℕ} {C : Finset (Fin n)} (t : Revealed X Y C) (u : { i : Fin n // i ∉ C } → X × Y) :
      Fin n → X × Y

      The question pairs with those of t on C and u on the free coordinates.

      def Cslib.PCP.ParallelRepetition.Shared.ofRevealed {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} {C : Finset (Fin n)} (j : { i : Fin n // i ∉ C }) (t : Revealed X Y C) (v : ↥C → A × B) :
      Shared X Y A B C j

      Forget the revealed half at j, and add the answers.

      def Cslib.PCP.ParallelRepetition.revealed {X : Type u_1} {Y : Type u_2} {n : ℕ} (C : Finset (Fin n)) :
      Sample X Y C → Revealed X Y C

      The variable T of Holenstein, (6.3) on the sample space.

      def Cslib.PCP.ParallelRepetition.answers {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} (C : Finset (Fin n)) (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) (q : Fin n → X × Y) :
      ↥C → A × B

      The answers on C of the strategies ha and hb to a tuple of question pairs: the variable V of Holenstein, (6.4).

      def Cslib.PCP.ParallelRepetition.shared {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} {C : Finset (Fin n)} (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) (j : { i : Fin n // i ∉ C }) (ω : Sample X Y C) :
      Shared X Y A B C j

      The variable S = (T^{(\j)}, V) of Holenstein, (6.11) on the sample space.

      @[simp]
      theorem Cslib.PCP.ParallelRepetition.bit_revealed {X : Type u_1} {Y : Type u_2} {n : ℕ} {C : Finset (Fin n)} (ω : Sample X Y C) (j : { i : Fin n // i ∉ C }) :
      (revealed C ω).bit j = ω.1 j

      The bit of the revealed half is the bit of the sample.

      @[simp]
      theorem Cslib.PCP.ParallelRepetition.combine_revealed {X : Type u_1} {Y : Type u_2} {n : ℕ} {C : Finset (Fin n)} (ω : Sample X Y C) :
      ((revealed C ω).combine fun (i : { i : Fin n // i ∉ C }) => ω.2 ↑i) = ω.2

      Recombining the revealed questions with the free question pairs recovers the sample's question pairs.

      @[simp]
      theorem Cslib.PCP.ParallelRepetition.shared_update {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} {C : Finset (Fin n)} (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) (j : { i : Fin n // i ∉ C }) (d : { i : Fin n // i ∉ C } → Bool) (b : Bool) (q : Fin n → X × Y) :
      shared ha hb j (Function.update d j b, q) = shared ha hb j (d, q)

      The variable S ignores the bit at j.

      The event W_C #

      def Cslib.PCP.ParallelRepetition.winsOnPairs {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (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) :
      Set (Fin n → X × Y)

      The event W_C Holenstein, Definition 2.4 on tuples of question pairs: the strategies ha and hb win every coordinate in C.

      def Cslib.PCP.ParallelRepetition.winsOnSample {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (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) :
      Set (Sample X Y C)

      The event W_C on the sample space.

      theorem Cslib.PCP.ParallelRepetition.toOuterMeasure_pi_winsOnPairs {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (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) [Finite X] [Finite Y] :
      ((Probability.PMF.pi fun (x : Fin n) => G.questions).toOuterMeasure (winsOnPairs G C ha hb)).toReal = G.winProbOn ha hb C

      The event W_C has the same probability under independent question pairs as under the repetition.

      theorem Cslib.PCP.ParallelRepetition.exists_mem_winsOnPairs_support {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {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} [Finite X] [Finite Y] (hC : ∃ q ∈ G.winsOn ha hb C, q ∈ (G.pow n).questions.support) :
      ∃ q ∈ winsOnPairs G C ha hb, q ∈ (Probability.PMF.pi fun (x : Fin n) => G.questions).support

      A possible question of the repetition that wins C gives a possible tuple of question pairs that wins C.

      The laws of the model #

      noncomputable def Cslib.PCP.ParallelRepetition.sampleLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) :
      PMF (Sample X Y C)

      The law of the sample space: uniform bits, and independent question pairs drawn from G.questions.

      theorem Cslib.PCP.ParallelRepetition.sampleLaw_apply {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) (d : { i : Fin n // i ∉ C } → Bool) (q : Fin n → X × Y) :
      (sampleLaw G C) (d, q) = (2 ^ Cᶜ.card)⁻¹ * ∏ i : Fin n, G.questions (q i)

      A sample has the uniform mass of its bits times the masses of its question pairs.

      theorem Cslib.PCP.ParallelRepetition.map_sampleLaw_questions {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) :
      PMF.map (fun (ω : Sample X Y C) => (Prod.fst ∘ ω.2, Prod.snd ∘ ω.2)) (sampleLaw G C) = (G.pow n).questions

      The question tuples of the sample have the law of the questions of the repetition.

      theorem Cslib.PCP.ParallelRepetition.map_sampleLaw_revealed_pairs {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) :
      PMF.map (fun (ω : Sample X Y C) => (revealed C ω, fun (i : { i : Fin n // i ∉ C }) => ω.2 ↑i)) (sampleLaw G C) = (PMF.map (revealed C) (sampleLaw G C)).bind fun (t : Revealed X Y C) => PMF.map (fun (x : { i : Fin n // i ∉ C } → X × Y) => (t, x)) (Probability.PMF.pi fun (i : { i : Fin n // i ∉ C }) => pairGiven G (t.halves i))

      The revealed questions and the free question pairs Holenstein, proof of Lemma 6.4. Given the variable T, the question pairs on the free coordinates are independent, and the pair at i is drawn given its revealed half.

      noncomputable def Cslib.PCP.ParallelRepetition.sideKernel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) (t : Revealed X Y C) :
      PMF (({ i : Fin n // i ∉ C } → X × Y) × (↥C → A × B))

      The joint law of the free question pairs and the answers on C, given the variable T: the kernel J of Holenstein's Corollary 4.3 (sideJoint).

      theorem Cslib.PCP.ParallelRepetition.map_fst_sideKernel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) (t : Revealed X Y C) :
      PMF.map Prod.fst (sideKernel G C ha hb t) = Probability.PMF.pi fun (i : { i : Fin n // i ∉ C }) => pairGiven G (t.halves i)

      Given T, the free question pairs are independent: the hypothesis of Holenstein's Corollary 4.3.

      theorem Cslib.PCP.ParallelRepetition.map_sampleLaw_eq_sideJoint {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) :
      PMF.map (fun (ω : Sample X Y C) => ((revealed C ω, answers C ha hb ω.2), fun (i : { i : Fin n // i ∉ C }) => ω.2 ↑i)) (sampleLaw G C) = Probability.PMF.sideJoint (PMF.map (revealed C) (sampleLaw G C)) (sideKernel G C ha hb)

      The coordinate model is an instance of Holenstein's Corollary 4.3 Holenstein, proof of Lemma 6.4: the law of ((T, V), U), with U the free question pairs, is sideJoint of the law of T and sideKernel.

      Conditioning on winning C #

      theorem Cslib.PCP.ParallelRepetition.toOuterMeasure_sampleLaw_winsOnSample {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {n : ℕ} (C : Finset (Fin n)) (ha : (Fin n → X) → Fin n → A) (hb : (Fin n → Y) → Fin n → B) :
      ((sampleLaw G C).toOuterMeasure (winsOnSample G C ha hb)).toReal = G.winProbOn ha hb C

      The event W_C has the same probability on the sample space as under the repetition.

      theorem Cslib.PCP.ParallelRepetition.exists_mem_winsOnSample_support {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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) :
      ∃ ω ∈ winsOnSample G C ha hb, ω ∈ (sampleLaw G C).support

      A possible question of the repetition that wins C gives a possible sample that wins C.

      noncomputable def Cslib.PCP.ParallelRepetition.condLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype X] [Fintype Y] {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) :
      PMF (Sample X Y C)

      The law P_{Ω | W_C} of the sample space conditioned on winning every coordinate in C. Every law of Holenstein, proof of Lemma 6.4 is the image of this law under a variable of the model.

      theorem Cslib.PCP.ParallelRepetition.condLaw_eq_bind {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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) :
      condLaw G C ha hb hC = (Probability.PMF.uniformOfFintype ({ i : Fin n // i ∉ C } → Bool)).bind fun (d : { i : Fin n // i ∉ C } → Bool) => PMF.map (fun (x : Fin n → X × Y) => (d, x)) ((Probability.PMF.pi fun (x : Fin n) => G.questions).filter (winsOnPairs G C ha hb) ⋯)

      The bits are independent of the questions under W_C Holenstein, proof of Lemma 6.4: W_C is an event about the question pairs, so conditioning on it keeps the bits uniform and independent of the conditioned question pairs.

      theorem Cslib.PCP.ParallelRepetition.map_snd_condLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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) :
      PMF.map Prod.snd (condLaw G C ha hb hC) = (Probability.PMF.pi fun (x : Fin n) => G.questions).filter (winsOnPairs G C ha hb) ⋯

      Under W_C, the question pairs have the law of independent pairs conditioned on W_C.

      theorem Cslib.PCP.ParallelRepetition.map_condLaw_questions {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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) :
      PMF.map (fun (ω : Sample X Y C) => (Prod.fst ∘ ω.2, Prod.snd ∘ ω.2)) (condLaw G C ha hb hC) = (G.pow n).questions.filter (G.winsOn ha hb C) hC

      The recombined questions Holenstein, proof of Lemma 6.4: under W_C, the question tuples of the sample have the law of the questions of the repetition conditioned on W_C.

      theorem Cslib.PCP.ParallelRepetition.toOuterMeasure_condLaw_bit {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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 }) (b : Bool) :
      ((condLaw G C ha hb hC).toOuterMeasure {ω : Sample X Y C | ω.1 j = b}).toReal = 1 / 2

      The bit D_j is uniform under W_C Holenstein, proof of Lemma 6.4: the event D_j = b has probability 1 / 2, as Claim 6.1 requires in (6.7).

      theorem Cslib.PCP.ParallelRepetition.map_filter_condLaw_bit {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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 }) (b : Bool) {Z : Type u_5} (F : Sample X Y C → Z) (hF : ∀ (d : { i : Fin n // i ∉ C } → Bool) (c : Bool) (q : Fin n → X × Y), F (Function.update d j c, q) = F (d, q)) (h : ∃ ω ∈ {ω : Sample X Y C | ω.1 j = b}, ω ∈ (condLaw G C ha hb hC).support) :
      PMF.map F ((condLaw G C ha hb hC).filter {ω : Sample X Y C | ω.1 j = b} h) = PMF.map F (condLaw G C ha hb hC)

      Conditioning on the bit D_j Holenstein, proof of Lemma 6.4, (6.10): under W_C, conditioning on D_j = b does not change the law of a variable that ignores D_j.

      Holenstein's (6.5) #

      theorem Cslib.PCP.ParallelRepetition.sum_dist_condLaw_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {G : TwoProverGame X Y A B} [Fintype X] [Fintype Y] {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) => ((revealed C ω, answers C ha hb ω.2), ω.2 ↑j)) (condLaw G C ha hb hC)) ((PMF.map (fun (ω : Sample X Y C) => (revealed C ω, answers C ha hb ω.2)) (condLaw G C ha hb hC)).bind fun (s : Revealed X Y C × (↥C → A × B)) => PMF.map (fun (x : X × Y) => (s, x)) (pairGiven G (s.1.halves j))) ≤ √(↑Cᶜ.card * (↑C.card * Real.log (↑(Fintype.card A) * ↑(Fintype.card B)) + Real.log (1 / G.winProbOn ha hb C)) / 2)

      Holenstein's (6.5) Holenstein, proof of Lemma 6.4, (6.5)–(6.6): Corollary 4.3 (sum_dist_filter_sideJoint_le) applied to the coordinate model with the event W_C. Under W_C, drawing the question pair at each free coordinate j given only its revealed half, rather than from its law given (T, V), changes the law of ((T, V), (x_j, y_j)) little on average: ∑_{j ∉ C} ‖P_{T V U_j | W} - P_{T V | W} P_{U_j | T}‖ is at most √(#Cᶜ (#C ln (|A| |B|) + ln (1 / Pr[W_C])) / 2). Here U_j is the whole question pair at j, and the logarithms are in nats; Holenstein's ε_Tot of (6.6) is in bits and has no factor 1 / 2.