Post · 17 min read· pp. 47–54

Inner Product Arguments

中文版本: 内积证明

Introduction

You might have heard of Bulletproofs: It’s a type of zero knowledge proof that is used for example by Monero, and that does not require a trusted setup. The core of this proof system is the Inner Product Argument [^2], a trick that allows a prover to convince a verifier of the correctness of an “inner product”. An inner product is the component by component product of two vectors:

a⃗⋅b⃗=a0b0+a1b1+a2b2+⋯+an−1bn−1\vec a \cdot \vec b = a_0 b_0 + a_1 b_1 + a_2 b_2 + \cdots + a_{n-1} b_{n-1}

where a⃗=(a0,a1,…,an−1)\vec a = (a_0, a_1, \ldots, a_{n-1}) and b⃗=(b0,b1,…,bn−1)\vec b = (b_0, b_1, \ldots, b_{n-1}).

One interesting case is where we set the vector b⃗\vec b to be the powers of some number zz, i.e. b⃗=(1,z,z2,…,zn−1)\vec b = (1, z, z^2, \ldots, z^{n-1}). Then the inner product becomes the evaluation of the polynomial

f(X)=∑i=0n−1aiXif(X) = \sum_{i=0}^{n-1} a_i X^i

at zz.

Inner Product Arguments work on Pedersen Commitments. I have previously written about KZG commitments, and Pedersen commitments are similar in that the commitment is in an elliptic curve. However a difference is that they do not require a trusted setup. Here is a comparison of the KZG commitment scheme and using Pedersen combined with an Inner Product Argument as a Polynomial Commitment Scheme (PCS):

Pedersen+IPAKZG
AssumptionDiscrete logBilinear group
Trusted setupNoYes
Commitment size1 Group element1 Group element
Proof size2 log n Group elements1 Group element
VerificationO(n) group operations1 Pairing

Basically, compared to KZG commitments, our commitment scheme is less efficient. Proofs are larger (O(log⁡n)O(\log n)), which wouldn’t be the end of the world as logarithmic is still very small. But unfortunately, the verifier has to do a linear amount of work, so they are not succinct. This makes them impractical for some applications. However in some cases this can be worked around.

  • One example is my writeup on multiopenings. In this case, the trick is that you can aggregate many openings into a single one.
  • The Halo system [^1], where the linear cost of many openings is aggregated

In both of these examples, the trick is to amortize many openings. If you only want to open a single polynomial, then it’s tough and you have to incur the full cost, though.

However, the big advantage is that Pedersen and Inner Product Arguments come with much fewer assumptions, in particular a pairing is not needed and they don’t require a trusted setup.

Pedersen commitments

Before we can discuss Inner Product Arguments, we need to discuss the data structure that they operate on: Pedersen commitments. In order to use Pedersen commitments, we need an elliptic curve GG. Let’s quickly remind ourselves what you can do in an elliptic curve (I will use additive notation because I think it is the more natural one):

  1. You can add two elliptic curve elements g0∈Gg_0 \in G and g1∈Gg_1 \in G: h=g0+g1h = g_0 + g_1
  2. You can multiply an element g∈Gg \in G with a scalar a∈Fpa \in \mathbb F_p, where pp is the curve order of GG (i.e. the number of elements): h=agh = a g

There is no way to compute the “product” of two curve elements: the operation “h∗hh * h” is not defined, so you cannot compute “h∗h=ag∗ag=a2gh * h = a g * a g = a^2 g”; as opposed to multiplying by a scalar; so 2h=2ag2 h = 2 a g, for example, is easy to compute.

Another important property is that there is no efficient algorithm to compute “discrete logarithms”. The meaning of this is that given hh and gg with the property that h=agh=ag, if you don’t know aa it is computationally infeasible to find aa. We call aa the discrete logarithm of hh with respect to gg.

Pedersen commitments make use of this infeasibility to construct a commitment scheme. Let’s say you have two points g0g_0 and g1g_1 and their discrete logarithm with respect to each other (i.e. the x∈Fpx \in \mathbb F_p such that g1=xg0g_1 = x g_0) is unknown, then we can commit to two numbers a0,a1∈Fpa_0, a_1 \in \mathbb F_p:

C=a0g0+a1g1C = a_0 g_0 + a_1 g_1

CC is an element of the elliptic curve GG.

To reveal the commitment, the prover gives the verifier the numbers a0a_0 and a1a_1. The verifier computes CC and if it matches will accept.

