There is no commentSelect some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Checking univariate identities in linear time
By Justin Drake && Ariel Gabizon && Izaak Meckler
Let be a multiplicative subgroup of order . In this note, we show a method for proving univariate identities over hold where the prover runs in time when the polynomials involved have degree , and the base identity is of constant degree. The most common example of such an identity is the degree 2 identity ; namely, the Hadamard check: on .
The typical way to do such checks is via computing a quotient, e.g. in the Hadamard case. This requires operations.
Lately, people have been using sumcheck and multilinear polynomials to get prover time. Our protocol nearly matches the asymptotic performance of HyperPLONK.
In general, for an identity of degree involving polynomials; the approach here will require essentially evaluations of from the prover, which is the same as the multilinear sumcheck approach used in HyperPLONK. In addition, however, we perform size FFTs and a few other operations, which requires additional field operations.
Depending on the structure of , the additional computation may be small enough that a closer analysis of the concrete computation involved in both protocols would be required to determine their relative efficiencies.
Preliminaries
Denote by a multiplicative subgroup of order . is a field of prime order. Let be the set of squares in of size . Througout the note we use FFT-style decomposition of univariate polynomials. Namely, for a polynomial of degree , we denote by the unique polyonmials of degree such that
We make frequent use of how this decomposition behaves under multiplication. For example, given polys , we have
We make crucial use of the fact that can be evaluated at squares in given oracle access to via
Lemma: Given polys ; on iff and on
proof: Suppose that on . Using the above identity, we have that for each , Denote by the corresponding polynomials modulu . Note that this modulu operation doesn't change values on . So, since when , we have for all . Note that the above is an identity holding for points, where the lhs and rhs have degree smaller than . Thus, we have as a polynomial identity Note that in the above the coefficients of are the even coefficients of the lhs, and the coefficients of are the coefficients of the even powers of the rhs. Therefore, since the above is a polynomial identity, we must have .
Similarly, we can argue the above implies .
In the other direction, assume , and on . For any , we have
Basic case - a Hadamard check
Given KZG commitments to polynomials of degree smaller than . (In fact, we just need that their degrees are .) We wish to check that on . We reduce this to a similar check of half the size.
The prover interpolates on three polynomials of deg
Note that this can be done in operations: we can compute on any point using the values of on . And thus in time we can compute representations to in the Lagrange base of .
The prover computes and sends -commitments to . This can be done in operations, assuming we precompute the commitments to the basis functions in .
The prover shows that
.
. by the verifier choosing random and checking that
Verifier chooses random .
Prover sends commitments to .
Verifier checks these commitments are correct at for random (using the fact that can be evaluated using ).
The verifier computes the commitment to from the commitments to .
Prover and verifier recursively run the protocol to check that on .
Efficiency: We have rounds with prover work in round , so total
Soundness Since are committed before is chosen, the recursive check on implies
on
on ,
on
as the coefficient of each power of must be equal on both sides. Since we checked that - . - . and we know that
it follows that the recursive check tells us that on
which from the lemma tells us that on .
General Identities
In the general case, we have committed polynomials of degree , and we assume the prover already has their values over . We have a polynomial of total degree , and wish to show that
We will similarly reduce to a check over that will look like
For some and of degree .
To start, we need a slightly cumbersome definition. Given , we define polynomials such that over variables
For example, when we have
The prover computes on the evaluations of polynomials of deg . Where
We claim the evaluations of the can be computed by evaluations of and additional field operations.
To that end let be a smooth domain of size at least . In practice when using power-of-two size domains, will have size equal to the smallest power of two greater than , so size at most .
For each , we will simultaneously compute :
Consider the univariate polynomial For each , compute . Note that since we have access to the evalutions of the and on , the computation of only involves multiplications and additions followed by an evaluation of . Then perform an iFFT on those evaluations to obtain the coefficients of . By definition of the , is equal to Therefore, the coefficients of that we have computed are precisely as desired.
This procedure involves evaluations of and FFTs of size , which gives it the claimed efficiency.
The prover computes and sends -commitments to . This takes operations, assuming we precompute the commitments to the basis functions in .
The prover shows that
.
. by the verifier choosing random and checking that
Verifier chooses random .
For , the Prover sends commitments to .
Verifier checks these commitments are correct at for random (using the fact that can be evaluated using ).
The verifier computes the commitment to from the commitments to .
Prover and verifier recursively run the protocol to check that on .
Soundness Similarly, to the Hadamard check case, one can check the protocol guarantees