Formally Verified Arguments of Knowledge in Lean

3 Proof Systems

3.1 Simple Oracle Reductions

We start by introducing a number of simple oracle reductions that serve as fundamental building blocks for more complex proof systems. These components can be composed together to construct larger protocols.

3.1.1 Trivial Reduction

The simplest possible oracle reduction is one that performs no computation at all. Both the prover and verifier simply pass their inputs through unchanged. While seemingly trivial, this reduction serves as an important identity element for composition and provides a base case for lifting and lens operations.

Definition 119 DoNothing Reduction
✓
#

The DoNothing reduction is a zero-round protocol with the following components:

  • Protocol specification: \(\mathsf{pSpec}:= []\) (empty protocol, no messages exchanged)

  • Prover: Simply stores the input statement and witness, and outputs them unchanged

  • Verifier: Takes the input statement and outputs it directly

  • Input relation: Any relation \(R_{\mathsf{in}} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{Prop}\)

  • Output relation: The same relation \(R_{\mathsf{out}} := R_{\mathsf{in}}\)

Theorem 120 DoNothing Perfect Completeness
✓

The DoNothing reduction satisfies perfect completeness for any input relation.

Theorem 121 DoNothing Round-by-Round Knowledge Soundness
✓

The DoNothing verifier and oracle verifier are round-by-round knowledge sound with error \(0\) for any relation.

The oracle version of DoNothing handles oracle statements by passing them through unchanged as well. The prover receives both non-oracle and oracle statements as input, and outputs them in the same form to the verifier.

3.1.2 Sending the Witness

A fundamental building block in many proof systems is the ability for the prover to transmit witness information to the verifier. The SendWitness reduction provides this functionality in both direct and oracle settings.

Definition 122 SendWitness Reduction
✓
#

The SendWitness reduction is a one-round protocol where the prover sends the complete witness to the verifier:

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{P \! \! \rightarrow \! \! V}, \mathsf{WitIn})]\) (single message from prover to verifier)

  • Prover: Sends the witness \(\mathbb {w}\) as its single message

  • Verifier: Receives the witness and combines it with the input statement to form the output

  • Input relation: \(R_{\mathsf{in}} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{Prop}\)

  • Output relation: \(R_{\mathsf{out}} : (\mathsf{StmtIn}\times \mathsf{WitIn}) \to \mathsf{Unit}\to \mathsf{Prop}\) defined by \(((\mathsf{stmt}, \mathsf{wit}), ()) \mapsto R_{\mathsf{in}}(\mathsf{stmt}, \mathsf{wit})\)

Theorem 123 SendWitness Security
✓

The SendWitness reduction satisfies perfect completeness. Its verifier is pure and has no challenges, so it is coordinate-wise special sound for every coordinate-wise structure, with the extractor that reads the witness off the unique transcript.

In the oracle setting, we consider two variants:

Definition 124 SendWitness Oracle Reduction

The oracle version handles witnesses that are indexed families of types with oracle interfaces:

  • Witness type: \(\mathsf{WitIn}: \iota _w \to \mathsf{Type}\) where each \(\mathsf{WitIn}(i)\) has an oracle interface

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{P \! \! \rightarrow \! \! V}, \forall i, \mathsf{WitIn}(i))]\)

  • Output oracle statements: Combination of input oracle statements and the transmitted witness

This variant is not implemented: only its prover is defined. Exposing each \(\mathsf{WitIn}(i)\) as a separate output oracle requires an output-oracle simulation that decomposes the single product message into its components.

Definition 125 SendSingleWitness Oracle Reduction
✓
#

A specialized variant for a single witness with oracle interface:

  • Witness type: \(\mathsf{WitIn}: \mathsf{Type}\) with oracle interface

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{P \! \! \rightarrow \! \! V}, \mathsf{WitIn})]\)

  • Output oracle statements: The input oracle statements together with the sent witness, indexed by \(\iota _{\mathsf{in}} \oplus \mathsf{Fin}(1)\)

  • Output relation: \(R_{\mathsf{in}}\) read off the output oracles, with the witness at index \(\mathsf{inr}(0)\)

The SendSingleWitness oracle reduction satisfies perfect completeness. Its oracle verifier is pure and has no challenges, so it is coordinate-wise special sound for every coordinate-wise structure, with the extractor that reads the witness off the unique transcript.

SendSingleWitness is the identity instance of a more general one-message stage. Spartan’s witness attachment instantiates the same stage.

Definition 127 Single-message adapter
✓

An adapter for a one-message oracle reduction with message type \(W\) consists of

  • a statement map \(\mathsf{stmtOut} : \mathsf{StmtIn}\to \mathsf{StmtOut}\), which does not inspect the message;

  • an encoding \(\mathsf{encode} : \mathsf{WitIn}\to W\), the message sent by the honest prover;

  • a decoding \(\mathsf{decode} : W \to \mathsf{WitIn}\), which recovers an input witness;

  • an output-oracle representation, either an embedding of the input and message oracles or a query simulation over them.

The induced verifier never rejects: it outputs \(\mathsf{stmtOut}\) of the input statement together with the output oracles determined by the message.

Theorem 128 Single-message adapter security
✓

If every honest input \((s, w) \in R_{\mathsf{in}}\) has its output for the message \(\mathsf{encode}(w)\) in \(R_{\mathsf{out}}\), the reduction is perfectly complete. If every message \(w\) whose output lies in \(R_{\mathsf{out}}\) satisfies \((s, \mathsf{decode}(w)) \in R_{\mathsf{in}}\), the verifier is fixed-prefix round-by-round knowledge sound with error \(0\), with the extractor that decodes the transcript message.

3.1.3 Random Query Testing

One of the most fundamental oracle reductions tests whether two values computed from the statement and the oracle statements are equal, by comparing them at a single random query.

Definition 129 RandomQuery Oracle Reduction
✓
#

Fix a type \(M\) with an oracle interface and two maps \(f, g\) that send a statement \(x\) and oracle statements \(\mathsf{o}\) to elements \(f(x, \mathsf{o}), g(x, \mathsf{o}) \in M\). The RandomQuery reduction is:

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{V \! \! \rightarrow \! \! P}, \mathsf{Query})]\) (single challenge from verifier)

  • Input relation: \(R_{\mathsf{in}}((x, \mathsf{o}), ()) := (f(x, \mathsf{o}) = g(x, \mathsf{o}))\)

  • Verifier: Samples a random query \(q\) and sends it to the prover

  • Prover: Receives \(q\), performs no computation

  • Output relation: \(R_{\mathsf{out}}(((q, x), \mathsf{o}), ()) := (\mathsf{answer}(f(x, \mathsf{o}), q) = \mathsf{answer}(g(x, \mathsf{o}), q))\)

Taking \(f\) and \(g\) to be two oracle statements gives the test of equality between two oracles; taking \(g\) to be a value read from the statement checks a claimed query response.

Theorem 130 RandomQuery Perfect Completeness
✓

The RandomQuery oracle reduction satisfies perfect completeness: if \(f(x, \mathsf{o}) = g(x, \mathsf{o})\), the two values agree on every query.

Theorem 131 RandomQuery Knowledge Soundness
✓

Suppose that whenever \(f(x, \mathsf{o}) \neq g(x, \mathsf{o})\), a uniformly random query \(q\) satisfies \(\mathsf{answer}(f(x, \mathsf{o}), q) = \mathsf{answer}(g(x, \mathsf{o}), q)\) with probability at most \(\varepsilon \). Then the RandomQuery oracle reduction satisfies fixed-prefix round-by-round knowledge soundness with error \(\varepsilon \).

The agreement bound only needs to hold for the pairs \(f(x, \mathsf{o}), g(x, \mathsf{o})\) that actually occur. When it holds for all pairs, it is a property of the oracle interface:

Definition 132 Oracle Distance
✓
#

The oracle interface on \(M\) has oracle distance at most \(d\) if every two distinct \(a \neq b\) in \(M\) agree on at most \(d\) queries:

\[ |\{ q : \mathsf{Query} \mid \mathsf{answer}(a, q) = \mathsf{answer}(b, q)\} | \leq d. \]
Theorem 133 RandomQuery Knowledge Soundness from Distance
✓

If the oracle interface on \(M\) has oracle distance at most \(d\), then the RandomQuery oracle reduction satisfies round-by-round knowledge soundness with error \(\frac{d}{|\mathsf{Query}|}\).

Random Evaluation of a Polynomial

Polynomial identity testing is the instance of RandomQuery in which \(M\) is the type of multivariate polynomials in \(m\) variables over a field \(\mathbb {F}\), a query is a point of \(\mathbb {F}^m\) answered by evaluation, and \(g = 0\). To test \(P = Q\), take \(f = P - Q\).

Definition 134 RandomEvaluation Oracle Reduction
✓
#

Given a map \(P\) from statements and oracle statements to polynomials in \(\mathbb {F}[X_1, \ldots , X_m]\):

  • Input relation: \(P(x, \mathsf{o}) = 0\) as a polynomial

  • Protocol specification: Single challenge \(\tau \in \mathbb {F}^m\) from verifier to prover

  • Output relation: \(P(x, \mathsf{o})(\tau ) = 0\) for the sampled point \(\tau \)

If every \(P(x, \mathsf{o})\) has total degree at most \(d\), the RandomEvaluation reduction satisfies fixed-prefix round-by-round knowledge soundness with error \(\frac{d}{|\mathbb {F}|}\). This follows from the Schwartz–Zippel lemma: a nonzero polynomial of total degree at most \(d\) vanishes at a uniformly random point of \(\mathbb {F}^m\) with probability at most \(\frac{d}{|\mathbb {F}|}\). For multilinear polynomials the error is \(\frac{m}{|\mathbb {F}|}\).

3.1.4 Vanishing on a Finite Domain

Fix a field \(\mathbb {F}\), a finite domain \(H \subseteq \mathbb {F}\) with vanishing polynomial \(Z_H(X) = \prod _{h \in H} (X - h)\), and a degree bound \(d\) with \(|H| \leq d\). The claims in this subsection are that polynomial oracles of degree at most \(d\) vanish on \(H\).

Definition 136 Quotient Zero Test
✓
#

The input is one polynomial oracle \(f\) of degree at most \(d\), with no witness.

  • Input relation: \(f(h) = 0\) for every \(h \in H\)

  • Protocol specification: The prover sends a polynomial oracle \(q\) of degree at most \(d - |H|\); then the verifier sends a uniformly random \(z \in \mathbb {F}\)

  • Honest prover: Sends the quotient \(q = f / Z_H\)

  • Verifier: Queries \(f(z)\) and \(q(z)\) and rejects unless \(f(z) = q(z) \cdot Z_H(z)\)

  • Output relation: Every output is accepted; no oracle statements remain

The quotient zero test is perfectly complete. If \(|H| \leq d\), its verifier is fixed-prefix round-by-round knowledge sound with error \(\frac{d}{|\mathbb {F}|}\) at its single challenge, and knowledge sound with the same total error.

Several vanishing claims can be batched into one before running the zero test. A generator \(G : S \to \mathbb {F}^k\) is \(\varepsilon \)-zero-evading if, for every nonzero \(v \in \mathbb {F}^k\), a uniformly random seed \(s \in S\) satisfies \(\langle G(s), v \rangle = 0\) with probability at most \(\varepsilon \).

Definition 138 Generator Batching
✓

Fix \(d {\gt} 0\) and a generator \(G : S \to \mathbb {F}^k\). The input is a family of \(k\) polynomial oracles \(f_1, \ldots , f_k\) of natural degree strictly less than \(d\), with no witness.

  • Input relation: every \(f_i\) vanishes on \(H\)

  • Protocol specification: The verifier sends a uniformly random seed \(s \in S\); there are no prover messages

  • Output oracle statement: The batched polynomial \(\sum _{i} G(s)_i \cdot f_i\), whose evaluations are simulated by querying each \(f_i\) at the same point

  • Output relation: The input relation of the quotient zero test for the batched polynomial

The batched output is supplied to the quotient zero test under that test’s inclusive budget of degree at most \(d\).

Theorem 139 Generator Batching Security
✓

Generator batching is perfectly complete. If \(S\) is finite and nonempty and \(G\) is \(\varepsilon \)-zero-evading, the verifier is fixed-prefix round-by-round knowledge sound with error \(\varepsilon \) at its single challenge.

3.1.5 Sending a Claim

The SendClaim reduction lets the prover send a claim computed from the input statement, as one oracle message. The verifier does not check the claim; the check is carried by the output relation.

Definition 140 SendClaim Oracle Reduction
✓

Fix a message type \(M\) with an oracle interface, a map \(f\) from statements and oracle statements to \(M\), and a predicate \(P\) on a statement, its oracle statements and a message. The SendClaim reduction is a one-round protocol with no witness:

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{P \! \! \rightarrow \! \! V}, M)]\) (single oracle message)

  • Prover: Sends \(f(\mathsf{stmt}, \mathsf{o})\) as the message

  • Verifier: A pure pass-through. It returns the input statement and performs no check

  • Output oracle statements: The input oracle statements together with the message, indexed by \(\iota _{\mathsf{in}} \oplus \mathsf{Fin}(1)\)

  • Output relation: The input oracle statements (at \(\mathsf{inl}\)) satisfy \(R_{\mathsf{in}}\), and \(P(\mathsf{stmt}, \mathsf{o}, m)\) holds for the message \(m\) at \(\mathsf{inr}(0)\)

Theorem 141 SendClaim Coordinate-wise Special Soundness
✓

The SendClaim oracle verifier is coordinate-wise special sound for every coordinate-wise structure, with the trivial extractor: acceptance into the output relation forces the input into \(R_{\mathsf{in}}\).

Theorem 142 SendClaim Perfect Completeness

If every input in \(R_{\mathsf{in}}\) satisfies \(P(\mathsf{stmt}, \mathsf{o}, f(\mathsf{stmt}, \mathsf{o}))\), the SendClaim oracle reduction is perfectly complete.

3.1.6 Sending a Challenge

Definition 143 SendChallenge Oracle Reduction
✓

Fix a challenge alphabet \(C\) and a length \(\ell \). The SendChallenge reduction is a one-round protocol with no witness and no check:

  • Protocol specification: \(\mathsf{pSpec}:= [(\mathsf{V \! \! \rightarrow \! \! P}, C^{\ell })]\)

  • Verifier: Samples \(c \in C^{\ell }\) and appends it to the statement; the oracle statements pass through

  • Output statement: \((\mathsf{stmt}, c)\)

A lone challenge round has nothing to extract, so it has no security statement of its own. Its verifier is pure, so it can be a left factor of a coordinate-wise special-soundness composition, where it contributes one challenge round with \(\ell \) coordinates over \(C\) and soundness parameter \(2\).

3.1.7 Claim Reduction

A fundamental building block for constructing complex proof systems is the ability to locally reduce one type of claim to another. The ReduceClaim reduction provides this functionality through mappings between statement and witness types.

Definition 144 ReduceClaim Reduction
✓
#

The ReduceClaim reduction is a zero-round protocol that transforms claims via explicit mappings:

  • Protocol specification: \(\mathsf{pSpec}:= []\) (no messages exchanged)

  • Statement mapping: \(\mathsf{mapStmt} : \mathsf{StmtIn}\to \mathsf{StmtOut}\)

  • Witness mapping: \(\mathsf{mapWit} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{WitOut}\)

  • Prover: Applies both mappings to input statement and witness

  • Verifier: Applies statement mapping to input statement

  • Input relation: \(R_{\mathsf{in}} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{Prop}\)

  • Output relation: \(R_{\mathsf{out}} : \mathsf{StmtOut}\to \mathsf{WitOut}\to \mathsf{Prop}\)

Theorem 145 ReduceClaim Perfect Completeness
✓

If \(R_{\mathsf{in}}(\mathsf{stmt}, \mathsf{wit})\) implies \(R_{\mathsf{out}}(\mathsf{mapStmt}(\mathsf{stmt}), \mathsf{mapWit}(\mathsf{stmt}, \mathsf{wit}))\), the ReduceClaim reduction is perfectly complete. The version stated with an equivalence is a corollary.

Theorem 146 ReduceClaim Round-by-Round Knowledge Soundness
✓

Suppose \(\mathsf{mapWitInv} : \mathsf{StmtIn}\to \mathsf{WitOut}\to \mathsf{WitIn}\) satisfies: if \(R_{\mathsf{out}}(\mathsf{mapStmt}(\mathsf{stmt}), w')\), then \(R_{\mathsf{in}}(\mathsf{stmt}, \mathsf{mapWitInv}(\mathsf{stmt}, w'))\). Then the ReduceClaim verifier is round-by-round knowledge sound with error \(0\), with the extractor \(\mathsf{mapWitInv}\).

Definition 147 ReduceClaim Oracle Reduction
✓
#

The oracle version additionally handles oracle statements through an embedding:

  • Oracle statement mapping: Embedding \(\mathsf{embedIdx} : \iota _{\mathsf{out}} \hookrightarrow \iota _{\mathsf{in}}\)

  • Type compatibility: \(\mathsf{OStmtIn}(\mathsf{embedIdx}(i)) = \mathsf{OStmtOut}(i)\) for all \(i\)

  • Oracle embedding: Maps output oracle indices to corresponding input oracle indices