The central property of a commitment scheme is that it is binding. So given C=a0g0+a1g1C=a_0 g_0 + a_1 g_1, could a cheating prover come up with b0,b1∈Fpb_0, b_1 \in \mathbb F_p such that the verifier will accept them, i.e. such that C=b0g0+b1g1C = b_0 g_0 + b_1 g_1 but with b0,b1≠a0,a1b_0, b_1 \not= a_0, a_1?

If someone can do this, then they could also find the discrete logarithm. Here is why: We know that a0g0+a1g1=b0g0+b1g1a_0 g_0 + a_1 g_1 = b_0 g_0 + b_1 g_1, and by regrouping the terms on both sides of the equation we get

(a0−b0)g0=(b1−a1)g1(a_0 - b_0) g_0 = (b_1 - a_1) g_1

Either a0−b0a_0 - b_0 or b1−a1b_1 - a_1 have to be not equal to zero. Let’s say it’s a0−b0a_0 - b_0, then we get:

g0=b1−a1a0−b0g1=xg1g_0 = \frac{b_1 - a_1}{a_0 - b_0} g_1 = x g_1

for x=b1−a1a0−b0x = \frac{b_1 - a_1}{a_0 - b_0}. Thus we’ve found xx. Since we know this is a hard problem, in practice no attacker can perform this.

This means it’s computationally infeasible for an attacker to find alternative b0,b1b_0, b_1 to reveal for the commitment CC. (They definitely do exist, they are just computationally infeasible to find – similar to finding a collision for a hash function).

We can generalize this and commit to a vector, i.e. a list of scalars a0,a1,…,an−1∈Fpa_0, a_1, \ldots, a_{n-1} \in \mathbb F_p. We just need a “basis”, i.e. an equal number of group elements that don’t have known discrete logarithms between them. Then we can compute the commitment

C=a0g0+a1g1+a2g2+…+an−1gn−1C = a_0 g_0 + a_1 g_1 + a_2 g_2 + \ldots + a_{n-1} g_{n-1}

This gives us a vector commitment, although with quite a bad complexity: In order to reveal any element, all elements of the vector have to be revealed. But there is one redeeming property: The commitment scheme is additively homomorphic. This means that if we have another commitment D=b0g0+b1g1+b2g2+…+bn−1gn−1D = b_0 g_0 + b_1 g_1 + b_2 g_2 + \ldots + b_{n-1} g_{n-1}, then it’s possible to just add the two commitments to get a new commitment to the sum of the two vectors a⃗\vec a and b⃗\vec b:

C+D=(a0+b0)g0+(a1+b1)g1+(a2+b2)g2+…+(an−1+bn−1)gn−1C + D = (a_0 + b_0) g_0 + (a_1 + b_1) g_1 + (a_2 + b_2) g_2 + \ldots + (a_{n-1} + b_{n-1}) g_{n-1}

Thanks to this additive homomorphic property, this vector commitment actually turns out to be useful.

Inner Product Argument

The basic strategy of the Inner Product Argument is “divide and conquer”: Take the problem and instead of completely solving it, turn it into a smaller one of the same type. At some point, it becomes so small that you can simply reveal everything and prove that the instance is correct.

At each step, the problem size halves. This ensures that after log⁡n\log n steps, the problem is reduced to size one, so it can be proved trivially.

The idea is that we want to prove that a commitment CC is of the form

C=a⃗⋅g⃗+b⃗⋅h⃗+(a⃗⋅b⃗)qC = \vec a \cdot \vec g + \vec b \cdot \vec h + (\vec a \cdot \vec b) q

where g⃗=(g0,g1,…,gn−1)\vec g = (g_0, g_1, \ldots, g_{n-1}) and h⃗=(h0,h1,…,hn−1)\vec h = (h_0, h_1, \ldots, h_{n-1}) as well as qq are our “basis”, i.e. they are group elements in GG and none of their discrete logarithms with respect to each other are known. We also introduced the new notation a⃗⋅g⃗\vec a \cdot \vec g for a product between a vector of scalars (a⃗\vec a) and another vector of group elements (g⃗\vec g), and it is defined as

a⃗⋅g⃗=a0g0+a1g1+⋯+an−1gn−1\vec a \cdot \vec g = a_0 g_0 + a_1 g_1 + \cdots + a_{n-1} g_{n-1}

So essentially, we are proving that CC is a commitment to

  • a vector a⃗\vec a with basis g⃗\vec g
  • a vector b⃗\vec b with basis h⃗\vec h and
  • their inner product a⃗⋅b⃗\vec a \cdot \vec b with respect to the basis qq.

