OctoInform Beta

OpenAI preprint, September 2026 · §8. Uniform compilation and completeness

Proposition 8.1: Equal positive orders, polynomial vertex bounds for GM,c,dε(w)G_{M,c,d}^{\varepsilon}(w), and polynomial-time cellular catalog graph compilation

Uniform polynomial-time compilation to general graphs.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

Reducing an exponential-time decision problem to the general variable-dimension Weisfeiler-Leman equivalence problem WL\mathrm{WL} requires a uniform polynomial-time compiler. Given a fixed deterministic multitape Turing machine MM and an input binary word ww, the compiler must output a pair of equally large, nonempty, finite simple uncolored graphs together with a binary address length rr serving as the dimension parameter.

Two structural requirements govern this compilation. First, the vertex count of the output graphs must be positive, identical for the two versions, and bounded by a fixed polynomial in |w|+1|w| + 1 whose degree depends only on the time-exponent parameter. Second, the adjacency-matrix listing of the output graphs must be constructed uniformly by a polynomial-time procedure from the cellular description of the machine computation.

From machines to general reduction graphs

A binary word ww is a finite list of Booleans of length |w||w|. A multitape Turing machine MM is specified by its counts of non-initial states, work symbols, and extra tapes together with a partial transition function whose head motions move left, stay in place, or move right. To simulate MM on a single tape, the Lean library first encodes MM as a multi-stack program using two stacks per tape, translates that program through an intermediate single-tape program to a base Turing program supported on a finite label set, and adapts it into an equivalent one-head machine program over finite control states and a one-head tape alphabet, together with an encoded one-head input word for each ww.

Fix natural-number exponent parameters c,d∈ℕc, d \in \mathbb{N} and write m=|w|m = |w|. The input time exponent is (c+1)(m+1)d+1(c + 1)(m + 1)^{d + 1}. Combined with the linear simulation constant of MM (twice the maximum stack operation count plus 55) and the quadratic simulation constant of MM, this determines the simulation time exponent, the reduction address bit length ℓ\ell (equal to the simulation time exponent plus 22), and the binary address length r=2ℓr = 2\ell. The length of the encoded one-head input is strictly below 2ℓ2^\ell.✦

A one-head tape cell pairs a tape symbol with an optional control state, and the one-head local transition rule maps each triple of adjacent cells to the next cell. Binary strings of length ℓ\ell encode {0,…,2ℓ−1}\{0, \dots, 2^\ell - 1\} via their binary value ∑i=0ℓ−1x(i)2i<2ℓ\sum_{i=0}^{\ell-1} x(i) 2^i < 2^\ell, with carry domains, cyclic carry domains, increment bit maps, cyclic increment bit maps, and threshold bit domains describing single-coordinate transitions. Joining ℓ\ell-bit time coordinates and ℓ\ell-bit position coordinates turns the one-head product cellular automaton into a succinct circuit description of address length r=2ℓr = 2\ell.

A succinct circuit description of address length rr specifies scalar gates of input dimension 11, conjunction gates of input dimension 22, gate ports with input and output 𝔽2\mathbb{F}_2-linear maps, coordinatewise connection schemas, and seed or test requests. Its circuit consistency instance is a product image instance JM,c,d(w)J_{M,c,d}(w) of address length rr over real vertices of dimension 11 or 22 and comparison edges, recording allowed coordinate labels for each vertex.

Subdividing each edge of JM,c,d(w)J_{M,c,d}(w) with internal parameter s=4(r+1)s = 4(r + 1) yields subdivision vertices and subdivision links with left and right endpoints. Over these subdivided data, a raw block is either a horizontal block (a row index in {0,…,r−1}\{0, \dots, r - 1\}, a subdivision vertex, and label bits) or a square block (a row index, a subdivision link, and label bits); valid raw blocks form the block set. Each block carries readouts (horizontal blocks and vertical readouts), an affine boundary map over 𝔽2\mathbb{F}_2 defined on binary vectors and square value tuples, and an inhomogeneity bit determined by the marked coordinate 0∈{0,…,r−1}0 \in \{0, \dots, r - 1\}. For a parity bit ε∈𝔽2\varepsilon \in \mathbb{F}_2, the legal valuations on a valid block BB form its affine fiber ZBεZ_B^\varepsilon.

