Documentation

CslibFrontier.Probability.Rewinding.Consistency

Rewinding against a committed table #

A two-stage experiment draws a first-stage outcome s, then runs a second stage with outcome r, and accepts when acc s r holds. Each run also opens positions j to bits b (opens s r j b), as a prover opens positions of a committed table. If, at every possible saved state, runs that accept while agreeing with a fixed table π : ℕ → Bool are rare (probability at most ε, for every π), then an accepting prover must answer inconsistently across runs: rewinding the second stage, two runs that both accept, with some position below M opened to false by the first and to true by the second, occur with probability δ satisfying

ε₁ ≤ ε + M * √δ (le_add_mul_sqrt_disagreement),

where ε₁ is the one-run acceptance probability and every accepting run opens only positions below M.

The proof fixes the saved state s and chooses, at each position, the bit that accepting runs open more often. A run that accepts but disagrees with that table opens some position to its less likely bit b, an event of probability p_j(b) = min (p_j(false), p_j(true)), whose square is at most the probability p_j(false) * p_j(true) that two independent runs open j to both bits. Jensen's inequality (Cslib.Probability.PMF.sq_tsum_le_tsum_sq) averages over s.

This is the probabilistic core of the soundness of Kilian's protocol ([BG01], Construction 3.4 and Lemma 3.5): positions are the leaves of a hash tree, and two accepted openings of one leaf to different bits are a binding break. The statement and the constants are our own packaging; Barak and Goldreich bound the extraction of an oracle for superpolynomially long proofs, while here the table is indexed below M.

These are exact statements about experiment laws, with no efficiency claim.

Main definitions #

Main results #

References #

noncomputable def Cslib.Probability.Rewinding.acceptance {S R : Type} (first : PMF S) (run : S → PMF R) (acc : S → R → Bool) :

The law of one run of a two-stage experiment: a first-stage outcome, a second-stage run from it, and the acceptance test.

noncomputable def Cslib.Probability.Rewinding.disagreement {S R : Type} (first : PMF S) (run : S → PMF R) (acc : S → R → Bool) (opens : S → R → ℕ → Bool → Bool) (M : ℕ) :

The law of rewinding the second stage: one first-stage outcome and two independent runs from it. It succeeds when both runs accept and some position below M is opened to false by the first run and to true by the second.

At one saved state #

The bound #

theorem Cslib.Probability.Rewinding.le_add_mul_sqrt_disagreement {S R : Type} (first : PMF S) (run : S → PMF R) (acc : S → R → Bool) (opens : S → R → ℕ → Bool → Bool) (M : ℕ) {ε : ℝ} (hpos : ∀ s ∈ first.support, ∀ r ∈ (run s).support, ∀ (j : ℕ) (b : Bool), acc s r = true → opens s r j b = true → j < M) (hcons : ∀ s ∈ first.support, ∀ (π : ℕ → Bool), ((run s).toOuterMeasure {r : R | acc s r = true ∧ ∀ (j : ℕ) (b : Bool), opens s r j b = true → b = π j}).toReal ≤ ε) :
((acceptance first run acc) true).toReal ≤ ε + ↑M * √((disagreement first run acc opens M) true).toReal

Rewinding against a committed table. Suppose that at every possible saved state s, every accepting run opens only positions below M, and runs that accept while agreeing with any fixed table π have probability at most ε. Then the one-run acceptance probability ε₁ and the probability δ that two runs from one saved state both accept, with some position below M opened to false by the first and to true by the second, satisfy ε₁ ≤ ε + M * √δ.

This is an original packaging of the extraction step in the soundness of Kilian's protocol ([BG01], Lemma 3.5). It concerns experiment laws, with no efficiency claim.