This in itself does not seem very useful – in most applications we want the verifier to know a⃗⋅b⃗\vec a \cdot \vec b, and not just have it hidden in some commitment. But this can be remedied with a small trick which I will come to below.

The argument

We want the prover to convince the verifier that CC is of the form C=a⃗⋅g⃗+b⃗⋅h⃗+(a⃗⋅b⃗)qC = \vec a \cdot \vec g + \vec b \cdot \vec h + (\vec a \cdot \vec b) q. As I mentioned before, instead of doing this outright, we will only reduce the problem by computing another commitment C′C' in such a way that if the property holds for C′C', then it also holds for CC.

In order to do this, the prover and the verifier play a little game. The prover commits to certain properties, after which the verifier sends a challenge, which leads to the next commitment C′C'. Describing it as a game does not mean the proof has to be interactive though: The Fiat-Shamir construction allows us to turn interactive proofs into non-interactive one, by replacing the challenge with a collision-resistant hash function of the commitments.

Statement to prove

The commitment CC has the form C=a⃗⋅g⃗+b⃗⋅h⃗+(a⃗⋅b⃗)qC = \vec a \cdot \vec g + \vec b \cdot \vec h + (\vec a \cdot \vec b) q with respect to the basis given by g⃗,h⃗,q\vec g, \vec h, q. We call the fact that CC has this form the “Inner Product Property”.

Reduction step

Let m=n2m = \frac{n}{2}

The prover computes

zL=amb0+am+1b1+⋯+an−1bm−1=a⃗R⋅b⃗LzR=a0bm+a1bm+1+⋯+am−1bn−1=a⃗L⋅b⃗Rz_L = a_m b_0 + a_{m+1} b_1 + \cdots + a_{n-1} b_{m-1} = \vec a_R \cdot \vec b_L \\ z_R = a_0 b_m + a_{1} b_{m+1} + \cdots + a_{m-1} b_{n-1} = \vec a_L \cdot \vec b_R

where we’ve defined a⃗L\vec a_L as the “left half” of the vector a⃗\vec a and a⃗R\vec a_R the “right half” and analogously for b⃗\vec b.

Then the prover computes the following commitments:

CL=a⃗R⋅g⃗L+b⃗L⋅h⃗R+zLqCR=a⃗L⋅g⃗R+b⃗R⋅h⃗L+zRqC_L = \vec a_R \cdot \vec g_L + \vec b_L \cdot \vec h_R + z_L q \\ C_R = \vec a_L \cdot \vec g_R + \vec b_R \cdot \vec h_L + z_R q \\

and send them to the verifier. Then the verifier sends the challenge x∈Fpx \in \mathbb F_p (when using the Fiat-Shamir construction to make this non-interactive, this means that xx would be the hash of CLC_L and CRC_R). The prover uses this to compute the updated vectors

a⃗′=a⃗L+xa⃗Rb⃗′=b⃗L+x−1b⃗R\vec a' = \vec a_L + x \vec a_R \\ \vec b' = \vec b_L + x^{-1} \vec b_R

which have half the length.

Now the verifier computes the new commitment:

C′=xCL+C+x−1CRC' = x C_L + C + x^{-1} C_R

as well as the updated basis

g⃗′=g⃗L+x−1g⃗Rh⃗′=h⃗L+xh⃗R\vec g' = \vec g_L + x^{-1} \vec g_R \\ \vec h' = \vec h_L + x \vec h_R

Now, if the new commitment C′C' has the property that it is of the form C′=a⃗′⋅g⃗′+b⃗′⋅h⃗′+a⃗′⋅b⃗′qC' = \vec a' \cdot \vec g' +\vec b' \cdot \vec h' + \vec a' \cdot \vec b' q – then the commitment CC fulfills the original claim.

All the vectors have halved in size – so we have achieved something. From here we replace C:=C′C:=C', g⃗:=g⃗′\vec g := \vec g' and h⃗:=h⃗′\vec h := \vec h' and repeat this step.

I will below go through the maths on why this works, but Vitalik also made a nice visual representation that I recommend to get an intuition.

Final step

When we repeat the step above, we will reduce nn by a factor of two each time. At some point, we will encounter n=1n=1. At this point we don’t repeat the step anymore. Instead the prover will send a⃗\vec a and b⃗\vec b, which in fact are now only a single scalar each. Then the verifier can simply compute

D=ag+bh+abqD = a g + b h + a b q

and accept the statement if this is indeed equal to CC, or reject if it is not.