A finite simple graph consists of a natural-number order NN and a simple graph structure on {0,…,N−1}\{0, \dots, N - 1\}. For ε∈𝔽2\varepsilon \in \mathbb{F}_2, a base vertex is a pair (B,z)(B, z) of a valid block BB and a legal valuation z∈ZBεz \in Z_B^\varepsilon. Two base vertices are adjacent when they belong to distinct blocks sharing a readout and their valuations agree on every shared readout.✦ Attaching private leaves to each base vertex according to the block leaf count gives the general realization graph; realizing JM,c,d(w)J_{M,c,d}(w) at subdivision parameter s=4(r+1)s = 4(r + 1), marked coordinate 00, and parity bit ε\varepsilon produces the finite simple general reduction graph GM,c,dε(w)G_{M,c,d}^{\varepsilon}(w), whose vertex count is denoted |V(GM,c,dε(w))||V(G_{M,c,d}^{\varepsilon}(w))|. The reduction also determines two natural-number constants: the reduction schema constant Csch(M)=16(|ΣM|+|ΣM|3+1)C_{\mathrm{sch}}(M) = 16(|\Sigma_M| + |\Sigma_M|^3 + 1), where ΣM\Sigma_M is the finite set of one-head tape cells of MM, and the reduction dimension constant Cdim(M,c)=2(Cquad(M)+2c+7)+1C_{\mathrm{dim}}(M, c) = 2(C_{\mathrm{quad}}(M) + 2c + 7) + 1, where Cquad(M)C_{\mathrm{quad}}(M) is the quadratic simulation constant of MM.

Polynomial-time catalog compilation

To express the uniform compiler within a formal polynomial-time model, the Lean library uses stack machines operating on finite tuples of binary-word stores via stack actions (keep, pop, or push a bit) chosen from the top symbols of the stacks. A certified stack recipe on nn word inputs bundles a value map, a time map, and a stack-procedure realization using auxiliary blank stacks; it is polynomial-time if its running time plus its output word length on every nn-ary word environment of word length at most CC is bounded by a function of polynomial growth c0(C+1)d0c_0 (C + 1)^{d_0} for some c0,d0∈ℕc_0, d_0 \in \mathbb{N}. A polynomial-time expression on nn inputs pairs a certified stack recipe with a polynomial-time bound. These expressions are closed under input variables, constant words, unary numerals, length, unary arithmetic, integer division and remainder, comparisons, Boolean connectives, conditional branching, bounded quantifiers, predicate counting, indexed witness selection, and bounded lookup tables.

Using polynomial-time expressions together with finite enumerations of small linear forms (of dimension at most 22), bounded bit vectors, bounded coordinate permutations, prefix bit truncations, and zero-padded bit sequences, the Lean library defines uniform polynomial-time listings on nn inputs. A cellular catalog listing DD on nn inputs consists of polynomial-time expressions for the bit length, input length, alphabet size, subdivision parameter, blank symbol, marked coordinate, and parity bit (on nn inputs), unary input-symbol and accepting-symbol maps (on n+1n + 1 inputs), and a ternary local transition rule (on n+3n + 3 inputs). Compiling DD yields a circuit catalog listing Circ⁡(D)\operatorname{Circ}(D) with 2ℓ2\ell rows (where ℓ\ell is the bit length of DD), one scalar gate per alphabet letter, two conjunction gates per neighborhood triple, one edge per pair of neighborhood triple and edge kind, and initial-tape plus acceptance requests, together with the corresponding source, destination, linear-form, domain, and coordinate-map expressions. Compiling a circuit catalog listing RR yields an affine catalog listing Aff⁡(R)\operatorname{Aff}(R) whose real vertices consist of the gates of RR, one auxiliary vertex per circuit edge, and one extra vertex, and whose comparisons consist of three comparisons per circuit edge together with the requests of RR, equipped with their vertex dimensions, linear forms, constants, domains, and coordinate maps. Compiling an affine catalog listing AA into its block descriptor listing, then into a prefix descriptor listing, then into a colored port listing (encoding vertices, colors, and incidences), and finally expanding colors into uncolored gadgets yields a polynomial graph listing Gr⁡(A)\operatorname{Gr}(A) on nn inputs, consisting of a vertex-bound expression on nn inputs, a vertex-validity predicate on n+1n + 1 inputs, and an adjacency predicate on n+2n + 2 inputs.

