Documentation

CslibFrontier.Computability.Complexity.Classes.MIP.LineTest

Checking a proof oracle's value at an arbitrary field point #

At a point x, the prover gives coefficients for the polynomial on a line through x. The verifier compares evaluations at 1, …, n + 1 with the oracle. Soundness uses n + 1 < p, so these nodes are distinct and nonzero in the prime field. The modulus and dimension are in unary. Coefficients use the fixed-width binary residue words of QBFProtocol.decodeReply.

Main definitions #

Main results #

def Cslib.Complexity.MIP.checkLineReply (p n : ℕ) (reply : List Bool) (reads : List ℕ) :

Check a degree-n coefficient reply against the oracle values at nodes 1, …, n + 1 in that order. Missing coefficients and oracle values are zero-padded.

theorem Cslib.Complexity.MIP.exists_checkLineReply {p n : ℕ} [Fact (Nat.Prime p)] {f : (Fin n → ZMod p) → ZMod p} (hf : Code.IsMultilinear f) (x v : Fin n → ZMod p) :
∃ (reply : List Bool), reply.length ≤ QBFProtocol.replyLimit p n ∧ checkLineReply p n reply (List.ofFn fun (i : Fin (n + 1)) => (f (x + ↑(↑i + 1) • v)).val) = true ∧ ↑(Polynomial.evalCoeffListMod p 0 (QBFProtocol.decodeReply p n reply)) = f x

An honest oracle has a bounded-degree reply along every direction, including the zero direction. The reply passes every check and gives the prescribed value at zero.

theorem Cslib.Complexity.MIP.card_checkLineReply_wrong_le {p n : ℕ} [Fact (Nat.Prime p)] (hp : n + 1 < p) {f : (Fin n → ZMod p) → ZMod p} (hf : Code.IsMultilinear f) (w : (Fin n → ZMod p) → ZMod p) (x : Fin n → ZMod p) (reply : (Fin n → ZMod p) → List Bool) :
{v : Fin n → ZMod p | checkLineReply p n (reply v) (List.ofFn fun (i : Fin (n + 1)) => (w (x + ↑(↑i + 1) • v)).val) = true ∧ ↑(Polynomial.evalCoeffListMod p 0 (QBFProtocol.decodeReply p n (reply v))) ≠ f x}.card ≤ (n + 1) * {y : Fin n → ZMod p | w y ≠ f y}.card

For each fixed input point, among all directions at most (n + 1) * Δ(w, f) pass the coefficient checks with a wrong value at zero. The proof word may depend on the direction.