Correctness and soundness

Above I claimed that if C′C' has the desired form, then it follows that CC also has it. I now want to show why this is the case. In order to do this, we need to look at two things:

  • Correctness – i.e. given a prover who follows the protocol, can they always convince the verifier that the statement is correct; and
  • Soundness – i.e. a dishonest prover cannot convince the verifier of an incorrect statement, except with a very small probability.

Let’s start with correctness. This assumes that the prover is doing everything according to the protocol. Since the prover is following the protocol, we know that C=a⃗⋅g⃗+b⃗⋅h⃗+(a⃗⋅b⃗)qC = \vec a \cdot \vec g + \vec b \cdot \vec h + (\vec a \cdot \vec b) q with respect to the basis given by g⃗,h⃗,q\vec g, \vec h, q. We need to show that then C′=a⃗′⋅g⃗′+b⃗′⋅h⃗′+a⃗′⋅b⃗′qC'= \vec a' \cdot \vec g' +\vec b' \cdot \vec h' + \vec a' \cdot \vec b' q.

The verifier computes C′=xCL+C+x−1CRC' = x C_L + C + x^{-1} C_R.

C′=xCL+C+x−1CR=x(a⃗R⋅g⃗L+b⃗L⋅h⃗R+zLq)+a⃗L⋅g⃗L+a⃗R⋅g⃗R+b⃗L⋅h⃗L+b⃗R⋅h⃗R+a⃗⋅b⃗q+x−1(a⃗L⋅g⃗R+b⃗R⋅h⃗L+zRq)=(xa⃗R+a⃗L)⋅(g⃗L+x−1g⃗R)+(b⃗L+x−1b⃗R)⋅(h⃗L+xh⃗R)+(xzL+a⃗⋅b⃗+x−1zR)q=(xa⃗R+a⃗L)⋅g⃗′+(b⃗L+x−1b⃗R)⋅h⃗′+(xzL+a⃗⋅b⃗+x−1zR)qC' = x C_L + C + x^{-1} C_R \\ = x ( \vec a_R \cdot \vec g_L + \vec b_L \cdot \vec h_R + z_L q) \\ + \vec a_L \cdot \vec g_L + \vec a_R \cdot \vec g_R + \vec b_L \cdot \vec h_L + \vec b_R \cdot \vec h_R + \vec a \cdot \vec b q \\ + x^{-1} (\vec a_L \cdot \vec g_R + \vec b_R \cdot \vec h_L + z_R q)\\ = (x \vec a_R + \vec a_L)\cdot(\vec g_L + x^{-1} \vec g_R) \\ + (\vec b_L + x^{-1} \vec b_R)\cdot(\vec h_L + x \vec h_R) \\ + (x z_L + \vec a \cdot \vec b + x^{-1} z_R) q \\ = (x \vec a_R + \vec a_L)\cdot \vec g' + (\vec b_L + x^{-1} \vec b_R)\cdot \vec h' + (x z_L + \vec a \cdot \vec b + x^{-1} z_R) q

So in order for the commitment to have the Inner Product Property, we need to verify that (xa⃗R+a⃗L)⋅(b⃗L+x−1b⃗R)=xzL+a⃗⋅b⃗+x−1zR(x \vec a_R + \vec a_L) \cdot (\vec b_L + x^{-1} \vec b_R) = x z_L + \vec a \cdot \vec b + x^{-1} z_R. This is true because

(xa⃗R+a⃗L)⋅(b⃗L+x−1b⃗R)=xa⃗R⋅b⃗L+a⃗L⋅b⃗L+a⃗R⋅b⃗R+x−1a⃗L⋅b⃗R=xzL+a⃗⋅b⃗+x−1zR(x \vec a_R + \vec a_L) \cdot (\vec b_L + x^{-1} \vec b_R) \\ = x \vec a_R \cdot \vec b_L + \vec a_L \cdot \vec b_L + \vec a_R \cdot \vec b_R + x^{-1} \vec a_L \cdot \vec b_R \\ = x z_L + \vec a \cdot \vec b + x^{-1} z_R

This concludes the proof of correctness. Now in order to prove soundness, we need the property that a prover can’t start with a commitment CC that does not fulfill the Inner Product Property and end up with a C′C' that does by going through the reduction step.

So let’s assume that the prover committed to C=a⃗⋅g⃗+b⃗⋅h⃗+rqC=\vec a \cdot \vec g + \vec b \cdot \vec h + r q for some r≠a⃗⋅b⃗r \not= \vec a \cdot \vec b. If we go through the same process as before, we find

