In this note, we will explore two versions of the Sum-Check protocol: the vanilla protocol, as well as a useful generalization that we'll refer to as "Specialized Sum-Check".
Sum-check is an algorithm where the following statement is proven:
where
Throughout this note, we will use the following as a short-hand for the above statement:
In this section, we present the algorithm. We will show why the algorithm properly proves the sum-check statement in the next section.
Sum-check is an interactive algorithm which can be made non-interactive using the Fiat-Shamir transform. The algorithm consists of
Let's take a closer look at what happens in a round.
The prover constructs the univariate polynomial
In words,
The prover sends
The verifier checks
Then, the verifier samples
The prover constructs the univariate polynomial
The prover sends
The verifier checks
Then, the verifier samples
The prover constructs the univariate polynomial
The prover sends
The verifier checks
Then, the verifier samples
In round
Note that this is the only evaluation of
This completes the protocol. If the check passes, then the verifier is convinced that the original statement is true.
In this section, we will show why the protocol as described in the previous section is sound.
The first realization to make is that the protocol is recursive: each round reduces its statement to a new statement that can itself be proved using sum-check. That is, rounds are linked together by the following relationship: if the statement at round
Before we dive in further, let's introduce some useful notation. Given a function
That is,
We are now ready to show why the sum-check protocol properly convinces the verifier that the sum-check problem statement being proved is true. Although not a formal proof, this will be in a format similar to a proof by induction: we will prove the recursive (or "inductive") case, and the base case. We move away from the formal proof format to help convey the intuition behind the proof rather than being formally correct. The recursive case covers how each round reduces its statement to a "smaller" statement, that is also provable using the sum-check protocol. The base case covers the part of the protocol after the last round is over.
To be more concrete, we will look at how the statement in round 1 is reduced to the statement in round 2. However, the idea is the same for every round.
Recall that the statement to prove in round 1 is:
while the statement to prove in round 2 is:
There are three key things to notice:
The statement in round 2 is a valid sum-check problem, to which we can apply the sum-check protocol!
Now, crucially, let's see why the statement in round 1 reduces to the statement in round 2. That is, if the statement in round 2 is true, then the statement in round 1 is true.
Assume that the second statement is true. That is,
Then, since
Or equivalently,
That is, we can now treat the entire polynomials on the left-hand side and the right-hand side as equal. Then,
which is the left-hand side of the statement in round 1! Hence, the statement in round 1 can be written as
To recap, when we assume that the statement in round 2 is true, then the statement in round 1 can be rewritten as
Next, we will look at the base case, which occurs after round
The statement left to prove after round
That is, there is no more sum left, and all the variables are bound. Recall that in round
Now, this check is trivially done by the verifier. The verifier evaluates
Since this was the last statement to prove in the protocol, then the verifier is convinced that the original statement in round 1 is correct!
We will now look at a specialization of the problem statement that turns out to be quite useful in practice. We call it a "specialization" because we make more assumptions about the structure of the inner sum than in the traditional sum-check protocol.
The sum-check problem statement can be specialized to:
where
The protocol works exactly the same as the vanilla sum-check protocol. The
The argument for why the specialized sum-check protocol is sound is actually the same as for the previous one. We will briefly look at the recursive case, again by focusing on how the problem statement in round 1 reduces to the problem statement in round 2.
Assume that the problem statement in round 2 is true. That is,
This is actually the same state as in the vanilla problem. To make this a bit more clear, let's rewrite the summand slightly. We define
Notice that
Hopefully, it is now clear that since this is the same form as in the vanilla sum-check problem, then the exact same argument for the recursive case applies.
As for the base case, the verifier needs to check
This specialization is useful in practice, in part because there exists an efficient algorithm for the prover to construct the polynomials