Theorem 148 ReduceClaim Oracle Security
✓

The ReduceClaim oracle reduction is perfectly complete when the mapped honest inputs land in \(R_{\mathsf{out}}\), with the oracle statements reindexed along \(\mathsf{embedIdx}\). Given a backward witness map as in the non-oracle case, now taking the statement and oracle statements as input, its oracle verifier is round-by-round knowledge sound with error \(0\).

3.1.8 Claim Verification

Another essential building block is the ability to verify that a given predicate holds for a statement without requiring additional witness information.

Definition 149 CheckClaim Reduction
✓
#

The CheckClaim reduction is a zero-round protocol that verifies predicates:

  • Protocol specification: \(\mathsf{pSpec}:= []\) (no messages exchanged)

  • Predicate: \(\mathsf{pred} : \mathsf{StmtIn}\to \mathsf{Prop}\) (decidable)

  • Prover: Simply stores and outputs the input statement with unit witness

  • Verifier: Checks \(\mathsf{pred}(\mathsf{stmt})\) and outputs statement if successful

  • Input relation: \(R_{\mathsf{in}}(\mathsf{stmt}, ()) := \mathsf{pred}(\mathsf{stmt})\)

  • Output relation: \(R_{\mathsf{out}}(\mathsf{stmt}, ()) := \mathsf{True}\) (trivial after verification)

Theorem 150 CheckClaim Security
✓

The CheckClaim reduction satisfies perfect completeness, and its verifier is round-by-round knowledge sound with error \(0\).

Definition 151 CheckClaim Oracle Reduction
✓

The oracle version checks a predicate \(P(\mathsf{stmt}, \mathsf{o})\) on the statement and the oracle statements. Its verifier is a pure pass-through: it returns the statement and oracle statements unchanged and runs no check. The check is carried by the output relation:

  • Input relation: any relation \(R_{\mathsf{in}}\) on statements and oracle statements, with unit witness

  • Output relation: \(R_{\mathsf{out}} := R_{\mathsf{in}} \cap \{ (\mathsf{stmt}, \mathsf{o}) \mid P(\mathsf{stmt}, \mathsf{o})\} \)

A pure verifier can be the left factor of a coordinate-wise special-soundness composition, which a verifier that rejects at runtime cannot.

Theorem 152 CheckClaim Oracle Security
✓

If every input in \(R_{\mathsf{in}}\) satisfies \(P\), the CheckClaim oracle reduction is perfectly complete. Its oracle verifier is coordinate-wise special sound for every coordinate-wise structure, with the trivial extractor.

3.1.9 Reductions Without Interaction

Definition 153 No-interaction Reduction
✓
#

A zero-round reduction is determined by a pure statement map \(\mathsf{mapStmt} : \mathsf{StmtIn}\to \mathsf{StmtOut}\) and a witness map \(\mathsf{mapWit} : \mathsf{StmtIn}\to \mathsf{WitIn}\to \mathsf{OracleComp}\ \mathcal{O}\ \mathsf{WitOut}\) that may query the shared oracles. The verifier outputs \(\mathsf{mapStmt}(\mathsf{stmt})\); the prover outputs it together with the result of \(\mathsf{mapWit}\).

Theorem 154 No-interaction Completeness
✓
#

If, for every input \((\mathsf{stmt}, \mathsf{wit}) \in R_{\mathsf{in}}\), running \(\mathsf{mapWit}(\mathsf{stmt}, \mathsf{wit})\) yields \(w'\) with \((\mathsf{mapStmt}(\mathsf{stmt}), w') \in R_{\mathsf{out}}\) with probability at least \(1 - \varepsilon \), then the reduction is complete with error \(\varepsilon \).

3.2 The Sum-Check Protocol

This section documents our formalization of the sum-check protocol. We first describe the sum-check protocol as it is typically described in the literature, and then present a modular description that maximally relies on our general oracle reduction framework.

3.2.1 Standard Description

Protocol Parameters

The sum-check protocol is parameterized by the following:

  • \(R\): the underlying ring (for soundness, required to be finite and an integral domain)

  • \(n \in \mathbb {N}\): the number of variables (and the number of rounds for the protocol)

  • \(d \in \mathbb {N}\): the individual degree bound for the polynomial

  • \(\mathcal{D}: \{ 0, 1, \ldots , m-1\} \hookrightarrow R\): the set of \(m\) evaluation points for each variable, represented as an injection. The image of \(\mathcal{D}\) as a finite subset of \(R\) is written as \(\text{Image}(\mathcal{D})\).

  • \(\mathcal{O}\): the set of underlying oracles (e.g., random oracles) that may be needed for other reductions. However, the sum-check protocol itself does not use any oracles.

Input and Output Statements

For the standard description of the sum-check protocol, we specify the complete input and output data:

Input Statement.

The claimed sum \(T \in R\).

Input Oracle Statement.

The polynomial \(P \in R[X_0, X_1, \ldots , X_{n-1}]_{\leq d}\) of \(n\) variables with bounded individual degrees \(d\).

Input Witness.

None (the unit type).

Input Relation.

The sum-check relation:

\[ \sum _{x \in (\text{Image}(\mathcal{D}))^n} P(x) = T \]

Output Statement.

The claimed evaluation \(e \in R\) and the challenge vector \((r_0, r_1, \ldots , r_{n-1}) \in R^n\).

Output Oracle Statement.

The same polynomial \(P \in R[X_0, X_1, \ldots , X_{n-1}]_{\leq d}\).

Output Witness.

None (the unit type).

Output Relation.

The evaluation relation:

\[ P(r_0, r_1, \ldots , r_{n-1}) = e \]

Protocol Description

The sum-check protocol proceeds in \(n\) rounds of interaction between the prover and verifier. The protocol reduces the claim that a multivariate polynomial \(P\) sums to a target value \(T\) over the domain \((\text{Image}(\mathcal{D}))^n\) to the claim that \(P\) evaluates to a specific value \(e\) at a random point \((r_0, r_1, \ldots , r_{n-1})\).

In each round, the prover sends a univariate polynomial of bounded degree, and the verifier responds with a random challenge. The verifier performs consistency checks by querying the polynomial oracle at specific evaluation points. After \(n\) rounds, the protocol terminates with an output statement asserting that \(P(r_0, r_1, \ldots , r_{n-1}) = e\), where the challenges \((r_0, r_1, \ldots , r_{n-1})\) are the random values chosen by the verifier during the protocol execution.

The protocol is described as an oracle reduction, where the polynomial \(P\) is accessed only through evaluation queries rather than being explicitly represented.

Security Properties

We prove the following security properties for the sum-check protocol:

Theorem 155 Perfect Completeness
✓

The sum-check protocol satisfies perfect completeness. That is, for any valid input statement and oracle statement satisfying the input relation, the protocol accepts with probability 1.

Theorem 156 Round-by-Round Knowledge Soundness
✓

Suppose \(R\) is finite and an integral domain. Then the sum-check verifier is fixed-prefix round-by-round knowledge sound with error \(d / |R|\) at every challenge. The state function is the sequential composition of the single-round state functions of Section 3.2.2.

Theorem 157 Knowledge Soundness
✓

Suppose \(R\) is finite and an integral domain. Then the sum-check protocol satisfies knowledge soundness with error \(n \cdot d / |R|\), the sum of the per-challenge errors over its \(n\) challenges, where \(d\) is the degree bound.

Implementation Notes

Our formalization includes several important implementation considerations:

Oracle Reduction Level.

This description of the sum-check protocol stays at the oracle reduction level, describing the protocol before being compiled with concrete cryptographic primitives such as polynomial commitment schemes for \(P\). The oracle model allows us to focus on the logical structure and security properties of the protocol without being concerned with the specifics of how polynomial evaluations are implemented or verified.

Abstract Protocol Description.

The protocol description above does not consider implementation details and optimizations that would be necessary in practice. For instance, we do not address computational efficiency, concrete polynomial representations, or specific algorithms for polynomial evaluation. This abstraction allows us to establish the fundamental security properties that any concrete implementation must preserve.

Degree Constraints.

To represent sum-check as a series of Interactive Oracle Reductions (IORs), we implicitly constrain the degree of the polynomials via using subtypes such as \(R[X]_{\leq d}\) and appropriate multivariate polynomial degree bounds. This is necessary because the oracle verifier only gets oracle access to evaluating the polynomials, but does not see the polynomials in the clear.

Polynomial Commitments.

When this protocol is compiled to an interactive proof (rather than an oracle reduction), the corresponding polynomial commitment schemes will enforce that the declared degree bounds hold, by letting the (non-oracle) verifier perform explicit degree checks.

Generalizations Not Covered

The formalized sum-check does not cover the following generalizations; ROADMAP.md tracks planned protocol work.

  • Variable Degree Bounds: Generalize to \(d : \{ 0, 1, \ldots , n-1\} \to \mathbb {N}\) and \(\mathcal{D} : \{ 0, 1, \ldots , n-1\} \to (\{ 0, 1, \ldots , m-1\} \hookrightarrow R)\), allowing different degree bounds and summation domains for each variable.

  • Restricted Challenge Domains: Generalize the challenges to come from suitable subsets of \(R\) (e.g., subtractive sets), rather than the entire domain. This modification is used in lattice-based protocols.

  • Module-based Sum-check: Extend to sum-check over modules instead of just rings. This would require extending multivariate polynomial evaluation to modules, defining something like \(\text{evalModule} : (R^n \to M) \to R[X_0, \ldots , X_{n-1}] \to M\) where \(M\) is an \(R\)-module.

3.2.2 Modular Description

Round-by-Round Analysis

Our modular approach breaks down the sum-check protocol into individual rounds, each of which can be analyzed as a two-message Interactive Oracle Reduction. This decomposition allows us to prove security properties compositionally and provides a more granular understanding of the protocol’s structure.

Round-Specific Statements.

For the \(i\)-th round, where \(i \in \{ 0, 1, \ldots , n\} \), the statement contains:

  • \(\text{target} \in R\): the target value for sum-check at this round

  • \(\text{challenges} \in R^i\): the list of challenges sent from the verifier to the prover in previous rounds

The oracle statement remains the same polynomial \(P \in R[X_0, X_1, \ldots , X_{n-1}]_{\leq d}\).

Round-Specific Relations.

The sum-check relation for the \(i\)-th round checks that:

\[ \sum _{x \in (\text{Image}(\mathcal{D}))^{n-i}} P(\text{challenges}, x) = \text{target} \]

Note that when \(i = n\), this becomes the output statement of the sum-check protocol, checking that \(P(\text{challenges}) = \text{target}\).

Individual Round Protocol

For \(i = 0, 1, \ldots , n-1\), the \(i\)-th round of the sum-check protocol consists of the following:

Step 1: Prover’s Message.

The prover sends a univariate polynomial \(p_i \in R[X]_{\leq d}\) of degree at most \(d\). If the prover is honest, then:

\[ p_i(X) = \sum _{x \in (\text{Image}(\mathcal{D}))^{n-i-1}} P(\text{challenges}_0, \ldots , \text{challenges}_{i-1}, X, x) \]

Here, \(P(\text{challenges}_0, \ldots , \text{challenges}_{i-1}, X, x)\) is the polynomial \(P\) evaluated at the concatenation of:

  • the prior challenges \(\text{challenges}_0, \ldots , \text{challenges}_{i-1}\)

  • the \(i\)-th variable as the new indeterminate \(X\)

  • the remaining values \(x \in (\text{Image}(\mathcal{D}))^{n-i-1}\)

In the oracle protocol, this polynomial \(p_i\) is turned into an oracle for which the verifier can query evaluations at arbitrary points.

Step 2: Verifier’s Challenge.

The verifier sends the \(i\)-th challenge \(r_i\) sampled uniformly at random from \(R\).

Step 3: Verifier’s Check.

The (oracle) verifier performs queries for the evaluations of \(p_i\) at all points in \(\text{Image}(\mathcal{D})\), and checks that:

\[ \sum _{x \in \text{Image}(\mathcal{D})} p_i(x) = \text{target} \]

If the check fails, the verifier outputs \(\texttt{failure}\). Otherwise, it outputs a statement for the next round as follows:

  • \(\text{target}\) is updated to \(p_i(r_i)\)

  • \(\text{challenges}\) is updated to the concatenation of the previous challenges and \(r_i\)

Single Round Security Analysis

Definition 158 Single Round Protocol
✓

The \(i\)-th round of sum-check consists of:

  1. Input: A statement containing target value and prior challenges, along with an oracle for the multivariate polynomial

  2. Prover’s message: A univariate polynomial \(p_i \in R[X]_{\leq d}\)

  3. Verifier’s challenge: A random element \(r_i \gets R\)

  4. Output: An updated statement with new target \(p_i(r_i)\) and extended challenges

Each individual round of the sum-check protocol is perfectly complete, from the round-\(i\) relation to the round-\((i+1)\) relation.

Suppose \(R\) is finite and an integral domain. Each individual round of the sum-check protocol is fixed-prefix round-by-round knowledge sound with error \(d / |R|\) at its challenge, where \(d\) is the degree bound. The round is obtained by lifting the virtual round below along a context lens, which transfers both properties.

Virtual Protocol Decomposition

We now proceed to break down this protocol into individual messages, and then specify the predicates that should hold before and after each message is exchanged.

First, it is clear that we can consider each round in isolation. In fact, each round can be seen as an instantiation of the following simpler "virtual" protocol:

  1. In this protocol, the context is a pair \((p, c)\), where \(p\) is now a univariate polynomial of degree at most \(d\), given as an oracle, and \(c \in R\) is public. The predicate / relation is that \(\sum _{x \in \text{Image}(\mathcal{D})} p(x) = c\).

  2. The prover first sends a univariate polynomial \(s\) of degree at most \(d\). In the honest case, it would just send \(p\) itself.

  3. The verifier samples and sends a random challenge \(r \gets R\).

  4. The verifier checks that \(\sum _{x \in \text{Image}(\mathcal{D})} s(x) = c\) and outputs \((s(r), r)\). The predicate on the resulting output context is that \(p(r) = s(r)\).

The reason why this simpler protocol is related to a sum-check round is that we can emulate the simpler protocol using variables in the context at the time:

  • The univariate polynomial \(p\) is instantiated as \(\sum _{x \in (\text{Image}(\mathcal{D}))^{n - i - 1}} P(r_0, \ldots , r_{i - 1}, X, x)\).

  • The scalar \(c\) is instantiated as \(T\) if \(i = 0\), and as \(s_{i - 1}(r_{i - 1})\) otherwise.

The simpler protocol is perfectly complete. It is sound (and since there is no witness, also knowledge sound) since, when \(R\) is an integral domain, two distinct polynomials of degree at most \(d\) agree at a uniformly random \(r\) with probability at most \(d / |R|\); if the claim is false and \(s\) passes the check, then \(s \neq p\).

The virtual sum-check round protocol is perfectly complete.

Soundness and knowledge soundness of the virtual round follow from its round-by-round knowledge soundness below, by the general implications of Section 2.1.4.

We use the following state function for the simpler protocol.

Definition 163 State Function

The state function for the virtual sum-check round protocol is given by:

  1. The initial state function, and the state function after the prover sends \(s\), are the predicate on the initial context, namely that \(\sum _{x \in \text{Image}(\mathcal{D})} p(x) = c\).

  2. The state function for the full transcript (after the verifier sends \(r\)) is the predicate that either the initial predicate holds, or \(\sum _{x \in \text{Image}(\mathcal{D})} s(x) = c\) and \(p(r) = s(r)\). Essentially, we add in the verifier’s check and the output predicate.

Seen in this light, the simpler protocol satisfies round-by-round knowledge soundness: the only challenge moves the state from false to true exactly when the initial claim is false, \(s\) passes the check (so \(s \neq p\)), and \(p(r) = s(r)\).

Suppose \(R\) is finite and an integral domain. The virtual sum-check round protocol is fixed-prefix round-by-round knowledge sound with error \(d / |R|\).

3.2.3 Sum-Check in the Interaction Layer

ArkLib also formalizes sum-check in its interaction layer (ArkLib/Interaction), which is meant to replace the legacy layer used above, as a protocol tree whose prover strategies may keep arbitrary memory and perform effects after each challenge. The execution outputs an evaluation claim about the original oracle.

Theorem 165 Interaction-layer sum-check security
✓

Over any commutative semiring and for any challenge distribution, from a true claim about a polynomial of individual degree at most \(d\), the honest execution returns a true evaluation claim with probability \(1\). Over a finite field \(\mathbb {F}\), from a false claim with \(k\) rounds remaining and uniform challenges, every prover strategy makes the output claim true with probability at most \(k \cdot d / |\mathbb {F}|\).

3.3 Ring Switching

Ring switching is a reduction that turns a multilinear evaluation claim over a small coefficient ring \(B\) into an evaluation claim over a large extension \(L\), paying only an additive \(O(1/\lvert L\rvert )\) soundness cost and without re-committing over \(L\). It is the technique that lets a polynomial commitment scheme commit cheaply over a tiny ring (a binary-tower field, \(\mathbb {F}_2\), or a cyclotomic ring \(R_q\)) while running sum-check and the final opening over a field large enough for soundness. It was introduced for binary towers in [ 18 ] . Hachi’s extension-field-to-cyclotomic-ring reduction [ 26 ] uses a related trace-based head.

