Documentation

CslibFrontier.Computability.PCP.Approximation.LabelCover.Repetition

Parallel repetition of Label Cover instances #

The k-fold parallel repetition of a Label Cover instance g with left labels β and right labels γ has left labels Fin k → β and right labels Fin k → γ. Its edges are the k-tuples of edges of g. The tuple e goes from the tuple of the left ends of its entries to the tuple of their right ends, numbered by iterated Nat.pair (tupleCode). It carries the projection that applies the projection of e i in each coordinate i. A labelling satisfies it when it satisfies all the coordinates at once. This is the repetition V^ℓ of a two-query projection verifier Arora and Barak, Definition 19.1; repetition keeps the projection property, as noted in Section 19.4 of the same draft.

A Label Cover instance with at least one edge is a two-prover game (LabelCoverRepetition.game): the verifier picks a uniformly random edge and asks its left end of the first prover and its right end of the second. When the instance has no parallel edges (Cslib.PCP.Encoded.Graph.NoParallelEdges), the edge is determined by its two ends, and the verifier accepts when the answers satisfy it. The value of the game is at most the value of the instance (value_game_le), and the value of its k-fold repetition is at least the value of the repeated instance (one_sub_unsatVal_pow_le_value_pow). Holenstein's parallel repetition theorem (Cslib.PCP.TwoProverGame.value_pow_le_of_value_le) then bounds the value of the repeated instance.

Scope. This is the parallel repetition theorem of Raz [Raz98] for Label Cover instances without parallel edges, in the explicit form of Holenstein [Hol09]. The constants are explicit but astronomically large: an instance of value at most 1 - ε repeats to value at most (1 - ε³ / 6000)^{k / log₂ (|β| |γ|)}. The absence of parallel edges is a limit of this proof route, which reads the instance as the game of a uniformly random edge: parallel edges with different projections need not give a game of the same value as the instance. Parallel edges with equal projections do.

Main definitions #

Main results #

References #

Tuples #

The number of a k-tuple of natural numbers, by iterated Nat.pair: the empty tuple is 0, and Fin.cons a t is Nat.pair a (tupleCode t). Since Nat.pair a b < (max a b + 1)², the number of a tuple of entries below n is below n ^ (2 ^ k) (tupleCode_lt_pow): polynomial in n for fixed k, of degree exponential in k.

The tuple with a given number, inverting tupleCode.

@[simp]

Decoding inverts the numbering of tuples.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.tupleCode_mono (k : ℕ) {s t : Fin k → ℕ} :
(∀ (i : Fin k), s i ≤ t i) → tupleCode k s ≤ tupleCode k t

The numbering of tuples is monotone in every coordinate.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.tupleCode_lt_pow (k : ℕ) {n : ℕ} {t : Fin k → ℕ} :
0 < n → (∀ (i : Fin k), t i < n) → tupleCode k t < n ^ 2 ^ k

The number of a k-tuple of entries below n is below n ^ (2 ^ k).

def Cslib.PCP.Encoded.LabelCoverRepetition.tuples {α : Type u_1} (k : ℕ) :
List α → List (Fin k → α)

The k-tuples of entries of a list, in lexicographic order.

@[simp]

A list of length m has m ^ k tuples of length k.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.countP_tuples {α : Type u_1} (l : List α) (k : ℕ) (p : (Fin k → α) → Bool) :
List.countP p (tuples k l) = {t : Fin k → Fin l.length | (p fun (i : Fin k) => l.get (t i)) = true}.card

Counting tuples by a predicate counts tuples of positions in the list.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.mem_tuples {α : Type u_1} {l : List α} {k : ℕ} {t : Fin k → α} :
t ∈ tuples k l ↔ ∀ (i : Fin k), t i ∈ l

The tuples of a list are exactly the tuples of its entries.

Repetition #

def Cslib.PCP.Encoded.LabelCoverRepetition.repEdge {β γ : Type} {k : ℕ} (e : Fin k → Edge (β → γ)) :
Edge ((Fin k → β) → Fin k → γ)

The edge of the k-fold repetition given by a k-tuple e of edges: it joins the tuples of their ends and applies the projection of e i in each coordinate i.

def Cslib.PCP.Encoded.LabelCoverRepetition.pow {β γ : Type} (k : ℕ) (g : Graph (β → γ)) :
Graph ((Fin k → β) → Fin k → γ)

The k-fold parallel repetition of a Label Cover instance: the left labels are the k-tuples of left labels, the right labels the k-tuples of right labels, and the edges the k-tuples of edges (repEdge). The vertex count bounds the numbers of tuples of declared vertices; with n declared vertices it is at most (n + 1) ^ (2 ^ k) (vertices_pow_le).

theorem Cslib.PCP.Encoded.LabelCoverRepetition.edges_pow {β γ : Type} (k : ℕ) (g : Graph (β → γ)) :

