The setting
In unconditional time lower bounds for Weisfeiler-Leman equivalence, a one-tape Turing machine computation on a binary input word of length is encoded first as an acyclic monotone circuit, then as an arc-consistency instance, and finally as a pair of uncolored valuation graphs padded to a common vertex count . To ensure that arbitrary explicit graph algorithms cannot decide equivalence faster than the machine’s running time, the explicit adjacency matrices of and must be generated from in polynomial time. Doing so uniformly requires expressing every vertex-validity and adjacency test as an arithmetic predicate over natural-number loop indices, compiling those predicates into a structured bit-stream writer, and proving that all intermediate arithmetic values evaluated by the writer stay within a uniform bound.
Arithmetic expressions, predicates, and writers
Let be a variable index set. An arithmetic binary operation is one of addition (), multiplication (), or truncated subtraction () on .✦ An arithmetic expression over is built inductively from natural-number constants, variables , binary operations applied to two subexpressions, and input-bit lookups at an index subexpression.✦ Given a variable assignment and a Boolean word , the evaluation sends constants to themselves, variables to , binary operations to the corresponding operation on , and an input-bit lookup at to if position of is true (in-bounds) and otherwise.✦ Substitution replaces each variable by an expression over a target index set✦, and renaming substitutes variables along a map .✦
The degree of an arithmetic expression over is defined recursively by (1)✦ For a natural number , an expression is -bounded under if every constant in is at most , every variable satisfies , every binary operation has -bounded operands and result at most , and every input-bit lookup has a -bounded index expression and satisfies .✦
An arithmetic predicate over is built from Boolean truth constants, equality (), strict inequality (), input-bit tests, conjunction (), and negation ().✦ Satisfaction interprets Boolean constants directly, equality and strict inequality via expression evaluation, an input-bit test at as the condition that bit of is true (defaulting to false out of bounds), and conjunction and negation classically.✦ Disjunction (), less-or-equal (), list conjunction, and list disjunction are defined from negation and conjunction in the standard way. Every predicate has a -valued indicator expression over built using truncated subtraction, multiplication, and input-bit lookups.✦ Given a predicate and expressions , the conditional expression selects when holds and otherwise.✦ Modulo a modulus expression , the cyclic increment expression returns when and otherwise✦, while the cyclic decrement expression returns when and otherwise.✦
Given arithmetic predicates and arithmetic expressions over , the rectangular gadget predicate is the conjunction of , , , , and the disjunction of three cases: , , and .✦
A bit-stream writer over a variable context is a program built from three constructors: emitting the truth bit of a predicate over , sequentially composing two writers over , and running a bounded loop with bound expression over whose body is a writer over the extended context holding the loop index .✦ From these, one defines the empty writer (a loop of bound ), the sequential list writer over a finite list of writers, and the three-loop grid writer over bounds whose body runs in a context extended by three loop variables. A writer is -safe under if every emitted predicate is -bounded under meaning every arithmetic expression occurring in is -bounded under , both components of every sequential composition are -safe, and every loop has a -bounded bound and a body that is -safe under every extended assignment assigning to the loop variable.✦ A duplicate-free finite listing of a finite set lists every element of exactly once✦; given listings of finite sets and , bounds , a hub writer, a slot writer family indexed by , and a padding writer, the enumerated grid writer runs the hub writer, then the grid writer for each in list order, and finally a loop of length over the padding writer.
Arc-consistency instances and symbolic descriptors
Let denote the binary field of integers modulo .✦ An arc-consistency instance data of address dimension and coordinate alphabet size on a node set and an edge set specifies a natural-number dimension for each , source and destination endpoints for each , a coordinate domain and an injective coordinate map for each and , together with -linear functionals on and and source and destination parity biases in .✦ Extending each injective coordinate map yields a coordinate permutation of .✦
Fix a natural-number pebble parameter . A subdivided type node is either an original node in or an internal subdivision node ✦, and a subdivided edge link is a pair .✦ Its left link endpoint is when and otherwise✦; its right link endpoint is when and otherwise.✦ Its link coordinate matching at row is when and the identity permutation otherwise.✦ A block name is either a site block or a square block carrying a row , a type or link, and lower and upper boundary labels✦; a raw block name uses subdivided type nodes, subdivided edge links, and labels in .✦ A block tag pairs a row with either a subdivided type node or a subdivided edge link✦, and the map forms a raw block name from a block tag and coordinates .✦
A generic readout tag is either horizontal (a row and a type node) or vertical (a row and a link)✦; a readout variable name adds two labels to a horizontal tag or one label to a vertical tag✦, and a raw readout name uses labels in .✦ Projecting out the labels recovers the readout name tag.✦ A node value vector at lies in ✦; the type node value is on original nodes and on subdivision nodes.✦ Readout value types and tag value types assign the type node value to horizontal names or tags and to vertical ones; block readout assignments and tag value assignments choose one value per raw readout name or readout name tag, and a tag value assignment induces a block readout assignment by forgetting coordinate labels.✦
A coordinate label at row is an allowed node label on an original node unconditionally, and on a subdivision node of edge when .✦ A raw block name is valid when its lower label at row and upper label at the cyclically shifted row are allowed (for a site block) or lie in the edge domain of the link (for a square block).✦ Each raw block has a finite block readout footprint: for a site block , it is the singleton horizontal readout ; for a square block , it consists of the left horizontal readout , the right horizontal readout where and are the left and right link endpoints of and is the link coordinate matching at row , and the two vertical readouts and .✦ A tag value assignment is footprint-supported on a raw block if vanishes on every tag absent from its footprint.✦ The seam indicator equals on the last row and otherwise✦; the link parity bias of is the source bias of for , the destination bias for , and otherwise.✦ The block parity bias vanishes on site blocks and equals the seam indicator times the link parity bias on square blocks.✦ Transporting the source and destination linear functionals at and (and using the identity map on subdivision nodes) gives the left and right link linear functionals. The block linear functional vanishes on site blocks, and on a square block it evaluates the left and right link linear functionals on the left and right horizontal readouts of its footprint and adds the two vertical readouts at rows and .✦ A vertex descriptor pairs a raw block name with a tag value assignment ✦; it is valid at parity when is valid, is footprint-supported on , and the block linear functional applied to the readout induced by equals times the block parity bias.✦ When and are finite, the rectangular size coefficient is the product of the number of block tags and the number of tag value assignments✦, and the rectangular slot limit is (2)✦
To test descriptors and block adjacency symbolically, each block tag determines its list of fixed block tags (one horizontal tag for a site tag, two horizontal and two vertical tags for a square tag), its fixed block parity bias, and its fixed block linear form on tag values; a tag assignment is legal for when it vanishes outside the fixed block tags and its fixed block linear form equals times the fixed block parity bias.✦ Given symbolic domain predicates for each , row , and expression over , the node label domain predicate is true on original nodes and on subdivision nodes of ✦, and on coordinate expressions over the allowed block predicate checks the node label domain predicates at rows and on a site tag and checks on a square tag .✦ Combining these with legality of defines the descriptor validity predicate over .✦ Likewise, given symbolic coordinate expressions , a seam coordinate match expression applies when and acts as the identity otherwise.✦ A formal block name pairs a readout name tag with two coordinate expressions✦; the formal block footprint lists the formal names of a block tag at coordinate expressions .✦ From formal name equality, footprint overlap, footprint agreement (comparing encoded tag values on shared formal names), and a same-block predicate, one forms the block adjacency predicate testing whether two formal blocks are distinct, have overlapping formal footprints, and agree on all shared formal names.✦
One-tape tableau circuits and the matrix writer
A Turing machine has a positive number of tapes, at least states, at least symbols, and a transition function mapping a state and tape-symbol tuple to a next state, written-symbol tuple, and head-move tuple in .✦ Symbol is blank, Boolean false and true map to symbols and , state is initial, and states and are frozen: the halting-aware transition action leaves states and unchanged with a stay move. A one-tape Turing machine embeds as a one-tape machine. A tape cell pairs a symbol with an optional head state.✦ The local tableau transition rule maps a triple of adjacent cells to the cell holding the symbol written at and any head state arriving from (stay), (right), or (left).✦ On an input word of length , initial input cells place the encoded bits of at positions with the head in state at position , blank cells carry symbol and no head, and accepting cells carry state .
A base- digit word of length encodes an integer in . A product box of dimension over alphabet size assigns each coordinate a subset of and a permutation of ✦; an address is allowed when each coordinate lies in its domain.✦ The carry product box at position requires digits below to equal and digit to be less than , and applies the cyclic digit increment to all coordinates .✦ Product boxes support identity, Cartesian product, and reversal; their symbolic counterparts are the carry and borrow domain predicates and coordinate expressions built from and .
A product circuit schematic of address dimension and alphabet size consists of gate types (each scalar of bit dimension or two-input AND of bit dimension ), wire types with source, destination, destination port, product domains, and injective coordinate maps, scalar seed and test gate specifications with product domains, and a node rank strictly increasing along every allowed wire such that test gates have no outgoing allowed wires.✦ Its associated arc-consistency instance uses gate nodes, two-dimensional buffer nodes per wire, and a one-dimensional dummy node; each wire splits into three consistency edges (two into its buffer and one from its buffer to the target port using the wire’s coordinate map), together with seed and test edges to the dummy node carrying destination bias on test edges and elsewhere, coordinate-sum source linear forms, and coordinate-projection (or zero) destination linear forms.✦
For a one-tape Turing machine and natural numbers , the box-tableau circuit schematic has address dimension ( time digits and space digits), scalar and two-phase AND tableau gates ranked by , five wire label families (left, center, bridge, right, out) whose product boxes shift time by and space by , , or , seed domains at time encoding the initial tape, and test domains at final time checking accepting cells.✦ Each wire label, seed, and test has a matching symbolic domain predicate and coordinate expression. Applying the schematic construction to an input word yields the one-tape consistency instance of address dimension and alphabet size .✦ Its block tags and tag value assignments depend only on , and its rectangular multiplicity coefficient is defined using the empty word as (3)✦
For a variable index set , an expression over , a parity , block tags , tag assignments , and expressions over , the symbolic descriptor validity and symbolic block adjacency predicates instantiate and block adjacency on with the symbolic edge domain predicates and coordinate expressions for . The same-rectangle predicate tests , , , and .✦ Fixing an enumeration index for each block tag , the slot multiplicity count expression is (4)✦ The slot adjacency predicate applies the rectangular gadget predicate to the two symbolic validity predicates, symbolic block adjacency, the same-rectangle predicate, the two count expressions (4), and indices .✦ A symbolic graph vertex location is a hub, a padding hole, or an indexed slot carrying .✦ The symbolic vertex adjacency predicate is false on , true between the hub and any non-hub location, given by the slot adjacency predicate on pairs of slots, and false on all remaining pairs involving a hole. For expressions over , the row writer for a fixed row location enumerates the column locations via the enumerated grid writer (lifting variables across nested loops) and emits the symbolic vertex adjacency predicate✦; the adjacency matrix writer enumerates the row locations in the same order and invokes the row writer for each row.✦
The claim
Lemma 4.2. Let be a variable index set, a variable assignment, and a Boolean word.
For any arithmetic predicates and arithmetic expressions over , (5)✦
Let be an arc-consistency instance data of address dimension and alphabet size on node set and edge set , let and , and let be a family of arithmetic predicates over such that for every edge , row , expression over , and with , one has if and only if . Then for every block tag , tag value assignment , expressions over , and coordinates with and , (6)✦
For every one-tape Turing machine and natural numbers , (7)✦
Let be a one-tape Turing machine, , , and arithmetic expressions over . Suppose , , , the expressions , , and are each -bounded under , and . Then (8)✦
In the paper, the result reads: for fixed and a short consistency template with bounded numbers of types, schemas, and vector dimensions whose one-coordinate domains and maps are supplied by a bounded number of tables of entries in , the paired graphs have common vertex count and, for any , their padded adjacency matrices can be constructed in multitape Turing-machine time, including preprocessing to construct the tables from a word of length . The Lean library compiles symbolic arithmetic predicates directly into the -safe bit-stream matrix writer in (8), using the rectangular semantics (5), descriptor validity (6), and input-independent multiplicity coefficient (7).
What is checked
Lemma 4.2 is stated over the arithmetic expression, predicate, and bit-stream writer language (including expression degree (1)), arc-consistency instance data and symbolic descriptor validity predicates, and the box-tableau circuit schematic and symbolic adjacency matrix writer of a one-tape Turing machine. The Lean library also proves that every edge coordinate map of a product circuit schematic is injective✦ and that every test gate of the box-tableau circuit schematic is terminal.✦