Reading library Constant-query verification by algebraic encoding

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 L⊆{0,1}∗\mathcal L\subseteq\{0,1\}^{*} in NP, there are a polynomial-time verifier VV, natural numbers α,β,ℓ\alpha,\beta,\ell, and a polynomial p∈N[X]p\in\mathbb N[X] with the following properties. On an input xx of length nn, the verifier uses exactly

α⌈log⁡2(n+2)⌉+β\alpha\lceil\log_2(n+2)\rceil+\beta

fair random bits (the exact randomness formula), makes at most ℓ\ell proof-bit queries on every run, and reads only addresses below p(n)p(n). If x∈Lx\in\mathcal L, there is one proof accepted for every random seed. If x∉Lx\notin\mathcal L, every proof is accepted with probability at most 1/21/2.

The verifier, its implementation, the constants and pp are fixed for L\mathcal L before xx is chosen. The proof may depend on xx and is fixed before the seed. Conversely, every language with such a verifier lies in NP (Section 7). Hence

NP=PCP(O(log⁡n),O(1)).\mathrm{NP}=\mathrm{PCP}(O(\log n),O(1)).

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 O(log⁡n)O(\log n) randomness.

The theorem is due to Arora, Lund, Motwani, Sudan and Szegedy [ALMSS98], building on Arora and Safra [AS98]. In a field of size 2t2^t, a field value takes tt bits, and the coefficient vector of a line polynomial of degree at most dd takes (d+1)t(d+1)t 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 bcb^c to one of total degree at most cc in cbcb variables, cc 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 FF, 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, FF is a field of characteristic two with q=2tq=2^t elements and a primitive cube root of unity ω\omega. We write Δ\Delta for relative Hamming distance; ff is δ\delta-close to gg if Δ(f,g)≤δ\Delta(f,g)\le\delta. Probabilities are uniform on the indicated finite sets, rejection probabilities over a test’s seed. For u,v∈Fku,v\in F^k the line through uu with slope vv is z↦u+zvz\mapsto u+zv, with v=0v=0 allowed, index (u,v)(u,v) and base point uu. By the Schwartz–Zippel lemma [ABSSW26, Theorem 2.5], a nonzero polynomial of total degree at most dd vanishes on at most a fraction d/qd/q of FkF^k.

The verifier tests three-colourability of a graph on NN vertices. Represent the colours by

C={1,ω,ω2}.\mathcal C=\{1,\omega,\omega^2\}.

For u,v∈Cu,v\in\mathcal C, their difference satisfies (u−v)4=u−v(u-v)^4=u-v. Hence u≠vu\ne v exactly when (u−v)3=1(u-v)^3=1.

Choose a nonempty grid Hm⊆FmH^m\subseteq F^m with ∣H∣m≥N|H|^m\ge N, pad the graph with isolated vertices, and write h=∣H∣h=|H|. Interpolation gives low-degree extensions [ABSSW26, Fact 2.4]: PP of the colouring, of degree at most d0=m(h−1)d_0=m(h-1), and EE of the adjacency function on H2mH^{2m}, of degree at most 2d02d_0, which the verifier computes.

Set

QP(X,Y)=P(X)−P(Y),AP(X)=P(X)3−1,BP(X,Y)=E(X,Y)(QP(X,Y)3−1).(1)\begin{aligned} Q_P(X,Y)&=P(X)-P(Y),\\ A_P(X)&=P(X)^3-1,\\ B_P(X,Y)&=E(X,Y)\bigl(Q_P(X,Y)^3-1\bigr). \end{aligned} \tag{1}(1)

These are the polynomials χ′,Val,Prop\chi',\mathsf{Val},\mathsf{Prop} of [ABSSW26, §7], where PP and EE are written χ\chi and E^\widehat E, and the vanishing certificates MA,MBM_A,M_B below are their MVal,MProp\mathcal M_{\mathsf{Val}},\mathcal M_{\mathsf{Prop}}.

Lemma 2.1 (colouring constraints). The restriction P∣HmP|_{H^m} is a proper colouring of the padded graph exactly when AP∣Hm=0A_P|_{H^m}=0 and BP∣H2m=0B_P|_{H^{2m}}=0, and QP,AP,BPQ_P,A_P,B_P have degrees at most d0,3d0,5d0d_0,3d_0,5d_0.

The first condition restricts vertex values to C\mathcal C, the second separates values across edges. Both are needed: colouring K4K_4 by F4\mathbb F_4 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 ZH(T)=∏u∈H(T−u)Z_H(T)=\prod_{u\in H}(T-u), applied coordinatewise. A polynomial AA vanishes on HkH^k precisely when, for some polynomials UiU_i each zero or of degree at most deg⁡A−h\deg A-h,

A(X)=∑i=1kZH(Xi)Ui(X).A(X)=\sum_{i=1}^{k} Z_H(X_i)U_i(X).

Equivalently, some polynomial M(X,Y)M(X,Y) of degree at most deg⁡A\deg A, a vanishing certificate, satisfies

M(X,0)=0,M(X,ZH(X))=A(X).(2)M(X,0)=0,\qquad M(X,Z_H(X))=A(X). \tag{2}(2)

Proof. Monic division by ZHZ_H in each coordinate leaves a remainder of degree below hh in every variable; if AA vanishes on the grid, so does the remainder, and interpolation makes it zero. Packing the quotients into

M(X,Y)=∑iYiUi(X)M(X,Y)=\sum_iY_iU_i(X)

gives (2), and each YiUiY_iU_i, hence MM, has degree at most deg⁡A\deg A because h≥1h\ge1. Conversely, (2) implies grid vanishing even when MM is nonlinear in YY, since ZH(X)=0Z_H(X)=0 on the grid. □\square