Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.Oracularization

Oracularization: PCPPoly ⊆ MIP₂ #

Step 1 of the combined proof of Theorems 2.3 and 2.4 in Babai, Fortnow and Lund, §2, pp. 5–6 converts a proof oracle into two independent provers. Those theorems credit Fortnow–Rompel–Sipser and Ben-Or–Goldwasser–Kilian–Wigderson. Here the strict uniform verifier has perfect completeness and soundness at most one half. Our adaptation selects a padded query index before the run, checks it online, and derives an explicit rejection probability for amplification. In one round (Cslib.Complexity.Oracularize.round) the verifier draws an index j, runs the proof verifier with every query answered by the first bit of prover 0's reply, and also sends the j-th query to prover 1, rejecting when the two first bits disagree (Cslib.Complexity.Oracularize.handler).

Fair coins sample a uniform index exactly only from a power of two, so the verifier reads j from m fair bits (Cslib.Complexity.Oracularize.roundBits), with the acceptance probability of the round for T = 2 ^ m - 1 (Cslib.Complexity.Oracularize.acceptProb_roundBits). Sequential repetition against non-communicating provers (Cslib.Complexity.acceptProb_sequentialRepeat_independent_le) then gives PCPPoly ⊆ MIP₂ (Cslib.Complexity.PCPPoly_subset_MIP₂).

Main definitions #

Main results #

References #

Oracularization #

Bookkeeping for the random consistency check in an oracularized round.

  • count : ℕ

    Number of queries already answered by the first prover.

  • disagreed : Bool

    Whether the provers disagreed on the selected query.

theorem Cslib.Complexity.Oracularize.encCheckState_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → Bool} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encNat budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encBool budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { count := x0 x, disagreed := x1 x }) encIn encCheckState budget
theorem Cslib.Complexity.Oracularize.encCheckState_count_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → CheckState} :
theorem Cslib.Complexity.Oracularize.encCheckState_disagreed_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → CheckState} :
theorem Cslib.Complexity.Oracularize.encCheckState_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → Bool} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encNat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBool T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { count := x0 x, disagreed := x1 x }) encIn encCheckState (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

The framed binary query count followed by the disagreement bit.

@[reducible, inline]

The tuple of the fields of encCheckState.

The checker's state and the private states of the noncommunicating provers.

  • check : CheckState

    The checker's query count and recorded disagreement.

  • provers : σ

    The two private prover states.

A prover's private state together with the query-answer history observed by the verifier.

  • prover : σ

    The private state of the prover supplying the answers.

  • history : List (List Bool × Bool)

    Query words and first answer bits in reverse chronological order.

The handler of the oracularized round: every query of the proof verifier is answered by the first bit of prover 0's reply; the j-th query is also sent to prover 1, and a disagreement of its first bit is recorded. The state counts the queries and records a disagreement.

The proof verifier run through handler j, from no queries and no disagreement.

The oracularized round: draw j ≤ T uniformly, run the proof verifier against prover 0 with its j-th query checked against prover 1, and accept when the verifier accepts and no disagreement was found.

@[reducible, inline]
noncomputable abbrev Cslib.Complexity.Oracularize.composite (j : ℕ) (P : Fin 2 → Prover Unit) :

The single prover seen by the proof verifier in the oracularized round: the handler's state together with the joint state of the two provers.

Completeness of the oracularized round: two copies of a proof are accepted with the probability that the proof verifier accepts the proof.

Soundness #

@[reducible, inline]

The prover answering by the first bit of P's reply and logging every query with its bit, most recent first.

A log is consistent with the proof π when every logged bit is the proof's bit.

Instances For

    Coupling with a proof: the runs of a program against the logged prover that end with a log consistent with π and result true have at most the probability that the program accepts the proof π.

    The probability that prover P, from its initial state, answers q with first bit b.

    noncomputable def Cslib.Complexity.Oracularize.weight (P : Prover Unit) (j : ℕ) (log : List (List Bool × Bool)) :

    The weight of a log at the checked index j: the probability that prover P agrees with the logged bit of the j-th query, or 1 when there are at most j queries.

    theorem Cslib.Complexity.Oracularize.tsum_composite_before (j : ℕ) (P : Fin 2 → Prover Unit) (ps : (Prover.independent P).State) (hps : ps 1 = (P 1).init) (W : Probability.WordOracleComp Unit Bool) (s : (logged (P 0)).State) (hs : s.history.length ≤ j) :
    (∑' (x : Bool × (composite j P).State), ((composite j P).run W { check := { count := s.history.length, disagreed := false }, provers := Function.update ps 0 s.prover }) x * if x.1 = true ∧ x.2.check.disagreed = false then 1 else 0) = ∑' (y : Bool × (logged (P 0)).State), ((logged (P 0)).run W s) y * ((if y.1 = true then 1 else 0) * weight (P 1) j y.2.history)

    Deferred sampling: before the checked query, the probability that the composite prover is accepted without a disagreement is the expected weight of the final log of the logged prover 0 on its accepting runs.

    The most likely answer bit of prover P to q.

    theorem Cslib.Complexity.Oracularize.acceptProb_checked (V : Probability.WordOracleComp Unit Bool) (j : ℕ) (P : Fin 2 → Prover Unit) :
    acceptProb (do let r ← checked V j pure (r.1 && !r.2.disagreed)) (Prover.independent P) = ∑' (y : Bool × (logged (P 0)).State), ((logged (P 0)).run V { prover := (P 0).init, history := [] }) y * ((if y.1 = true then 1 else 0) * weight (P 1) j y.2.history)

    The checked run, through deferred sampling: the probability that the checked run accepts without a disagreement is the expected weight, at index j, of the final log of the logged prover 0 on its accepting runs.

    Soundness of the oracularized round: if the proof verifier makes at most T queries and accepts every proof with probability at most 1 / 2, every pair of non-communicating provers is accepted by the round with probability at most 1 - 1 / (4 (T + 1)).

    The oracularized round with a coin-sampled check index: the index is the value of m fair bits.

    The coin-sampled round accepts every prover family with the probability of the round with T = 2 ^ m - 1.

    The coin-sampled oracularized round is strict oracle PPT when the proof verifier is and the number of index bits is computed in polynomial time.

    theorem Cslib.Complexity.PCPPoly_subset_MIP₂ {α : Type} {enc : α ↪ List Bool} :
    PCPPoly enc ⊆ MIP₂ enc

    PCPPoly ⊆ MIP₂: the oracularized round, which checks one random query of the proof verifier against the second prover, repeated sequentially 16 (T + 1) times for a polynomial bound T on the verifier's queries. This is the oracle-to-two-prover direction of Babai, Fortnow and Lund, §2, combined proof of Theorems 2.3–2.4, step 1.