Documentation

CslibFrontier.Computability.PCP.Approximation.FGLSS

The FGLSS graph of a PCP verifier #

Goldreich Exercise 9.18 (after Feige, Goldwasser, Lovász, Safra and Szegedy) maps an instance x of a problem in PCP(r, q) to the graph G_x whose vertices are the accepting views (ω, α) of the verifier on x, a random string ω and answers α to the queries made with ω, and whose edges join mutually inconsistent views: views that give different answers at the same position of the proof. Independent sets are sets of pairwise consistent views, which come from a single proof, so the maximum independent set of G_x has size 2 ^ r · max_π Pr[V^π(x) = 1].

This module states the graph for the nonadaptive verifiers Cslib.Complexity.PCPVerifier (the queries depend only on the instance and the random string) and proves items 2–4 of the exercise and its general identity:

Here r is the number V.coins x of random bits the verifier uses on x.

The companion module FGLSSRuntime gives the native construction and runtime certificate for item 1 in the nonadaptive model, and IndependentSet combines them with independent verifier repetition and NP = PCP(log n, 1) to prove every-constant NP-hardness of GapIndependentSet and GapClique.

A view whose queries repeat a position with different answers is inconsistent with itself. The exercise states the conflict condition without discussing repeated queries; read literally, the rule joins such a view to itself, so it lies in no independent set. Simple graphs have no loops, so this interpretation of the rule is implemented by leaving such views out of the vertex set (Cslib.Complexity.PCPVerifier.IsFGLSSVertex), which leaves the independent sets unchanged.

Main definitions #

References #

structure Cslib.Complexity.PCPVerifier.View {α : Type} (V : PCPVerifier α) (a : α) :

A view of the verifier V on the instance a: a random string of V.coins a bits and answers to the queries made with it.

Instances For
    def Cslib.Complexity.PCPVerifier.View.Consistent {α : Type} {V : PCPVerifier α} {a : α} (v w : V.View a) :

    Two views are consistent when they give the same answer whenever they query the same position.

    Consistent views agree at every position they both query.

    theorem Cslib.Complexity.PCPVerifier.View.Consistent.symm {α : Type} {V : PCPVerifier α} {a : α} {v w : V.View a} (h : v.Consistent w) :
    structure Cslib.Complexity.PCPVerifier.IsFGLSSVertex {α : Type} (V : PCPVerifier α) (a : α) (v : V.View a) :

    The vertices of the FGLSS graph: the views on which V accepts and which are consistent with themselves.

    The FGLSS graph Goldreich, Exercise 9.18 of the verifier V on the instance a: the accepting self-consistent views, two of them adjacent when they are inconsistent. A vertex is consistent with itself, so the graph has no loops.

    theorem Cslib.Complexity.PCPVerifier.fglssGraph_adj {α : Type} (V : PCPVerifier α) (a : α) (u v : { w : V.View a // V.IsFGLSSVertex a w }) :
    (V.fglssGraph a).Adj u v ↔ ¬(↑u).Consistent ↑v

    Adjacency in the FGLSS graph is inconsistency of the underlying views.

    theorem Cslib.Complexity.PCPVerifier.acceptCount_le_indepNum_fglssGraph {α : Type} {V : PCPVerifier α} {a : α} (π : List Bool) :
    acceptCount (fun (x : α × List Bool) => V.accepts x.1 π x.2) a (V.coins a) ≤ (V.fglssGraph a).indepNum

    Every proof gives an independent set. The views read from a proof π on the random strings it makes V accept form an independent set of the FGLSS graph, so the number of these random strings is at most its independence number.

    theorem Cslib.Complexity.PCPVerifier.exists_acceptCount_eq_indepNum_fglssGraph {α : Type} (V : PCPVerifier α) (a : α) :
    ∃ (π : List Bool), acceptCount (fun (x : α × List Bool) => V.accepts x.1 π x.2) a (V.coins a) = (V.fglssGraph a).indepNum

    The FGLSS identity Goldreich, Exercise 9.18: the independence number of the FGLSS graph is the largest number of random strings on which V accepts with a single proof, 2 ^ r · max_π Pr[V^π(x) = 1]. Together with Cslib.Complexity.PCPVerifier.acceptCount_le_indepNum_fglssGraph, the maximum is attained.

    Item 2 of Exercise 9.18: the independence number of the FGLSS graph is at most 2 ^ r.

    theorem Cslib.Complexity.IsPCPVerifier.indepNum_fglssGraph_eq_of_mem {α : Type} {enc : α ↪ List Bool} {r q : ℕ → ℕ} {V : PCPVerifier α} {A : Set α} {a : α} (hV : IsPCPVerifier enc r q V A) (ha : a ∈ A) :

    Item 3 of Exercise 9.18: on a member, the FGLSS graph has an independent set of size 2 ^ r, so its independence number is 2 ^ r.

    theorem Cslib.Complexity.IsPCPVerifier.two_mul_indepNum_fglssGraph_le_of_not_mem {α : Type} {enc : α ↪ List Bool} {r q : ℕ → ℕ} {V : PCPVerifier α} {A : Set α} {a : α} (hV : IsPCPVerifier enc r q V A) (ha : a ∉ A) :
    2 * (V.fglssGraph a).indepNum ≤ 2 ^ V.coins a

    Item 4 of Exercise 9.18: on a non-member, the independence number of the FGLSS graph is at most 2 ^ (r - 1), stated as 2 · α(G_x) ≤ 2 ^ r.