C′=(xa⃗R+a⃗L)⋅g⃗′+(b⃗L+x−1b⃗R)⋅h⃗′+(xzL+r+x−1zR)qC' = (x \vec a_R + \vec a_L)\cdot \vec g' + (\vec b_L + x^{-1} \vec b_R)\cdot \vec h' + (x z_L + r + x^{-1} z_R) q

So now let’s assume that the prover managed to cheat, and thus C′C' fulfills the Inner Product Property. That means that

(xa⃗R+a⃗L)⋅(b⃗L+x−1b⃗R)=xzL+r+x−1zR(x \vec a_R + \vec a_L) \cdot (\vec b_L + x^{-1} \vec b_R) = x z_L + r + x^{-1} z_R

Expanding the left hand side, we get

xa⃗R⋅b⃗L+a⃗⋅b⃗+x−1a⃗L⋅b⃗R=xzL+r+x−1zRx \vec a_R \cdot \vec b_L + \vec a \cdot \vec b + x^{-1} \vec a_L \cdot \vec b_R = x z_L + r + x^{-1} z_R

Note that the prover can choose zLz_L and zRz_R freely, so we cannot assume that they will be according to the above definitions.

Multiplying by xx and moving everything to one side we get a quadratic equation in xx:

x2(a⃗R⋅b⃗L−zL)+x(a⃗⋅b⃗−r)+(a⃗L⋅b⃗R−zR)x^2 ( \vec a_R \cdot \vec b_L - z_L) + x (\vec a \cdot \vec b - r) + (\vec a_L \cdot \vec b_R - z_R )

Unless all the terms are zero, this equation has at most two solutions x∈Fpx \in \mathbb F_p. But the verifier chooses xx after the prover has already committed to their values rr, zLz_L and zRz_R. The probability that the prover can successfully cheat is thus extremely small; we typically choose the field Fp\mathbb F_p to be of size ca. 22562^{256}, so the probability that the verifier chooses a value for xx such that this equation holds, when the values were not chosen according to the protocol, is vanishingly small.

This concludes the soundness proof.

Only compute basis changes at the end

The verifier has to do two things each round: Compute the challenge xx and compute the updates bases g⃗′\vec g' and h⃗′\vec h'. However, updating the basis gg at every round is inefficient. Instead the verifier can simply keep track of the challenge values x1x_1, x2x_2, up to xℓx_{\ell} that they will encounter during the ℓ\ell rounds.

Let’s call the basis after round kk g⃗k,h⃗k\vec g_k, \vec h_k. The elements gℓg_\ell and hℓh_\ell are scalars (or vectors of length one) because we end the protocol once our vectors have reached length one. Computing gℓg_\ell from g⃗0\vec g_0 is a multiscalar multiplication (MSM) of length nn. The scalar factors for g⃗0\vec g_0 are the coefficients of the polynomial

fg(X)=∏i=0ℓ(1+xℓ−i−1X2i)f_g(X) = \prod_{i=0}^\ell \left(1+x^{-1}_{\ell-i} X^{2^{i}}\right)

and the scalar factors for h⃗0\vec h_0 are given by

fh(X)=∏i=0ℓ(1+xℓ−iX2i)f_h(X) = \prod_{i=0}^\ell \left(1+x_{\ell-i} X^{2^{i}}\right)

Using Inner Product Arguments to evaluate polynomials

For our main application – evaluating a polynomial defined by f(x)=∑i=0n−1aixif(x) = \sum_{i=0}^{n-1} a_i x^i at a point zz – we want to make some small additions to this protocol.

  • Most importantly, we want to know the result f(z)=a⃗⋅b⃗f(z) = \vec a \cdot \vec b, and not just that CC has the “Inner Product Property”
  • b⃗=(1,z,z2,...,zn−1)\vec b = (1, z, z^2, ..., z^{n-1}) is known to the verifier. We can thus make things a bit easier by removing it from the commitment

How to construct the commitment

If we want to verify a polynomial evaluation for the polynomial f(x)=∑i=0n−1aixif(x) = \sum_{i=0}^{n-1} a_i x^i, then we are typically working from a commitment F=a⃗⋅g⃗F = \vec a \cdot \vec g. The prover would send the verifier the evaluation y=f(z)y=f(z).

