Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.CorrectionProbability

Error of correction along a sampled affine line #

The correction verifier samples one direction with bounded fair coins. A rejected line has no returned value. Under a uniform direction, returning a wrong value requires one of the sampled points to disagree with the target multilinear function. Replacing the uniform direction by the fair-bit implementation changes this event probability by at most the joint sampling error.

Main results #

theorem Cslib.Complexity.MIP.run_correctPoint_of_forall (π : List Bool → Bool) {p n : ℕ} [Fact (Nat.Prime p)] (x : Fin n → ZMod p) (y : ℕ) (hall : ∀ (v : Fin n → ZMod p), correctionAnswer π x v = some y) (precision : ℕ) :
(Prover.ofProof π).run (correctPoint p n precision (List.ofFn fun (j : Fin n) => (x j).val)) () = PMF.pure (some y, ())

If every field direction produces the same checked answer, then sampling with any precision returns that answer with certainty.

theorem Cslib.Complexity.MIP.correctPoint_wrong_le (π : List Bool → Bool) {p n : ℕ} [Fact (Nat.Prime p)] (hp : n + 1 < p) {f : (Fin n → ZMod p) → ZMod p} (hf : Code.IsMultilinear f) (x : Fin n → ZMod p) (precision : ℕ) :
(PMF.map Prod.fst ((Prover.ofProof π).run (correctPoint p n precision (List.ofFn fun (j : Fin n) => (x j).val)) ())).toOuterMeasure {o : Option ℕ | ∃ (y : ℕ), o = some y ∧ y ≠ (f x).val} ≤ (↑n + 1) * ↑(hammingDist (proofPoint π p) f) / ↑p ^ n + 1 / 2 ^ precision

The probability of returning a wrong value at a fixed point is at most the relative number of possible disagreements at the n + 1 tested nodes plus the statistical sampling error. The bit proof may give different coefficient replies in every direction.