The claim

Proposition 8.1. Let MM be a multitape Turing machine, let c,d∈ℕc, d \in \mathbb{N}, and let ww be a binary word. For every parity bit ε∈𝔽2\varepsilon \in \mathbb{F}_2, the order of the general reduction graph GM,c,dε(w)G_{M,c,d}^{\varepsilon}(w) satisfies |V(GM,c,dε(w))|≤4224(40Csch(M)+1)3Cdim(M,c)12×(|w|+1)12(d+1).\begin{aligned} |V(G_{M,c,d}^{\varepsilon}(w))| \le 4224\,(40\,C_{\mathrm{sch}}(M) + 1)^3 &\,C_{\mathrm{dim}}(M,c)^{12} \\ &\times (|w| + 1)^{12(d + 1)}. \end{aligned}(1)✦ Moreover, the two general reduction graphs have equal positive orders: 0<|V(GM,c,d0(w))|=|V(GM,c,d1(w))|.0 < |V(G_{M,c,d}^0(w))| = |V(G_{M,c,d}^1(w))|.(2)✦ Furthermore, for any natural number nn and any cellular catalog listing DD on nn inputs, its cellular catalog graph listing 𝒢(D)\mathcal{G}(D) is the polynomial graph listing on nn inputs given by 𝒢(D)=Gr⁡(Aff⁡(Circ⁡(D))).\mathcal{G}(D) = \operatorname{Gr}(\operatorname{Aff}(\operatorname{Circ}(D))).(3)✦

In the paper, the result reads: for a fixed multitape Turing machine MM and integer polynomial pp as in Proposition 3.2, a word ww of length mm, and r=2(p(m)+2)r = 2(p(m) + 2), the constructions of Propositions 3.2, 3.4, and 5.1 produce two equally large simple uncolored graphs of order OM((r+1)12)O_M((r + 1)^{12}) whose explicit adjacency matrices and binary parameter k=rk = r can be produced by a deterministic multitape Turing machine in time OM,p((r+2)80)O_{M,p}((r + 2)^{80}). Here (1) and (2) express the polynomial vertex bound and equal positive orders in terms of |w||w|, cc, and dd, while (3) composes the cellular, circuit, and affine catalog compilers into a polynomial graph listing.

What is checked

The Lean library states Proposition 8.1 over an arbitrary multitape Turing machine MM, natural-number exponent parameters cc and dd, binary words ww, parity bits ε∈𝔽2\varepsilon \in \mathbb{F}_2, the general reduction graphs GM,c,dε(w)G_{M,c,d}^{\varepsilon}(w) obtained through one-head simulation, succinct circuit descriptions, product image instances, edge subdivision, and affine blocks, and arbitrary nn-input cellular catalog listings DD compiled to polynomial graph listings. For these supporting constructions, the Lean library also establishes that the binary value of every length-ℓ\ell binary string is strictly below 2ℓ2^\ell✦, that the base Turing program of MM is supported on its label support✦, that the encoded one-head input length is strictly below 2ℓ2^\ell✦, that every raw block value carries a readout value at each readout of its block✦, and that the input-variable and constant-word stack recipes are polynomial-time.