The setting
Reducing an exponential-time decision problem to the Weisfeiler-Leman (WL) dimension problem requires translating an accepting computation of a Turing machine into a finite simple graph and a dimension parameter in polynomial time. In the reduction from acceptance to identification, a computation on an input word is compiled into an acyclic monotone product circuit over binary addresses, and each directed connection of that circuit is implemented by a private two-coordinate buffer over together with broadcast and dummy types.
The resulting family of linear comparison schemas is subdivided into wires, assembled into a ring layout and an affine block system, and converted by pendant-leaf color tagging into an uncolored finite simple graph paired with a dimension bound. Alongside the mathematical definition of this reduction output, a polynomial finite presentation framework constructs the same adjacency-matrix and dimension encoding by a polynomial word function.
The decision problem and time bounds
A binary word is a finite list of bits in β¦, and a binary language is a set of binary words.β¦ A Turing machine is specified by a finite set of control states (with initial state , accepting state , and rejecting state ), a finite tape alphabet (with blank symbol and input symbols and encoding the bits and ), and a transition function mapping each pair of a state and a scanned symbol to a next state, a written symbol, and a head move with displacement in .β¦ A machine configuration consists of a control state, an integer head position, and a tape assigning a symbol to each integer cellβ¦; it is halted when its state is or .β¦ Starting from the initial configuration of on a binary word (state , head at , the bits of written via the input symbols at cells and blanks elsewhere), the one-step transition leaves halted configurations unchanged and otherwise applies the transition function. For a function , decides within time if for every binary word there exists a step count such that the configuration after steps is halted and has state if and only if .β¦
All graphs are finite, simple, undirected, and uncolored, with vertex set for a natural number order .β¦ Two graphs and are isomorphic, written , if there is an adjacency-preserving bijection between their vertex sets.β¦ For , -WL refinement begins with a single initial vertex color and at each round pairs a vertexβs current color with the multiset of its neighborsβ colors.β¦ For , -WL refinement assigns to each -tuple of vertices its initial equality and adjacency pattern and refines at each round by adjoining the multiset, over all vertices , of the vectors of colors obtained by substituting into each coordinate.β¦ Two graphs and are -WL equivalent, written , if their color histograms agree at every round .β¦ We say that -WL identifies if implies for every graph .β¦ The Weisfeiler-Leman dimension is the least positive integer that identifies .β¦
The input encoding of a graph of order and a binary word concatenates copies of , a separating , the row-major binary adjacency matrix of , and .β¦ The binary value of a binary word is its base- value read most-significant bit first.β¦ The WL dimension language is the binary language of all input encodings of a graph of positive order together with a binary word beginning with whose binary value satisfies .β¦
A function is polynomially bounded if there exist such that for all .β¦ A word expression in variables is built inductively from variables, the empty word, appending a bit, dropping the last bit, branching on the last bit, and bounded iterationβ¦; its evaluation on an -tuple of binary words is bounded by if every intermediate word produced during evaluation has length at most .β¦ A function mapping -tuples of binary words to binary words is a polynomial word function if there exist a word expression and a polynomially bounded function such that evaluates to on every -tuple with intermediate word lengths bounded by applied to the maximum input length in .β¦ A natural-number-valued function on -tuples of words is a polynomial unary word function if composing it with the unary word encoding (repeating a given number of times) produces a polynomial word function.β¦
Buffered circuits and the reduction graph
For an address dimension , a Boolean product map of dimension assigns to each coordinate a nonempty subset and a map that is injective on ; together they define an address map on the product domain .β¦ A product circuit of address dimension consists of node types (each of dimension or ), edge types , seed types , and test types , each equipped with an injective index into , together with Boolean product maps specifying the connections, seeds, and tests.β¦
Each directed connection of the monotone circuit is routed through a private two-coordinate buffer type so that the resulting linear comparison equations propagate values in only one direction.
From a product circuit, the real types consist of the primary circuit types (the gate types together with broadcast and dummy types) and, for each directed connection schema from a linear form on a primary type to a linear form on a primary type with source domain and address map , a private two-dimensional buffer type with coordinate forms .β¦ Each connection is implemented by three comparison schemas over , all with source domain , given by (1)β¦ In the buffer algebra over , for a set , a subset , and a function , we say that is determined on if is constant on , that is, for all .β¦
In general, a comparison schema of address dimension on points and wires assigns each point a dimension in and each wire ordered endpoints, a Boolean product map, and -linear forms at its two endpoints.β¦ Subdividing each wire into internal types and links yields a comparison ring layout of ring length .β¦ A ring layout defines horizontal blocks (a type, a cyclic slot , and labels at slots and ), vertical coordinates (a link, a slot, and a match label), and squares (a link, a slot, and match labels at slots and ). For , the ring layout determines an affine block system whose coordinates are the horizontal and vertical coordinates and whose blocks are the unconstrained horizontal blocks and the constrained squares, each square carrying an -linear form built from its endpoint forms and top and bottom vertical coordinates.β¦ Given a target assignment from blocks to , a local block assignment assigns a bit in to each coordinate of a block , and is legal if the blockβs linear form evaluates to whenever is constrained. The affine block incidence graph has bit vertices (coordinate-bit pairs) and valuation vertices (pairs of a block and a legal local assignment) with edges recording coordinate-value agreementβ¦; attaching pendant leaves to each vertex using its positive vertex color code (determined injectively by the coordinate for bit vertices and by the block for valuation vertices) yields the uncolored affine block graph.β¦
For a Turing machine , natural numbers and , and a binary word , compiling the cyclic-tape computation of on over little-endian -bit binary addresses produces a cellular product circuit. Applying the buffered comparison schemas (1), the subdivided comparison ring layout, and the zero-target affine block graph produces the machine reduction graph and the reduction WL dimension parameter . Packaging with the canonical binary representation of via the input encoding gives the machine reduction instance word .β¦
Polynomial finite presentations and the machine realizer
To compute the reduction output by a polynomial word function, the Lean library builds a framework of polynomial finite presentations for word-indexed families of finite sets, together with polynomial maps, polynomial numberings, polynomial predicates, and polynomially presented graphs. A polynomially presented graph supports polynomial-time adjacency testing and leaf-tag attachment, emitting its binary adjacency matrix and instance word directly.
Composing realizers for initial tape letters, threshold and carry product maps, the cellular product circuit, its buffered comparison schemas, the comparison ring layout, and the leaf-tagged affine block graph defines the machine realizer for . On an input binary word , this realizer produces the machine realizer output word , encoding the presented uncolored reduction graph and its dimension parameter.
The claim
Theorem. For any set , any subset , and any function , if has at most one element, then is determined on : (2)β¦ For any binary language , any Turing machine , and any natural numbers and such that decides within time , and for every binary word , membership of in is equivalent to membership of the machine reduction instance word in the WL dimension language : (3)β¦ For any Turing machine and any natural numbers and , the machine realizer output map is a polynomial word function: (4)β¦ Moreover, for any binary language , any Turing machine , and any natural numbers and such that decides within time , and for every binary word , (5)β¦
What is checked
Claim (2) is stated over any set , any subset , and any function . Claims (3) and (5) are stated over any binary language , any Turing machine deciding within time for natural numbers and , and any binary word , relating membership in to membership in of the machine reduction instance word and the machine realizer output word; claim (4) is stated over any Turing machine and natural numbers and without a time-bound hypothesis.
For these constructions, the Lean library proves that the reduction WL dimension parameter is at least β¦, that the bounded input span lies strictly below the binary address capacityβ¦, and that the address width, wire length, input span, and initial tape letter evaluation are polynomial unary word functions. It also proves that all four boundary coordinates of every ring layout square belong to its block coordinate set, that the schema second label evaluator matches the comparison ring layoutβ¦, and that the rank, envelope, and local coordinate code characterizations hold for polynomial finite presentations.