- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
- Dark green border
- this is in Mathlib
Let \(\mathcal{V}\) be a NARG verifier for relation \(\mathcal{R}\), with oracle distribution \(\mathcal{D}(\lambda ,n)\) and the public parameter convention above.
A probabilistic straightline knowledge extractor \(\mathcal E\) receives a statement \(\mathbb {x}\), a NARG string \(\pi \), and the prover and verifier public query–answer logs \(\mathsf{tr}_{\tilde{\mathcal{P}}},\mathsf{tr}_{\mathcal{V}}\), and returns a candidate witness \(\mathbb {w}\) for \(\mathbb {x}\) or \(\bot \). The extractor runs after the verifier, in the public-oracle state the verifier leaves. Besides these inputs, it may query the public oracles and use its own private randomness; it cannot invoke or rewind the malicious prover.
The verifier has adaptive knowledge-soundness error \(\kappa _{\mathrm{NARG}}:\mathbb N^3\to [0,\infty ]\) if there exists such an extractor \(\mathcal E\) such that, for every security parameter \(\lambda \in \mathbb N\), instance-size bound \(n\in \mathbb N\), query budget \(t\in \mathbb N\), and \(t\)-query malicious argument prover \(\tilde{\mathcal{P}}\) (Definition 63),
The annotated arrows record public query–answer logs. No running-time requirement is imposed, so this is a distributional notion: a theorem that claims the full notion of [ 15 ] or [ 16 ] also needs a running-time bound for the same named extractor. The extractor interface follows [ 16 , Definition 7.1.5 ] , with one addition. [ 15 , Definition 3.6 ] gives the extractor only \((\mathbb {x},\pi ,\mathsf{tr}_{\tilde{\mathcal{P}}})\), without the verifier log, so an extractor for that definition is also one for this definition, but not conversely. Neither source lets the extractor query the public oracles. [ 15 , Definition 3.6 ] says “deterministic”; we allow private randomness, which the paper’s own extractor needs (its LookAhead step samples). In Lean, this definition is stated on the experiment above for a verifier given as a plain function. For a one-message interactive verifier, a theorem proves the definition equal to adaptive knowledge soundness of the one-message protocol.
- NARG.Verifier.adaptiveNARGKnowledgeSoundnessQueryBoundedWithExtractor
- Verifier.adaptiveNARGKnowledgeSoundnessQueryBoundedWithExtractor_iff_adaptive
- NARG.Verifier.adaptiveNARGKnowledgeSoundnessQueryBounded
- NARG.Extractor
- NARG.Verifier.adaptiveNARGKnowledgeSoundness_iff_adaptiveNARGSoundness
- NARG.Verifier.adaptiveNARGKnowledgeSoundnessQueryBounded_iff_adaptiveNARGSoundnessQueryBounded
- adaptiveNARGKnowledgeSoundnessExp
- nargKSFailEvent
Let \(\mathcal{R}\subseteq \mathcal X\times \mathcal W\) be a relation with instance-size function \(|\cdot |:\mathcal X\to \mathbb N\). Let \(\mathcal{D}(\lambda ,n)\) be the oracle distribution for security parameter \(\lambda \) and instance-size bound \(n\), as in [ 16 , Section 7.1, Definition 7.1.1 ] (version 1.2). Let \(\mathcal{P}^{\boldsymbol {f}}(\mathbb {x},\mathbb {w})\) be the honest argument prover.
A NARG has adaptive statistical zero-knowledge error \(z_{\mathrm{NARG}}:\mathbb N^3\to [0,\infty ]\) if there exists a probabilistic simulator \(\mathcal S\) such that, for every security parameter \(\lambda \in \mathbb N\), instance-size bound \(n\in \mathbb N\), query budget \(t\in \mathbb N\), and probabilistic \(t\)-query adversary \(\mathcal{A}\) whose output \((\mathbb {x},\mathbb {w},\mathsf{aux})\) always satisfies \((\mathbb {x},\mathbb {w})\in \mathcal{R}\) and \(|\mathbb {x}|\le n\), the following two distributions are \(z_{\mathrm{NARG}}(\lambda ,n,t)\)-close in statistical distance:
Besides the public parameters \((\lambda ,n)\), the simulator receives only \(\mathbb {x}\) and query access to the original \(\boldsymbol {f}\). It returns a NARG string \(\pi \) and programming data \(\mu \). The notation \(\boldsymbol {f}[\mu ]\) denotes the public oracles obtained by applying the model’s specified programming operation. The query budget counts the adversary’s public queries across both stages, for every supplied NARG string and every sequence of oracle replies and private choices, including a separate bound on the first stage (Definition 63). One simulator family, depending on \((\lambda ,n)\), works for all budgets and adversaries. No running-time requirement is imposed.
A challenge tree for a protocol specification branches only at challenge rounds: a message round has one child, and a challenge round has one child per branch, labelled by the challenge sent on that branch. Every root-to-leaf path reads off one full transcript. A shape fixes the branching arity of each challenge round and a condition on the sibling challenges at each node.
A reduction satisfies completeness with error \(\epsilon \geq 0\) and with respect to input relation \(\mathcal{R}_{\mathrm{in}}\) and output relation \(\mathcal{R}_{\mathrm{out}}\), if for all valid statement-witness pair \((\mathbb {x}_{\text{in}}, \mathbb {w}_{\text{in}})\) for \(\mathcal{R}_{\mathrm{in}}\), the execution between the honest prover and the honest verifier will result in a tuple \(((\mathbb {x}_{\text{out}}^P, \mathbb {w}_{\text{out}}), \mathbb {x}_{\text{out}}^V)\) such that:
\(\mathcal{R}_{\mathrm{out}}(\mathbb {x}_{\text{out}}^V, \mathbb {w}_{\text{out}}) = \text{True}\) (the output statement-witness pair is valid), and
\(\mathbb {x}_{\text{out}}^P = \mathbb {x}_{\text{out}}^V\) (the output statements are the same from both prover and verifier)
except with probability \(\epsilon \).
In an (oracle) reduction, its (oracle) context consists of a statement type, a witness type, and (in the oracle case) an indexed list of oracle statement types.
Currently, we do not abstract out / bundle the context as a separate structure, but rather specifies the types explicitly. This may change in the future.
An extractor lens preserves knowledge soundness if it satisfies two conditions.
Lift: if the projected outer input statement and an extracted inner input witness lie in the inner input relation, then the lifted outer input witness lies in the outer input relation.
Project, or shortcut: if a lifted output statement and an outer output witness lie in the outer output relation, then either the projected output witness and the inner output statement lie in the inner output relation, or every inner input witness lifts to a valid outer input witness.
The shortcut covers lenses whose outer output already certifies the outer input. Both conditions also take a compatibility predicate on witnesses; the lifting theorems use the trivial one.
An argument prover is \(t\)-query if it makes at most \(t\) calls to the oracles designated by the experiment in every execution, for every sequence of oracle replies and private choices; repeated queries count again. Private coins do not contribute to the count.
Given an input statement \(x\) and all prover messages, \(\mathsf{deriveTranscriptFS}\) reconstructs the full transcript
Round by round, it copies each prover message and obtains each challenge by querying the challenge oracle at the statement and the messages before that round. The name is an alias of \(\mathsf{deriveTranscriptSR}\).
An extractor runs from output witnesses back to input witnesses, so lifting an extractor needs a witness lens in the reverse direction. An inverse witness lens consists of:
a projection \(\mathsf{StmtIn}_{\mathsf{outer}} \times \mathsf{WitOut}_{\mathsf{outer}} \to \mathsf{WitOut}_{\mathsf{inner}}\) of output witnesses;
a lifting \(\mathsf{StmtIn}_{\mathsf{outer}} \times \mathsf{WitOut}_{\mathsf{outer}} \to \mathsf{WitIn}_{\mathsf{inner}} \to \mathsf{WitIn}_{\mathsf{outer}}\) of extracted input witnesses.
An extractor lens pairs a statement lens with an inverse witness lens.
For each challenge index \(i : \mathsf{pSpec}.\mathsf{ChallengeIdx}\), the state-restoration (and Fiat–Shamir) oracle interface on \(\mathsf{pSpec}.\mathsf{Challenge}\ i\) has:
Query type: \(\mathsf{StmtIn}\times \mathsf{pSpec}.\mathsf{MessagesUpTo}\ i.\mathsf{val}.\mathsf{castSucc}\), the input statement together with the prover messages sent before round \(i\);
Response type: \(\mathsf{pSpec}.\mathsf{Challenge}\ i\);
Oracle behavior: return the challenge itself.
The Lean name is \(\mathsf{challengeOracleInterfaceSR}\).
The challenge oracle specification is
which answers the query \(\langle i, (x, m) \rangle \) with a value of type \(\mathsf{pSpec}.\mathsf{Challenge}\ i\). The index type pairs a challenge round with a query of the interface of Definition 108. The name \(\mathsf{fsVerifierMessageOracle}\) is an alias.
A verifier is guarded if there are a Boolean check and a deterministic output map such that, on every statement and full transcript, it returns the output map’s value when the check passes and aborts otherwise. Pure verifiers are the special case with the trivially true check. When the output statement type is nonempty, a verifier is guarded exactly when its verdict makes no query to the shared oracle. A guarded form carries the check and the output map as data.
Let \(\mathbf{P}\) be the prover of an ordinary public-coin IP for relation \(\mathcal{R}\), with honest-verifier view \(\mathsf{View}_{\mathrm{IP}}(\mathbf{P},\mathbb {x},\mathbb {w})\) as in Definition 50. Write \(\mathsf{Tr}\) for the space of complete protocol transcripts. The protocol has statistical honest-verifier zero-knowledge error \(z_{\mathrm{IP}}:\mathcal X\to [0,\infty ]\) if there exists a probabilistic simulator \(\mathbf S\), taking only \(\mathbb {x}\in \mathcal X\) as input and returning a view in \(\mathcal X\times \mathsf{Tr}\), such that
Fix a size function \(|\cdot |:\mathcal X\to \mathbb N\). For an instance-size bound \(n\), write
with value \(\infty \) when the set is unbounded. This is the maximum used in the cited definitions when it is attained, with value zero when there are no valid instances. Any upper bound for these errors also suffices in the theorems below. The same simulator then has error at most \(z_{\mathrm{IP}}(n)\) on every valid pair of size at most \(n\). Ordinary IP honest-verifier zero knowledge has no oracle-query parameter. No running-time requirement is imposed on the simulator.
For an input \(z\), an interaction-layer round-by-round extractor assigns to each node of the protocol tree a knowledge state (a witness type with a validity predicate) and a named map that transports a later witness one step backward. It is prover preserving if prover messages cannot make an invalid witness valid under these maps. It is locally bounded with error \(\epsilon _j\) at round \(j\) if, at every authored transcript prefix before a challenge of round \(j\), including prefixes of probability zero in an honest run, the probability over the fresh uniform challenge that some later witness is valid while its backward image is invalid is at most \(\epsilon _j\). A knowledge certificate bundles such an extractor with these two properties; a measured certificate adds a budgeted program for each extraction stage.
Fix \(\mathrm{IP}\) with \(\mathsf{k}\) rounds as in Definition 66. The IP state-restoration game takes as input a salt-size parameter \(s\in \mathbb N\) with associated salt space \(\mathsf{Salt}\), verifier-message functions \(\boldsymbol {f}=(f_{i})_{i\in [\mathsf{k}]}\) and an SR prover \(\widetilde{\mathbf P}^{\mathrm{sr}}\), and returns a statement \(\mathbb {x}\), a chosen salt \(\tau \in \mathsf{Salt}\), prover messages \(\boldsymbol {\alpha }=(\alpha _1,\ldots ,\alpha _{\mathsf{k}})\), and verifier messages \(\boldsymbol {\rho }=(\rho _1,\ldots ,\rho _{\mathsf{k}})\):
The vectors \(\boldsymbol {\alpha }\) and \(\boldsymbol {\rho }\) specify the full transcript \((\alpha _1,\rho _1,\ldots ,\alpha _{\mathsf{k}},\rho _{\mathsf{k}})\). The move–response trace \(\mathsf{tr}^{\mathrm{sr}}\) is the ordered list of pairs \(\bigl((i,\mathbb {x}',\tau ',\alpha '_1,\ldots ,\alpha '_{i}),\rho '\bigr)\) from Step 1. A \(t\)-move prover performs at most \(t\) iterations of Step 1, under the counting convention of Definition 63.
Fix a family of salt spaces \(\mathsf{Salt}(s,n)\), public-coin IP verifiers \(\mathbf{V}\), and verifier message function distributions \(\mathcal{D}_{\mathrm{sr}}(s,n)\), with a common relation \(\mathcal{R}\subseteq \mathcal X\times \mathcal W\) and size function \(|\cdot |\). These public parameters may determine the protocol and message spaces and are supplied to all algorithms; we suppress them in algorithm calls. The verifier has state-restoration soundness error \(\varepsilon _{\mathrm{IP}}^{\mathrm{sr}}:\mathbb N^3\to [0,\infty ]\) if, for every salt-size parameter \(s\in \mathbb N\), instance-size bound \(n\in \mathbb N\), move budget \(t\in \mathbb N\) and every \(t\)-move malicious SR prover \(\widetilde{\mathbf P}^{\mathrm{sr}}\),
The size test restricts the failure event; it neither conditions the sampling nor changes the game.
Let \(\mathrm{IP}=(\mathbf{P},\mathbf{V})\) be an ordinary public-coin IP with \(\mathsf{k}\) rounds. The honest verifier’s view on the instance–witness pair \((\mathbb {x},\mathbb {w})\), denoted \(\mathsf{View}_{\mathrm{IP}}(\mathbf{P},\mathbb {x},\mathbb {w})\), is the random variable
where:
\(\boldsymbol {\rho }\) consists of independent uniform verifier messages \(\rho _{i}\in \mathcal M_{\mathbf{V},i}\);
\(\boldsymbol {\alpha }\) consists of the prover messages received in the honest interaction between \(\mathbf{P}(\mathbb {x},\mathbb {w})\) and \(\mathbf{V}\), with \(\rho _{i}\) revealed only after the prover message in round \(i\).
The prover is probabilistic and uses private randomness independent of the verifier messages. The verifier has no other randomness.
A reduction satisfies (straightline) knowledge soundness with error \(\epsilon \geq 0\) and with respect to input relation \(\mathcal{R}_{\mathrm{in}}\) and output relation \(\mathcal{R}_{\mathrm{out}}\) if:
there exists a straightline extractor \(E\), such that
for every input statement \(\mathbb {x}_{\text{in}}\), every private-input type and private input of the prover, and every (malicious) prover, all chosen after \(E\),
if the execution with the honest verifier results in a pair \((\mathbb {x}_{\text{out}}, \mathbb {w}_{\text{out}})\),
then the probability that \((\mathbb {x}_{\text{out}}, \mathbb {w}_{\text{out}})\) is valid for \(\mathcal{R}_{\mathrm{out}}\) and yet the extractor fails to produce a witness \(\mathbb {w}'_{\text{in}}\) such that \((\mathbb {x}_{\text{in}}, \mathbb {w}'_{\text{in}})\) is valid for \(\mathcal{R}_{\mathrm{in}}\) is at most \(\epsilon \).
Note that the extractor failing outright (it is a partial computation) counts as a win for the adversary: whenever the prover convinces the verifier, the extractor is obliged to succeed and produce a valid witness. (Excluding extractor failure from the bad event would render the definition vacuous, as the always-failing extractor would satisfy it for any verifier.) In contrast, runs in which the protocol execution itself fails (e.g. the verifier aborts) impose no obligation on the extractor, matching the convention for plain soundness.
The same game for one named extractor \(E\) is \(\mathsf{knowledgeSoundnessWith}\); knowledge soundness is its existential closure over \(E\).
For a named straightline extractor \(E\), a measured program \(M\) and a budget \(B\), \(\mathsf{knowledgeSoundnessWithResources}\) holds when \(E\) satisfies the knowledge game of Definition 31 with error \(\epsilon \), the run of \(E\) is the execution of \(M\) on its view without querying the shared oracle, and every execution path of \(M\) costs at most \(B\). The budget counts only the instructions that \(M\) declares.
A knowledge state function for a verifier, with respect to input relation \(\mathcal{R}_{\mathrm{in}}\), output relation \(\mathcal{R}_{\mathrm{out}}\), and intermediate witness types, extends the basic state function to track witness validity throughout the protocol execution. This is used to define round-by-round knowledge soundness.
For an oracle specification with sampleable answer types \(A(q)\), a lazy sampling table \(C\) is a partial map \(C(q)\in \operatorname {Option}(A(q))\). Its domain
is the set of queries with stored answers. On query \(q\), the uniform random-oracle handler returns the stored answer if \(q\in \operatorname {dom}(C)\); otherwise it samples \(a\) uniformly from \(A(q)\), stores \(C(q)=a\), and returns \(a\). Lean’s QueryCache imposes no finite-domain requirement, and randomOracle implements this cache-hit and cache-miss behavior.
Let \(\mathcal{V}\) be a NARG verifier for relation \(\mathcal{R}\), with oracle distribution \(\mathcal{D}\). The NARG has adaptive soundness error \(\varepsilon _{\mathrm{NARG}}:\mathbb N^3\to [0,\infty ]\) if, for every security parameter \(\lambda \in \mathbb N\), instance-size bound \(n\in \mathbb N\), query budget \(t\in \mathbb N\), and \(t\)-query malicious argument prover \(\tilde{\mathcal{P}}\) (Definition 63),
In Lean, this definition is stated on the experiment above for a verifier given as a plain function, which depends on no protocol layer. For a one-message interactive verifier, a theorem proves the definition equal to adaptive soundness of the one-message protocol.
For oracle reductions, the statement lens acts on pairs of a statement and its oracle statements, and the witness lens sees these pairs. This form suffices for relations. To run an oracle verifier, an executable oracle context lens also implements the inner input oracles by queries to the outer ones, and the outer output oracles by queries to the outer input and inner output oracles, each agreeing with a materialized map.
An oracle interface for an underlying data type \(\mathsf{D}\) consists of the following:
A type \(\mathsf{Q}\) for queries to the oracle,
A response family \(\mathsf{R} : \mathsf{Q} \to \mathsf{Type}\), so that the type of the response may depend on the query,
An answering function \(\mathsf{answer} : \mathsf{D} \to (q : \mathsf{Q}) \to \mathsf{R}(q)\) that specifies the oracle’s behavior given the underlying data and a query.
In Lean the response family and answering function are packaged as an oracle context whose implementation reads the underlying data. A constant response family \(\mathsf{R}(q) = \mathsf{R}\) is the common special case.
An oracle prover is a prover whose input statement includes the underlying data for oracle statements, and whose output includes oracle statements. Formally, it is a prover with input statement type \(\mathsf{StmtIn}\times (\forall i : \iota _{\mathsf{si}}, \mathsf{OStmtIn}(i))\) and output statement type \(\mathsf{StmtOut}\times (\forall i : \iota _{\mathsf{so}}, \mathsf{OStmtOut}(i))\), where:
\(\mathsf{OStmtIn}: \iota _{\mathsf{si}} \to \mathsf{Type}\) are the input oracle statement types
\(\mathsf{OStmtOut}: \iota _{\mathsf{so}} \to \mathsf{Type}\) are the output oracle statement types
An interactive oracle reduction for protocol specification \(\mathsf{pSpec}: \mathsf{ProtocolSpec}(n)\) with oracle interfaces for all prover messages, and oracle specification \(\mathsf{oSpec}\), consists of:
An oracle prover \(\mathcal{P}: \mathsf{OracleProver}(\mathsf{pSpec}, \mathsf{oSpec}, \mathsf{StmtIn}, \mathsf{WitIn}, \mathsf{StmtOut}, \mathsf{WitOut}, \mathsf{OStmtIn}, \mathsf{OStmtOut})\)
An oracle verifier \(\mathcal{V}: \mathsf{OracleVerifier}(\mathsf{pSpec}, \mathsf{oSpec}, \mathsf{StmtIn}, \mathsf{StmtOut}, \mathsf{OStmtIn}, \mathsf{OStmtOut})\)
where:
\(\mathsf{OStmtIn}: \iota _{\mathsf{si}} \to \mathsf{Type}\) are the input oracle statement types with oracle interfaces
\(\mathsf{OStmtOut}: \iota _{\mathsf{so}} \to \mathsf{Type}\) are the output oracle statement types
The oracle reduction allows the verifier to access prover messages and oracle statements only through specified oracle interfaces, enabling more flexible and composable protocol designs.
The execution of an interactive oracle reduction runs the oracle prover on the statement together with the oracle statement data, and then the oracle verifier:
Here \(\mathsf{prvStmtOut}\) and \(\mathsf{stmtOut}\) each pair an output statement with output oracle data. The execution fails when the verifier rejects, and it returns no query logs.
The logged variant \(\mathsf{OracleReduction}.\mathsf{runWithLog}\) runs the prover and the verifier under the logging oracle. On acceptance it returns the same two components, followed by the log of the prover’s queries (to the shared oracle and the challenge oracle) and the log of the verifier’s queries to the shared oracle. Extractors read these logs.
An oracle algorithm is an OracleComp computation. A query handler interprets its calls, possibly maintaining a lazy table as in Definition 1. Logging additionally records each query and answer in order, including repetitions; Lean uses such logs for extraction and backtracking. We write
to mean: run \(\mathcal{A}\) with the specified oracle handler, return \(y\), and record the ordered query-answer log \(T\), including repeated queries. The log is distinct from the final cache.
An oracle verifier \(\mathcal{V}\) consists of the following components:
Verification Logic: A function
\begin{equation*} \mathsf{verify} : \mathsf{StmtIn}\to \mathsf{pSpec}.\mathsf{Challenges}\to \mathsf{OptionT}(\mathsf{OracleComp}(\mathsf{oSpec}\mathrel {++_\mathsf {o}} ([\mathsf{OStmtIn}]_\mathsf {o} \mathrel {++_\mathsf {o}} [\mathsf{pSpec}.\mathsf{Message}]_\mathsf {o})), \mathsf{StmtOut}) \end{equation*}that takes the input statement and verifier challenges, and performs oracle queries to the shared oracle, input oracle statements, and prover messages to produce an output statement or reject. As for a verifier, rejection is the \(\mathsf{none}\) result of the \(\mathsf{OptionT}\) layer.
Output Oracle Representation: one of the following two forms.
Embedding. An injective function
\begin{equation*} \mathsf{embed} : \iota _{\mathsf{so}} \hookrightarrow \iota _{\mathsf{si}} \oplus \mathsf{pSpec}.\mathsf{MessageIdx}\end{equation*}that selects, for each output oracle statement, an input oracle statement or a prover message, together with a proof
\begin{equation*} \mathsf{hEq} : \forall i : \iota _{\mathsf{so}}, \mathsf{OStmtOut}(i) = \begin{cases} \mathsf{OStmtIn}(j) & \text{if } \mathsf{embed}(i) = \mathsf{inl}(j) \\ \mathsf{pSpec}.\mathsf{Message}(k) & \text{if } \mathsf{embed}(i) = \mathsf{inr}(k) \end{cases}\end{equation*}that the types match, and a proof that the oracle interfaces match.
Virtual simulation. A map \(\mathsf{materializeOutput}\) from the challenges, the input oracle data and the messages to the output oracle data; a query implementation \(\mathsf{simulateOutputQuery}\) answering each output-oracle query by queries to the input oracle statements and prover messages; and a proof that, on actual data, the simulated answer equals the answer computed from the materialized output.
The execution of an oracle verifier is the execution of its converted verifier:
It answers queries to the input oracle statements and prover messages from the actual data, runs the verification logic, and on acceptance returns the pair of the output statement and the materialized output oracle data. Its type is \(\mathsf{OptionT}(\mathsf{OracleComp}(\mathsf{oSpec}), \mathsf{StmtOut}\times (\forall i, \mathsf{OStmtOut}(i)))\).
An oracle verifier can be converted to a standard verifier through a natural simulation process. The key insight is that while an oracle verifier only has oracle access to certain data (input oracle statements and prover messages), a standard verifier can be given the actual underlying data directly.
The conversion works as follows: when the oracle verifier needs to make an oracle query to some data, the converted verifier can respond to this query immediately using the actual underlying data it possesses. This is accomplished through the OracleInterface type class, which specifies for each data type how to respond to queries given the underlying data.
Specifically, given an oracle verifier \(\mathcal{V}_{\text{oracle}}\):
The converted verifier \(\mathcal{V}_{\text{oracle}}.\mathsf{toVerifier}\) takes as input both the statement and the actual underlying data for all oracle statements
When \(\mathcal{V}_{\text{oracle}}\) attempts to query an oracle statement or prover message, the converted verifier uses the corresponding OracleInterface instance to compute the response from the actual data
The output oracle statements are the materialized output: in the embedding case, the selected input oracle statements and prover messages; in the virtual case, the value of \(\mathsf{materializeOutput}\) on the challenges, input oracle data and messages
If the oracle verifier rejects, so does the converted verifier
A protocol specification for an \(n\)-message (oracle) reduction, is an element of the following type:
In the above, \(\mathsf{Direction}:= \{ \mathsf{P \! \! \rightarrow \! \! V}, \mathsf{V \! \! \rightarrow \! \! P}\} \) is the type of possible directions of messages, and \(\mathsf{Fin}\ n := \{ i : \mathbb {N}\mathbin {/\! /}i {\lt} n \} \) is the type of all natural numbers less than \(n\).
In other words, for each step \(i\) of interaction, the protocol specification describes the direction of the message sent in that step, i.e., whether it is from the prover or from the verifier. It also describes the type of that message.
In the oracle setting, we also expect an oracle interface for each message from the prover to the verifier.
Given two protocol specifications \(\mathsf{pSpec}_1 : \mathsf{ProtocolSpec}\ m\) and \(\mathsf{pSpec}_2 : \mathsf{ProtocolSpec}\ n\), their sequential composition is:
Given a protocol spec \(\mathsf{pSpec}: \mathsf{ProtocolSpec}\ n\), we define:
\(\mathsf{pSpec}.\mathsf{Dir}\ i := (\mathsf{pSpec}\ i).\mathsf{fst}\) extracts the direction of the \(i\)-th message.
\(\mathsf{pSpec}.\mathsf{Type}\ i := (\mathsf{pSpec}\ i).\mathsf{snd}\) extracts the type of the \(i\)-th message.
\(\mathsf{pSpec}.\mathsf{MessageIdx}:= \{ i : \mathsf{Fin}\ n \mathbin {/\! /}\mathsf{pSpec}.\mathsf{Dir}\ i = \mathsf{P \! \! \rightarrow \! \! V}\} \) is the subtype of indices corresponding to prover messages.
\(\mathsf{pSpec}.\mathsf{ChallengeIdx}:= \{ i : \mathsf{Fin}\ n \mathbin {/\! /}\mathsf{pSpec}.\mathsf{Dir}\ i = \mathsf{V \! \! \rightarrow \! \! P}\} \) is the subtype of indices corresponding to verifier challenges.
\(\mathsf{pSpec}.\mathsf{Message}\ i := (i : \mathsf{pSpec}.\mathsf{MessageIdx}) \to \mathsf{pSpec}.\mathsf{Type}\ i.\mathsf{val}\) is an indexed family of message types in the protocol.
\(\mathsf{pSpec}.\mathsf{Challenge}\ i := (i : \mathsf{pSpec}.\mathsf{ChallengeIdx}) \to \mathsf{pSpec}.\mathsf{Type}\ i.\mathsf{val}\) is an indexed family of challenge types in the protocol.
Given a family of protocol specifications \(\mathsf{pSpec}: \forall i : \mathsf{Fin}(m+1), \mathsf{ProtocolSpec}\ (n\ i)\), their composition is:
A prover \(\mathcal{P}\) in a reduction consists of the following components:
Prover State: A family of types \(\mathsf{PrvState} : \mathsf{Fin}(n+1) \to \mathsf{Type}\) representing the prover’s internal state at each round of the protocol.
Input Processing: A function
\begin{equation*} \mathsf{input} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{PrvState}(0) \end{equation*}that initializes the prover’s state from the input statement and witness.
Message Sending: For each message index \(i : \mathsf{pSpec}.\mathsf{MessageIdx}\), a function
\begin{equation*} \mathsf{sendMessage}_i : \mathsf{PrvState}(i.\mathsf{val}.\mathsf{castSucc}) \to \mathsf{OracleComp}(\mathsf{oSpec}, \mathsf{pSpec}.\mathsf{Message}(i) \times \mathsf{PrvState}(i.\mathsf{val}.\mathsf{succ})) \end{equation*}that generates the message and updates the prover’s state.
Challenge Processing: For each challenge index \(i : \mathsf{pSpec}.\mathsf{ChallengeIdx}\), a function
\begin{equation*} \mathsf{receiveChallenge}_i : \mathsf{PrvState}(i.\mathsf{val}.\mathsf{castSucc}) \to \mathsf{OracleComp}(\mathsf{oSpec}, \mathsf{pSpec}.\mathsf{Challenge}(i) \to \mathsf{PrvState}(i.\mathsf{val}.\mathsf{succ})) \end{equation*}Before seeing the challenge, the prover runs an oracle computation that returns a state-update function; applying it to the challenge gives the next state.
Output Generation: A function
\begin{equation*} \mathsf{output} : \mathsf{PrvState}(\mathsf{Fin}.\mathsf{last}(n)) \to \mathsf{OracleComp}(\mathsf{oSpec}, \mathsf{StmtOut}\times \mathsf{WitOut}) \end{equation*}that produces the final output statement and witness from the prover’s final state. It may query the shared oracle.
Given provers \(P_1 : \mathsf{Prover}\ \mathsf{pSpec}_1\ \mathsf{oSpec}\ \mathsf{StmtIn}_1\ \mathsf{WitIn}_1\ \mathsf{StmtOut}_1\ \mathsf{WitOut}_1\) and \(P_2 : \mathsf{Prover}\ \mathsf{pSpec}_2\ \mathsf{oSpec}\ \mathsf{StmtOut}_1\ \mathsf{WitOut}_1\ \mathsf{StmtOut}_2\ \mathsf{WitOut}_2\), their sequential composition is:
The composed prover works by:
Running \(P_1\) on the input context to produce an intermediate context
Using this intermediate context as input to \(P_2\)
Outputting the final context from \(P_2\)
Equality with two separate prover runs requires an execution condition such as the one in Theorem 80; output queries can otherwise cross an opening challenge.
Given an interactive prover \(P\) for \(\mathsf{pSpec}\), the transformation produces a non-interactive prover
Its state at round \(0\) pairs the statement with \(P\)’s initial state; afterwards it is \(P\)’s final state. Its single message is the vector of all of \(P\)’s messages, computed by \(\mathsf{runToRoundFS}\) up to the last round. It receives no challenges and outputs through \(P\)’s output function.
Given the prover messages so far, the input statement and the prover state before round \(j\), \(\mathsf{processRoundFS}\ j\) computes the same data after round \(j\):
If \(j\) is a challenge round, it queries the challenge oracle at \(\langle j, (x, m) \rangle \), where \(x\) is the statement and \(m\) the messages so far, and passes the answer to the prover’s \(\mathsf{receiveChallenge}\).
If \(j\) is a message round, it runs the prover’s \(\mathsf{sendMessage}\) and appends the message.
Only prover messages are accumulated; challenges are not stored.
The complete execution of a prover is defined as:
Returns the complete transcript, the output statement and the output witness, as an oracle computation that may also query the challenge oracle.
The execution of a prover up to round \(i : \mathsf{Fin}(n+1)\) is defined inductively:
where \(\mathsf{processRound}\) handles individual rounds by either:
Verifier Challenge (\(\mathsf{pSpec}.\mathsf{dir}(j) = \mathsf{V\_ to\_ P}\)): Query for a challenge and update prover state
Prover Message (\(\mathsf{pSpec}.\mathsf{dir}(j) = \mathsf{P\_ to\_ V}\)): Generate message via \(\mathsf{sendMessage}\) and update state
Returns the transcript up to round \(i\) and the prover’s state after round \(i\).
\(\mathsf{runToRoundFS}\ i\ \mathsf{stmt}\ \mathsf{prover}\ \mathsf{state}\) starts from the empty message prefix, the statement and the prover state at round \(0\), and applies \(\mathsf{processRoundFS}\) to rounds \(0, \ldots , i - 1\). It returns the messages up to round \(i\), the statement and the prover state at round \(i\).
For input statement \(\mathbb {x}\) and witness \(\mathbb {w}\), write \(\boldsymbol {\alpha }=(\alpha _{i})_{i\in [\mathsf{k}]}\) and \(\boldsymbol {\rho }=(\rho _{i})_{i\in [\mathsf{k}]}\) for the complete prover- and verifier-message tuples in the alternating schedule with \(\mathsf{k}\) rounds. An ordinary public-coin IP consists of:
a round count \(\mathsf{k}\);
prover message spaces \(\mathcal M_{\mathbf{P},i}\) and verifier message spaces \(\mathcal M_{\mathbf{V},i}\) for each round;
a probabilistic, possibly stateful prover transition that produces the next prover message from the instance, witness, previous prover state, and previous verifier message;
a deterministic verifier predicate \(\mathbf{V}(\mathbb {x},\boldsymbol {\alpha },\boldsymbol {\rho })\in \{ 0,1\} \).
The public-coin property is represented by sampling verifier messages uniformly and independently from their round message spaces. The predicate \(\mathbf{V}\) is the final decision procedure, not the source of these messages. The public-coin view below records the message exchange without evaluating that predicate. The prover uses private randomness, and the IP has no additional oracle access. The Lean specialization uses a Boolean verifier with an empty external-oracle interface; an implementation that returns no verifier result is treated as rejecting. The general reduction interfaces remain available internally.
Given intermediate witness types \(W_0, \ldots , W_n\), a round-by-round extractor extracts the input witness backward from the output witness, one round at a time. It consists of three functions, each also given the input statement \(\mathbb {x}_{\text{in}}\):
\(\mathsf{extractOut}\) maps a full transcript and an output witness to an intermediate witness in \(W_n\);
\(\mathsf{extractMid}\), for each round \(m {\lt} n\), maps the transcript up to round \(m+1\) and an intermediate witness in \(W_{m+1}\) to one in \(W_m\);
\(\mathsf{extractIn}\) maps an intermediate witness in \(W_0\) to an input witness.
The extractor reads no query log.
An interactive reduction for protocol specification \(\mathsf{pSpec}: \mathsf{ProtocolSpec}(n)\) and oracle specification \(\mathsf{oSpec}\) consists of:
A prover \(\mathcal{P}: \mathsf{Prover}(\mathsf{pSpec}, \mathsf{oSpec}, \mathsf{StmtIn}, \mathsf{WitIn}, \mathsf{StmtOut}, \mathsf{WitOut})\)
A verifier \(\mathcal{V}: \mathsf{Verifier}(\mathsf{pSpec}, \mathsf{oSpec}, \mathsf{StmtIn}, \mathsf{StmtOut})\)
The reduction establishes a relationship between input relations on \((\mathsf{StmtIn}, \mathsf{WitIn})\) and output relations on \((\mathsf{StmtOut}, \mathsf{WitOut})\) through the interactive protocol defined by \(\mathsf{pSpec}\).
Sequential composition of reductions combines the corresponding provers and verifiers:
Given an interactive reduction \(R\) for \(\mathsf{pSpec}\), its transform
applies the transformation to the prover and to the verifier of \(R\).
The execution of an interactive reduction consists of running the prover followed by the verifier:
Returns the prover’s result (the complete transcript, output statement and output witness) and the verifier’s output statement. The execution is an optional oracle computation: it fails when the verifier rejects.
A rewinding extractor consists of:
An extractor state type
Simulation oracles for challenges and oracle queries for the prover
A function that runs the extractor with the prover’s oracle interface, allowing for calling the prover multiple times
This allows the extractor to rewind the prover to earlier states and try different challenges. Only the interface is defined; no knowledge-soundness notion uses it yet.
A protocol with verifier \(\mathcal{V}\) satisfies round-by-round knowledge soundness with respect to input relation \(\mathcal{R}_{\mathrm{in}}\), output relation \(\mathcal{R}_{\mathrm{out}}\), and error function \(\epsilon : \text{ChallengeIdx} \to \mathbb {R}_{\geq 0}\) if:
there exist a family of intermediate witness types, a round-by-round extractor, and a knowledge state function for the verifier and the input/output relations, such that
for all initial statements,
for all challenge rounds \(i\),
for all transcript prefixes \(T\) up to round \(i\),
the probability, over the next challenge \(c\) chosen uniformly at random, that some intermediate witness \(\mathbb {w}\) satisfies:
the knowledge state function is true for \(\mathbb {w}\) at \(T\) extended by \(c\), and
it is false at \(T\) for the witness extracted back from \(\mathbb {w}\)
is at most \(\epsilon (i)\). As for round-by-round soundness, the bound holds at every fixed transcript prefix. As in Remark 32, the extractor is unconstrained.
\(\mathsf{rbrKnowledgeSoundnessWith}\) is the condition of Definition 38 for one given family of intermediate witness types, round-by-round extractor and knowledge state function. These objects stay visible in the statement, so downstream composition and extraction theorems can name them. Round-by-round knowledge soundness is its existential closure.
A protocol with verifier \(\mathcal{V}\) satisfies round-by-round soundness with respect to input language \(\mathcal{L}_{\mathrm{in}}\), output language \(\mathcal{L}_{\mathrm{out}}\), and error function \(\epsilon : \text{ChallengeIdx} \to \mathbb {R}_{\geq 0}\) if:
there exists a state function for the verifier and the input/output languages, such that
for all initial statements \(\mathbb {x}_{\text{in}} \notin \mathcal{L}_{\mathrm{in}}\),
for all challenge rounds \(i\),
for all transcript prefixes \(T\) up to round \(i\),
the probability, over the next challenge \(c\) chosen uniformly at random, that:
the state function is false at \(T\), and
the state function is true at \(T\) extended by \(c\)
is at most \(\epsilon (i)\). This is the formulation of [ 12 ] and [ 1 ] .
A simulator consists of:
Oracle simulation capabilities for the shared oracles
A prover simulation function that takes an input statement and produces a transcript
The simulator should have programming access to the shared oracles and be able to generate transcripts that are indistinguishable from real protocol executions.
A reduction satisfies soundness with error \(\epsilon \geq 0\) and with respect to input language \(\mathcal{L}_{\mathrm{in}}\subseteq \text{Statement}_{\text{in}}\) and output language \(\mathcal{L}_{\mathrm{out}}\subseteq \text{Statement}_{\text{out}}\) if:
for all (malicious) provers with arbitrary types for witness types,
for all arbitrary input witness,
for all input statement \(\mathbb {x}_{\text{in}} \notin \mathcal{L}_{\mathrm{in}}\),
the execution between the prover and the honest verifier will result in an output statement \(\mathbb {x}_{\text{out}} \in \mathcal{L}_{\mathrm{out}}\) with probability at most \(\epsilon \).
A restoration key for round \(j\) consists of an input, the prover messages of rounds \(1, \ldots , j\), and a salt for each of those rounds. Earlier verifier challenges are not part of the key. The challenge oracle answers each key with a challenge of that round, and is implemented as a lazily sampled random oracle starting from an empty cache.
A state-restoration adversary is an oracle computation against this challenge oracle that makes at most \(Q\) queries in total and returns an input \(z\), a prover message and salt for every round, and an output witness \(\mathbb {w}\). The experiment then completes the selected transcript by querying the same oracle once per round (so at most \(Q + k\) queries are made in all), and runs the verifier on the completed path. In the closed-oracle variant, the verifier returns either a rejection or an oracle claim, whose behavior is observed through the accumulated oracle handler of the same path.
Fix a family of salt spaces \(\mathsf{Salt}(s,n)\), public-coin IP verifiers \(\mathbf{V}\), and verifier message function distributions \(\mathcal{D}_{\mathrm{sr}}(s,n)\), with a common relation \(\mathcal{R}\subseteq \mathcal X\times \mathcal W\) and size function \(|\cdot |\). These public parameters may determine the protocol and message spaces and are supplied to all algorithms; we suppress them in algorithm calls. The verifier has state-restoration knowledge-soundness error \(\kappa _{\mathrm{IP}}^{\mathrm{sr}}:\mathbb N^3\to [0,\infty ]\) if there exists a probabilistic straightline knowledge extractor \(\mathbf E^{\mathrm{sr}}\) such that, for every salt-size parameter \(s\in \mathbb N\), instance-size bound \(n\in \mathbb N\), move budget \(t\in \mathbb N\) and every \(t\)-move malicious SR prover \(\widetilde{\mathbf P}^{\mathrm{sr}}\),
The extractor receives the original statement \(\mathbb {x}\), the chosen salt \(\tau \) separately, all prover messages \(\boldsymbol {\alpha }\), all verifier messages \(\boldsymbol {\rho }\), and the prover’s move–response trace \(\mathsf{tr}^{\mathrm{sr}}\) from Definition 67. It returns a witness for \(\mathbb {x}\) or \(\bot \), and may use fresh private randomness; by convention, \((\mathbb {x},\bot )\notin \mathcal{R}\).
One extractor family is chosen before all \(s,n,t\) and adversaries. It may use the public salt-size and instance-size parameters, but not the move budget. The size restriction applies to the entire failure event, including missing witnesses. This is the information-theoretic straightline definition with the book’s full-transcript extractor interface; no polynomial-time requirement is imposed, so a theorem that claims the full paper notion also needs a running-time bound for the same named extractor. [ 15 , Definition 3.14 ] withholds the verifier messages \(\boldsymbol {\rho }\) from the straightline extractor, so an extractor for that definition, which ignores them, is also one for this definition, but not conversely. The single-salt game specializes the paper’s vector of per-round salts to a salt supplied from the first round, with no fresh later salts.
Let \(\mathrm{IP}\) be a public-coin IP with \(\mathsf{k}\) rounds, each consisting of a prover message followed by a verifier message. Let \(\mathsf{Salt}\) be the salt space, and let \(\boldsymbol {f}=(f_{i})_{i\in [\mathsf{k}]}\) be the functions used to obtain verifier messages. An IP state-restoration prover \(\widetilde{\mathbf P}^{\mathrm{sr}}\) is a probabilistic algorithm that makes moves as follows:
The prover outputs \((i,\mathbb {x},\tau ,(\alpha _1,\ldots ,\alpha _{i}))\), where \(\mathbb {x}\) is a statement, \(\tau \in \mathsf{Salt}\) is a chosen salt, and \((\alpha _1,\ldots ,\alpha _{i})\) are prover messages.
The game sets \(\rho _{i}:=f_{i}(\mathbb {x},\tau ,\alpha _1,\ldots ,\alpha _{i})\).
The game sends \(\rho _{i}\) to the prover.
The prover repeats these steps until it decides to stop, then outputs \((\mathbb {x},\tau ,(\alpha _1,\ldots ,\alpha _{\mathsf{k}}))\). We say that the prover is \(t\)-move if it stops after at most \(t\) moves (Definition 63). The same prover interface is used for soundness and knowledge soundness. The implementation supports arbitrary protocol schedules; the displays use alternating rounds for readability.
A (deterministic) state function for a verifier, with respect to input language \(\mathcal{L}_{\mathrm{in}}\) and output language \(\mathcal{L}_{\mathrm{out}}\), consists of a function that maps partial transcripts to boolean values, satisfying:
For all input statements not in the language, the state function is false for the empty transcript
If the state function is false for a partial transcript, and the next message is from the prover to the verifier, then the state function is also false for the new partial transcript regardless of the message
If the state function is false for a full transcript, the verifier will not output a statement in the output language
The lifted state function holds when the outer input statement is in its language or the inner state function holds at the projected statement.
The lifted knowledge state function carries a pair of witnesses: the outer output witness and the current inner witness. It holds when the inner knowledge state function holds at the projected statement for the carried inner witness, or when every inner input witness lifts, using the carried outer output witness and the inverse witness lens, to a valid outer input witness. The second disjunct is the shortcut of the knowledge-soundness lens condition; it is not membership of the outer statement in a language.
A statement lens between outer context types \((\mathsf{StmtIn}_{\mathsf{outer}}, \mathsf{StmtOut}_{\mathsf{outer}})\) and inner context types \((\mathsf{StmtIn}_{\mathsf{inner}}, \mathsf{StmtOut}_{\mathsf{inner}})\) consists of:
\(\mathsf{projStmt}: \mathsf{StmtIn}_{\mathsf{outer}} \to \mathsf{StmtIn}_{\mathsf{inner}}\) (projection to inner context)
\(\mathsf{liftStmt}: \mathsf{StmtIn}_{\mathsf{outer}} \to \mathsf{StmtOut}_{\mathsf{inner}} \to \mathsf{StmtOut}_{\mathsf{outer}}\) (lifting back to outer context)
A statement lens preserves soundness if projection maps statements outside the outer input language to statements outside the inner input language, and lifting maps an outer input outside its language together with a compatible inner output outside its language to an outer output outside its language. The same condition serves ordinary and round-by-round soundness.
A straightline extractor takes in:
the initial statement \(\mathbb {x}_{\text{in}}\),
the output witness \(\mathbb {w}_{\text{out}}\),
the IOR transcript \(T\),
the query logs from the prover and verifier
and returns a corresponding initial witness \(\mathbb {w}_{\text{in}}\). It runs once, after the execution, without rewinding the prover. It may query the shared oracle and may fail.
Note that the extractor does not need to take in the output statement, since it can be derived via re-running the verifier on the initial statement, the transcript, and the verifier’s query log.
The type bounds neither the running time nor the computability of the extractor. This form of extractor suffices for proving knowledge soundness of most hash-based IOPs.
Given protocol specification \(\mathsf{pSpec}: \mathsf{ProtocolSpec}\ n\), we define:
A transcript up to round \(k : \mathsf{Fin}\ (n + 1)\) is an element of type
\begin{equation*} \mathsf{Transcript}\ k\ \mathsf{pSpec}:= (i : \mathsf{Fin}\ k) \to \mathsf{pSpec}.\mathsf{Type}\ (\uparrow i : \mathsf{Fin}\ n) \end{equation*}where \(\uparrow i : \mathsf{Fin}\ n\) denotes casting \(i : \mathsf{Fin}\ k\) to \(\mathsf{Fin}\ n\) (valid since \(k \leq n + 1\)).
A full transcript is \(\mathsf{FullTranscript}\ \mathsf{pSpec}:= (i : \mathsf{Fin}\ n) \to \mathsf{pSpec}.\mathsf{Type}\ i\).
The type of all messages from prover to verifier is
\begin{equation*} \mathsf{pSpec}.\mathsf{Messages}:= \prod _{i : \mathsf{pSpec}.\mathsf{MessageIdx}} \mathsf{pSpec}.\mathsf{Message}\ i \end{equation*}The type of all challenges from verifier to prover is
\begin{equation*} \mathsf{pSpec}.\mathsf{Challenges}:= \prod _{i : \mathsf{pSpec}.\mathsf{ChallengeIdx}} \mathsf{pSpec}.\mathsf{Challenge}\ i \end{equation*}
Given full transcripts \(T_1 : \mathsf{FullTranscript}\ \mathsf{pSpec}_1\) and \(T_2 : \mathsf{FullTranscript}\ \mathsf{pSpec}_2\), their sequential composition is:
A verifier is tree special sound for a shape \(S\) and relations \(\mathcal{R}_{\mathrm{in}}, \mathcal{R}_{\mathrm{out}}\) if there is a tree-based extractor such that, for every input statement and every challenge tree that satisfies \(S\) and on which the verifier accepts every leaf, the extractor returns a valid input witness from every valid witnessing of the leaves. \((k_i)\)-special soundness is the instance in which the \(k_i\) sibling challenges at each round are pairwise distinct. Coordinate-wise special soundness [ 21 ] is the instance with arity \(\ell _i(k_i - 1) + 1\) and the coordinate-wise sibling condition.
A verifier \(\mathcal{V}\) in a reduction is specified by a single function:
This function takes the input statement and the complete transcript of the protocol interaction, and performs an oracle computation (potentially querying the shared oracle \(\mathsf{oSpec}\)) that either produces an output statement or fails. Failure, the \(\mathsf{none}\) result of the \(\mathsf{OptionT}\) layer, is how the verifier rejects.
The verifier is assumed to be public-coin, meaning it only sends uniformly random challenges and uses no other randomness beyond what is provided by the shared oracle.
Given verifiers \(V_1 : \mathsf{Verifier}\ \mathsf{pSpec}_1\ \mathsf{oSpec}\ \mathsf{StmtIn}_1\ \mathsf{StmtOut}_1\) and \(V_2 : \mathsf{Verifier}\ \mathsf{pSpec}_2\ \mathsf{oSpec}\ \mathsf{StmtOut}_1\ \mathsf{StmtOut}_2\), their sequential composition is:
The composed verifier first runs \(V_1\) on the first part of the transcript, then runs \(V_2\) on the second part using the intermediate statement from \(V_1\).
Given an interactive verifier \(V\) for \(\mathsf{pSpec}\), the transformation produces a non-interactive verifier
On a statement and a proof consisting of all prover messages, it derives the full transcript with \(\mathsf{deriveTranscriptFS}\) and runs \(V\)’s verification on it.
The execution of a verifier is simply the application of its verification function:
This takes the input statement and full transcript, and returns the output statement, or rejects, via an optional oracle computation.
A witness lens, used by the prover, consists of:
\(\mathsf{projWit}: \mathsf{StmtIn}_{\mathsf{outer}} \times \mathsf{WitIn}_{\mathsf{outer}} \to \mathsf{WitIn}_{\mathsf{inner}}\) (projection to inner context)
\(\mathsf{liftWit}: \mathsf{StmtIn}_{\mathsf{outer}} \times \mathsf{WitIn}_{\mathsf{outer}} \to \mathsf{StmtOut}_{\mathsf{inner}} \times \mathsf{WitOut}_{\mathsf{inner}} \to \mathsf{WitOut}_{\mathsf{outer}}\) (lifting back to outer context)
The statements are part of both maps because the prover sees its full context.
Let \(R_1\) and \(R_2\) have compatible input, intermediate, and output relations. Assume both verifiers are pure and total: each returns a deterministic function of its input statement and transcript, without oracle queries or rejection. Assume also that at least one of the following execution conditions holds:
the first prover’s output is a pure function of its final internal state;
the second protocol is empty;
the second protocol starts with a prover message.
Suppose \(R_1\) is complete with error \(\epsilon _1\) from \(\mu \), and for every \(s \in \Sigma \), \(R_2\) is complete with error \(\epsilon _2\) when initialized deterministically at \(s\). Then \(R_1.\mathsf{append}\ R_2\) is complete from \(\mu \) with error \(\epsilon _1 + \epsilon _2\).
Let \(R_0, \ldots , R_{k-1}\) be a finite chain with compatible consecutive relations. Every prover has pure output and every verifier is pure and total. For each \(i\) and each \(s \in \Sigma \), assume \(R_i\) is complete with error \(\epsilon _i\) from the deterministic initial state \(s\). Then the chain is complete from any initial distribution \(\mu \), with error \(\sum _{i=0}^{k-1} \epsilon _i\).
If an interactive reduction \(R\) has perfect completeness, its Fiat–Shamir transform has perfect completeness for every fixed challenge table.
If \(R\) has completeness error \(\epsilon \), its Fiat–Shamir transform has completeness error \(\epsilon \) when the challenge oracle is a lazily sampled random oracle shared by prover and verifier, starting from an empty cache. This needs only decidable equality of the oracle’s query type. Both claims use the same input and output relations as \(R\).
Suppose \(V_1\) is guarded. Suppose there are fixed pure extractors \(e_1\) and \(e_2\), each a function of the input statement, the transcript and the output witness, such that \(e_1\) satisfies the knowledge game of \(V_1\) with error \(\epsilon _1\) from \(\mu \), and this same \(e_2\) satisfies the knowledge game of \(V_2\) with error \(\epsilon _2\) from every deterministic shared state. Then \(V_1.\mathsf{append}\ V_2\) is knowledge sound from \(\mu \) with error \(\epsilon _1 + \epsilon _2\), with the extractor that runs the second extractor and then the first.
Let \(V_0, \ldots , V_{k-1}\) be guarded verifiers. For each component \(i\), choose one pure extractor \(e_i\), a function of the input statement, the transcript and the output witness, that satisfies the knowledge game of \(V_i\) with error \(\epsilon _i\) from every deterministic initial shared state. Then their sequential composition is knowledge sound from any initial distribution with error \(\sum _{i=0}^{k-1} \epsilon _i\), with the extractors folded backwards over the chain.
If a reduction is complete with error \(\epsilon \) and the context lens is completeness-preserving, then the lifted reduction is complete with error \(\epsilon \). The same holds for perfect completeness.
If a verifier is knowledge sound with error \(\epsilon \) and the extractor lens is knowledge-soundness-preserving, then the verifier lifted along its statement lens is knowledge sound with error \(\epsilon \). The inner output statement and inner input witness types must be inhabited: when the inner extractor fails, the lifted extractor lifts a default inner witness. That default is a valid outer input witness when the shortcut disjunct of the lens condition holds; failure in the other branch is charged to the inner knowledge error.
If a verifier is round-by-round knowledge sound with error \(\epsilon \) and the extractor lens is knowledge-soundness-preserving, then the lifted verifier is round-by-round knowledge sound with the same error at every challenge. The named form keeps the lifted extractor and knowledge state function explicit.
Under the pure-verifier and execution hypotheses of Theorem 80, suppose \(R_1\) is perfectly complete from \(\mu \) and \(R_2\) is perfectly complete from every deterministic shared state. Then \(R_1.\mathsf{append}\ R_2\) is perfectly complete from \(\mu \).
Suppose \(V_1\) is guarded: it returns a deterministic verdict when its check passes and aborts otherwise. Suppose \(V_1\) and \(V_2\) are round-by-round knowledge sound for every fixed transcript prefix, with intermediate relation \(R_2\) shared between them. Then \(V_1.\mathsf{append}\ V_2\) is round-by-round knowledge sound for every fixed transcript prefix, and each challenge keeps its component’s error. The composed extractor runs the second extractor from the first verdict and then the first extractor. The composed knowledge state is the first one up to the seam, and after it is the first check together with the second knowledge state at the first verdict. At the seam, the second knowledge state at round \(0\) places the verdict in \(R_2\), and a passing check makes that verdict a positive-probability output of \(V_1\).
If every verifier of a finite chain is guarded and round-by-round knowledge sound for every fixed transcript prefix between consecutive relations, so is the chain. Each combined challenge keeps the error of the component challenge it corresponds to. The proof iterates Theorem 84.
For a verifier with a guarded form, round-by-round knowledge soundness with error function \(\epsilon \) implies knowledge soundness with error \(\sum _i \epsilon (i)\), where the sum is over all challenge rounds \(i\). The extractor folds the round-by-round extractor backward along the transcript.
Round-by-round knowledge soundness for relations \(\mathcal{R}_{\mathrm{in}}, \mathcal{R}_{\mathrm{out}}\) with error function \(\epsilon \) implies round-by-round soundness for the induced languages (the statements that have some valid witness) with the same error function \(\epsilon \).
If the input witness type is nonempty, round-by-round soundness of the induced languages with error function \(\epsilon \) is equivalent to round-by-round knowledge soundness with the same \(\epsilon \). More precisely, this equivalence holds for all relations and all error functions if and only if the input witness type is nonempty, or no input statement, full transcript and output witness exist together. The condition depends neither on the verifier nor on the error. The equivalence uses an unconstrained round-by-round extractor.
Suppose \(V_1\) is guarded and sound with error \(\epsilon _1\) from the initial distribution \(\mu \), and \(V_2\) is sound with error \(\epsilon _2\) from every deterministic shared state. Then \(V_1.\mathsf{append}\ V_2\) is sound from \(\mu \) with error \(\epsilon _1 + \epsilon _2\). The second verifier needs no guard. Some restriction is necessary: a later verifier that queries the shared oracle can be steered by the prover’s queries in an earlier stage. The every-state hypothesis is needed because the intermediate statement is chosen after oracle answers; it holds for lazily sampled oracles and fails for states that hide a secret from the prover.
Fix a set \(Z\) of permitted inputs and an error \(\epsilon \). Suppose that, for every \(z \in Z\), the interaction-layer round-by-round extractor for \(z\) is prover preserving and locally bounded with error \(\epsilon \) at every round. Suppose also that its input knowledge state is the input relation \(\mathcal{R}_{\mathrm{in}}(z, \cdot )\), and that its terminal knowledge state on every completed path is the output relation \(\mathcal{R}_{\mathrm{out}}\) of the verifier’s output on that path, after a named equivalence between the adversary’s witness type and the terminal witness type.
Then for every state-restoration adversary making at most \(Q\) queries, the probability that the selected input \(z\) lies in \(Z\), the output witness \(\mathbb {w}\) is valid for the verifier’s actual output, and the input witness extracted backward from \(\mathbb {w}\) along the completed path is invalid for \(\mathcal{R}_{\mathrm{in}}(z, \cdot )\), is at most
The extractor is the named backward map, not an existentially chosen witness. The same bound holds for the closed-oracle variant, where a rejection is never a valid output, and, with private coins of the adversary sampled before the game, for both variants.
- Interaction.StateRestoration.stateRestoration_knowledge_soundness
- Interaction.StateRestoration.stateRestoration_oracle_knowledge_soundness
- Interaction.StateRestoration.stateRestoration_knowledge_soundness_privateCoins
- Interaction.StateRestoration.stateRestoration_oracle_knowledge_soundness_privateCoins
Under the hypotheses of Theorem 61 for the closed-oracle variant, but with local error \(\epsilon _j\) at round \(j\), the bound becomes
For a measured knowledge certificate whose challenge schedule has these errors and whose stage budgets are at most \(B\) on every input in \(Z\), the same bound holds together with the stage budget \(B\) for the same named extractor.