Documentation

CslibFrontier.Computability.Interactive.GKR.Verifier

Polynomial-time word verifier from polynomial-time wiring extensions #

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3; see also Thaler, §4.6): given a UniformGKRFamily I encI (which pairs IsLogSpaceUniform with a caller-supplied HasPolyTimeWiringMLE oracle; compiling general IsLogSpaceUniform wiring without HasPolyTimeWiringMLE and poly(S) prover word-TM runtime remain open on #892), this module constructs the executable word-level interactive verifier UniformGKRFamily.verifier over prime fields ZMod p with p and field coordinates encoded in binary (encNat), and establishes its verifier runtime, completeness, and soundness:

Note: primary-source page/theorem locators in [GoldwasserKalaiRothblum2015] and [Thaler2022] are from recorded repository documentation (locator not re-verified against primary PDF). General IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE, the prover's poly(S) word-TM accounting under #892, and CslibFrontierResults registration remain open for follow-up.

Main definitions #

Main results #

References #

Instances, table encoding, and modular arithmetic #

Input instance for verifying F.circuit index over ZMod modulus: the circuit index, binary prime modulus p, input values vals, and claimed output values claimedOutput.

  • index : I

    Circuit family index.

  • modulus : ℕ

    Field modulus p (encoded in binary encNat).

  • input : List ℕ

    Input gate values ordered by big-endian bit label (vals[binaryValue a]), padded with 0.

  • claimedOutput : List ℕ

    Claimed output gate values ordered by big-endian bit label, padded with 0.

theorem Cslib.Interactive.GKR.encInstance_mk_inO (I : Type) (encI : I ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → I} {T0 S0 x1 T1 S1 : γ → ℕ} {x2 : γ → List ℕ} {T2 S2 : γ → ℕ} {x3 : γ → List ℕ} {T3 S3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encI T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn encNatList T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn encNatList T3 S3) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { index := x0 x, modulus := x1 x, input := x2 x, claimedOutput := x3 x }) encIn (encInstance I encI) (fun (x : γ) => T0 x + (T1 x + (T2 x + T3 x))) fun (x : γ) => S0 x + (S1 x + (S2 x + S3 x))

Tuple encoding of Instance I keeping modulus, input, and claimedOutput in binary.

theorem Cslib.Interactive.GKR.encInstance_mk_budget (I : Type) (encI : I ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → I} {x1 : γ → ℕ} {x2 x3 : γ → List ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn encI budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn encNatList budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn encNatList budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { index := x0 x, modulus := x1 x, input := x2 x, claimedOutput := x3 x }) encIn (encInstance I encI) budget
theorem Cslib.Interactive.GKR.encInstance_claimedOutput_budget (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encInstance I encI) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).claimedOutput) encIn✝ encNatList S✝
theorem Cslib.Interactive.GKR.encInstance_input_polyTime (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encInstance I encI) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).input) encIn✝ encNatList
theorem Cslib.Interactive.GKR.encInstance_index_polyTime (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encInstance I encI) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).index) encIn✝ encI
theorem Cslib.Interactive.GKR.encInstance_input_budget (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encInstance I encI) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).input) encIn✝ encNatList S✝
theorem Cslib.Interactive.GKR.encInstance_modulus_polyTime (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance I} :
@[reducible, inline]

The tuple of the fields of encInstance.

theorem Cslib.Interactive.GKR.encInstance_claimedOutput_polyTime (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance I} :
theorem Cslib.Interactive.GKR.encInstance_mk_polyTime (I : Type) (encI : I ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → I} {x1 : γ → ℕ} {x2 x3 : γ → List ℕ} (h0 : Turing.MultiTapeTM.ComputableInPolyTime x0 encIn encI) (h1 : Turing.MultiTapeTM.ComputableInPolyTime x1 encIn Turing.MultiTapeTM.encNat) (h2 : Turing.MultiTapeTM.ComputableInPolyTime x2 encIn encNatList) (h3 : Turing.MultiTapeTM.ComputableInPolyTime x3 encIn encNatList) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { index := x0 x, modulus := x1 x, input := x2 x, claimedOutput := x3 x }) encIn (encInstance I encI)
theorem Cslib.Interactive.GKR.encInstance_modulus_budget (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encInstance I encI) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).modulus) encIn✝ Turing.MultiTapeTM.encNat S✝
theorem Cslib.Interactive.GKR.encInstance_index_budget (I : Type) (encI : I ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance I} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encInstance I encI) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).index) encIn✝ encI S✝
theorem Cslib.Interactive.GKR.encInstance_mk_deg (I : Type) (encI : I ↪ List Bool) :
Turing.MultiTapeTM.ComputableInDegree (fun (p : I × ℕ × List ℕ × List ℕ) => { index := p.1, modulus := p.2.1, input := p.2.2.1, claimedOutput := p.2.2.2 }) (encInstanceFields I encI) (encInstance I encI) 1 1