So it seems like the verifier can just compute the initial commitment C=a⃗⋅g⃗+b⃗⋅h⃗+a⃗⋅b⃗q=F+b⃗⋅h⃗+f(z)qC=\vec a \cdot \vec g + \vec b \cdot \vec h + \vec a \cdot \vec b q = F + \vec b \cdot \vec h + f(z) q, since they know b⃗=(1,z,z2,...,zn−1)\vec b = (1, z, z^2, ..., z^{n-1}), and start the protocol.

But not so fast. In most cases, FF will be a commitment that is generated by the prover. A malicious prover could cheat by, for example, committing to F=a⃗⋅g⃗+tqF = \vec a \cdot \vec g + tq. In this case, they would be able to prove that f(z)=y−tf(z) = y - t, because they have effectively shifted the result.

To prevent this, we need to do a small change to the protocol. After receiving the commitment FF and the evaluation yy, the verifier generates a scalar ww and rescales the basis q:=wqq:=wq. Afterwards the protocol can proceed as usual. Because the prover can’t predict what ww is going to be, they can’t succeed (except with very small probability) at manipulating the result to be something other then f(z)f(z).

Note that we also need to stop the prover from manipulating the vector b⃗\vec b if what we want is a generic inner product – but for a polynomial evaluation, we can simply get rid of that part alltogether so I won’t go into the details.

How to get rid of the second vector

Note that the verifier knows the vector b⃗=(1,z,z2,...,zn−1)\vec b = (1, z, z^2, ..., z^{n-1}) if what we want is to compute a polynomial evaluation. Given the challenges x0,x1,…,xℓx_0, x_1, \ldots, x_\ell they can simply compute the final result bℓb_\ell using the same technique as demonstrated in “compute the basis change at the end”.

We can thus remove the second vector from all commitments and simply compute bℓb_\ell. This means the verifier has to be able to compute the final version bℓb_\ell from the initial vector b⃗0=(1,z,z2,...,zn−1)\vec b_0 = (1, z, z^2, ..., z^{n-1}). Since the folding process for b⃗\vec b is the same as that for the basis vector g⃗\vec g, the coefficients of the previously defined polynomial fgf_g will define the linear combination, in other words bℓ=fg(z)b_\ell=f_g(z).

Creating an IPA for a polynomial in coefficient form

So far, we have used an Inner Product Argument to evaluate a polynomial that is committed to by its coefficients, which are the fif_i for a polynomial defined by f(X)=∑i=0n−1fiXif(X) = \sum_{i=0}^{n-1} f_i X^i. However, often we want to work with a polynomial that is defined using its evaluations on a domain x0,x1,…,xn−1x_0, x_1, \ldots, x_{n-1}. Since any polynomial of degree less than n−1n-1 is uniquely defined by the evaluations f(x0),f(x1),…,f(xn−1)f(x_0), f(x_1), \ldots, f(x_{n-1}) these two are completely equivalent. However, transforming between the two can be computationally expensive: it costs O(nlog⁡n)O(n \log n) operations if the domain admits an efficient Fast Fourier Transform, and otherwise it’s O(n2)O(n^2).

To avoid this cost, we try to simply never change to coefficient form. This can be done by changing the commitment to ff by committing to the evaluations instead of the coefficients:

C=f(x0)g0+f(x1)g1+⋯+f(xn−1)gn−1C = f(x_0) g_0 + f(x_1) g_1 + \cdots + f(x_{n-1}) g_{n-1}

This means that our a⃗\vec a vector in the IPA is now given by a⃗=(f(x0),f(x1),…,f(xn−1))\vec a = (f(x_0), f(x_1), \ldots, f(x_{n-1}))

The barycentric formula allows us now to compute an IPA to evaluate a polynomial using this new commitment. It says that

f(z)=A(z)∑i=0n−1f(xi)A′(xi)1z−xif(z) = A(z)\sum_{i=0}^{n-1} \frac{f(x_i)}{A'(x_i)} \frac{1}{z-x_i}

If we choose the vector b⃗\vec b to be

bi=A(z)A′(xi)1z−xib_i = \frac{A(z)}{A'(x_i)} \frac{1}{z-x_i}

we get that a⃗⋅b⃗=f(z)\vec a \cdot \vec b = f(z), and thus an IPA with this vector can be used to prove the evaluation of a polynomial which is itself in evaluation form. Other than this, the strategy is exactly the same.

[^2]: Bootle, Cerulli, Chaidos, Groth, Petit: Efficient Zero-Knowledge Arguments forArithmetic Circuits in the Discrete Log Setting [^1]: Bowe, Grigg, Hopwood: Recursive Proof Composition without a Trusted setup