Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.Defs

Multiprover interactive proofs (MIP₂ and MIP) #

In a multiprover interactive proof system Ben-Or et al., Babai, Fortnow and Lund, Arora and Barak, Section 8.5, a probabilistic polynomial-time verifier exchanges messages with $k$ all-powerful provers that cannot communicate with one another during the protocol: when the verifier sends a message $m$ to prover $i$, only prover $i$ sees $m$ and updates its internal state, while every other prover $j \ne i$ keeps its state unchanged (Cslib.Complexity.Prover.independent, Cslib.Complexity.Prover.independent_state_eq_of_ne).

A verifier with prover index type ι is a program α → WordOracleComp ι Bool, realized with a strict polynomial clock against every stateful oracle (Cslib.Probability.IsOraclePPTOn). Each external call ProbOracleComp.query (i, message) addresses one named prover i : ι. The classes Cslib.Complexity.MIP₂ (two non-communicating provers, Fin 2) and Cslib.Complexity.MIP (finitely many non-communicating provers, Fin p for some p : ℕ) use completeness 2 / 3 and soundness 1 / 3 against all independent prover families P : ι → Prover Unit.

The number of provers is constant for each language: p is chosen once, before the input. The model uses classical provers with independent private randomness and permits coordinated deterministic strategies through the choice of the family. It does not model entangled provers.

Embedding a single-prover verifier on one selected channel preserves IsOraclePPTOn and acceptance probabilities against Prover.independent P, giving IP ⊆ MIP₂ ⊆ MIP.

Main definitions #

Main results #

References #

Non-communicating prover families #

@[reducible, inline]
noncomputable abbrev Cslib.Complexity.Prover.independent {ι : Type} [DecidableEq ι] (P : ι → Prover Unit) :

Combine a family of individual provers P : ι → Prover Unit into a non-communicating multiprover strategy Prover ι: each prover i keeps its own private state (P i).State, and a query (i, msg) updates only prover i's state while leaving every other prover's state unchanged.

@[simp]
theorem Cslib.Complexity.Prover.independent_init {ι : Type} [DecidableEq ι] (P : ι → Prover Unit) (i : ι) :
(independent P).init i = (P i).init
theorem Cslib.Complexity.Prover.independent_state_eq_of_ne {ι : Type} [DecidableEq ι] (P : ι → Prover Unit) (q : ι × List Bool) (s s' : (independent P).State) (reply : List Bool) {j : ι} (hne : j ≠ q.1) (hmem : (reply, s') ∈ (((independent P).respond q).run s).support) :
s' j = s j

Non-communication (state isolation): when prover q.1 responds to query q, the state of every other prover j ≠ q.1 is unchanged in every supported transition.