Prime-modulus promise domain for IP membership on Instance I.

Canonical injective bit-word encoding of PrimeInstance I inherited from encInstance.

def Cslib.Interactive.GKR.tableFn (p k : ℕ) (vals : List ℕ) (a : Fin k → Bool) :

Interpret a list of field-element representatives vals as a Boolean-cube table (Fin k → Bool) → ZMod p, reading index binaryValue (List.ofFn a) and defaulting to 0.

Correct-output predicate for inst with respect to F : UniformGKRFamily I encI.

Total soundness numerator 1 + width depth + ∑ i < depth, 5 * width i (including 1 for fair-coin modular sampling approximation error ≤ 1 / p).

Minimum field modulus 3 * layerCost C required for soundness error at most 1 / 3.

Polynomial-time certificates for verifier subroutines #

Executable polynomial-time word GKR verifier #

Executable polynomial-time word GKR verifier for a UniformGKRFamily I encI (a verifier-side, HasPolyTimeWiringMLE step toward Goldwasser, Kalai, Rothblum §3 / Thaler, §4.6). Rejects immediately whenever inst.modulus < minModulus (F.circuit inst.index). Otherwise samples a random output evaluation point, evaluates the claimed-output multilinear extension sparsely, descends depth layers of sumcheck and line reduction using F.evalWiring, and checks the final input-layer evaluation against inst.input.

UniformGKRFamily.verifier rejects immediately whenever inst.modulus is below minModulus (F.circuit inst.index).

Native multi-tape Turing-machine polynomial-time runtime #

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3; see also Thaler, §4.6 — locator not re-verified against primary PDF): F.verifier is realized by a strict oracle PPT multi-tape Turing machine relative to encInstance I encI, running in time polynomial in |encI ι| + log p + |input| log p + |claimedOutput| log p using F.uniform for depth/width and F.wiringMLE for ãdd_i/m̃ult_i. Compiling arbitrary IsLogSpaceUniform wiring without a supplied HasPolyTimeWiringMLE oracle and poly(S) prover word-TM runtime remain open on #892.

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3): there exists a polynomial-time step schedule t and a halting probabilistic multi-tape Turing machine realizing F.verifier on every Instance I within t inst steps across every stateful prover oracle (general IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE and poly(S) prover runtime remain open on #892).

Word-level bridge, exact simulation, soundness, and completeness #

Statistical closeness, soundness, completeness, and IP membership #

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3; see also Thaler, §4.6 — locator not re-verified against primary PDF): whenever inst.modulus is prime and the claimed output disagrees with C.output on the input table, every stateful randomized word prover P : Cslib.Complexity.Prover Unit is accepted by F.verifier inst with probability at most (1 + width depth + ∑ i < depth, 5 * width i) / inst.modulus (general IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE and poly(S) prover runtime remain open on #892).

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3; see also Thaler, §4.6 — locator not re-verified against primary PDF): whenever inst.modulus is prime, minModulus (F.circuit inst.index) ≤ inst.modulus, and the claimed output matches C.output on the input table, there exists a stateful word prover accepted by F.verifier inst with probability 1 (general IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE and poly(S) prover runtime remain open on #892).

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3) on the prime-modulus promise domain PrimeInstance I: F.verifier is an interactive proof with completeness 1 and soundness error 1 / 3 for prime-modulus instances with minModulus (F.circuit inst.index) ≤ inst.modulus and inst.CorrectOutput F (general IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE, unconditional primality checking, and poly(S) prover runtime remain open on #892).

A verifier-side, efficient-wiring-MLE (HasPolyTimeWiringMLE) step toward Goldwasser, Kalai, Rothblum Theorem 1.1 (§3; see also Thaler, §4.6 — locator not re-verified against primary PDF) on the prime-modulus promise domain PrimeInstance I (used because binary-input deterministic primality testing is not yet formalized): for any UniformGKRFamily I encI, verifying circuit output on PrimeInstance I belongs to Cslib.Complexity.IP (general IsLogSpaceUniform wiring compilation without HasPolyTimeWiringMLE and poly(S) prover runtime remain open on #892).