Arithmetization
Arithmetization converts a computational statement — a circuit or program — into a system of polynomial equations over a finite field . It is the first step in constructing SNARKs and other proof systems: once a computation is expressed as polynomial constraints, a polynomial commitment scheme can be used to verify those constraints succinctly (Extractable PCS ⇒ SNARK).
Constraint systems
R1CS (Rank-1 Constraint System)
An R1CS encodes a computation as a list of rank-1 constraints over :
where is the witness vector concatenating the instance and private witness, and , with , are public coefficient vectors. Each constraint corresponds to one multiplication gate (left input right input output); additions and multiplications by constants are absorbed into the linear forms , and — standard.
R1CS, in its QAP form, is the arithmetization underlying Groth16 (Bilinear pairing ⇒ zk-SNARK) and the original Pinocchio protocol — PHGR13.
QAP (Quadratic Arithmetic Program)
A QAP encodes an R1CS instance into a polynomial divisibility check. Given an R1CS with constraints and distinct evaluation points , define the target polynomial , interpolate for each coordinate polynomials of degree with , , , and set , , . The witness satisfies all constraints if and only if (Gro16, following GGPR13):
Given a quotient from the prover, the identity is checked at a single random point using the Schwartz–Zippel lemma; Groth16 checks it at a secret point of the CRS with one pairing-product equation (Bilinear pairing ⇒ zk-SNARK).
PLONKish
PLONKish arithmetization generalizes R1CS by allowing custom gates (not just multiplication) and a permutation argument to enforce that values are copied correctly across the circuit. For example, a single “range check” gate can replace thousands of multiplication gates.
PLONKish is used in Plonk (Bilinear pairing + q-DLOG ⇒ Universal SNARK (PLONK)), Halo2, and most modern universal SNARKs. Each row satisfies a gate constraint (plus optional custom gate selectors). Copy constraints equate designated cells, and a permutation argument enforces them — GWC19.
AIR (Algebraic Intermediate Representation)
AIR encodes a computation as constraints on an execution trace : transition constraints, polynomial relations that hold for each step , and boundary constraints, which fix the values of given cells of the trace. AIR is the arithmetization underlying STARKs: the AIR constraints reduce to Reed–Solomon proximity claims, which the FRI protocol tests (ROM ⇒ STARK) — BBHR18a.
Results
- Every statement can be arithmetized as R1CS in polynomial size — standard
- Bilinear pairing ⇒ zk-SNARK
- Extractable PCS ⇒ SNARK
- ROM ⇒ STARK
- For Boolean circuits, each AND gate becomes one R1CS constraint ( with ), as does each XOR gate over with (); NOT is affine and free — standard