theorem Cslib.Complexity.Prover.run_singleOracle_independent {ι α : Type} [DecidableEq ι] (P : ι → Prover Unit) (i₀ : ι) (p : Probability.WordOracleComp Unit α) (s : (i : ι) → (P i).State) :
PMF.map (Prod.map id fun (s' : (independent P).State) => s' i₀) ((independent P).run (Probability.WordOracleComp.singleOracle i₀ p) s) = (P i₀).run p (s i₀)

Projecting the joint state of independent P onto coordinate i₀ commutes with running a program that only queries prover i₀.

A single-channel verifier routed to prover i₀ has the exact same acceptance probability against independent P as the original verifier against P i₀.

Multiprover interactive proofs and the classes MIP₂ and MIP #

structure Cslib.Complexity.IsMultiproverProof {ι α : Type} [DecidableEq ι] (verifier : α → Probability.WordOracleComp ι Bool) (A : Set α) (completeness soundness : ENNReal) :

verifier is a multiprover interactive proof for A with completeness c and soundness s over prover index type ι when on every member of A some independent prover family is accepted with probability at least c, and on every non-member no independent prover family is accepted with probability more than s Babai, Fortnow and Lund, Arora and Barak, Section 8.5.

  • complete (a : α) : a ∈ A → ∃ (P : ι → Prover Unit), completeness ≤ acceptProb (verifier a) (Prover.independent P)

    On every member of A, some family of non-communicating provers is accepted with probability at least completeness.

  • sound (a : α) : a ∉ A → ∀ (P : ι → Prover Unit), acceptProb (verifier a) (Prover.independent P) ≤ soundness

    On every non-member of A, every family of non-communicating provers is accepted with probability at most soundness.

theorem Cslib.Complexity.IsMultiproverProof.mono {ι α : Type} [DecidableEq ι] {verifier : α → Probability.WordOracleComp ι Bool} {A : Set α} {c c' s s' : ENNReal} (h : IsMultiproverProof verifier A c s) (hc : c' ≤ c) (hs : s ≤ s') :
IsMultiproverProof verifier A c' s'
theorem Cslib.Complexity.IsMultiproverProof.comp {ι α β : Type} [DecidableEq ι] {A : Set α} {B : Set β} {c s : ENNReal} {verifier : β → Probability.WordOracleComp ι Bool} (h : IsMultiproverProof verifier B c s) {f : α → β} (hf : ∀ (a : α), a ∈ A ↔ f a ∈ B) :
IsMultiproverProof (fun (a : α) => verifier (f a)) A c s

Pull a multiprover interactive proof back along a reduction.

theorem Cslib.Complexity.IsInteractiveProof.isMultiproverProof_singleOracle {ι α : Type} [DecidableEq ι] (i₀ : ι) {verifier : α → Probability.WordOracleComp Unit Bool} {A : Set α} {c s : ENNReal} (h : IsInteractiveProof verifier A c s) :
IsMultiproverProof (fun (a : α) => Probability.WordOracleComp.singleOracle i₀ (verifier a)) A c s

Embedding a single-prover interactive proof on channel i₀ : ι yields a multiprover interactive proof with the same completeness and soundness.

def Cslib.Complexity.MIP₂ {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

Two-prover interactive proofs (MIP₂), with respect to the encoding enc of instances: the problems with a two-prover interactive proof (Fin 2) whose verifier is strict oracle PPT (Cslib.Probability.IsOraclePPTOn), with completeness 2 / 3 and soundness 1 / 3 Babai, Fortnow and Lund.

def Cslib.Complexity.MIP {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

Multiprover interactive proofs (MIP), with respect to the encoding enc of instances: the problems with a constant number p of provers (Fin p, chosen once per language) whose verifier is strict oracle PPT, with completeness 2 / 3 and soundness 1 / 3 Ben-Or, Goldwasser, Kilian and Wigderson, Babai, Fortnow and Lund, Arora and Barak, Section 8.5.

Closure under reductions and basic inclusions #

theorem Cslib.Complexity.PolyTimeReducible.mem_MIP₂ {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hred : PolyTimeReducible encA encB A B) (hB : B ∈ MIP₂ encB) :
A ∈ MIP₂ encA

MIP₂ is closed under polynomial-time reductions.

theorem Cslib.Complexity.PolyTimeReducible.mem_MIP {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hred : PolyTimeReducible encA encB A B) (hB : B ∈ MIP encB) :
A ∈ MIP encA

MIP is closed under polynomial-time reductions.

theorem Cslib.Complexity.IP_subset_MIP₂ {α : Type} (enc : α ↪ List Bool) :
IP enc ⊆ MIP₂ enc

IP ⊆ MIP₂: a single-prover interactive proof uses the first of two provers (0 : Fin 2) and ignores the second.

theorem Cslib.Complexity.MIP₂_subset_MIP {α : Type} (enc : α ↪ List Bool) :
MIP₂ enc ⊆ MIP enc

MIP₂ ⊆ MIP: a two-prover interactive proof is a p-prover interactive proof with p = 2.