Appearance
Interpolation and Zero-Testing over domains
Exercise 12
Interpolate the value vectors and selector vectors as before, now over
python
#Solve here! Hint: your previously defined interpolate function should also work here!
Ω = [ω^i for i in range(1,n+1)]
a = interpolate(Ω,list(LI.values())) #Now the points are (ω^i, LI[i]) for i in I
b =
c =
qL =
qR =
qM =
If computed correctly you should have obtained:
We said that one of the advantage of working with multiplicatives domains is that the verifier can now use
Exercise 13
Let
Verify that the division is exact: show that the remainder
python
#Solve here!
t = qM*a*b + qL*a+qR*b-c
Z = x^4 - 1
Quo=
Rem=
print("Quotient Q(x):\n", Quo)
print("\nRemainder R(x):\n", Rem)
print("\nIs remainder zero? ", Rem == 0) #should be True