We provide here a list of projects and extensions to ZKLib. This list will be updated as items are taken off into immediate issues to be worked on.
- KZG
- Bulletproofs (as an inner product argument (IPA), or even more specialized, a polynomial commitment scheme (PCS))
- Hyrax
- HyperKZG / Zeromorph
- Dory
- High-degree gates
- Lookups based on univariate polynomials (plookup? logup? cq?)
- Nova, Hypernova, and NeutronNova
- Protostar and ProtoGalaxy
- Arc
It would be nice to use the theories in ZKLib to prove foundational results such as the PCP theorem. We imagine that it is within reach to formalize the original proofs (using sum-check, multivariate low-degree tests, and proof composition), and also the quasilinear-length PCP by Ben-Sasson & Sudan.
The below are content for an older version of the roadmap. Some of these contents are being actively worked on (especially computable polynomials).
- Computable Univariate Polynomials
- Define
UniPolyas the type of univariate polynomials with computable representations (interally as anArrayof coefficients). Define operations onUniPolyas operations on the underlyingArrayof coefficients. - Define an equivalence relation on
UniPolythat says twoUniPolys are equivalent iff they are equal up to zero-padding. Show that this is an equivalence relation. - Show that operations on
UniPolydescends to the quotient (i.e. are the same up to zero-padding). Show that the quotient is isomorphic as semirings toPolynomialinMathlib. Show that the same functions (e.g.eval) onUniPolyare the same as those ofPolynomial. - For more efficient evaluation, and use in univariate-based SNARKs, define the coefficient representation of
UniPoly(on2-adic roots of unity), and show conversions between the coefficient and evaluation representations.
- Define
- Computable Multilinear Polynomials
- Define
MlPolyas the type of multilinear polynomials with computable representations (internally as anArrayof coefficients). Define operations onMlPolyas operations on the underlyingArrayof coefficients. - Define alternative definition of
MlPolywhere the evaluations on the hypercube are stored instead of the coefficients. Define conversions between the two definitions, and show that they commute with basic operations.- Will need to expand
Mathlib's support for indexing by bits (i.e. further developBitVec).
- Will need to expand
- Define an equivalence relation on
MlPolythat says twoMlPolys are equivalent iff they are equal up to zero-padding. Show that this is an equivalence relation. Show that operations onMlPolydescends to the quotient. - Define & prove a module isomorphism between the quotient of
MlPolyby the equivalence relation andMvPolynomialwhose individual degrees are restricted to be at most 1.
- Define
- Extensions to Multivariate Polynomials in
Mathlib-
Interpolation.lean- Develop the theory of interpolating multivariate polynomials given their values on a
n-dimensional grid of points. - Specialize this theory to the case of multilinear polynomials (then merge with
Multilinear.lean).- There is some subtlety here in the sense that general interpolation requires a field (for inverses of Lagrange coefficients), but multilinear interpolation/extension only requires a ring (since the coefficients are just
1). We may need to develop multilinear theory for non-fields (for Binius).
- There is some subtlety here in the sense that general interpolation requires a field (for inverses of Lagrange coefficients), but multilinear interpolation/extension only requires a ring (since the coefficients are just
- Develop the theory of interpolating multivariate polynomials given their values on a
-
- Coding Theory
- Define and develop basic results on linear codes.
- Define basic codes such as Reed-Solomon.
- Prove proximity gap and interleaved distance results (up to one-third of the unique decoding distance).
- Binary Tower Fields
- Define iterated quadratic extensions of the binary field (Wiedermann construction), and prove that the resulting ring is a field.
- Define efficient representation of elements in a binary tower field (using
BitVec), efficient operations on them (see Binius paper), and prove that the resulting structure is a field isomorphic to the definition above.
- Large Scalar Fields used in Curves
- Low-priority for now.
- Development on this should be done over at
FFaCiL.