The setting
Reducing an exponential-time decision problem to the general variable-dimension Weisfeiler-Leman equivalence problem requires a uniform polynomial-time compiler. Given a fixed deterministic multitape Turing machine and an input binary word , the compiler must output a pair of equally large, nonempty, finite simple uncolored graphs together with a binary address length 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 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 is a finite list of Booleans of length . A multitape Turing machine 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 on a single tape, the Lean library first encodes 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 .
Fix natural-number exponent parameters and write . The input time exponent is . Combined with the linear simulation constant of (twice the maximum stack operation count plus ) and the quadratic simulation constant of , this determines the simulation time exponent, the reduction address bit length (equal to the simulation time exponent plus ), and the binary address length . The length of the encoded one-head input is strictly below .✦
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 encode via their binary value , with carry domains, cyclic carry domains, increment bit maps, cyclic increment bit maps, and threshold bit domains describing single-coordinate transitions. Joining -bit time coordinates and -bit position coordinates turns the one-head product cellular automaton into a succinct circuit description of address length .
A succinct circuit description of address length specifies scalar gates of input dimension , conjunction gates of input dimension , gate ports with input and output -linear maps, coordinatewise connection schemas, and seed or test requests. Its circuit consistency instance is a product image instance of address length over real vertices of dimension or and comparison edges, recording allowed coordinate labels for each vertex.
Subdividing each edge of with internal parameter 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 , 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 defined on binary vectors and square value tuples, and an inhomogeneity bit determined by the marked coordinate . For a parity bit , the legal valuations on a valid block form its affine fiber .
A finite simple graph consists of a natural-number order and a simple graph structure on . For , a base vertex is a pair of a valid block and a legal valuation . 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 at subdivision parameter , marked coordinate , and parity bit produces the finite simple general reduction graph , whose vertex count is denoted . The reduction also determines two natural-number constants: the reduction schema constant , where is the finite set of one-head tape cells of , and the reduction dimension constant , where is the quadratic simulation constant of .
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 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 -ary word environment of word length at most is bounded by a function of polynomial growth for some . A polynomial-time expression on 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 ), bounded bit vectors, bounded coordinate permutations, prefix bit truncations, and zero-padded bit sequences, the Lean library defines uniform polynomial-time listings on inputs. A cellular catalog listing on inputs consists of polynomial-time expressions for the bit length, input length, alphabet size, subdivision parameter, blank symbol, marked coordinate, and parity bit (on inputs), unary input-symbol and accepting-symbol maps (on inputs), and a ternary local transition rule (on inputs). Compiling yields a circuit catalog listing with rows (where is the bit length of ), 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 yields an affine catalog listing whose real vertices consist of the gates of , 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 , equipped with their vertex dimensions, linear forms, constants, domains, and coordinate maps. Compiling an affine catalog listing 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 on inputs, consisting of a vertex-bound expression on inputs, a vertex-validity predicate on inputs, and an adjacency predicate on inputs.
The claim
Proposition 8.1. Let be a multitape Turing machine, let , and let be a binary word. For every parity bit , the order of the general reduction graph satisfies (1)✦ Moreover, the two general reduction graphs have equal positive orders: (2)✦ Furthermore, for any natural number and any cellular catalog listing on inputs, its cellular catalog graph listing is the polynomial graph listing on inputs given by (3)✦
In the paper, the result reads: for a fixed multitape Turing machine and integer polynomial as in Proposition 3.2, a word of length , and , the constructions of Propositions 3.2, 3.4, and 5.1 produce two equally large simple uncolored graphs of order whose explicit adjacency matrices and binary parameter can be produced by a deterministic multitape Turing machine in time . Here (1) and (2) express the polynomial vertex bound and equal positive orders in terms of , , and , 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 , natural-number exponent parameters and , binary words , parity bits , the general reduction graphs obtained through one-head simulation, succinct circuit descriptions, product image instances, edge subdivision, and affine blocks, and arbitrary -input cellular catalog listings compiled to polynomial graph listings. For these supporting constructions, the Lean library also establishes that the binary value of every length- binary string is strictly below ✦, that the base Turing program of is supported on its label support✦, that the encoded one-head input length is strictly below ✦, 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.