The edges of the repetition are the repetitions of the tuples of edges.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.vertices_pow_le {β γ : Type} (k : ℕ) (g : Graph (β → γ)) :
(pow k g).vertices ≤ (g.vertices + 1) ^ 2 ^ k

The k-fold repetition of an instance with n declared vertices declares at most (n + 1) ^ (2 ^ k) vertices: polynomial for fixed k, of degree exponential in k.

@[simp]
theorem Cslib.PCP.Encoded.LabelCoverRepetition.length_edges_pow {β γ : Type} (k : ℕ) (g : Graph (β → γ)) :

The repetition has the k-th power of the number of edges.

def Cslib.PCP.Encoded.LabelCoverRepetition.consEdge {β γ : Type} {k : ℕ} (d : Edge (β → γ)) (e : Edge ((Fin k → β) → Fin k → γ)) :
Edge ((Fin (k + 1) → β) → Fin (k + 1) → γ)

Prepend an edge to a repeated edge: the new first coordinate.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.repEdge_cons {β γ : Type} {k : ℕ} (d : Edge (β → γ)) (e : Fin k → Edge (β → γ)) :

Repeating a tuple with a first entry prepends that entry to the repetition of the rest.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.edges_pow_succ {β γ : Type} (k : ℕ) (g : Graph (β → γ)) :
(pow (k + 1) g).edges = List.flatMap (fun (d : Edge (β → γ)) => List.map (consEdge d) (pow k g).edges) g.edges

The edges of the (k + 1)-fold repetition, by prepending each edge to each edge of the k-fold repetition.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.wellFormed_pow {β γ : Type} (k : ℕ) {g : Graph (β → γ)} (hg : g.WellFormed) :

The repetition of a well-formed instance is well formed: the numbers of tuples of declared vertices are below its vertex count.

Repetition keeps satisfiability: the labels of the tuples of vertices are the tuples of the labels Arora and Barak, Remark 19.2.

The game of an instance #

theorem Cslib.PCP.Encoded.Graph.exists_endpoint_bound {C : Type} (g : Graph C) :
∃ (N : ℕ), ∀ d ∈ g.edges, d.src < N ∧ d.dst < N

Some bound exceeds all the endpoints of a graph, whether or not it is well formed.

noncomputable def Cslib.PCP.Encoded.LabelCoverRepetition.game {β γ : Type} (g : Graph (β → γ)) (hg : g.edges ≠ []) (N : ℕ) (hN : ∀ d ∈ g.edges, d.src < N ∧ d.dst < N) :
TwoProverGame (Fin N) (Fin N) β γ

The two-prover game of a Label Cover instance g with at least one edge, whose endpoints lie below N: the verifier picks a uniformly random edge and asks its left end of the first prover and its right end of the second. It accepts answers a and b when they satisfy every edge with these two ends; when g has no parallel edges, this is the chosen edge.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.value_game_le {β γ : Type} [DecidableEq γ] [Nonempty β] [Nonempty γ] (g : Graph (β → γ)) (hg : g.edges ≠ []) (N : ℕ) (hN : ∀ d ∈ g.edges, d.src < N ∧ d.dst < N) :

The game is no easier than the instance: its value is at most the largest proportion of the edges that a labelling satisfies.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.one_sub_unsatVal_pow_le_value_pow {β γ : Type} [DecidableEq γ] [Finite β] [Finite γ] [Nonempty β] [Nonempty γ] {g : Graph (β → γ)} (hpar : g.NoParallelEdges) (hg : g.edges ≠ []) (N : ℕ) (hN : ∀ d ∈ g.edges, d.src < N ∧ d.dst < N) (k : ℕ) :

Without parallel edges, the repeated game is no harder than the repeated instance. A labelling of the tuples of vertices gives strategies that answer each tuple of questions by the labels of its number; they win on every tuple of edges that the labelling satisfies.

theorem Cslib.PCP.Encoded.LabelCoverRepetition.one_sub_unsatVal_pow_le {β γ : Type} [DecidableEq γ] [Fintype β] [Fintype γ] {g : Graph (β → γ)} (hpar : g.NoParallelEdges) (hβγ : 2 ≤ Fintype.card β * Fintype.card γ) {ε : ℝ} (hε : ε ≤ (g.toGraph Complexity.projectionEval).unsatVal) (k : ℕ) :
1 - ((pow k g).toGraph Complexity.projectionEval).unsatVal ≤ (1 - ε ^ 3 / 6000) ^ (↑k / Real.logb 2 (↑(Fintype.card β) * ↑(Fintype.card γ)))

Parallel repetition for Label Cover without parallel edges [Raz98], with Holenstein's bound Holenstein, Theorem 2.5: if every labelling of an instance g without parallel edges violates at least the proportion ε of its edges, then every labelling of its k-fold repetition satisfies at most the proportion (1 - ε³ / 6000)^{k / log₂ (|β| |γ|)} of the edges. The constants are explicit but astronomically large. Instances with parallel edges are not covered by this proof route.