Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.Challenges

Two independent field-vector challenges for the tableau protocol #

The arithmetic verifier draws two independent vectors of residues from fair bits. Every sampled coordinate is a canonical representative, and the joint event error is at most twice the error for one vector.

Main definitions #

Main results #

Sample two independent length-R vectors, using R.size + p.size + precision fair bits per coordinate and returning unary residues modulo p.

The joint tableau challenge sampler is strict PPT when its length, modulus and precision are polynomial-time unary parameters. Both output vectors contain framed unary residues.

theorem Cslib.Complexity.MIP.exists_vectors_of_mem_support_sampleTableauChallenges {R p precision : ℕ} [NeZero p] {c : List ℕ × List ℕ} (hc : c ∈ (sampleTableauChallenges R p precision).eval.support) :
∃ (r : Fin R → ZMod p) (z : Fin R → ZMod p), c = (List.ofFn fun (j : Fin R) => (r j).val, List.ofFn fun (j : Fin R) => (z j).val)

Every supported pair is the list of canonical representatives of two R-dimensional residue vectors, including the unique pair of empty lists at dimension zero.

theorem Cslib.Complexity.MIP.closeTo_sampleTableauChallenges (R p precision : ℕ) [NeZero p] :
Probability.CloseTo (sampleTableauChallenges R p precision).eval (PMF.map (fun (x : (Fin R → ZMod p) × (Fin R → ZMod p)) => match x with | (r, z) => (List.ofFn fun (j : Fin R) => (r j).val, List.ofFn fun (j : Fin R) => (z j).val)) (Probability.PMF.uniformOfFintype ((Fin R → ZMod p) × (Fin R → ZMod p)))) (1 / 2 ^ precision + 1 / 2 ^ precision)

The joint event error of the two bounded-randomness challenges from independent uniform residue vectors is at most twice 2⁻ᵖʳᵉᶜⁱˢⁱᵒⁿ.

theorem Cslib.Complexity.MIP.bind_sampleTableauChallenges_of_forall {α : Type} {R p precision : ℕ} [NeZero p] (next : List ℕ × List ℕ → PMF α) (law : PMF α) (h : ∀ (r z : Fin R → ZMod p), next (List.ofFn fun (j : Fin R) => (r j).val, List.ofFn fun (j : Fin R) => (z j).val) = law) :
(sampleTableauChallenges R p precision).eval.bind next = law

A continuation returning the same law on every pair of field vectors returns that law after drawing actual bounded-randomness challenges.