OctoInform Beta

OpenAI preprint, September 2026 Β· Β§7. From acceptance to identification

Β§7 (setting): Two-coordinate buffers, leaf-tagged affine block graphs, and polynomial-time machine realizers reducing exponential-time languages to Weisfeiler-Leman identification

Buffered circuit reductions to Weisfeiler-Leman identification.

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 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 ww 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 𝔽2\mathbb{F}_2 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 {0,1}\{0, 1\}✦, and a binary language LL is a set of binary words.✦ A Turing machine MM is specified by a finite set of control states {0,…,k+2}\{0, \dots, k + 2\} (with initial state 00, accepting state 11, and rejecting state 22), a finite tape alphabet {0,…,s+2}\{0, \dots, s + 2\} (with blank symbol 00 and input symbols 11 and 22 encoding the bits 00 and 11), 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 {βˆ’1,0,1}\{-1, 0, 1\}.✦ 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 11 or 22.✦ Starting from the initial configuration of MM on a binary word ww (state 00, head at 00, the bits of ww written via the input symbols at cells 0,…,|w|βˆ’10, \dots, |w| - 1 and blanks elsewhere), the one-step transition leaves halted configurations unchanged and otherwise applies the transition function. For a function T:β„•β†’β„•T : \mathbb{N} \to \mathbb{N}, MM decides LL within time TT if for every binary word ww there exists a step count t≀T(|w|)t \le T(|w|) such that the configuration after tt steps is halted and has state 11 if and only if w∈Lw \in L.✦

All graphs are finite, simple, undirected, and uncolored, with vertex set {1,…,n}\{1, \dots, n\} for a natural number order nn.✦ Two graphs GG and HH are isomorphic, written Gβ‰…HG \cong H, if there is an adjacency-preserving bijection between their vertex sets.✦ For k=1k = 1, 11-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 kβ‰₯2k \ge 2, kk-WL refinement assigns to each kk-tuple of vertices its initial equality and adjacency pattern and refines at each round by adjoining the multiset, over all vertices zz, of the vectors of colors obtained by substituting zz into each coordinate.✦ Two graphs GG and HH are kk-WL equivalent, written G≑kHG \equiv_k H, if their color histograms agree at every round sβˆˆβ„•s \in \mathbb{N}.✦ We say that kk-WL identifies GG if G≑kHG \equiv_k H implies Gβ‰…HG \cong H for every graph HH.✦ The Weisfeiler-Leman dimension WLdim⁡(G)\operatorname{WLdim}(G) is the least positive integer kk that identifies GG.✦

The input encoding of a graph GG of order nn and a binary word bb concatenates nn copies of 11, a separating 00, the row-major binary adjacency matrix of GG, and bb.✦ The binary value val⁡(b)βˆˆβ„•\operatorname{val}(b) \in \mathbb{N} of a binary word bb is its base-22 value read most-significant bit first.✦ The WL dimension language β„’WL\mathcal{L}_{\mathrm{WL}} is the binary language of all input encodings of a graph GG of positive order nβ‰₯1n \ge 1 together with a binary word bb beginning with 11 whose binary value satisfies val⁡(b)β‰₯WLdim⁡(G)\operatorname{val}(b) \ge \operatorname{WLdim}(G).✦

A function B:β„•β†’β„•B : \mathbb{N} \to \mathbb{N} is polynomially bounded if there exist C,dβˆˆβ„•C, d \in \mathbb{N} such that B(n)≀C(n+1)dB(n) \le C(n + 1)^d for all nβˆˆβ„•n \in \mathbb{N}.✦ A word expression in nn 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 nn-tuple SS of binary words is bounded by Bβˆˆβ„•B \in \mathbb{N} if every intermediate word produced during evaluation has length at most BB.✦ A function ff mapping nn-tuples of binary words to binary words is a polynomial word function if there exist a word expression ee and a polynomially bounded function BB such that ee evaluates to f(S)f(S) on every nn-tuple SS with intermediate word lengths bounded by BB applied to the maximum input length in SS.✦ A natural-number-valued function on nn-tuples of words is a polynomial unary word function if composing it with the unary word encoding (repeating 00 a given number of times) produces a polynomial word function.✦

Buffered circuits and the reduction graph

For an address dimension rβˆˆβ„•r \in \mathbb{N}, a Boolean product map of dimension rr assigns to each coordinate i∈{0,…,rβˆ’1}i \in \{0, \dots, r - 1\} a nonempty subset DiβŠ†{0,1}D_i \subseteq \{0, 1\} and a map Οƒi:{0,1}β†’{0,1}\sigma_i : \{0, 1\} \to \{0, 1\} that is injective on DiD_i; together they define an address map Οƒ\sigma on the product domain D=∏i=0rβˆ’1DiD = \prod_{i=0}^{r-1} D_i.✦ A product circuit of address dimension rr consists of node types PP (each of dimension 11 or 22), edge types EE, seed types ZZ, and test types TT, each equipped with an injective index into β„•\mathbb{N}, 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 ll from a linear form oo on a primary type PP to a linear form ss on a primary type RR with source domain DlD_l and address map Οƒl\sigma_l, a private two-dimensional buffer type BlB_l with coordinate forms z1,z2:𝔽22→𝔽2z_1, z_2 : \mathbb{F}_2^2 \to \mathbb{F}_2.✦ Each connection ll is implemented by three comparison schemas over 𝔽2\mathbb{F}_2, all with source domain DlD_l, given by l1:(o on P)β†’(z1 on Bl) via id,l2:(o on P)β†’(z2 on Bl) via id,l3:(z1+z2 on Bl)β†’(s on R) via Οƒl.\begin{aligned} l_1 &: (o \text{ on } P) \to (z_1 \text{ on } B_l) \text{ via } \mathrm{id}, \\ l_2 &: (o \text{ on } P) \to (z_2 \text{ on } B_l) \text{ via } \mathrm{id}, \\ l_3 &: (z_1 + z_2 \text{ on } B_l) \to (s \text{ on } R) \text{ via } \sigma_l. \end{aligned}(1)✦ In the buffer algebra over 𝔽2\mathbb{F}_2, for a set VV, a subset QβŠ†VQ \subseteq V, and a function f:V→𝔽2f : V \to \mathbb{F}_2, we say that ff is determined on QQ if ff is constant on QQ, that is, f(u)=f(v)f(u) = f(v) for all u,v∈Qu, v \in Q.✦