ArkLib defines the DP24 prefix instance through a shared checked head and product sum-check. Its packing profile specifies the tensor carrier and coordinates; the binary-tower (Binius) construction supplies one instance. The coordinate layer also supports Hachi’s separate trace head and reference-Flock packing algebra. New scalar consumers instantiate the shared protocol, while the interaction-layer Flock source, residual-relation and extraction transport remain separate obligations.

3.3.1 The packing profile

The data and algebraic laws of the DP24 tensor presentation are collected into a single structure.

Definition 166 Ring-switching profile
✓
#

Fix commutative rings \(B\) (small) and \(L\) (large) with \(L\) a \(B\)-algebra, and \(\kappa \in \mathbb {N}\). A ring-switching profile consists of:

  • a rank-\(2^\kappa \) \(B\)-basis \(\beta = (\beta _u)_{u \in \{ 0,1\} ^\kappa }\) of \(L\);

  • a commutative carrier ring \(A\) (the type sent on the wire);

  • two ring homomorphisms \(\varphi _0, \varphi _1 : L \to A\) for evaluation-point data and polynomial coefficients, respectively, giving the scalar actions \(x \cdot _0 z := \varphi _0(x)z\) and \(x \cdot _1 z := \varphi _1(x)z\);

  • coordinate maps \(\mathrm{decomposeColumns}, \mathrm{decomposeRows} : A \to (\{ 0,1\} ^\kappa \to L)\);

  • subject to the two reconstruction laws

    \begin{equation} z = \sum _{u} \varphi _0(\beta _u)\cdot \varphi _1(\mathrm{decomposeRows}(z)_u). \label{eq:rs-rows} \end{equation}
    1

    \begin{equation} z = \sum _{v} \varphi _0(\mathrm{decomposeColumns}(z)_v)\cdot \varphi _1(\beta _v). \label{eq:rs-cols} \end{equation}
    2

    for all \(z \in A\);

  • the row inverse law: for every \(c : \{ 0,1\} ^\kappa \to L\),

    \[ \mathrm{decomposeRows}\Bigl(\sum _{u} \varphi _0(\beta _u)\cdot \varphi _1(c_u)\Bigr) = c; \]
  • and the base compatibility \(\varphi _0(b) = \varphi _1(b)\) for \(b \in B\).

The column inverse

\[ \mathrm{decomposeColumns}\Bigl(\sum _v \varphi _0(c_v)\varphi _1(\beta _v)\Bigr) = c \]

is derived from the row inverse and the reconstruction laws.

The laws in Equation 1 and Equation 2 fix the coordinate convention of [ 18 , § 2.5 ] . They are data-layer reconstruction laws, not completeness or soundness statements. Protocol correctness additionally needs identities connecting these coordinates to packing, the honest folded element, and the batched multiplier. Together with the inverse laws, each coordinate map is a bijection \(A \cong (\{ 0,1\} ^\kappa \to L)\) (rowEquiv, columnEquiv); additivity, compatibility of rows with multiplication by \(\varphi _1\) and of columns with multiplication by \(\varphi _0\), and the coordinates of pure tensors \(\varphi _0(x)\varphi _1(y)\) follow from the laws. The laws do not by themselves establish a valid protocol instance or a security theorem.

Definition 167 Tensor-product profile
✓
#

For commutative rings \(B\) and \(L\), with \(L\) a \(B\)-algebra and a chosen rank-\(2^\kappa \) \(B\)-basis, the profile takes \(A := L \otimes _B L\), with \(\varphi _0(\alpha ) = \alpha \otimes 1\) and \(\varphi _1(\alpha ) = 1 \otimes \alpha \). The coordinate maps use this basis in the left and right \(L\)-module structures on \(A\), giving columns and rows respectively. Thus \(z = \sum _v z_v \otimes \beta _v = \sum _u \beta _u \otimes z_u\). Basis reconstruction gives the two reconstruction laws and the row inverse; the column inverse follows from the profile laws. Base compatibility follows by moving scalars across the tensor product. Binius uses this constructor with its binary-tower basis.

A trace or automorphism switch whose carrier is \(L\) itself, such as Hachi’s §3 head [ 26 ] with \(A = R_q\), is not an instance when \(\kappa {\gt} 0\): for a finite nontrivial \(L\) the inverse laws force \(\lvert A\rvert = \lvert L\rvert ^{2^\kappa }\). Hachi’s head uses the finite-coordinate packing layer directly instead: its packing data has the fixed subring as opening algebra, with one opening coordinate and \(\psi \) as packing basis, its scalar source is a claim layout over the monomial coefficients of the packed variables, and its packed polynomial is the shared packed multilinear of the layout’s components. Its conformance theorem states the head’s accepting condition through that layer: the sent ring value is the single slice of the shared packed multilinear at the retained point, and the claimed scalar is the layout-weighted sum of its \(\psi \)-coordinates. The head’s read-back is a checked observation (the \(\psi \)-coordinate inner product, equivalent to the trace check). Hachi §3.1 exercises only the packing, evaluation and opening part of the shared layer (one opening coordinate, no batching, multiplier or sumcheck), as in the paper, so its reuse is small at the proof level and real at the statement level. Because \(R_q\) is not an integral domain its soundness is a separate argument (coordinate-wise special soundness into the ring-level evaluation relation).

3.3.2 Packing the witness

Definition 168 Multilinear packing
✓
#

With \(\ell = \ell ' + \kappa \), a small-field multilinear \(t\) in \(\ell \) variables is packed into a large-field multilinear \(t'\) in \(\ell '\) variables by bundling each block of \(2^\kappa \) coefficients into one \(L\)-element:

\[ t'(w) \; =\; \sum _{v \in \{ 0,1\} ^\kappa } t(v, w)\, \beta _v, \qquad w \in \{ 0,1\} ^{\ell '}. \]

3.3.3 The reduction

The shared protocol composes a checked head with product sum-check. Its endpoint is an evaluation of the same committed packed polynomial, retaining the original query and batching challenge. An opening must accept that contextual evaluation relation to close the protocol. The DP24 instance uses packing, opening and challenge algebras all equal to \(L\), with prefix packing in the profile basis; its first message keeps the original carrier \(A\).

