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:
- Polynomial-time word verifier runtime (
UniformGKRFamily.isOraclePPTOn_verifier,UniformGKRFamily.exists_computesOracleInTimeOn_verifier):F.verifieris realized by a strict oracle PPT multi-tape Turing machine running in time polynomial in|encI ι| + log p + |input| log p + |claimedOutput| log p— independent of the internal layer widths2 ^ width iand total circuit sizeSwhenever|encI ι| = O(d + log S). (Note:F.verifierusesF.uniform.depth_polyTime,F.uniform.width_polyTime, andF.wiringMLE.) NoTimeMcharges are used; the runtime bound comes from the native multi-tape Turing machine semantics (IsOraclePPTOn/ComputesOracleInTimeOn). - Exact completeness (
UniformGKRFamily.acceptProb_verifier_complete): whenpis prime,minModulus (F.circuit ι) ≤ p, and the claimed output matchesC.outputon the input table, an honest word prover is accepted with probability1. - Soundness (
UniformGKRFamily.acceptProb_verifier_sound): whenpis prime and the claimed output disagrees withC.output, every stateful randomized word proverP : Cslib.Complexity.Prover Unitis accepted with probability at most(1 + width depth + ∑ i < depth, 5 * width i) / p, combining GKR soundness (Protocol.lean) with< 1 / ptotal variation distance from fair-coin modular sampling. IPmembership on prime-modulus instances (UniformGKRFamily.mem_IP_primeInstance): since binary-input deterministic primality checking (AKS) is not yet available in the library,Cslib.Complexity.IPmembership is stated on the prime-modulus promise subtypePrimeInstance I, while all verifier runtime, completeness, and soundness theorems are proved directly on the generalInstance Itype and encodingencInstance I encI.
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 #
Cslib.Interactive.GKR.Instance,Cslib.Interactive.GKR.encInstance: instance record(ι, p, input, claimedOutput)with binary field modulus and coordinate lists.Cslib.Interactive.GKR.tableFn,Cslib.Interactive.GKR.Instance.CorrectOutput: input/output table representation on{0, 1}^kand output-correctness predicate.Cslib.Interactive.GKR.layerCost,Cslib.Interactive.GKR.minModulus: soundness error numerator and3 * layerCost Cmodulus threshold for soundness error≤ 1 / 3.Cslib.Interactive.GKR.UniformGKRFamily.verifier: executable word-oracle verifier iterating sumcheck and line-reduction steps from the output layer down to the input layer.Cslib.Interactive.GKR.PrimeInstance,Cslib.Interactive.GKR.encPrimeInstance: prime-modulus promise domain forCslib.Complexity.IP.
Main results #
Cslib.Interactive.GKR.UniformGKRFamily.verifier_of_lt_minModulus: immediate rejection belowminModulus.Cslib.Interactive.GKR.UniformGKRFamily.isOraclePPTOn_verifier,Cslib.Interactive.GKR.UniformGKRFamily.exists_computesOracleInTimeOn_verifier: native Turing machine polynomial-time runtime for theHasPolyTimeWiringMLEword verifier (step toward#892).Cslib.Interactive.GKR.UniformGKRFamily.acceptProb_verifier_complete: exact= 1completeness.Cslib.Interactive.GKR.UniformGKRFamily.acceptProb_verifier_sound: soundness against all stateful randomized word proversCslib.Complexity.Prover Unit.Cslib.Interactive.GKR.UniformGKRFamily.isInteractiveProof_primeInstance,Cslib.Interactive.GKR.UniformGKRFamily.mem_IP_primeInstance:IPmembership on thePrimeInstancepromise domain.
References #
- S. Goldwasser, Y. T. Kalai, G. N. Rothblum, Delegating computation: interactive proofs for muggles, Theorem 1.1 and Section 3 (locator not re-verified against primary PDF)
- J. Thaler, Proofs, Arguments, and Zero-Knowledge, Section 4.6 (locator not re-verified against primary PDF)
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 binaryencNat). Input gate values ordered by big-endian bit label (
vals[binaryValue a]), padded with0.Claimed output gate values ordered by big-endian bit label, padded with
0.
Prime-modulus promise domain for IP membership on Instance I.
Canonical injective bit-word encoding of PrimeInstance I inherited from encInstance.
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).