Constant-query verification by algebraic encoding, by Will Cook, using AI. Original algebraic proof: Amireddy, Behera, Srinivasan, Sudan and Willumsgaard. Lean formalization: Troy Lee. Explanatory reconstruction by Will Cook, using AI. The links from the text to the Lean, the plain titles, the reading notes and the comparisons were made with AI and have not been reviewed by the authors. No mathematician has reviewed them.
Auto select follows the paper as you scroll. Hover over a marked phrase to preview its Lean and see how the two compare. Click a phrase to keep it selected in Manual.
Constant-query verification by algebraic encoding
Explanatory reconstruction prepared by Will Cook with AI assistance · 16 November 2026.
Algebraic construction: Amireddy, Behera, Srinivasan, Sudan and Willumsgaard. Lean formalization: Troy Lee.
Abstract
The PCP theorem gives every language in NP a polynomial-time verifier with logarithmic randomness, constantly many proof-bit queries, perfect completeness and soundness error at most one half. We explain Troy Lee’s Lean formalization of the algebraic proof of Amireddy, Behera, Srinivasan, Sudan and Willumsgaard. In the soundness proof the verifier’s checks force four fixed nearby polynomials to encode a proper colouring. Its central step is local correction at prescribed points, where closeness on average gives no guarantee; we bound the error by the corrector’s own rejection probability.
1. Introduction
Theorem 1.1 (PCP theorem; [AS98, ALMSS98]). For every language in NP, there are a polynomial-time verifier , natural numbers , and a polynomial with the following properties. On an input of length , the verifier uses exactly
fair random bits (the exact randomness formula), makes at most proof-bit queries on every run, and reads only addresses below . If , there is one proof accepted for every random seed. If , every proof is accepted with probability at most .
The verifier, its implementation, the constants and are fixed for before is chosen. The proof may depend on and is fixed before the seed. Conversely, every language with such a verifier lies in NP (Section 7). Hence
Remark (formalization). Lee proves Theorem 1.1 in this form, for a verifier implemented in a concrete machine model; surplus random bits may be ignored. [ABSSW26, Theorem 2.2] states randomness.
The theorem is due to Arora, Lund, Motwani, Sudan and Szegedy [ALMSS98], building on Arora and Safra [AS98]. In a field of size , a field value takes bits, and the coefficient vector of a line polynomial of degree at most takes bits. Counting either as one symbol, as the point-versus-line test of [ALMSS98] does, does not establish constant bit-query complexity, and binary encoding of whole coefficient vectors can need quasipolynomial proof length. The construction maps a line polynomial of degree below to one of total degree at most in variables, fixed, and Hadamard-encodes single field values for one-bit queries, without PCP composition [ABSSW26, §1].
If the low-degree tests reject rarely, four nearby polynomials have encodings close to the received tables; the analysis chooses them and the verifier never computes them. The other checks force them to encode a proper colouring, the difficulty being local correction at prescribed points. The construction and analysis are those of [ABSSW26]; Lee [Lee26] formalized them, added explicit constants and a weaker field-size hypothesis for the low-degree test over , and identified the error in version 1 of [ABSSW26]. We contribute an explanation of the correction bound and the soundness argument with those constants.
Sections 2 to 7 give notation, the encodings and the proof, testing, correction, soundness, resources and the converse. The full argument proves the testing results; the worked exposition gives examples.
2. Preliminaries
Throughout, is a field of characteristic two with elements and a primitive cube root of unity . We write for relative Hamming distance; is -close to if . Probabilities are uniform on the indicated finite sets, rejection probabilities over a test’s seed. For the line through with slope is , with allowed, index and base point . By the Schwartz–Zippel lemma [ABSSW26, Theorem 2.5], a nonzero polynomial of total degree at most vanishes on at most a fraction of .
The verifier tests three-colourability of a graph on vertices. Represent the colours by
For , their difference satisfies . Hence exactly when .
Choose a nonempty grid with , pad the graph with isolated vertices, and write . Interpolation gives low-degree extensions [ABSSW26, Fact 2.4]: of the colouring, of degree at most , and of the adjacency function on , of degree at most , which the verifier computes.
Set
These are the polynomials of [ABSSW26, §7], where and are written and , and the vanishing certificates below are their .
Lemma 2.1 (colouring constraints). The restriction is a proper colouring of the padded graph exactly when and , and have degrees at most .
The first condition restricts vertex values to , the second separates values across edges. Both are needed: colouring by satisfies every edge equation, as nonzero elements have cube one, but the vertex coloured zero fails.
Lemma 2.2 (Combinatorial Nullstellensatz; [ABSSW26, Lemma 2.9 and Corollary 2.10]). Put , applied coordinatewise. A polynomial vanishes on precisely when, for some polynomials each zero or of degree at most ,
Equivalently, some polynomial of degree at most , a vanishing certificate, satisfies
Proof. Monic division by in each coordinate leaves a remainder of degree below in every variable; if vanishes on the grid, so does the remainder, and interpolation makes it zero. Packing the quotients into
gives (2), and each , hence , has degree at most because . Conversely, (2) implies grid vanishing even when is nonlinear in , since on the grid.
Loading the paper…