The reduction runs the following stages.

  1. Batching. The prover sends the folded element \(\hat s \in A\). The verifier checks the original claim against its column decomposition, \(s = \sum _v \tilde{\mathrm{eq}}(v, r_{0..\kappa -1})\cdot \mathrm{decomposeColumns}(\hat s)_v\), then samples a batching challenge \(r'' \in L^\kappa \), producing the target \(s_0 = \sum _u \tilde{\mathrm{eq}}(u, r'')\cdot \mathrm{decomposeRows}(\hat s)_u\). Its certified batching loss is \(\kappa /\lvert L\rvert \).

  2. Sum-check. A degree-\(2\) sum-check on the product of the public multilinear multiplier and \(t'\) runs for \(\ell '\) challenges, followed by a terminal message and check. Each challenge contributes \(2/\lvert L\rvert \); the terminal check sends no challenge. Its accepted output is the contextual evaluation claim about the same \(t'\) and oracle family.

  3. Opening. The concrete Binius construction appends the Binary Basefold contextual opening. Its zero-message front end formats the evaluation claim and may discard the query context; it does not insert another wire phase or change the committed polynomial.

For the concrete Binius construction, specialize the base to a finite field \(K\) of cardinality \(2\) and let \(L\) be a finite extension field with a \(K\)-basis \(\beta \) indexed by \(\{ 0,\ldots ,2^\kappa -1\} \), normalized by \(\beta _0=1\). Use its associated tensor-product profile. Choose \(\ell =\ell '+\kappa \), positive integers \(\ell '\), \(R\) and \(\vartheta \) with \(\vartheta \mid \ell '\) and \(\ell '+R{\lt}2^\kappa \), and a number of opening queries \(\gamma \in \mathbb {N}\). Challenges in \(L\) use the uniform sampler.

Definition 170 Full Binius ring-switching reduction
✓

In the concrete setup above, compose the shared DP24 prefix protocol with the Binary Basefold opening. The composition runs a ring-switching sum-check before the opening and ends in an accept/reject statement, rather than an unclosed evaluation claim. The unrolled protocol of Definition 171 instead runs a single sum-check.

Definition 171 Unrolled FRI-Binius
✓
#

In the concrete setup above, the unrolled protocol of  [ 18 ] (Construction 5.1), for \(K = \mathbb {F}_2\), is the DP24 tensor batching head followed by the Binary Basefold opening of the head’s product claim \(s_0 = \sum _{y \in \{ 0,1\} ^{\ell '}} \mathcal{M}(y)\, t'(y)\), where \(\mathcal{M}\) is the ring-switching multiplier and \(t'\) the packed polynomial. The Binary Basefold sum-check is the ring-switching sum-check, so no separate sum-check runs before the opening.

3.3.4 Security

Oracle compatibility specifies the relations certified about the program. Honest coverage is separate: a PackedCommitment.Honest supplies a compatible oracle statement for every packed polynomial. It is not a security premise. The following completeness result applies to valid inputs with exact encodings; it does not assert completeness for every oracle within a decoding radius.

The full Binius reduction is perfectly complete for its input relation with an exact first codeword encoding. The honest folded element passes the column check, its target is the round-zero sum, and the matrix terminal check produces the correct opening of the same packed polynomial. The Binary Basefold opening is complete on that strict relation. More generally, the shared reduction can be closed by a guarded opening already typed at its contextual evaluation endpoint, provided that opening is perfectly complete on that relation for every fixed initial oracle state.

Suppose \(L\) is a finite commutative ring with no zero divisors and every oracle statement is compatible with at most one packed polynomial. The product sum-check, and the DP24 prefix head followed by it, are round-by-round knowledge sound at every fixed transcript prefix. The prefix protocol’s challenge-index error sum is exactly

\[ \frac{\kappa }{\lvert L\rvert } + \frac{2\ell '}{\lvert L\rvert }. \]

The head contributes one batching challenge; each sum-check challenge contributes \(2/\lvert L\rvert \). The terminal message has no challenge and contributes no challenge error. The check holds for every multiplier value, including zero.

For the shared protocol, let \(P\) and \(E\) be the packing and opening algebras of packing data over a commutative base ring \(B\). Let \(C\) be a finite commutative ring with its uniform sampler, compatible \(B\)- and \(P\)-algebra structures, and the scalar-tower law for \(B \to P \to C\). Assume \(C\) has no zero divisors, coefficient transport \(P \to C\) is injective, oracle compatibility is functional, and the batching rule has a separation certificate with error \(\varepsilon _{\mathrm{batch}}\). Let an opening already be typed at the contextual evaluation relation for the same committed polynomial. Suppose it is round-by-round knowledge sound for all inputs in that relation and every fixed transcript prefix, with challenge-error function \(\varepsilon _{\mathrm{open}}\). Then its composition with the shared protocol is round-by-round knowledge sound, with the appended component-error functions and total challenge error

\[ \varepsilon _{\mathrm{batch}} + \frac{2m}{\lvert C\rvert } + \sum _j \varepsilon _{\mathrm{open}}(j), \]

where \(m\) is the number of retained variables. There is no required map \(E \to C\). Compatibility and functionality do not assert honest coverage. In the DP24 instance, \(P = E = C = L\), \(m = \ell '\) and \(\varepsilon _{\mathrm{batch}} = \kappa /\lvert L\rvert \).

In the concrete setup above, the full Binius verifier is round-by-round knowledge sound for its relaxed, unique-decoding-radius input relation. Decoder functionality discharges commitment binding. Its challenge-index error sum is bounded by

\[ \frac{\kappa }{\lvert L\rvert } + \frac{2\ell '}{\lvert L\rvert } + \varepsilon _{\mathrm{BBF}}, \]

where \(\varepsilon _{\mathrm{BBF}}\) is the concrete Binary Basefold opening’s closed-form upper bound. Exact codeword encodings give the separate completeness relation in Theorem 172.

Every checking verifier aborts on a failed check, so each verifier above has a guarded form and the round-by-round guarantees imply ordinary knowledge soundness at the summed error.

Under the hypotheses of Theorem 174 on \(C\), the batching rule and oracle compatibility, the shared protocol is knowledge sound, from its input relation to the contextual evaluation relation, with error \(\varepsilon _{\mathrm{batch}} + 2m/\lvert C\rvert \). If oracle compatibility is functional, the DP24 prefix protocol is knowledge sound with error

\[ \frac{\kappa }{\lvert L\rvert } + \frac{2\ell '}{\lvert L\rvert }, \]

and so is the Binius frontend in the concrete setup above. The full Binius verifier is knowledge sound for its relaxed input relation with error

\[ \frac{\kappa }{\lvert L\rvert } + \frac{2\ell '}{\lvert L\rvert } + \varepsilon _{\mathrm{BBF}}, \]

and the full reduction is also perfectly complete for exact encodings.

In the concrete setup above, the unrolled verifier is round-by-round knowledge sound for the relaxed input relation of Theorem 175, and the unrolled reduction is perfectly complete for exact encodings. Its challenge-index error sum, and hence its knowledge-soundness error, is at most

\[ \frac{\kappa + 2\ell '}{\lvert L\rvert } + \frac{2^{\ell '+R}}{\lvert L\rvert } + \left(\frac12 + \frac{1}{2\cdot 2^R}\right)^{\gamma }, \]

which is equation (43) of  [ 18 ] . This is the bound of Theorem 176 minus \(2\ell '/\lvert L\rvert \): the unrolled protocol runs one sum-check where the separate composition runs two.

3.4 Binius

This section documents the binary tower fields underlying the Binius commitment scheme protocols. Their hierarchical structure enables highly efficient arithmetic. ArkLib formalizes Binary Basefold (ArkLib/ProofSystem/Binius/BinaryBasefold) and the Binius ring-switching frontend composed with a separate Binary Basefold opening (ArkLib/ProofSystem/Binius/FRIBinius); Section 3.3 states that composition. The unrolled protocol of  [ 18 ] (Construction 5.1) for \(K = \mathbb {F}_2\), which runs the ring-switching sum-check as the Binary Basefold sum-check, is formalized in ArkLib/ProofSystem/Binius/FRIBinius/Unrolled (Definition 171). This chapter does not describe the protocols further.

3.4.1 Binary Tower Fields

We define the binary tower fields [ 19 ] as defined originally as iterated quadratic extensions by Wie88 [ 29 ] . These fields, denoted \((\mathcal{T})_{\iota \in \mathbb {N}}\), provide a chain of nested field extensions for efficient arithmetic, particularly for operations involving subfields, by leveraging a highly compatible basis structure across the tower.

Definition 178 Binary Tower Field
✓
#

A binary tower field \(\mathcal{T}_{\iota }\) for \(\iota \in \mathbb {N}\) is defined inductively as the \(\iota \)-th field in the sequence of quadratic extensions over the ground field \(\mathbb {F}_2\).

  • \(\mathcal{T}_{0} := \mathbb {F}_{2}\)

  • \(\forall \iota {\gt} 0\), \(\mathcal{T}_{\iota } := \mathcal{T}_{\iota -1}[X_{\iota -1}] / (X_{\iota -1}^{2}+X_{\iota -2} \cdot X_{\iota -1}+1)\), where we conventionally set \(X_{-1} := 1\).

Theorem 179 Irreducible defining polynomial
✓
#

The defining polynomial \(X_{\iota -1}^{2}+X_{\iota -2} \cdot X_{\iota -1}+1\) of \(\mathcal{T}_{\iota }\) is irreducible over \(\mathcal{T}_{\iota -1}\) for all \(\iota {\gt} 0\).

Theorem 180 Binary Tower Fields are fields
✓

We prove that the binary tower fields are finite fields:

  • The ground field \(\mathcal{T}_{0} := \mathbb {F}_2\) is a field. For all \(\iota {\gt} 0\), \(\mathcal{T}_{\iota }\) is the quotient ring of \(\mathcal{T}_{\iota -1}[X_{\iota -1}]\) by the irreducible polynomial \(X_{\iota -1}^{2}+X_{\iota -2} \cdot X_{\iota -1}+1\), therefore \(\mathcal{T}_{\iota }\) is a field extension of \(\mathcal{T}_{\iota -1}\).

  • For all \(\iota \in \mathbb {N}\), the cardinality of \(\mathcal{T}_{\iota }\) is \(2^{2^{\iota }}\).

  • For all \(\iota \in \mathbb {N}\), the characteristic of \(\mathcal{T}_{\iota }\) is 2.

The structure of the tower provides a natural way to represent elements using a consistent set of variables. This leads to a family of multilinear bases that are compatible across different levels of the tower.

Definition 181 Multilinear Bases for Tower Fields

For any tower field \(\mathcal{T}_\iota \), we define its canonical bases as follows:

  • \(\mathbb {F}_2\)-Basis of \(\mathcal{T}_\iota \): The set of multilinear monomials in the variables \(\{ X_0, \dots , X_{\iota -1}\} \) forms a basis for \(\mathcal{T}_\iota \) as a \(2^\iota \)-dimensional vector space over \(\mathbb {F}_2\). An element is typically stored as a \(2^\iota \)-bit string corresponding to this basis.

  • \(\mathcal{T}_\iota \)-Basis of \(\mathcal{T}_{\iota +\kappa }\): For any \(\kappa \ge 0\), the set of multilinear monomials in the variables \(\{ X_\iota , \dots , X_{\iota +\kappa -1}\} \) forms a basis for \(\mathcal{T}_{\iota +\kappa }\) as a \(2^\kappa \)-dimensional vector space over the subfield \(\mathcal{T}_\iota \).

Definition 182 Computable Binary Tower Fields
✓

Building upon the abstract definition of binary tower fields, we define a concrete, computable representation of binary tower fields. This construction, which underpins our formalization, represents each element of the field \(\mathcal{T}_\iota \) as a bit vector of length \(2^\iota \) corresponding to the coefficients of the multilinear \(\mathbb {F}_2\)-basis.

The arithmetic operations on these bit-vector representations are defined as follows:

  • Addition: The sum of two elements is defined as the bitwise XOR of their corresponding bit-vector representations.

  • Multiplication (in \(\mathcal{T}_\iota \)): The product of two elements within the same field \(\mathcal{T}_\iota \) is defined via a recursive Karatsuba-based algorithm  [ 20 ] . The complexity of this operation is \(\Theta (2^{\log _2(3) \cdot \iota })\).

  • Cross-Level Multiplication: The product of an element \(\alpha \in \mathcal{T}_{\iota +\kappa }\) by a scalar \(b \in \mathcal{T}_\iota \) is defined by representing \(\alpha \) via its \(2^\kappa \) coefficients \((a_u)_{u \in \{ 0,1\} ^\kappa }\) in the \(\mathcal{T}_\iota \)-basis and performing the multiplication component-wise on those coefficients in the subfield \(\mathcal{T}_\iota \). The total complexity is \(2^\kappa \cdot \Theta (2^{\log _2(3) \cdot \iota })\).

3.5 The Spartan Protocol

3.5.1 Preliminaries

The Spartan protocol is designed to prove the satisfiability of Rank-1 Constraint System (R1CS). An R1CS instance is defined by a set of matrices \((A, B, C)\) over a field \(\mathbb {F}\) (more generally the definition makes sense over any semiring \(\mathsf{R}\)), and it is satisfied by a public input \(x\) and a private witness \(w\) if the combined vector \(z = (x, w)\) satisfies the relation:

\[ (A \cdot z) \circ (B \cdot z) = (C \cdot z) \]

where \(\circ \) denotes the Hadamard (entry-wise) product. Our formalization follows the definition in ArkLib/ProofSystem/ConstraintSystem/R1CS.lean.

3.5.2 Description in Paper

Figure 3.1 is the description of the Spartan protocol from the original paper  [ 28 ] . Note that in this section, we only formalize the Polynomial IOP (PIOP) aspect of Spartan. In the PIOP model, the prover does not commit to polynomials using a Polynomial Commitment Scheme (PCS). Instead, the verifier is given oracle access to the polynomials. Therefore, steps involving ‘PCS.Setup‘, ‘PCS.Commit‘, and ‘PCS.Eval‘ are replaced by simple oracle interactions.

\includegraphics[width=\textwidth ]{figures/spartan-description.png}
Figure 3.1 The Spartan protocol description, from the original paper.

After stripping away the polynomial commitment scheme, the protocol has the following structure:

Setup:

This step is part of the polynomial commitment scheme and is not part of the PIOP we formalize.

Interaction:

The interaction is between a prover \(\mathcal{P}\) with witness \(w\) and a verifier \(\mathcal{V}\) with public inputs \((\mathbb {F}, A, B, C, \text{io}, m, n)\).

  1. \(\mathcal{P}\): Sends oracle access to the multilinear extension of the witness, \(\tilde{w}\), to \(\mathcal{V}\). In the original paper, this is a commitment \((C,S) \leftarrow \text{PC.Commit}(\text{pp}, \tilde{w})\).

  2. \(\mathcal{V}\): Samples a random challenge \(\tau \in \mathbb {F}^{\log m}\) and sends it to \(\mathcal{P}\).

  3. Let \(T_1 = 0\), \(\mu _1 = \log m\), \(\ell _1 = 3\). These are parameters for the first sum-check protocol.

  4. \(\mathcal{V}\): Samples a random challenge \(r_x \in \mathbb {F}^{\mu _1}\).

  5. Sum-check#1. A sum-check protocol is executed. The verifier receives the claimed evaluation \(e_x\). The prover of the sum-check has oracle access to a polynomial \(G_{io, \tau }\), and the verifier has oracle access to \(r_x\). The parameters for this sub-protocol are \((\mu _1, \ell _1, T_1)\).

  6. \(\mathcal{P}\): Computes evaluations \(v_A = \tilde{A}(r_x)\), \(v_B = \tilde{B}(r_x)\), \(v_C = \tilde{C}(r_x)\) and sends them to \(\mathcal{V}\). \(\tilde{A}, \tilde{B}, \tilde{C}\) are multilinear extensions of the matrices \(A, B, C\).

  7. \(\mathcal{V}\): Aborts if \(e_x \neq (v_A \cdot v_B - v_C) \cdot \tilde{\text{eq}}(r_x, \tau )\). This is the verifier’s check for the first sum-check.

  8. \(\mathcal{V}\): Samples random challenges \(r_A, r_B, r_C \in \mathbb {F}\) and sends them to \(\mathcal{P}\).

  9. Let \(T_2 = r_A \cdot v_A + r_B \cdot v_B + r_C \cdot v_C\), \(\mu _2 = \log n\), \(\ell _2 = 2\). These are parameters for the second sum-check protocol. Note: The image states \(\mu _2 = \log m\), which is likely a typo and should be \(\log n\).

  10. \(\mathcal{V}\): Samples a random challenge \(r_y \in \mathbb {F}^{\mu _2}\).

  11. Sum-check#2. Another sum-check protocol is executed. The verifier receives the claimed evaluation \(e_y\).

  12. \(\mathcal{P}\): Computes \(v \leftarrow \tilde{w}(r_y[1..])\) and sends \(v\) to \(\mathcal{V}\).

  13. This step involves a polynomial commitment evaluation proof. In our PIOP formalization, this check is not needed as the verifier has direct oracle access to \(\tilde{w}\).

  14. \(\mathcal{V}\): This step is part of the evaluation proof check, so it is omitted.

  15. \(\mathcal{V}\): Computes \(v_Z \leftarrow (1 - r_y[0]) \cdot \tilde{w}(r_y[1..]) + r_y[0] \cdot \widetilde{(\text{io}, 1)}(r_y[1..])\). This reconstructs the evaluation of the combined input-witness vector polynomial \(\tilde{z}\).

  16. \(\mathcal{V}\): Queries oracles for \(\tilde{A}, \tilde{B}, \tilde{C}\) at \((r_x, r_y)\) to get \(v_1, v_2, v_3\).

  17. \(\mathcal{V}\): Aborts if \(e_y \neq (r_A \cdot v_1 + r_B \cdot v_2 + r_C \cdot v_3) \cdot v_Z\). This is the final check.

  18. \(\mathcal{V}\): Outputs 1.

3.5.3 Formalization using IOR Composition

We fix an R1CS size with \(m\) constraints, \(n_x\) public inputs and \(n_w\) witness variables, and set

\[ s = \lceil \log _2 m \rceil , \qquad t = \lceil \log _2 \max (n_x, n_w) \rceil + 1. \]

The formalized PIOP pads the instance to \(2^s\) constraints and to public-input and witness vectors of length \(2^{t-1}\), so that \(z = (x, w)\) is indexed by \(\{ 0,1\} ^t\). It is the sequential composition of seven oracle reductions; the bound in brackets is the round-by-round knowledge error charged to each challenge of that stage, where \(q = |\mathbb {F}|\).

The Spartan oracle reduction is the composition of:

  1. Witness attachment [\(0\)]: the prover sends the padded witness table as an oracle message, an instance of the adapter of Definition 127.

  2. Zero-check [\(s/q\)]: the verifier samples \(\tau \in \mathbb {F}^{s}\), reducing the claim that every constraint holds (the multilinear extension of the residual \((Az) \circ (Bz) - Cz\) is zero) to the claim that this extension vanishes at \(\tau \), equivalently \(\sum _{x \in \{ 0,1\} ^s} \tilde{\text{eq}}(\tau , x)\, ((Az)_x (Bz)_x - (Cz)_x) = 0\).

  3. First sum-check [\(3/q\)]: sum-check of degree \(3\) in \(s\) rounds, ending at a point \(r_x\).

  4. Send evaluations [\(0\)]: the prover sends \(v_A, v_B, v_C\), and the verifier checks the first sum-check’s final claim against them.

  5. Batching [\(1/q\)]: the verifier samples one challenge consisting of three independent coefficients \((r_A, r_B, r_C)\), forming the claim \(T_2 = r_A v_A + r_B v_B + r_C v_C\).

  6. Second sum-check [\(2/q\)]: sum-check of degree \(2\) in \(t\) rounds, ending at a point \(r_y\).

  7. Terminal check [\(0\)]: the verifier evaluates the second virtual polynomial at \(r_y\) through the matrix and witness oracles and compares it with the final claim.

Theorem 184 Perfect completeness
✓
#

The Spartan oracle reduction is perfectly complete from the original (unpadded) R1CS satisfiability relation to the trivial output relation.

Theorem 185 Round-by-round knowledge soundness
✓

The Spartan verifier is fixed-prefix round-by-round knowledge sound for the original R1CS relation, with each challenge charged the error of its stage listed in Definition 183. The state function is the composition of the stage state functions, retaining every earlier rejecting check.

The per-challenge errors sum to

\[ \frac{s}{q} + s \cdot \frac{3}{q} + \frac{1}{q} + t \cdot \frac{2}{q} = \frac{4s + 2t + 1}{q}. \]

The Spartan verifier is knowledge sound for the original R1CS relation with error \((4s + 2t + 1)/q\), and also with error \(\min (1, (4s + 2t + 1)/q)\). The extractor obtained by folding the round-by-round extractors equals an executable straight-line extractor, which restricts the first message (the padded witness table) to the original witness coordinates.

3.6 The Plonk Polynomial IOP

ArkLib formalizes the polynomial oracle reduction underlying Plonk  [ 22 ] . It composes four stages, each a standalone oracle reduction. The result concerns the polynomial IOP; it does not include a polynomial commitment scheme or Fiat–Shamir.

Fix a field \(\mathbb {F}\) with decidable equality, a number of rows \(n\geq 2\), and a primitive \(n\)-th root of unity \(\omega \), so that \(H=\{ 1,\omega ,\ldots ,\omega ^{n-1}\} \) is the row domain. A constraint system has \(m\) variables and \(n\) gates; each gate constrains a left, right and output wire, and copy constraints identify wires that carry the same variable. Fix coset labels for the three wire columns and a public-input polynomial \(\mathit{pi}\) of degree less than \(n\). A wire table is three polynomials \(a_0,a_1,a_2\) of degree less than \(n\).

Definition 187 Plonk oracle reduction
✓

The input relation holds for a wire table when the gate polynomial built from the table and \(\mathit{pi}\) vanishes on \(H\), and the wire values satisfy every copy constraint. The reduction is the sequential composition of four stages, with six rounds in total.

  1. Wire reveal. The prover sends the wire table as one polynomial oracle.

  2. Grand product. The verifier sends the permutation challenges \((\beta ,\gamma )\) jointly. The prover replies with the accumulator polynomial \(Z\). The output claim is that three residual polynomials vanish on \(H\).

  3. Power batch. The verifier sends one challenge \(\alpha \) and the three residuals are combined with coefficients \(1,\alpha ,\alpha ^2\) (Definition 138).

  4. Quotient. The prover sends the quotient polynomial and the verifier checks the quotient identity at a random point (Definition 136). The output relation accepts every output.

Every earlier oracle is retained up to the terminal check.

Theorem 188 Plonk completeness
✓

Let \(\mathbb {F}\) be finite and sampleable. For every initial distribution of the shared oracle state and every implementation of that oracle, the honest prover is complete from the input relation to the output relation with error \(3n/|\mathbb {F}|\). The failure occurs only at the grand-product challenge.

Under the hypotheses of Theorem 188, the verifier is round-by-round knowledge sound from the input relation to the output relation. The errors at the three challenges are

\[ \frac{3n-1}{|\mathbb {F}|}\ \text{(grand product)},\qquad \frac{2}{|\mathbb {F}|}\ \text{(power batch)},\qquad \frac{4(n-1)}{|\mathbb {F}|}\ \text{(quotient)}, \]

and the reveal stage has no challenge. The errors sum to \((7n-3)/|\mathbb {F}|\). Consequently the verifier is knowledge sound with error \((7n-3)/|\mathbb {F}|\), and the extractor returns the wire table from the first prover message.

The circuit relation.

For a constraint system with \(\ell \leq m\) public inputs, the Plonk relation holds for a public input \(x\in \mathbb {F}^{\ell }\) and a private witness \(w\in \mathbb {F}^{m-\ell }\) when the assignment \((x,w)\) satisfies every gate and copy constraint. To prove it, the constraint system is prepared: \(\ell \) public-equality rows are prepended, so the domain has \(\ell +n\) rows and \(\omega \) is a primitive \((\ell +n)\)-th root of unity with \(\ell +n\geq 2\). The public constants of the new rows are cleared and \(x\) enters through the public-input polynomial.

With the prepared system above, the verifier is knowledge sound from the Plonk relation at public input \(x\) to the accepting output relation, with error \((7(\ell +n)-3)/|\mathbb {F}|\). The extractor decodes the first prover message into the private witness \(w\).

3.7 FRI soundness

We follow the March 27, 2026 revision of  [ 23 ] . The earlier zkSecurity formalization, by Yoichi Hirai and Harmonic’s Aristotle, with subsequent work by Pietro Monticone, also informed the argument. ArkLib reuses its existing Reed–Solomon codes, word-folding operations, mutual correlated agreement (MCA), and probability theory.

Let \(D\) be a multiplicative coset of size \(2^n\), let \(m=2^k\) be a folding factor, and let \(D'=D^m\). Write \(C=\mathrm{RS}(D,md)\) and \(C'=\mathrm{RS}(D',d)\), with \(d{\gt}0\). For a word \(f\) on \(D\), write \(f_j\) for the coefficient words of its block interpolants, so that \(\operatorname {Fold}_\alpha (f)=\sum _{j{\lt}m}\alpha ^j f_j\).

Lemma 191
✓
#

If every \(f_j\) agrees with a codeword in \(C'\) on \(T\subseteq D'\), then a single codeword in \(C\) agrees with \(f\) on the whole preimage of \(T\) under \(x\mapsto x^m\).

Proof ▶

Choose degree-\({\lt}d\) polynomials \(p_j\) witnessing agreement on \(T\) and recombine them as \(p(X)=\sum _{j{\lt}m}X^j p_j(X^m)\). This polynomial has degree less than \(md\). Evaluation on every block above \(T\) recovers its interpolant and hence the word.

Definition 192
✓
#

For a tradeoff parameter \(\theta \), a challenge \(\alpha \) is bad if there exists \(T\subseteq D'\) of size at least \((1-\theta )|D'|\) such that the folded word agrees with \(C'\) on \(T\), but no codeword in \(C\) agrees with \(f\) on the whole preimage of \(T\). The parameter \(\theta \) is independent of the input distance.

For every fixed word \(f\), the probability of a bad uniform challenge is at most the MCA error of the powers generator \((1,\alpha ,\ldots ,\alpha ^{m-1})\) for \(C'\) at radius \(\theta \).

Proof ▶

A bad challenge is an MCA failure for the coefficient words: if every coefficient word agreed on the same \(T\), Lemma 191 would lift the agreement. No union bound over subsets is needed. The generalized-Johnson specialization instantiates the existing powers-MCA bound from  [ 8 ] , retaining all its field-size, slack, and radius assumptions.

Theorem 194
✓

Fix a commitment trace with no bad folding challenge and let \(\delta \) be the initial word’s relative distance from its Reed–Solomon code. The probability of acceptance on \(t\) independent uniform initial-domain queries is at most \((1-\min \{ \theta ,\delta \} )^t\).

Proof ▶

If the final word is not in its code, acceptance is impossible. Otherwise any set of accepting initial positions of density at least \(1-\theta \) agrees with one original codeword: project the positions through each fold, observe that density cannot decrease, and lift agreement backwards. Thus the accepting density is at most \(1-\min \{ \theta ,\delta \} \). Independent repetitions raise this density to the \(t\)th power.

For a safe trace with positive degree bound \(d\) and \(t{\gt}0\), suppose \(\delta \leq \theta \) and \(\delta \leq 1-d/|D|\). Acceptance probability at least \((1-\delta )^t\) implies that the initial word is within relative distance \(\delta \) of its code. A unique codeword agrees with it on every accepting position. Interpolation on any \(d\) accepting positions recovers this codeword, and a query at a disagreement position forces rejection.

Proof ▶

The rate condition and \(d{\gt}0\) give \(\delta {\lt}1\), so positive acceptance implies a valid final word. Positive \(t\) gives accepting density at least \(1-\delta \). Since \(\delta \leq \theta \), agreement lifts to an initial codeword within distance \(\delta \). Since \(\delta \leq 1-d/|D|\), the accepting set has at least \(d\) positions, giving uniqueness. Lagrange interpolation supplies algebraic recovery on any \(d\) accepting positions. No extraction running-time bound is asserted.

The specified FRI oracle reduction has round-by-round error equal to the powers-MCA error at each folding challenge and \((1-\min \{ \theta ,\delta \} )^t\) at its final query-vector challenge. Its ordinary soundness error is the sum of these errors, against every adaptive prover. More strongly, this bounds any acceptance when the input has distance at least \(\delta \) from its initial code.

Proof ▶

Use the actual protocol transcript, including the retained committed words and the terminal polynomial. A persistent state records that the input is valid or a bad challenge has occurred. Prover messages cannot create this state. The conditional probability of each fresh bad event is bounded by the appropriate folding or query theorem. The executable verifier accepts exactly the final query event, including the terminal degree guard, so it rejects whenever the persistent state is false. This supplies round-by-round soundness through ArkLib’s fixed-prefix interface. Separately, induction over the actual stateful prover execution accumulates the conditional errors and proves ordinary soundness.

Executable specification and scope.

The executable local consistency check is related to ArkLib’s word fold by RoundConsistency.roundConsistencyCheck_eq_foldValue, for arbitrary oracle words. The specification retains all prior words, and checks the final polynomial’s degree before the query phase. Fri.Spec.reduction_run identifies the exact acceptance event of Fri.Spec.reduction; the input-language bridge uses its original computational-polynomial witness relation. The result concerns the interactive oracle protocol, not Fiat–Shamir compilation or a concrete commitment scheme.

3.7.1 Certified straightline extraction

Write \(N=2^n\), \(b_i=2^{s_i}\), and \(M=(\prod _i b_i)d\) for the initial polynomial dimension, where all folding exponents and \(d\) are positive and \(\sum _i s_i\leq n\). The retained history contains arbitrary committed words, the folding challenges, and a final computational polynomial. No intermediate honesty assumption is made.

The named straightline extractor reads only the transcript prefix preceding the query-vector challenge. It first rejects if the final polynomial has degree at least \(d\), before coefficient, domain, challenge, or word accesses. Otherwise it scans every initial-domain position in order and applies the actual local checks. It counts all accepting positions and caches the first \(M\) nodes and initial-word values. Fewer than \(M\) acceptances yield failure. Otherwise it interpolates these cached samples and returns the polynomial if its degree is less than \(M\). Its public result is the literal first projection of this measured program.

Fix a safe retained history at threshold \(\theta \), whose final polynomial has degree less than \(d\). Let \(A\) be its accepting initial-domain positions. If \(N(1-\theta )\leq |A|\) and \(M\leq |A|\), the named extractor returns a polynomial of degree less than \(M\) agreeing with the initial word on all of \(A\). Consequently, if \(\tau \leq \theta \), \(\tau \leq 1-M/N\), and \(N(1-\tau )\leq |A|\), the returned witness has relative distance at most \(\tau \).

Proof ▶

Safe-history agreement lifting supplies one degree-bounded codeword agreeing on \(A\). The first \(M\) cached nodes are distinct accepting positions, so polynomial uniqueness identifies their measured interpolant with that codeword. The final degree guard therefore succeeds. Disagreements are confined to the complement of \(A\), giving relative distance at most \(1-|A|/N\).

Suppose \(M\leq N\), \(\delta \geq 0\), and \(\min \{ \theta ,\delta \} \leq 1-M/N\), including equality. For every input statement, every adaptive prover, and every query count \(l\), the actual FRI reduction has straightline knowledge soundness with the named extractor and error

\[ \operatorname {soundnessError} =\sum _i\varepsilon _i(\theta ) +\bigl(\max \{ 0,1-\min \{ \theta ,\delta \} \} \bigr)^l, \]

where \(\varepsilon _i(\theta )\) is the existing powers-MCA folding error. The failure event includes both extraction failure and a returned witness outside the original closed-ball input relation, when the accepted output witness is valid.

Proof ▶

Use fresh folding-failure events with the empty input language, so the adaptive accumulation covers all inputs. For \(0\leq \min \{ \theta ,\delta \} \), conditional on a safe prefix, a failed extraction and a valid final polynomial imply that the accepting density is less than \(1-\min \{ \theta ,\delta \} \), by Theorem 198. The query-vector probability is bounded by the corresponding \(l\)th power. The logged-game bridge preserves private and shared oracle state and treats the optional extraction result as a value, counting failure rather than aborting it. If \(\min \{ \theta ,\delta \} {\lt}0\), the query term is at least one and the bound is vacuous. If \(l=0\), this term is one as well. Neither case needs an additional public assumption. Numerical estimates for the MCA terms retain their separate field-size, slack, and radius hypotheses.

Resource model.

The arithmetic and immutable-input instruction handlers execute the very program whose result defines the extractor. Field nodes are generated from at most two domain reads by explicit measured powers; word-read addresses carry those nodes. The profiles count repeated word, domain, challenge, coefficient, and cached-array accesses; field addition, subtraction, multiplication, equality, and inversion; and designated source-level control ticks. An inverse is one algebraic primitive. Erased certificates carry the reference-domain and polynomial identities. These counts exclude receipt or deserialization of retained functions, the cost of evaluating those functions, allocation, machine index arithmetic, and field bit complexity. Complete index enumeration prevents a claim of total \(O(M)\) workspace here. The algebraic interpolation theorem above remains a separate statement from these explicit measured programs.

Put \(I(m)=100(m+1)^3\), \(E(m)=(m+1)^2\), and

\[ G=2(n+2)+\sum _i(4b_i+8)(n+1),\qquad J=1+\sum _i(n-s_i). \]

For every retained history with \(\sum _i s_i\leq n\), including rejected histories, the measured extractor performs at most

\[ N\left(\sum _i b_i+k\right)+M \quad \text{word reads},\qquad 1+N\sum _i b_i(b_i-1)+M(M-1) \quad \text{inversions}. \]

It performs at most two original-domain reads, at most \(k+1\) folding-challenge reads, and exactly one final-polynomial retrieval. Each of the combined addition/subtraction count, the multiplication count, and the field-equality count is bounded by

\[ B=N\left[G+\sum _i\bigl(I(b_i)+E(b_i)+1\bigr)+E(d)\right]+I(M)+J. \]

Every coefficient, node-cache, value-cache, and designated metadata coordinate also obeys the explicit whole-program profile envelope.

Proof ▶

Add the initialization envelope, all \(N\) scan-cell envelopes, and the final interpolation envelope. The selected cache contributes at most \(M\) extra word reads. Every interpolation of size \(m\) uses exactly \(m(m-1)\) inverse requests. Its combined additions/subtractions fit one \(I(m)\) budget, as do its multiplications and equality tests separately. Power-sum evaluation fits \(E(m)\). Only the final round evaluates the transmitted polynomial, giving one \(E(d)\) per position. Explicit squaring and binary-power bounds fit \(G\); initialization multiplications fit \(J\). All branches, including the initial degree rejection, are included. No safe-history, honesty, radius, or \(M\leq N\) premise is used.

Under the actual reduction’s \(M\leq N\) constraint, these envelopes are polynomial in \(N\), rather than in \(\log N\). The unit-access model above does not bound bit complexity or cryptographic polynomial running time.

3.8 Batched FRI

Batched FRI tests \(m+1\) words for proximity to one Reed–Solomon code by a single FRI run on a random linear combination. Keep the notation of the previous section: \(\omega \) is a smooth coset FFT domain \(D\) of size \(2^n\) over a finite field of odd characteristic, \(s_0,\ldots ,s_k\geq 1\) are the folding exponents, \(d\geq 1\) is the final degree bound, \(l\) is the number of queries, and \(d_0:=2^{\sum _i s_i}\, d\leq 2^n\) is the initial degree bound. Write \(C_0=\mathrm{RS}(D,d_0)\). A generator \(G:S\to \mathbb {F}^{m+1}\) supplies the batching coefficients from a seed in a sampleable type \(S\).

The input statement is \(m+1\) oracle words \(f_0,\ldots ,f_m:D\to \mathbb {F}\); the witness is \(m+1\) polynomials \(p_0,\ldots ,p_m\) of degree less than \(d_0\). For \(\delta \geq 0\), the input relation holds when some set \(T\subseteq D\) with \(|T|\geq (1-\delta )2^n\) satisfies \(f_i(x)=p_i(x)\) for every \(i\) and every \(x\in T\). In the batching round the verifier sends one seed \(c\in S\) and the prover sends nothing. The output is the virtual oracle \(\sum _{i\leq m}G(c)_i f_i\), which feeds the initial FRI relation at the same radius. Batched FRI is the append of this round with the FRI reduction of the previous section.

Let \(\delta ,\varepsilon \geq 0\) and \(\theta \in \mathbb {R}\), and assume \(\mathsf{caError}(G,C_0,\delta ,\delta )\leq \varepsilon \). For every initial distribution of the shared oracle state and every implementation of that oracle, the Batched FRI verifier is sound from the language of the input relation at radius \(\delta \) to the language of the FRI output relation at radius \(\delta \), with error

\[ \varepsilon +\sum _i\varepsilon ^{\mathrm{fold}}_i+(1-\min \{ \theta ,\delta \} )_+^{\, l}, \]

where the last two terms are the FRI soundness error of Theorem 196. The batching round alone is round-by-round sound with error \(\varepsilon \).

Theorem 203 Batched FRI completeness
✓

For every generator, query count and shared-oracle implementation, Batched FRI is perfectly complete from the input relation at radius \(0\) to the FRI output relation at radius \(0\).

The generator hypothesis is discharged for four generators. Write \(\rho \) for the rate of \(C_0\), and \(\varepsilon _{\mathrm{BCIKS}}(\delta )\) for the error that equals \(2^n/|\mathbb {F}|\) when \(\delta \leq (1-\rho )/2\), equals \(d_0^2/\bigl((2\min \{ 1-\sqrt\rho -\delta ,\sqrt\rho /20\} )^7|\mathbb {F}|\bigr)\) when \((1-\rho )/2{\lt}\delta {\lt}1-\sqrt\rho \), and is \(0\) otherwise.

Under the hypotheses of Theorem 202 without the \(\mathsf{caError}\) assumption, the soundness error is the FRI error plus the following batching error.

  • Affine space \(c\mapsto (1,c_1,\ldots ,c_m)\), \(c\in \mathbb {F}^m\), with \(0{\lt}\delta {\lt}1-\sqrt\rho \): \(\varepsilon _{\mathrm{BCIKS}}(\delta )\).

  • Powers \(c\mapsto (1,c,\ldots ,c^m)\), \(c\in \mathbb {F}\), with \(0{\lt}\delta {\lt}1-\sqrt\rho \): \(m\cdot \varepsilon _{\mathrm{BCIKS}}(\delta )\).

  • Multilinear monomials in \(t\) variables, so \(m+1=2^t\), with \(\delta {\gt}0\) at most the relative unique decoding radius of \(C_0\): \(t\cdot 2^n/|\mathbb {F}|\).

  • The same multilinear generator, with \(\delta _{\min }\) the relative minimum distance of \(C_0\), \(0{\lt}\eta {\lt}\delta _{\min }\) and \(0{\lt}\delta \leq 1-(1-\delta _{\min }+\eta )^{1/3}\): \(t\) times the affine-line MCA error

    \[ \frac{1}{|\mathbb {F}|}\left(\frac{2^n+6}{\eta } +\frac{2}{\eta \bigl((1-\delta _{\min }+\eta )^{1/3} -(1-\delta _{\min }+\eta )^{1/2}\bigr)}\right), \]

    truncated below at \(0\).

Knowledge soundness of Batched FRI is not formalized: the batching round has no extractor.

3.9 STIR

3.9.1 Tools for Reed Solomon codes

Random linear combination as a proximity generator

Theorem 205
✓

Let \(\mathcal{C}:= \mathrm{RS}[\mathbb {F},\mathcal{L},d]\) be a Reed Solomon code with \(d\ge 1\) and rate \(\rho :=\frac{d}{|\mathcal{L}|}\) and let \(B^*(\rho ):=\sqrt{\rho }\). For every \(\delta \in (0,1 - B^*(\rho ))\) and functions \(f_0,\ldots ,f_{m-1} : \mathcal{L}\to \mathbb {F}\), if

\[ \Pr _{r\leftarrow \mathbb {F}}\! \Bigl[ \Delta \Bigl(\sum _{j=0}^{m-1} r^j\cdot {f_j},\mathrm{RS}[\mathbb {F},\mathcal{L},d]\Bigr) \le \delta \Bigr]{\gt}\mathsf{err}^*(d,\rho ,\delta ,m), \]

then there exists a subset \(S \subseteq \mathcal{L}\) with \(|S| \ge (1 - \delta )\cdot |\mathcal{L}|\), and for every \(i \in \{ 0,\ldots ,m-1\} \), there exists \(u \in \mathrm{RS}[\mathbb {F},\mathcal{L},d]\) such that \(f_i(S) = u(S)\).

Above, \(\mathsf{err}^*(d,\rho ,\delta ,m)\) is defined as follows:

  • if \(\delta \in \left(0,\frac{1-\rho }{2}\right]\) then

    \[ \mathsf{err}^*(d,\rho ,\delta ,m)=\frac{(m-1)\cdot d}{\rho \cdot |\mathbb {F}|} \]
  • if \(\delta \in \Bigl(\frac{1-\rho }{2}, 1-\sqrt{\rho }\Bigr)\) then

    \[ \mathsf{err}^*(d,\rho ,\delta ,m)=\frac{(m-1)\cdot {d}^2}{|\mathbb {F}|\cdot {\Bigl(2\cdot \min \{ 1-\sqrt{\rho }-\delta ,\frac{\sqrt{\rho }}{20}\} \Bigr)}^7} \]
Proof ▶

For an empty family, take the whole evaluation domain. Otherwise write \(m=k+1\) and apply correlated agreement for affine curves from [ 6 ] . In the admissible distance range, the error above equals \(k\) times the correlated-agreement error bound, in both the unique-decoding and Johnson regimes. The resulting joint agreement gives the common set \(S\).

Univariate Function Quotienting

In the following, we start by defining the quotient of a univariate function.

Definition 206
✓
#

Let \(f:\mathcal{L}\to \mathbb {F}\) be a function, \(S\subseteq \mathbb {F}\) be a finite set, and \(\mathsf{Ans},\mathsf{Fill}: S\rightarrow \mathbb {F}\) be functions. Let \(\hat{\mathsf{Ans}}\in \mathbb {F}^{{\lt}|S|}[X]\) be the unique polynomial of degree less than \(|S|\) with \(\hat{\mathsf{Ans}}(x)=\mathsf{Ans}(x)\) for every \(x\in S\) (the zero polynomial when \(S\) is empty), and let \(\hat{V}_S(X):=\prod _{s\in S}(X-s)\), the unique monic polynomial of degree \(|S|\) vanishing on \(S\). The quotient function \(\mathsf{Quotient}\bigl(f,S,\mathsf{Ans},\mathsf{Fill}\bigr): \mathcal{L}\to \mathbb {F}\) is defined as follows:

\[ \forall x \in \mathcal{L}, \quad \mathsf{Quotient}\bigl(f, S, \mathsf{Ans}, \mathsf{Fill} \bigr)(x) := \left\{ \begin{array}{ll} \mathsf{Fill}(x) & \text{if } x \in S \\[6pt] \dfrac {f(x) - \hat{\mathsf{Ans}}(x)}{\hat{V}_S(x)} & \text{otherwise} \end{array} \right. \]

Next we define the polynomial quotient operator, which quotients a polynomial relative to its output on evaluation points. The polynomial quotient is a polynomial of lower degree.

Definition 207
✓
#

Let \(\hat{f}\in \mathbb {F}^{{\lt}d}[X]\) be a polynomial and \(S\subseteq \mathbb {F}\) be a finite set with \(|S|\le d\), and let \(\hat{V}_S(X):=\prod _{s\in S}(X-s)\), the unique monic polynomial of degree \(|S|\) vanishing on \(S\). The polynomial quotient \(\mathsf{PolyQuotient}(\hat{f},S)\in \mathbb {F}^{{\lt}d-|S|}[X]\) is defined as follows:

\[ \mathsf{PolyQuotient}(\hat{f},S)(X):=\frac{\hat{f}(X)-\hat{\mathsf{Ans}}(X)}{\hat{V}_S(X)} \]

where \(\hat{\mathsf{Ans}}\in \mathbb {F}^{{\lt}|S|}[X]\) is the unique polynomial of degree less than \(|S|\) interpolating \(\hat{f}\) on \(S\).

The following lemma, implicit in prior works, shows that if the function is “quotiented by the wrong value”, then its quotient is far from low-degree.

Let \(f:\mathcal{L}\rightarrow \mathbb {F}\) be a function, \(d\in \mathbb {N}\) be the degree parameter with \(d\le |\mathcal{L}|\), \(\delta \in (0,1)\) be a distance parameter, \(S\subseteq \mathbb {F}\) be a set with \(|S|{\lt}d\), and \(\mathsf{Ans},\mathsf{Fill}:S\rightarrow \mathbb {F}\) are functions. Suppose that for every \(u\in \mathsf{List}(f,d,\delta )\) there exists \(x\in S\) with \(\hat{u}(x)\neq \mathsf{Ans}(x)\). Then

\[ \Delta (\mathsf{Quotient}(f,S,\mathsf{Ans},\mathsf{Fill}),\mathrm{RS}[\mathbb {F},\mathcal{L},d-|S|])+\frac{|T|}{|\mathcal{L}|}{\gt}\delta , \]

where \(T:=\{ x\in \mathcal{L}\cap S: \hat{\mathsf{Ans}}(x)\neq f(x)\} \).

Out of domain sampling

Let \(\mathbb {F}\) be a finite field and \(\mathcal{L}\subseteq \mathbb {F}\) an evaluation domain with \(|\mathcal{L}|{\lt}|\mathbb {F}|\), so that \(\mathbb {F}\setminus \mathcal{L}\) is nonempty. Let \(f:\mathcal{L}\rightarrow \mathbb {F}\) be a function, \(d\in \mathbb {N}\) be a degree parameter, \(s\in \mathbb {N}\) be a repetition parameter, \(\delta \ge 0\) be a distance parameter and \(l\ge 0\) a real list-size bound. If \(\mathrm{RS}[\mathbb {F},\mathcal{L},d]\) is \((\delta ,l)\)-list decodable, then

\[ \begin{array}{rcl} \Pr _{\substack {r_0, \ldots , r_{s-1} \gets \mathbb {F}\setminus \mathcal{L}}} \left[ \begin{array}{c} \exists \text{ distinct } u, u’ \in \mathsf{List}(f, d, \delta ): \\ \forall i \in [s],\ \hat{u}(r_i) = \hat{u}’(r_i) \end{array} \right] & \leq & \frac{l\, (l-1)}{2} \cdot \left( \frac{d- 1}{|\mathbb {F}| - |\mathcal{L}|} \right)^s \\ & \leq & \left( \frac{l^2}{2} \right) \cdot \left( \frac{d}{|\mathbb {F}| - |\mathcal{L}|} \right)^s \end{array} \]

Here \(l-1\) is truncated at \(0\), and the \(r_i\) are independent and uniform on \(\mathbb {F}\setminus \mathcal{L}\).

Folding univariate functions

STIR relies on \(k\)-wise folding of functions and polynomials - this is similar to prior works, although presented in a slightly different form. As shown below, folding a function preserves proximity from the Reed-Solomon code with high probability. The folding operator is based on the following fact, decomposing univariate polynomials into bivariate ones.

Given a non-constant polynomial \(\hat{q}\in \mathbb {F}[X]\):

  • For every univariate polynomial \(\hat{f}\in \mathbb {F}[X]\), there exists a unique bivariate polynomial \(\hat{Q}\in \mathbb {F}[X,Y]\) with:

    \[ \mathsf{deg}_X(\hat{Q}) := \left\lfloor \frac{\mathsf{deg}(\hat{f})}{\mathsf{deg}(\hat{q})} \right\rfloor ,\quad \mathsf{deg}_Y(\hat{Q}) {\lt} \mathsf{deg}(\hat{q}) \]

    such that \(\hat{f}(Z)=\hat{Q}(\hat{q}(Z),Z)\). Observe that if \(\mathsf{deg}(\hat{f}){\lt}t\cdot \mathsf{deg}(\hat{q})\) then \(\mathsf{deg}_X(\hat{Q}){\lt}t\).

  • For every \(\hat{Q}[X,Y]\) with \(\mathsf{deg}_X(\hat{Q}){\lt}t\) and \(\mathsf{deg}_Y(\hat{Q}){\lt}\mathsf{deg}(\hat{q})\), the polynomial \(\hat{f}(Z)=\hat{Q}(\hat{q}(Z),Z)\) has degree \(\mathsf{deg}(\hat{f}){\lt}t\cdot \mathsf{deg}(\hat{q})\).

Moreover, \(\hat{Q}\) can be computed efficiently given \(\hat{f}\) and \(\hat{q}\); the formalization defines it by repeated division by \(\hat{q}\).

Below, we define folding of a polynomial followed by folding of a function.

Given a polynomial \(\hat{f}\in \mathbb {F}[X]\), a folding parameter \(k\in \mathbb {N}\) with \(k\ge 1\) and \(r\in \mathbb {F}\), we define a polynomial \(\mathsf{PolyFold}(\hat{f},k,r)\in \mathbb {F}[X]\) as follows. Let \(\hat{Q}[X,Y]\) be the bivariate polynomial derived from \(\hat{f}\) using Lemma 210 with the non-constant polynomial \(\hat{q}(X):=X^k\). Then \(\mathsf{PolyFold}(\hat{f},k,r)(X):=\hat{Q}(X,r)\). Its degree is at most \(\lfloor \mathsf{deg}(\hat{f})/k\rfloor \).

Definition 212
✓
#

Let \(f:\mathcal{L}\rightarrow \mathbb {F}\) be a function, \(k\in \mathbb {N}\) a folding parameter and \(\alpha \in \mathbb {F}\). For every \(x\in {\mathcal{L}}^k\), let \(\hat{p}_x\in \mathbb {F}^{{\lt}k}[X]\) be the polynomial where \(\hat{p}_x(y)=f(y)\) for every \(y\in {\mathcal{L}}\) such that \(y^k=x\). We define \(\mathsf{Fold}(f,k,\alpha ):{\mathcal{L}}^k\rightarrow \mathbb {F}\) as follows.

\[ \mathsf{Fold}(f,k,\alpha )(x):=\hat{p}_x(\alpha ). \]

In order to compute \(\mathsf{Fold}(f,k,\alpha )(x)\) it suffices to interpolate the \(k\) values \(\{ f(y):y\in \mathcal{L}\text{ s.t. }y^k=x\} \) into the polynomial \(\hat{p}_x\) and evaluate this polynomial at \(\alpha \). The formalization takes \(\mathcal{L}\) to be a smooth coset FFT domain of size \(2^n\) and a folding parameter of the form \(2^k\).

The following lemma shows that the distance of a function is preserved under folding. If a functions \(f\) has distance \(\delta \) to a Reed-Solomon code then, with high probability over the choice of folding randomness, its folding also has a distance of \(\delta \) to the “\(k\)-wise folded” Reed-Solomon code.

Let \(\mathcal{L}\) be a smooth coset FFT domain of size \(2^n\), let \(d=2^{d}\) and let the folding parameter be \(2^{k}\) with \(1\le k\le d\le n\). Let \(\rho :=\frac{d}{|\mathcal{L}|}\). For every function \(f:\mathcal{L}\rightarrow \mathbb {F}\) and distance parameter \(\delta \in (0,\min \{ \Delta (f,\mathrm{RS}[\mathbb {F},\mathcal{L},d]),1-{\mathsf{B}}^*(\rho )\} )\),

\[ \Pr _{r^{\mathsf{fold}}\gets \mathbb {F}}[\Delta (\mathsf{Fold}(f,2^k,r^{\mathsf{fold}}),\mathrm{RS}[\mathbb {F},{\mathcal{L}}^{2^k}, d/2^k])\le \delta ]\le \mathsf{err}^*(d/2^k,\rho ,\delta ,2^k). \]

Above, \({\mathsf{B}}^*\) and \({\mathsf{err}}^*\) are the proximity bound and error (respectively) described in ??.

Combine functions of varying degrees

We show a new method for combining functions of varying degrees with minimal proximity require- ments using geometric sums. We begin by recalling a fact about geometric sums.

Lemma 214
✓
#

Let \(\mathbb {F}\) be a field, \(r\in \mathbb {F}^\times \) be a nonzero field element, \(a\in \mathbb {N}\) be a natural number. Then

\[ \sum _{i=0}^{a} r^i := \left\{ \begin{array}{ll} \displaystyle \left(\frac{1 - r^{a+1}}{1 - r}\right) & \text{if } r \neq 1 \\[6pt] a + 1 & \text{if } r = 1 \end{array} \right. \]
Definition 215
✓
#

Given target degree \(d^*\in \mathbb {N}\), shifting parameter \(r\in \mathbb {F}\), functions \(f_0,\ldots ,f_{m-1}:\mathcal{L}\rightarrow \mathbb {F}\), and degrees \(0\leq d_0,\ldots ,d_{m-1}\leq {d}^*\), we define \(\mathsf{Combine}(d^*,r,(f_0,d_0),\ldots ,(f_{m-1},d_{m-1})):\mathcal{L}\rightarrow \mathbb {F}\) as follows:

\[ \begin{array}{rcl} \mathsf{Combine}(d^*, r, (f_0, d_0), \ldots , (f_{m-1}, d_{m-1}))(x) & := & \displaystyle \sum _{i=0}^{m-1} r_i \cdot f_i(x) \cdot \left( \sum _{l=0}^{d^* - d_i} (r \cdot x)^l \right) \\[10pt]& = & \left\{ \begin{array}{ll} \displaystyle \sum _{i=0}^{m-1} r_i \cdot f_i(x) \cdot \left( \dfrac {1 - (x r)^{d^* - d_i + 1}}{1 - x r} \right) & \text{if } x \cdot r \neq 1 \\[8pt] \displaystyle \sum _{i=0}^{m-1} r_i \cdot f_i(x) \cdot (d^* - d_i + 1) & \text{if } x \cdot r = 1 \end{array} \right. \end{array} \]

Above, \(r_i:=r^{i+\sum _{j{\lt}i}(d^*-d_j)}\).

Definition 216
✓
#

Given target degree \(d^*\in \mathbb {N}\), shifting parameter \(r\in \mathbb {F}\), function \(f:\mathcal{L}\rightarrow \mathbb {F}\), and degree \(0\leq d\leq d^*\), we define \(\mathsf{DegCor}(d^*,r,f,d)\) as follows.

\[ \begin{array}{rcl} \mathsf{DegCor}(d^*, r, f, d)(x) & := & \displaystyle f(x) \cdot \left( \sum _{l=0}^{d^* - d} (r \cdot x)^l \right) \\[10pt]& = & \left\{ \begin{array}{ll} \displaystyle f(x) \cdot \left( \dfrac {1 - (x r)^{d^* - d+ 1}}{1 - x r} \right) & \text{if } x \cdot r \neq 1 \\[8pt] \displaystyle f(x) \cdot (d^* - d+ 1) & \text{if } x \cdot r = 1 \end{array} \right. \end{array} \]

(Observe that \(\mathsf{DegCor}(d^*,r,f,d)=\mathsf{Combine}(d^*,r,(f,d))\).)

Below it is shown that combining multiple polynomials of varying degrees can be done as long as the proximity error is bounded by \((\min {\{ 1-{\mathsf{B}}^*(\rho ),1-\rho -1/|\mathcal{L}|\} })\).

Lemma 217
✓

Let \(d^*\ge 1\) be a target degree, \(f_0,\ldots ,f_{m-1}:\mathcal{L}\rightarrow \mathbb {F}\) be functions, \(0\leq d_0,\ldots ,d_{m-1}\leq d^*\) be degrees, \(\delta \in (0,\min {\{ 1-{\mathsf{B}}^*(\rho ),1-\rho -1/|\mathcal{L}|\} })\) be a distance parameter, where \(\rho =d^*/|\mathcal{L}|\). If

\[ \Pr _{r\gets \mathbb {F}}[\Delta (\mathsf{Combine}(d^*,r,(f_0,d_0),\ldots ,(f_{m-1},d_{m-1})),\mathrm{RS}[\mathbb {F},\mathcal{L},d^*])\le \delta ]{\gt}\mathsf{err}^*(d^*,\rho ,\delta ,m\cdot (d^*+1)-\sum _{i=0}^{m-1}d_i), \]

then there exists \(S\subseteq \mathcal{L}\) with \(|S|\geq (1-\delta )\cdot |\mathcal{L}|\), and

\[ \forall i\in \{ 0,\ldots ,m-1\} ,\exists u\in \mathrm{RS}[\mathbb {F},\mathcal{L},d_i], f_i(S)=u(S). \]

Note that this implies \(\Delta (f_i,\mathrm{RS}[\mathbb {F},\mathcal{L},d_i])\le \delta \) for every \(i\). Above, \({\mathsf{B}}^*\) and \({\mathsf{err}}^*\) are the proximity bound and error (respectively) described in the proximity gap theorem.

3.9.2 STIR Section 5 targets

Construction 5.2, Lemma 5.4 and Theorem 5.1 of [ 2 ] remain unformalized. The statements below record the paper’s intended bounds. ArkLib formalizes the construction’s parameter and domain conditions in StirIOP.ParamConditions, together with the codeword completeness relation and strict soundness relation, but has no concrete STIR prover and verifier. A protocol must be fixed by Construction 5.2 before its distances and list sizes are chosen.

Theorem 218 STIR Main Theorem, unformalized target

Consider the following ingredients:

  • A security parameter \(\lambda \in \mathbb {N}\).

  • A Reed-Solomon code \(\mathrm{RS}[\mathbb {F},\mathcal{L},d]\) with \(\rho :=\frac{d}{|\mathcal{L}|}\) where \(d\) is a power of \(2\), and \(\mathcal{L}\) is a smooth domain.

  • A proximity parameter \(\delta \in (0,1-1.05\cdot \sqrt{\rho })\).

  • A folding parameter \(k\in \mathbb {N}\) that is power of \(2\) with \(k\geq 4\).

If \(|\mathbb {F}|=\Omega (\frac{\lambda \cdot 2^\lambda \cdot d^2\cdot {|\mathcal{L}|}^{3.5}}{\log (1/\rho )})\), there is a public-coin IOPP for \(\mathrm{RS}[\mathbb {F},\mathcal{L},d]\) with the following parameters:

  • Round-by-round soundness error \(2^{-\lambda }\).

  • Round complexity: \(M:=O(\log _k{d})\).

  • Proof length: \(|\mathcal{L}|+O_k(\log {d})\).

  • Query complexity to the input: \(\frac{\lambda }{-\log {(1-\delta )}}\).

  • Query complexity to the proof strings: \(O_k(\log {d}+\lambda \cdot \log {\Big(\frac{\log {d}}{\log {1/\rho }}\Big)})\).

Remark 219 Formalization target
#

The exponent \(3.5\) of the field size is the one of the January 2025 revision of ePrint 2024/390 [ 2 ] (Theorem 5.1 and Appendix C.1). The constants in the \(\Omega \) and \(O\) bounds must be uniform in the protocol parameters; \(O_k\) constants may depend on \(k\). A formalization must establish the concrete protocol’s round, proof-length and both query bounds, counting \(k\) grouped points as one symbol as in the paper. Numerical error and proof-length bounds for an arbitrary protocol permit an exhaustive exact-membership verifier and do not characterize this theorem. Appendix C.1 also includes a field-size dependence on \(1/(-\log (1-\delta '))\), absent from the displayed Theorem 5.1; the parameter analysis must resolve this discrepancy.

Lemma 220 Round-by-round soundness, unformalized target

Consider \((\mathbb {F},M,d,k_0,\ldots ,k_M,\mathcal{L}_0,\ldots ,\mathcal{L}_M,t_0,\ldots ,t_M,s)\) and for every \(i\in \{ 0,\ldots ,M\} \), let \(d_i:=\frac{d}{\prod _{j{\lt}i}k_j}\) and \(\rho _i:=d_i/|\mathcal{L}_i|\), where, as in Construction 5.2 of [ 2 ] , \(d\) and \(k_0,\ldots ,k_M\) are powers of \(2\) with \(d\ge \prod _i k_i\), each \(\mathcal{L}_i\) is a smooth domain with \(|\mathcal{L}_i|{\gt}d_i\), and \(t_i+1\le d_{i+1}\) for every \(i{\lt}M\). For every \(f\notin \mathrm{RS}[\mathbb {F},\mathcal{L}_0,d_0]\) and every \(\delta _0,\ldots ,\delta _M\) where

  • \(\delta _0\in (0,\Delta (f,\mathrm{RS}[\mathbb {F},\mathcal{L}_0,d_0])]\cap (0,1-{\mathsf{B}}^*(\rho _0))\)

  • for every \(0{\lt}i\leq M\): \(\delta _i\in (0,\min {\{ 1-\rho _i-\frac{1}{|\mathcal{L}_i|},1-{\mathsf{B}^*(\rho _i)}\} })\), and

  • for every \(0{\lt}i\leq M\): \(\mathrm{RS}[\mathbb {F},\mathcal{L}_i,d_i]\) is \((\delta _i,l_i)\)-list decodable,

The STIR IOPP of Construction 5.2 with these fixed parameters has round-by-round soundness error \((\epsilon ^{\mathsf{fold}},\epsilon ^{\mathsf{out}}_1,\epsilon ^{\mathsf{shift}}_1,\ldots ,\epsilon ^{\mathsf{out}}_M,\epsilon ^{\mathsf{shift}}_M,\epsilon ^{\mathsf{fin}})\) where:

  • \(\epsilon ^{\mathsf{fold}}\leq \mathsf{err}^*(d_0/k_0,\rho _0,\delta _0,k_0)\).

  • \(\epsilon ^{\mathsf{out}}_i\leq \frac{l^2_i}{2}\cdot {\big(\frac{d_i}{|\mathbb {F}|-|\mathcal{L}_i|}\big)}^s\)

  • \(\epsilon ^{\mathsf{shift}}_i\leq {(1-\delta _{i-1})}^{t_{i-1}}+\mathsf{err}^*(d_i,\rho _i,\delta _i,t_{i-1}+s)+\mathsf{err}^*(d_i/k_i,\rho _i,\delta _i,k_i)\).

  • \(\epsilon ^{\mathsf{fin}}\leq {(1-\delta _M)}^{t_M}\).

Above, \({\mathsf{B}}^*\) and \({\mathsf{err}}^*\) are the proximity bound and error (respectively) described in ??.

Remark 221 Formalization target
#

The protocol must be determined by Construction 5.2 before the distances \(\delta _i\) and list sizes \(l_i\) are chosen. Its completeness relation consists of codewords, while its soundness language is the strict distance relation: the bad inputs include distance exactly \(\delta _0\). Each component of the displayed error vector must bound its corresponding challenge, including final verification when \(M=0\). Construction 5.2 uses \(2M+1\) interactive rounds and a randomized final decision; a faithful representation must retain the prescribed uniform sampling from \(\mathbb {F}\setminus \mathcal{L}_i\) and folded evaluation domains. The current fixed-length field-vector challenge representation does not in general realize these distributions.

3.10 WHIR

3.10.1 Tools for Reed Solomon codes

Mutual Correlated Agreement as a Proximity Generator

Definition 222
✓
#

Let \(\mathcal{C}\subseteq \mathbb {F}^{\mathcal{L}}\) be a linear code. We say that \(\mathsf{Gen}\) is a proximity generator for \(\mathcal{C}\) with proximity bounds \({\mathsf{B}}\) and \(\mathsf{err}\) if the following implication holds for \(f_0,\ldots ,f_{\mathsf{par}\ell -1} : \mathcal{L}\rightarrow \mathbb {F}\) and \(\delta \in (0,1-{\mathsf{B}}(\rho ,\mathsf{par}\ell ))\). If

\begin{align*} \Pr _{r_0,\ldots ,r_{\mathsf{par}\ell -1}\leftarrow \mathsf{Gen}}[\Delta (\sum _{i\in [0,(\mathsf{par}\ell -1)]} r_i \cdot f_i, \mathcal{C}) \le \delta ] {\gt} err(\mathcal{C},\mathsf{par}\ell ,\delta ), \end{align*}

then there exists \(S\subseteq \mathcal{L}\), \(|S|\ge (1-\delta )\cdot |\mathcal{L}|\), and \(\forall i \in [0, (\mathsf{par}\ell -1)]\), \(\exists u \in \mathcal{C}, \forall x \in S\), \(f_i(x)=u(x)\).

The formalization records the least admissible error as a function: the correlated-agreement error \(\mathsf{caError}(\mathsf{Gen},\mathcal{C},\delta ,\delta )\) is the supremum, over word stacks \((f_0,\ldots ,f_{\mathsf{par}\ell -1})\) that are not jointly \(\delta \)-close to \(\mathcal{C}\), of the probability above. Thus \(\mathsf{Gen}\) is a proximity generator with error \(\mathsf{err}\) at \(\delta \) exactly when \(\mathsf{caError}(\mathsf{Gen},\mathcal{C},\delta ,\delta )\le \mathsf{err}(\mathcal{C},\mathsf{par}\ell ,\delta )\).

Let \(\mathcal{C}= \mathrm{RS}[\mathbb {F},\mathcal{L},2^m]\) be a Reed Solomon code with rate \(\rho = 2^m/|\mathcal{L}|\). \(\mathsf{Gen}(\alpha ,\mathsf{par}\ell )=\{ 1,\alpha ,\ldots ,\alpha ^{\mathsf{par}\ell -1}\} \) is a proximity generator for \(\mathcal{C}\) with proximity bounds \({\mathsf{B}}(\rho ,\mathsf{par}\ell )=\sqrt{\rho }\) and \(\mathsf{err}(C,\mathsf{par}\ell ,\delta )\) defined below.

  • if \(\delta \in \left(0,\frac{1-\rho }{2}\right]\) then

    \[ \mathsf{err}(\mathcal{C},\mathsf{par}\ell ,\delta )=\frac{(\mathsf{par}\ell -1)\cdot 2^m}{\rho \cdot |\mathbb {F}|} \]
  • if \(\delta \in \Bigl(\frac{1-\rho }{2}, 1-\sqrt{\rho }\Bigr)\) then

    \[ \mathsf{err}(\mathcal{C},\mathsf{par}\ell ,\delta )=\frac{(\mathsf{par}\ell -1)\cdot 2^{2m}}{|\mathbb {F}|\cdot {\Bigl(2\cdot \min \{ 1-\sqrt{\rho }-\delta ,\frac{\sqrt{\rho }}{20}\} \Bigr)}^7} \]

This is Theorem 205 with \(d=2^m\) and \(\mathsf{par}\ell \) functions; it is formalized there.

Let \(\mathcal{C}\) be a linear code. We say that \(\mathsf{Gen}\) be a proximity generator with mutual correlated agreement with proximity bounds \({\mathsf{B}}^\star \) and \(\mathsf{err}^\star \), if for \(f_0,\ldots ,f_{\mathsf{par}\ell -1}:\mathcal{L}\rightarrow \mathbb {F}\) and \(\delta \in (0,1-{\mathsf{B}}^\star (\mathcal{C},\mathsf{par}\ell ))\) the following holds.

\[ \Pr _{(r_0, \ldots , r_{\mathsf{par}\ell -1}) \leftarrow \mathsf{Gen}(\mathsf{par}\ell )} \left[ \exists S \subseteq \mathcal{L}\; \; s.t.\; \; \begin{array}{l} |S| \geq (1 - \delta ) \cdot |\mathcal{L}| \\ \land \; \exists u \in \mathcal{C}, u(S) = \sum _{j \in [0,(\mathsf{par}\ell -1)]} r_j \cdot f_j(S) \\ \land \; \exists i \in [0,(\mathsf{par}\ell -1)], \forall u’ \in \mathcal{C}, u’(S) \neq f_i(S) \end{array}\right] \leq \mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ). \]

In the formalization, \(\mathsf{IsMCA}\) is the event in brackets for one seed, \(\mathsf{mcaError}(\mathsf{Gen},\mathcal{C},\delta )\) is the supremum of its probability over all families \((f_0,\ldots ,f_{\mathsf{par}\ell -1})\), and \(\mathsf{IsMCAGenerator}(\mathsf{Gen},\mathsf{err}^\star ,\mathcal{C})\) asserts \(\mathsf{mcaError}(\mathsf{Gen},\mathcal{C},\delta )\le \mathsf{err}^\star (\delta )\) for every \(\delta \in [0,1]\). A proximity bound is expressed by letting \(\mathsf{err}^\star \) be \(1\) beyond it.

Let \(\mathcal{C}\) be a linear code with relative minimum distance \(\delta _{\mathcal{C}}\) and let \(\mathsf{Gen}\) be a proximity generator for \(\mathcal{C}\) with proximity bound \({\mathsf{B}}\) and error \(\mathsf{err}\). Then \(\mathsf{Gen}\) has mutual correlated agreement with proximity bound \({\mathsf{B}}^\star (\mathcal{C}, \mathsf{par}\ell ) = \max \{ 1 - \delta _{\mathcal{C}}/2, \mathsf{B}(\mathcal{C}, \mathsf{par}\ell )\} \) and error \(\mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ) := \mathsf{err}(\mathcal{C}, \mathsf{par}\ell , \delta )\). Equivalently, the permitted radii are \(\delta {\lt} \min \{ \delta _{\mathcal{C}}/2, 1-\mathsf{B}(\mathcal{C},\mathsf{par}\ell )\} \). Only the affine-line case below is formalized; this general statement is not.

Lemma 226 Affine-line case
✓

Let \(\mathcal{C}\subseteq \mathbb {F}^{\mathcal{L}}\) be a linear code with minimum (absolute) distance \(d_{\mathcal{C}}\), and let \(\mathsf{Gen}(\alpha )=(1,\alpha )\) be the affine-line generator. For every \(\delta {\gt}0\) with \(2\delta |\mathcal{L}|{\lt}d_{\mathcal{C}}\),

\[ \mathsf{mcaError}(\mathsf{Gen},\mathcal{C},\delta )\le \mathsf{caError}(\mathsf{Gen},\mathcal{C},\delta ,\delta ). \]
Lemma 227
✓

Let \(\mathcal{C}:= \mathrm{RS}[\mathbb {F}, \mathcal{L}, d]\) be a Reed Solomon code with minimum distance \(d_{\mathcal{C}}\), and let \(\mathsf{Gen}(\alpha )=(1,\alpha )\). For every \(\delta \) with \(0{\lt}\delta \le \frac{(d_{\mathcal{C}}-1)/2}{|\mathcal{L}|}\) (the relative unique-decoding radius),

\[ \mathsf{mcaError}(\mathsf{Gen},\mathcal{C},\delta )\le \frac{|\mathcal{L}|}{|\mathbb {F}|}. \]
Remark 228
#

[ 3 ] states Lemma 227 for every \(\mathsf{par}\ell \): the generator \(\mathsf{Gen}(\mathsf{par}\ell ; \alpha ) = (1, \alpha , \ldots , \alpha ^{\mathsf{par}\ell - 1})\) has mutual correlated agreement for \(\mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m]\) with proximity bound \({\mathsf{B}}^\star (\mathcal{C}, \mathsf{par}\ell ) := \frac{1 + \rho }{2}\) and error \(\mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ) = \frac{(\mathsf{par}\ell - 1) \cdot 2^m}{\rho \cdot |\mathbb {F}|}\). Only the case \(\mathsf{par}\ell =2\) is formalized; there the error is \(2^m/(\rho |\mathbb {F}|)=|\mathcal{L}|/|\mathbb {F}|\).

Theorem 229 Mutual correlated agreement up to the Johnson bound
✓

Let \(\mathcal{C}:= \mathrm{RS}[\mathbb {F}, \mathcal{L}, d]\) with \(d\ge 1\), block length \(n=|\mathcal{L}|\) and rate \(\rho \), and let \(\mathsf{Gen}(\mathsf{par}\ell ;\alpha )=(1,\alpha ,\ldots ,\alpha ^{\mathsf{par}\ell -1})\) with \(\mathsf{par}\ell \ge 1\). For every integer \(s\ge 3\), \(\mathsf{Gen}\) has mutual correlated agreement for \(\mathcal{C}\) with error

\[ \mathsf{err}^\star (\delta )= \begin{cases} \dfrac {(\mathsf{par}\ell -1)\, n^2\, (s+\frac12)^7}{3\, \rho ^{3/2}\, |\mathbb {F}|} & \text{if } \delta \le 1-\left(1+\frac{1}{2s}\right)\sqrt{\rho },\\[8pt] 1 & \text{otherwise.} \end{cases} \]
Theorem 230 Mutual correlated agreement up to capacity, for lines and affine spaces
✓

For every \(\eta {\gt}0\) there are \(N\ge 4\), \(d\in \mathbb {N}\) and \(C{\gt}0\), depending only on \(\eta \), with the following property. Let \(n\ge N\) and \(0{\lt}k\le n\), let \(\mathbb {F}\) be a finite field whose characteristic is \(0\) or larger than \(k-1\), let \(\mathcal{L}\subseteq \mathbb {F}\) have \(n\) elements, and let \(\delta :=1-k/n-\eta \). Then

\[ \mathsf{mcaError}((1,\alpha ),\mathrm{RS}[\mathbb {F},\mathcal{L},k],\delta )\le \frac{C\, n^{d+1}}{|\mathbb {F}|}, \]

and for every \(s\in \mathbb {N}\) the affine-space generator \((\alpha _1,\ldots ,\alpha _s)\mapsto (1,\alpha _1,\ldots ,\alpha _s)\) satisfies

\[ \mathsf{mcaError}((1,\alpha _1,\ldots ,\alpha _s),\mathrm{RS}[\mathbb {F},\mathcal{L},k],\delta )\le \frac{C\, n^{d+1}}{|\mathbb {F}|-1}. \]

This is [ 17 ] , Theorem 6.9 and Corollary 7.2.

Theorem 231 Power-batching agreement up to capacity
✓

For every \(\eta {\gt}0\) there are \(N\ge 4\), \(d\in \mathbb {N}\), \(\nu {\lt}N\) and \(C{\gt}0\), depending only on \(\eta \), with the following property. These constants differ from those of Theorem 230. Let \(\mathsf{par}\ell \ge 2\), \(n\ge N\), \(k{\gt}0\) and an integer \(A\) with \(A\ge k+\eta n\). Let \(\mathbb {F}\) be a field such that \(k=1\), or \(\mathbb {F}\) has characteristic \(0\), or its characteristic is larger than \(\max (k-1,\nu )\). Let \(\mathcal{L}\subseteq \mathbb {F}\) have \(n\) elements, and let \(f_0,\ldots ,f_{\mathsf{par}\ell -1}:\mathcal{L}\to \mathbb {F}\). Then there is a set of at most \((\mathsf{par}\ell -1)\, C\, n^{d+1}\) exceptional challenges \(z\in \mathbb {F}\). For every \(z\) outside it and every polynomial \(Q\) of degree less than \(k\) that agrees with \(\sum _{t}z^t f_t\) on at least \(A\) points, there are polynomials \(P_0,\ldots ,P_{\mathsf{par}\ell -1}\) of degree less than \(k\) with \(Q=\sum _t z^t P_t\), and the agreement set of \(Q\) is the set of points where every \(P_t\) agrees with \(f_t\). The field may be infinite. This is [ 17 ] , Corollary 7.3. It is an exact agreement statement, not a bound on \(\mathsf{mcaError}\) of the powers generator.

Remark 232 Conjecture of [ 3 ] , not formalized
#

The function \(\mathsf{Gen}(\mathsf{par}\ell ; \alpha ) := (1, \alpha , \ldots , \alpha ^{\mathsf{par}\ell - 1})\) is conjectured to be a proximity generator with mutual correlated agreement for every smooth Reed Solomon code \(\mathcal{C}:= \mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m]\) (with rate \(\rho := 2^m / |\mathcal{L}|\)), with the following parameters:

  1. Up to the Johnson bound: \({\mathsf{B}}^\star (\mathcal{C}, \mathsf{par}\ell ) := \sqrt{\rho },\) and

    \[ \mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ) := \frac{(\mathsf{par}\ell - 1) \cdot 2^m}{|\mathbb {F}| \cdot \left( 2 \cdot \min \left\{ 1 - \sqrt{\rho } - \delta , \frac{\sqrt{\rho }}{20} \right\} \right)^7}. \]
  2. Up to capacity: \({\mathsf{B}}^\star (\mathcal{C}, \mathsf{par}\ell ) := \rho \), and there exist constants \(c_1, c_2, c_3 \in \mathbb {N}\) such that for every \(\eta {\gt} 0\) and \(0 {\lt} \delta {\lt} 1 - \rho - \eta \):

    \[ \mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ) := \frac{(\mathsf{par}\ell - 1)^{c_2} \cdot \delta ^{c_2}}{\eta ^{c_1} \cdot \rho ^{c_1 + c_2} \cdot |\mathbb {F}|}. \]

Neither part is formalized in this form. Theorem 229 proves a Johnson-range bound whose error grows with \(n^2\) and whose radius is \(1-(1+\frac{1}{2s})\sqrt{\rho }\). Theorem 230 proves a capacity-range bound for \(\mathsf{par}\ell =2\) (lines) and for affine spaces; its error grows polynomially with \(n\), and it requires the characteristic condition above. For powers with \(\mathsf{par}\ell {\gt}2\), Theorem 231 proves exact power-batching agreement up to capacity, under its own constants and a stronger characteristic condition. The library does not state that result as a bound on the MCA error of the powers generator.

Mutual correlated agreement preserves list decoding

Let \(\mathcal{C}\subseteq \mathbb {F}^{\mathcal{L}}\) be a linear code with minimum distance \(\delta _{\mathcal{C}}\), and let \(\mathsf{Gen}\) be a proximity generator for \(\mathcal{C}\) with mutual correlated agreement with proximity bound \({\mathsf{B}}^\star \) and error \(\mathsf{err}^\star \). Then, for every \(f_0, \ldots , f_{\mathsf{par}\ell -1} : \mathcal{L}\to \mathbb {F}\) and \(\delta \in (0, \min \{ \delta _{\mathcal{C}}, 1 - {\mathsf{B}}^\star (\mathcal{C}, \mathsf{par}\ell )\} )\):

\[ \Pr _{\substack {\alpha \leftarrow \{ 0,1\} ^{w^\star } \\ \boldsymbol {r} := \mathsf{Gen}(\mathsf{par}\ell ; \alpha )}} \left[ \Lambda \left(\mathcal{C}, \sum _{j \in [0,(\mathsf{par}\ell -1)]} r_j \cdot f_j, \delta \right) \neq \left\{ \sum _{j \in [0,(\mathsf{par}\ell -1)]} r_j \cdot u_j : \boldsymbol {u} \in \Lambda \left(\mathcal{C}^\ell , (f_0, \ldots , f_{\mathsf{par}\ell -1}), \delta \right) \right\} \right] \leq \mathsf{err}^\star (\mathcal{C}, \mathsf{par}\ell , \delta ). \]

Folding univariate functions

In this subsection \(\mathcal{L}\) is a smooth coset FFT domain of size \(2^n\). The formalization represents a function on \(\mathcal{L}^{2^i}\) as a word indexed by \(\{ 0,\ldots ,2^{n-i}-1\} \) over the subdomain \(\mathcal{L}^{2^i}\).

Definition 234
✓
#

Let \(\mathsf{extract}:\mathcal{L}^{2^{k+1}}\rightarrow \mathcal{L}^{2^k}\) be a function. There exists \(x \in \mathcal{L}\), such that \(y = x^{2^{k+1}}\in \mathcal{L}^{2^{k+1}}\). Then \(\mathsf{extract}\) returns \(z = \sqrt{y} = x^{2^k}\in \mathcal{L}^{2^k}\) such that \(y = z^2\).

Definition 235
✓

Let \(f : \mathcal{L}^{2^k} \to \mathbb {F}\) be a function, and \(\alpha \in \mathbb {F}\). We define \(\mathrm{Fold_f}(f, {\alpha }) : \mathcal{L}^{2^{k+1}} \to \mathbb {F}\) as follows: for \(y \in \mathcal{L}^{2^{k+1}}\) and \(x := \mathsf{extract}(y)\),

\[ \mathrm{Fold_f}(f, \alpha )(y) := \frac{f(x) + f(-x)}{2} + \alpha \cdot \frac{f(x) - f(-x)}{2 \cdot x}. \]

In order to compute \(\mathrm{Fold_f}(f, \alpha )(y)\) it suffices to query \(f\) at \(x\) and \(-x\), by retrieving \(x=\mathsf{extract}(y)\). The formalization defines folding by interpolation on each block of \(2^k\)-th roots and proves that its \(k=1\) case is the displayed formula.

Definition 236
✓
#

For \(k \leq m\) and \(\vec{\alpha } = (\alpha _0, \ldots , \alpha _{k-1}) \in \mathbb {F}^k\) we define \(\mathrm{Fold}(f, \vec{\alpha }) : \mathcal{L}^{2^k} \to \mathbb {F}\) to equal \(\mathrm{Fold}(f, \vec{\alpha }) := f_k\) where \(f_k\) is defined recursively as follows: \(f_0 := f\), and \(f_{i+1} := \mathrm{Fold_f}(f_{i}, \alpha _i)\).

Definition 237

For a set \(S \subseteq \mathbb {F}^{\mathcal{L}}\) we denote \(\mathrm{Fold_{S}}(S, \vec{\alpha }) := \{ \mathrm{Fold}(f, \vec{\alpha }) \mid f \in S\} \). The formalization writes this image directly, without a separate definition.

Let \(f : \mathcal{L}\to \mathbb {F}\) be a function, \(\vec{\alpha } \in \mathbb {F}^k\) folding randomness and let \(g := \mathrm{Fold}(f, \vec{\alpha })\), where \(1\le k \leq m\le n\). If \(f \in \mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m]\), then \(g \in \mathrm{RS}[\mathbb {F}, \mathcal{L}^{2^k}, 2^{m - k}]\), and further the multilinear extension of \(g\) is given by \(\hat{g}(X_k, \ldots , X_{m-1}) := \hat{f}(\vec{\alpha }, X_k, \ldots , X_{m-1})\) where \(\hat{f}\) is the multilinear extension of \(f\).

Block relative distance

Definition 239
✓
#

Let \(\mathcal{L}\subseteq \mathbb {F}\) be a smooth evaluation domain and \(k \in \mathbb {N}\) be a folding parameter. For \(0\le i\le k\) and \(z \in \mathcal{L}^{2^k}\), define \(\mathrm{Block}(\mathcal{L}, i, k, z) := \{ y \in \mathcal{L}^{2^i} : y^{2^{k-i}} = z \} \). The formalization takes the domain \(\mathcal{L}^{2^i}\) and the exponent \(k-i\) as its arguments.

For \(0\le i\le m\) write \(\mathcal{C}^{(i)} := \mathrm{RS}[\mathbb {F}, \mathcal{L}^{2^i}, 2^{m-i}]\) for the smooth Reed Solomon code on the folded domain \(\mathcal{L}^{2^i}\). In the block definitions below, the words and the code always live on the same domain \(\mathcal{L}^{2^i}\).

Definition 240
✓
#

Let \(\mathcal{C}^{(i)}\) be as above and let \(f, g : \mathcal{L}^{2^i} \to \mathbb {F}\). We define the \((i,k)\)-wise block relative distance as

\[ \Delta _{r}(\mathcal{C}^{(i)}, i, k, f, g) = \frac{ \left| \left\{ z \in \mathcal{L}^{2^k} : \exists y \in \mathrm{Block}(\mathcal{L}, i, k, z), f(y) \neq g(y) \right\} \right| }{ |\mathcal{L}^{2^k}| } \]
Definition 241
✓

For \(f : \mathcal{L}^{2^i} \to \mathbb {F}\) and \(S \subseteq \mathbb {F}^{\mathcal{L}^{2^i}}\), we let \(\Delta _{r}(\mathcal{C}^{(i)}, i, k, f, S) := \inf _{g \in S} \Delta _{r}(\mathcal{C}^{(i)}, i, k, f, g)\), with value \(\infty \) when \(S\) is empty (the infimum is taken in the extended nonnegative reals).

Note that \(\Delta _{r}(\mathcal{C}^{(0)}, 0, 0, f, g) = \Delta (f, g)\). We define the block list decoding of a codeword.

Definition 242
✓
#

For the smooth Reed Solomon code \(\mathcal{C}^{(i)}\), proximity parameter \(\delta \in [0,1]\), and \(f : \mathcal{L}^{2^i} \to \mathbb {F}\), we let

\[ \Lambda _{r}(\mathcal{C}^{(i)}, i, k, f, \delta ) := \{ u \in \mathcal{C}^{(i)} \mid \Delta _{r}(\mathcal{C}^{(i)}, i, k, f, u) \leq \delta \} , \]

denote the list of codewords in \(\mathcal{C}^{(i)}\) within relative block distance at most \(\delta \) from \(f\).

For \(i\le k\) and \(f, g : \mathcal{L}^{2^i} \to \mathbb {F}\), we have that \(\Delta (f, g) \leq \Delta _{r}(\mathcal{C}^{(i)}, i, k, f, g)\). Consequently, \(\Lambda _{r}(\mathcal{C}^{(i)}, i, k, f, \delta ) \subseteq \Lambda (\mathcal{C}^{(i)}, f, \delta )\) for \(\delta \in [0,1]\).

Folding preserves list decoding

Throughout, \(\mathcal{C}= \mathcal{C}^{(0)} = \mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m]\) with \(\mathcal{L}\) a smooth coset FFT domain of size \(2^n\), \(1 \le k \leq m\le n\), and \(\mathcal{C}^{(i)}\) as defined above. The formalization bounds the failure probabilities with a mutual-correlated-agreement error that is total in \(\delta \), so it needs only \(\delta {\lt}1-\rho (\mathcal{C}^{(i)})\) where [ 3 ] assumes \(\delta {\lt}1-{\mathsf{B}}^\star (\mathcal{C}^{(i)},2)\). Every regime of [ 3 ] has \({\mathsf{B}}^\star \ge \rho \), so the paper’s range implies this one.

Theorem 244
✓

Suppose that for each \(i{\lt}k\) the generator \(\mathsf{Gen}(2; \alpha ) = (1, \alpha )\) has mutual correlated agreement for \(\mathcal{C}^{(i+1)}\) with error \(\mathsf{err}^\star _i\). Then for every \(f : \mathcal{L}\to \mathbb {F}\) and every \(\delta \in (0,1]\) with \(\delta {\lt}1-\rho (\mathcal{C}^{(i+1)})\) for each \(i{\lt}k\),

\[ \Pr _{\vec\alpha \leftarrow \mathbb {F}^k} \left[ \mathrm{Fold_S}(\Lambda _{r}(\mathcal{C}, 0, k, f, \delta ), \vec\alpha ) \neq \Lambda (\mathcal{C}^{(k)}, \mathrm{Fold}(f, \vec\alpha ), \delta ) \right] \le \sum _{i{\lt}k}\mathsf{err}^\star _i(\delta ). \]
Proof ▶

Apply Lemma 245 to each of the \(k\) independent folding rounds and take a union bound.

Lemma 245
✓

Denote \(\mathcal{C}' := \mathcal{C}^{(1)} = \mathrm{RS}[\mathbb {F}, \mathcal{L}^{2}, 2^{m - 1}]\), and suppose that \(\mathsf{Gen}(2;\alpha )=(1,\alpha )\) has mutual correlated agreement for \(\mathcal{C}'\) with error \(\mathsf{err}^\star \). Then for every \(f : \mathcal{L}\to \mathbb {F}\) and \(\delta \in (0, 1 - \rho (\mathcal{C}'))\),

\[ \Pr _{\alpha \leftarrow \mathbb {F}} \left[ \mathrm{Fold_S}(\Lambda _{r}(\mathcal{C}, 0, k, f, \delta ), \alpha ) \neq \Lambda _{r}(\mathcal{C}', 1, k, \mathrm{Fold}(f, \alpha ), \delta ) \right] \le \mathsf{err}^\star (\delta ). \]
Lemma 246
✓

For every \(\alpha \in \mathbb {F}\), \(\mathrm{Fold_S}(\Lambda _{r}(\mathcal{C}, 0, k, f, \delta ), \alpha ) \subseteq \Lambda _{r}(\mathcal{C}', 1, k, \mathrm{Fold}(f, \alpha ), \delta )\).

Under the hypotheses of Lemma 245,

\[ \Pr _{\alpha \leftarrow \mathbb {F}} \left[ \Lambda _{r}(\mathcal{C}', 1, k, \mathrm{Fold}(f, \alpha ), \delta ) \not\subseteq \mathrm{Fold_S}(\Lambda _{r}(\mathcal{C}, 0, k, f, \delta ), \alpha ) \right] \le \mathsf{err}^\star (\delta ). \]

The formalization proves this as a private step of Lemma 245, so it has no public declaration.

Let \(f : \mathcal{L}\rightarrow \mathbb {F}\) be a function, \(m \in \mathbb {N}\) be a number of variables, \(s \in \mathbb {N}\) be a repetition parameter, and let \(\delta \in [0,1]\) be a distance parameter. For every \(\vec{r_0}, \dots , \vec{r_{s-1}} \in \mathbb {F}^m\), the following are equivalent statements.

  • There exist distinct \(u, u' \in \Lambda (\mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m], f, \delta )\) such that, for every \(i \in [0,s-1]\), \(\hat{u}(\vec{r_i}) = \hat{u}'(\vec{r_i})\).

  • There exists \(\sigma _0, \dots , \sigma _{s-1} \in \mathbb {F}\) such that

    \[ \left| \Lambda (\mathrm{CRS}[\mathbb {F}, \mathcal{L}, m, ((Z \cdot \mathrm{eq}(\vec{r_0}, \cdot ), \sigma _0), \dots , (Z \cdot \mathrm{eq}(\vec{r_{s-1}}, \cdot ), \sigma _{s-1}))], f, \delta ) \right| {\gt} 1. \]

Let \(f : \mathcal{L}\rightarrow \mathbb {F}\) be a function, \(m \in \mathbb {N}\) be a number of variables, \(s \in \mathbb {N}\) be a repetition parameter, and \(\delta \in [0,1]\) be a distance parameter. If \(\mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m]\) is \((\delta , \ell )\)-list decodable then

\[ \Pr _{r_0, \dots , r_{s-1} \leftarrow \mathbb {F}} \left[ \begin{array}{c} \exists \sigma _0, \dots , \sigma _{s-1} \in \mathbb {F}\text{ s.t.} \\ \left| \Lambda (\mathrm{CRS}[\mathbb {F}, \mathcal{L}, m, ((Z \cdot \mathrm{eq}(\mathrm{pow}(r_{i}, m), \cdot ), \sigma _{i}))_{i \in [s]}], f, \delta ) \right| {\gt} 1 \end{array} \right] \]
\[ = \Pr _{r_0, \dots , r_{s-1} \leftarrow \mathbb {F}} \left[ \begin{array}{c} \exists \text{ distinct } u, u’ \in \Lambda (\mathrm{RS}[\mathbb {F}, \mathcal{L}, 2^m], f, \delta ) \\ \text{ s.t. } \forall i \in [s],\ \hat{u}(\mathrm{pow}(r_i, m)) = \hat{u}’(\mathrm{pow}(r_i, m)) \end{array} \right] \]
\[ \leq \frac{\ell ^2}{2} \cdot \left( \frac{2^m}{|\mathbb {F}|} \right)^s. \]

Consider \((\mathbb {F}, M, (k_i, m_i, \mathcal{L}_i, t_i)_{0 \leq i \leq M}, \widehat{w}_0, \sigma _0, m, d^\star , d)\) with the following ingrediants and conditions,

  • a constrained Reed Solomon code \(\mathrm{CRS}[\mathbb {F}, \mathcal{L}_0, m_0, \widehat{w}_0, \sigma _0]\);

  • an iteration count \(M \in \mathbb {N}\);

  • folding parameters \(k_0, \ldots , k_{M}\) such that \(\sum _{i=0}^{M} k_i \leq m\);

  • evaluation domains \(\mathcal{L}_0, \ldots , \mathcal{L}_{M} \subseteq \mathbb {F}\) where \(\mathcal{L}_i\) is a smooth coset of \(\mathbb {F}^*\) with order \(|\mathcal{L}_i| \geq 2^{m_i}\);

  • repetition parameters \(t_0, \ldots , t_M\) with \(t_i \leq |\mathcal{L}_i|\);

  • define \(m_0 := m\) and \(m_i := m - \sum _{j {\lt} i} k_j\);

  • define \(d^\star := 1 + \deg _{\mathbb {Z}}(\widehat{w}_0) + \max _{i \in [m_0]} \deg _{X_i}(\widehat{w}_0)\) and \(d := \max \{ d^\star , 3\} \).

For every \(f \notin \mathrm{CRS}[\mathbb {F}, \mathcal{L}_0, m_0, \widehat{w}_0, \sigma _0]\) and every \(\delta _0, \dots , \delta _{M}\) and \((\mathsf{par}\ell _{i,s})_{0 \leq i \leq M}^{0 \leq s \leq k_i}\) where

  • \(\delta _0 \in (0, \Delta (f, \mathrm{CRS}[\mathbb {F}, \mathcal{L}_0, m_0, \widehat{w}_0, \sigma _0]))\);

  • the function \(\mathsf{Gen}(\mathsf{par}\ell ; \alpha ) = (1, \alpha , \dots , \alpha ^{\mathsf{par}\ell -1})\) is a proximity generator with mutual correlated agreement for the codes \((\mathcal{C}_{\mathrm{RS}}^{(i,s)})_{0 \leq i \leq M}^{0 \leq s \leq k_i}\) where \(\mathcal{C}_{\mathrm{RS}}^{(i,s)} := \mathrm{RS}[\mathbb {F}, \mathcal{L}_i^{(2^s)}, 2^{m_i - s}]\) with bound \({\mathsf{B}}^\star \) and error \(\mathsf{err}^\star \);

  • for every \(0 \leq i \le M\), \(\delta _i \in (0, 1 - {\mathsf{B}}^\star (\mathcal{C}_{\mathrm{RS}}^{(i,s)}, 2))\);

  • for every \(0 \leq i \le M\), \(\mathcal{C}_{\mathrm{RS}}^{(i,s)}\) is \((\delta _i, \ell _{i,s})\)-list decodable.

Then there exists an IOPP for \(\mathrm{CRS}[\mathbb {F}, \mathcal{L}_0, m_0, \widehat{w}_0, \sigma _0]\) with above parameters, with round-by-round soundness error

\[ ((\varepsilon _{0,s}^{\mathrm{fold}})_{s \leq k_0},\ (\varepsilon _i^{\mathrm{out}},\ \varepsilon _i^{\mathrm{shift}})_{i \leq M},\ (\varepsilon _{i,s}^{\mathrm{fold}})_{i \in [M], s \leq k_i},\ \varepsilon ^{\mathrm{fin}}), \]

where:

  • \(\varepsilon _{0,s}^{\mathrm{fold}} \leq \dfrac {d^* \cdot \ell _{0,s-1}}{|\mathbb {F}|} + \mathrm{err}^*(\mathcal{C}_{\mathrm{RS}}^{(0,s)}, 2, \delta _0)\);

  • \(\varepsilon _i^{\mathrm{out}} \leq \dfrac {2^{m_i} \cdot \ell _{i,0}^2}{2 \cdot |\mathbb {F}|}\);

  • \(\varepsilon _i^{\mathrm{shift}} \leq (1 - \delta _{i-1})^{t_i - 1} + \dfrac {\ell _{i,0} \cdot (t_i - 1 + 1)}{|\mathbb {F}|}\);

  • \(\varepsilon _{i,s}^{\mathrm{fold}} \leq \dfrac {d \cdot \ell _{i,s-1}}{|\mathbb {F}|} + \mathrm{err}^*(\mathcal{C}_{\mathrm{RS}}^{(i,s)}, 2, \delta _i)\);

  • \(\varepsilon ^{\mathrm{fin}} \leq (1 - \delta _{M-1})^{t_M - 1}\).