Bridge from Public-Coin Interactive Reductions to IP #
A public-coin interactive protocol (Cslib.Interactive.Verifier and
Cslib.Interactive.Reduction in World.plain) exchanges typed prover messages M and public
verifier challenges C according to a round specification s : Spec. In contrast, the complexity
class Cslib.Complexity.IP runs a word-level oracle verifier (WordOracleComp Unit Bool)
against an arbitrary stateful, randomized bit-string prover (Cslib.Complexity.Prover Unit).
This module bridges the two models:
- Round codecs and adversarial decoding (
ProverCodec,ChallengeCodec,RoundCodecs): Each prover round specifies a bit-length caplimit, a partial parserdecode : List Bool → Option M, and a fallback messagedefault : M. Incoming prover bit strings are truncated tolimitbits; any reply for whichdecodereturnsnonemarks the transcript invalid (causing the word-level verifier to reject) while substitutingdefaultin the typed transcript stub. - Word-level verifier compilation (
runWordRounds,Verifier.wordVerifierWith,Verifier.wordVerifier): Compiles a typedInteractive.Verifierinto aWordOracleComp Unit Bool. - Completeness transfer (
honestWordProver,Reduction.Complete.acceptProb_wordVerifier): When the round codecs are lawful (RoundCodecs.Lawful), an honest typed prover compiles to a word-level prover with the exact same acceptance probability, transferring completeness errorε_cto word-level acceptance probability at least1 - ε_c. - Soundness transfer against arbitrary stateful randomized provers
(
optimalTypedStrategy,Verifier.Sound.acceptProb_wordVerifier): By backwards induction over the finite setBitString.shortWords c.limitof truncated bit replies in each prover round and public challenge conditioning in each verifier round, every statefulPMFword prover is bounded by an optimal plain-model typedProverStrategy. Thus plain-model soundness with errorε_simplies word-level soundness with errorε_sagainst allCslib.Complexity.Prover Unit. - Statistical-distance stability and uniform
IPmembership (closeTo_runWordRounds,Verifier.isOraclePPTOn_wordVerifierWith,mem_IP_of_reduction_closeTo,Reduction.mem_IP): Replacing ideal challenge samplers byδ-close distributions shifts word-level acceptance probabilities by at mostPerChallenge.sum s δ, and polynomial-time round codecs plus challenge samplers yieldIsOraclePPTOnand membership inCslib.Complexity.IP.
Main definitions #
Cslib.Interactive.ProverCodec,Cslib.Interactive.ChallengeCodec,Cslib.Interactive.RoundCodecs: per-round bit-word codecs with length bounds and fallback.Cslib.Interactive.runWordRounds: execute a typed round specification as a word-level oracle computation.Cslib.Interactive.Verifier.wordVerifierWith,Cslib.Interactive.Verifier.wordVerifier: compiled word-levelIPverifier.Cslib.Interactive.honestWordProver: compile an honest typed prover strategy toCslib.Complexity.Prover Unit.Cslib.Interactive.optimalTypedStrategy: optimal plain-model typed strategy bounding all word-level provers by backwards induction.Cslib.Interactive.RoundEncodings,Cslib.Interactive.RoundCodecs.IsPolyTime: uniform polynomial-time certificates for round codecs and challenge samplers.
Main results #
Cslib.Interactive.Reduction.Complete.acceptProb_wordVerifier: completeness transfer fromInteractive.Reduction.CompletetoCslib.Complexity.acceptProb.Cslib.Interactive.Verifier.Sound.acceptProb_wordVerifier: soundness transfer fromInteractive.Verifier.Soundagainst arbitraryCslib.Complexity.Prover Unit.Cslib.Interactive.Reduction.isInteractiveProof_wordVerifier: an interactive reduction for a relation induces anIsInteractiveProoffor its language.Cslib.Interactive.Verifier.isOraclePPTOn_wordVerifierWith: uniformIsOraclePPTOncertificate for the compiled word verifier.Cslib.Interactive.mem_IP_of_reduction_closeTo,Cslib.Interactive.Reduction.mem_IP: a language admitting an efficient public-coin interactive reduction with completeness and soundness errors at most1 / 3lies inIP.
References #
Round codecs and adversarial decoding #
A bounded bit-word codec for a prover-round message type M.
Honest messages are serialized by encode; raw prover replies are truncated to limit bits and
parsed by decode. Malformed replies (decode w = none) cause the word-level verifier to reject
while substituting default in the typed transcript stub.
Total adversarial decoder obtained by falling back to c.default on none.
A prover codec is lawful when every honest message is recovered after truncation to limit
bits.
Build a prover codec from an injective bit-word encoding enc and a total Decoder enc.
Canonical codec for fixed-width bit strings BitString n.
Canonical codec for raw bit lists of length at most limit.
Build a challenge codec from an injective bit-word encoding enc and a Decoder enc.
Canonical challenge codec for fixed-width bit strings BitString n.
Canonical challenge codec for a single Boolean coin.
Per-round message and challenge codecs for a protocol specification s.
Every round codec in s round-trips honest messages and challenges.
Word-level execution of a public-coin verifier #
Execute the rounds of s as a word-level oracle computation against an untyped bit-word
prover (Operation = Unit), returning whether all prover replies decoded validly together
with the resulting typed transcript.
Compile a plain-model typed Interactive.Verifier into a word-level oracle verifier using the
challenge samplers smp and round codecs codecs. The verifier accepts when every prover reply
decodes validly and V.outputOn x returns some _.
Compile a plain-model typed Interactive.Verifier into a word-level oracle verifier using its
own challenge samplers V.samplers.
Honest prover compilation and completeness transfer #
State of the compiled word-level prover for an honest typed prover strategy in World.plain,
defined by structural recursion on s so that HonestWordState α s : Type.
Initial state of the compiled honest word-level prover at the start of s.
Single-query transition of the compiled honest word-level prover.
Compile a plain-model typed prover computation into a word-level
Cslib.Complexity.Prover Unit.
Generalized simulation lemma: when respond simulates HonestWordState.respond s codecs
along embed : HonestWordState α s → State, running runWordRounds produces the exact transcript
distribution of plainLaw (P >>= runStrategy s smp) with validity flag true.
When codecs is lawful, running runWordRounds against HonestWordState.respond produces the
exact transcript distribution of plainLaw (P >>= runStrategy s smp) with validity flag true.
The word-level acceptance probability of V.wordVerifier codecs x with honestWordProver
equals the plain-model probability that V.execute x P outputs some _.
Completeness transfer: if a plain-model reduction R is complete with error ε_c and
codecs is lawful, then for every valid statement-witness pair (x, w), the compiled honest
word-level prover makes R.verifier.wordVerifier codecs x accept with probability at least
1 - ε_c.
Adversarial decoding and soundness transfer #
Choose the decoded message c.decodeOrDefault w for w ∈ BitString.shortWords c.limit
that maximizes the continuation acceptance value val.
Every truncated reply w.take c.limit that decodes to some m has continuation value at most
val (c.bestDecodedMsg val).
Optimal plain-model typed ProverStrategy constructed by backwards induction over the rounds
s to maximize the probability of satisfying accept.
For every word-level prover P : Cslib.Complexity.Prover Unit and starting state pState,
the probability that runWordRounds s codecs smp produces a valid transcript accepted by accept
is bounded by the plain-model acceptance probability of optimalTypedStrategy.
For every word-level prover P : Cslib.Complexity.Prover Unit, the acceptance probability of
V.wordVerifier codecs x is bounded by the plain-model acceptance probability of
optimalTypedStrategy.
Soundness transfer: if V is sound with error ε_s for reducing langIn to Set.univ
(every non-none output is considered acceptance), then for every x ∉ langIn and every
word-level prover P : Cslib.Complexity.Prover Unit,
acceptProb (V.wordVerifier codecs x) P ≤ ε_s.
If V is sound with error ε_s for reducing langIn to langOut and V.outputOn x τ only
outputs elements of langOut when x ∉ langIn (for instance when langOut = language Accept),
then V is sound for reducing langIn to Set.univ.
An interactive reduction R that is complete with error ε_c and sound with error ε_s
(to Set.univ) induces a word-level IsInteractiveProof with completeness 1 - ε_c and
soundness ε_s for language relIn.
Statistical-distance stability for approximate challenge samplers #
Zero per-round error vector for a protocol specification s.
Pointwise statistical closeness of per-round challenge samplers.
Replacing challenge samplers smp₁ by δ-close challenge samplers smp₂ changes the
word-level execution distribution of runWordRounds by at most PerChallenge.sum s δ in total
variation against any stateful word prover P.
If PerChallenge.CloseTo s smp₁ smp₂ δ, then the acceptance probabilities of
V.wordVerifierWith codecs smp₁ x and V.wordVerifierWith codecs smp₂ x against any word-level
prover P differ by at most PerChallenge.sum s δ.
Uniform polynomial-time certificates and IP membership #
Per-round bit-word encodings for a protocol specification s, giving a canonical nested-pair
encoding RoundEncodings.transcript : Transcript s ↪ List Bool.
The nested-pair encoding of Transcript s induced by per-round encodings.
A ProverCodec M is polynomial-time with respect to encM : M ↪ List Bool when both its
validity test (decode ·).isSome and its total fallback decoder decodeOrDefault are
polynomial-time computable.
A prover codec whose partial decode is polynomial-time with respect to encOption encM is
polynomial-time.
A ProverCodec.ofTotal is polynomial-time whenever its total decoder is polynomial-time.
A ProverCodec.ofDecoder D default limit is automatically polynomial-time.
A ChallengeCodec C and challenge sampler smp : ProbComp C are polynomial-time with respect
to encC : C ↪ List Bool when smp is IsPPTOn and c.encode is polynomial-time.
Per-round polynomial-time certificate for RoundCodecs s and challenge samplers smp.
When the round codecs and challenge samplers of s are polynomial-time, runWordRounds is a
uniform polynomial-time word-oracle computation (IsOraclePPTOn) for any input encoding encIn.
If the round codecs and challenge samplers of s are polynomial-time and the verifier's
acceptance predicate (V.outputOn x τ).isSome is polynomial-time in (x, τ), then the compiled
word-level verifier V.wordVerifierWith codecs smp is IsOraclePPTOn.
Special case of Verifier.isOraclePPTOn_wordVerifierWith when smp = V.samplers.
Public-coin interactive reductions to IP: if a relation relIn admits a plain-model
interactive reduction R with completeness error ε_c, soundness error ε_s (to Set.univ),
lawful round codecs codecs, and challenge samplers smp within total variation δ of
R.verifier.samplers such that ε_c + PerChallenge.sum s δ ≤ 1 / 3 and
ε_s + PerChallenge.sum s δ ≤ 1 / 3, and the compiled word verifier is IsOraclePPTOn, then
language relIn ∈ IP encStmt.
Public-coin interactive reductions to IP (exact challenge samplers): if a relation
relIn admits a plain-model interactive reduction R with completeness error ε_c ≤ 1 / 3,
soundness error ε_s ≤ 1 / 3 (to Set.univ), and lawful polynomial-time round codecs, then
language relIn ∈ IP encStmt.