In general, a comparison schema of address dimension rr on points and wires assigns each point a dimension in {1,2}\{1, 2\} and each wire ordered endpoints, a Boolean product map, and 𝔽2\mathbb{F}_2-linear forms at its two endpoints.✦ Subdividing each wire into n+1n + 1 internal types and n+2n + 2 links yields a comparison ring layout of ring length rr.✦ A ring layout defines horizontal blocks (a type, a cyclic slot ii, and labels at slots ii and i+1i + 1), vertical coordinates (a link, a slot, and a match label), and squares (a link, a slot, and match labels at slots ii and i+1i + 1). For rβ‰₯2r \ge 2, 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 𝔽2\mathbb{F}_2-linear form built from its endpoint forms and top and bottom vertical coordinates.✦ Given a target assignment Ξ²\beta from blocks to 𝔽2\mathbb{F}_2, a local block assignment assigns a bit in 𝔽2\mathbb{F}_2 to each coordinate of a block bb, and is legal if the block’s linear form evaluates to Ξ²(b)\beta(b) whenever bb 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 c(v)β‹…(|V|+1)c(v) \cdot (|V| + 1) pendant leaves to each vertex vv using its positive vertex color code c(v)βˆˆβ„•β‰₯1c(v) \in \mathbb{N}_{\ge 1} (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 MM, natural numbers CC and ee, and a binary word ww, compiling the cyclic-tape computation of MM on ww over little-endian dd-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 GM,C,e(w)G_{M,C,e}(w) and the reduction WL dimension parameter rM,C,e(w)β‰₯68r_{M,C,e}(w) \ge 68. Packaging GM,C,e(w)G_{M,C,e}(w) with the canonical binary representation of rM,C,e(w)r_{M,C,e}(w) via the input encoding gives the machine reduction instance word ρM,C,e(w)\rho_{M,C,e}(w).✦

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 (M,C,e)(M, C, e). On an input binary word ww, this realizer produces the machine realizer output word ρˆM,C,e(w)\widehat{\rho}_{M,C,e}(w), encoding the presented uncolored reduction graph and its dimension parameter.

The claim

Theorem. For any set VV, any subset QβŠ†VQ \subseteq V, and any function f:V→𝔽2f : V \to \mathbb{F}_2, if QQ has at most one element, then ff is determined on QQ: (βˆ€u,v∈Q,u=v)⟹f is determined on Q.(\forall u, v \in Q,\; u = v) \implies f \text{ is determined on } Q.(2)✦ For any binary language LL, any Turing machine MM, and any natural numbers CC and ee such that MM decides LL within time m↦2C(m+1)em \mapsto 2^{C (m + 1)^e}, and for every binary word ww, membership of ww in LL is equivalent to membership of the machine reduction instance word ρM,C,e(w)\rho_{M,C,e}(w) in the WL dimension language β„’WL\mathcal{L}_{\mathrm{WL}}: w∈L⇔ρM,C,e(w)βˆˆβ„’WL.w \in L \iff \rho_{M,C,e}(w) \in \mathcal{L}_{\mathrm{WL}}.(3)✦ For any Turing machine MM and any natural numbers CC and ee, the machine realizer output map is a polynomial word function: w↦ρˆM,C,e(w) is a polynomial word function.w \mapsto \widehat{\rho}_{M,C,e}(w) \text{ is a polynomial word function.}(4)✦ Moreover, for any binary language LL, any Turing machine MM, and any natural numbers CC and ee such that MM decides LL within time m↦2C(m+1)em \mapsto 2^{C (m + 1)^e}, and for every binary word ww, w∈L⇔ρˆM,C,e(w)βˆˆβ„’WL.w \in L \iff \widehat{\rho}_{M,C,e}(w) \in \mathcal{L}_{\mathrm{WL}}.(5)✦

What is checked

Claim (2) is stated over any set VV, any subset QβŠ†VQ \subseteq V, and any function f:V→𝔽2f : V \to \mathbb{F}_2. Claims (3) and (5) are stated over any binary language LL, any Turing machine MM deciding LL within time m↦2C(m+1)em \mapsto 2^{C (m + 1)^e} for natural numbers CC and ee, and any binary word ww, relating membership in LL to membership in β„’WL\mathcal{L}_{\mathrm{WL}} of the machine reduction instance word and the machine realizer output word; claim (4) is stated over any Turing machine MM and natural numbers CC and ee without a time-bound hypothesis.

For these constructions, the Lean library proves that the reduction WL dimension parameter is at least 6868✦, 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.