The setting
To reduce decision problems for deterministic Turing machines to structural graph problems, a computation of exponential length on an input word of length is compiled into a succinct description of a finite acyclic Boolean circuit over binary addresses of length . The circuit has one gate per gate type at each address , where indexes time and indexes tape position modulo . Rather than listing all addressed gates, the description specifies connection schemas and seed or test requests through per-coordinate domains and injective bit maps.
In the Lean library, this compilation is factored into five layers: translating a multitape Turing machine to a one-head machine with frozen halting, simulating the one-head machine by a one-dimensional cellular automaton, unrolling a cellular automaton into a layered acyclic circuit system whose terminal tests detect acceptance, counting the edge schemas of the product description, and validating the flat numeric catalog induced from a cellular catalog.
One-head machines and cellular evolution
A head motion direction is an element of , and a binary word is a finite list of bits in .✦ A one-head machine program over a control state set and a tape alphabet consists of an initial state , a partial transition function , and a Boolean accepting predicate . Its total transition action agrees with where is defined and returns otherwise, freezing halting configurations.
A tape cell of is a pair , where indicates that the head is absent.✦ A cell is an accepting cell of if and .✦ Over an additive abelian group , a configuration of consists of a control state , a head position , and a tape assignment .✦ Given a head step , the -step run starts at for and iterates the single-step transition of at step .✦ The cell encoding places the control state at the head position: (1)✦
For a direction and a cell , the incoming head state equals if and , and equals otherwise.✦ The local transition rule of maps a triple of cells with to the cell , where if , is the symbol written by if , and is the first non- entry among , , and , or if all three are .✦ For any local rule on and initial cell configuration , the cellular evolution is defined recursively by and (2)✦
A multitape Turing machine is specified by a number of non-initial states , a number of work symbols , a number of extra tapes , and a partial transition function on .✦ To compile into a one-head machine program , the Lean library first represents each tape of by two stacks indexed by with alphabet , encoding input bits and as symbols and . The resulting multi-stack program reads all tape heads, applies the transition of , writes all updated tape heads, and upon halting drains the two stacks of tape to record in a Boolean register whether symbol appears. Translating this multi-stack program to a one-tape program and then to a basic one-head program yields a finite set of reachable control labels supporting all transitions. Adapting head moves and symbol writes to and defining acceptance by produces the one-head program , with cellular alphabet and encoded input list for each binary word .
Given polynomial-time parameters and a word of length , the input time exponent is .✦ From the maximum stack operation count of the multi-stack program and the maximum instruction count of the one-tape program, the linear constant is ✦ and the quadratic constant is (3)✦ The simulation address bit length is , which satisfies .
Cellular circuits and product descriptions
Over a scalar gate set and a conjunction gate set , the set of gates is the disjoint union and the set of ports is . Each port has an underlying target gate in , each gate has input dimension on and on , and each port carries an input linear form over : the coordinate projection on , and the projections on and , respectively. A circuit system over consists of a source map , a destination map , a seed set , and a test set satisfying the terminality condition that no edge has .✦ Truth of gates is the least predicate on such that every seed in is true, a scalar gate is true if some edge with has true source, and a conjunction gate is true if there exist edges with , , and both and true.✦
Cellular automaton data over an alphabet and a spatial index set consists of a local rule , predecessor and successor maps , an initial configuration , and an accepting subset .✦ Its state at time is defined by and (4)✦ For a horizon , the cellular circuit system of has scalar gates and conjunction gates . For each , , and triple , three neighbor edges connect to port of , to port of , and to port of . For each , , and , two internal edges connect to port of and to the scalar gate . The seeds are , and the terminal tests are .
Binary addresses of length are strings , whose binary value defines a bijection . To increment or decrement -bit addresses coordinate by coordinate, the carry domain for a bit and carry index assigns to bit position the set for , for , and for , while the increment bit map flips bit when and leaves it unchanged when . Extending to gives the cyclic carry domain (equal to when ) and the cyclic increment bit map (flipping all bits when ). For a threshold string and an index , the threshold bit domain assigns when or , when , and when .✦
A succinct circuit description at address length over specifies for each edge template a source gate in , a destination port in , nonempty coordinate domains , and bit maps injective on for , together with for each request a scalar gate in , a test flag in , and nonempty coordinate domains .
A cellular automaton instance over an alphabet with parameters consists of a local rule , an input sequence , a blank symbol , an accepting subset , and the bound .✦ For any one-head program , blank symbol , and input with , the induced one-head product automaton has alphabet , local rule , marked initial tape placing at index and at , blank cell , and accepting set equal to the accepting cells of .✦ Applying this construction to , its default blank symbol, and at bit length yields the reduction cellular automaton for , whose accepting set is denoted .✦
For a cellular automaton instance over with parameters , an edge kind in is one of four types: a left-neighbor wire indexed by , a center-neighbor wire indexed by , a right-neighbor wire indexed by as for left-neighbor wires, or an internal wire indexed by .✦ The edge template set is .✦ Writing for the binary encoding of , the request set is the disjoint union of (input seeds), (blank-cell seeds), and (accepting-state tests).✦ Joining time coordinates and position coordinates produces the automaton circuit description at address length over : neighbor edges advance time via the carry domain and increment map with bit and shift position via the cyclic carry domain and cyclic increment map (bit for left, full domain and identity for center, bit for right); internal edges use full domains and identity maps; seed requests fix time bits to and constrain position bits to the encoding of or the threshold domain of ; test requests fix time bits to and leave all position bits unconstrained.✦
Presentations and numeric circuit catalogs
A finite type presentation for a set consists of a natural-number bound , a Boolean validity predicate , and a bijection from to , defining an encoding . Standard presentations exist for the unit set, , and , and presentations are closed under disjoint unions, Cartesian products, adjoining a basepoint, filtering by a decidable predicate, and transport along bijections. The finite set of linear forms is enumerated by a fixed bijection with an initial segment of , assigning a natural-number code to each input linear form of a circuit port.
A circuit catalog stores numeric counts for rows, internal wires, scalars, conjunctions, edges, and requests, Boolean validity predicates for each, numeric tables for edge sources, target gates, destination linear form codes, coordinate domains, coordinate maps, request gates, request test bits, and request domains, together with a marked coordinate and a bit .✦ A circuit catalog is valid for a succinct circuit description at address length with respect to presentations , an internal parameter , a marked coordinate , and a bit if every count, validity predicate, edge table, request table, marked coordinate, and bit matches under the encodings of , , , , and the linear form enumeration.✦
A cellular catalog stores natural numbers for the bit length , input length , letter count, and internal parameter , numeric tables for the local rule, input sequence, blank code, and accepting predicate, and values for the marked coordinate and .✦ Given a cellular automaton instance over and a presentation of , is a valid cellular catalog for (with respect to , , , and ) if the validity predicate of is identically true, the stored parameters match , , the bound of , , , and , and the numeric rule, input, blank, and accepting tables agree with under .✦ From , arithmetic indexing produces an induced circuit catalog with rows, scalars, conjunctions, edges, and requests, while combining with the standard presentation operations yields derived presentations for , , and .
The claim
Proposition 3.2. Let be an additive abelian group, , a one-head machine program over , a configuration of over , and . Then the cellular evolution of under tracks the run of : (5)✦
Let be cellular automaton data over and . In the cellular circuit system of at horizon , a terminal test gate is true if and only if some spatial cell lies in at time : (6)✦
For every finite alphabet and every , the number of edge schemas in is (7)✦
For every multitape Turing machine , every , every binary word , and every cell , the accepting set of the reduction cellular automaton coincides with the accepting cells of : (8)✦
Let be a cellular automaton instance over with parameters , a presentation of , , , , and a cellular catalog. Whenever is a valid cellular catalog for , its induced circuit catalog is a valid circuit catalog for with respect to , the derived conjunction, edge, and request presentations, , , and : (9)✦
In the paper, the result reads: fix a deterministic one-tape machine with the initialization and frozen-halting convention, and an integer polynomial with bounding its running time by ; for every word of length , one can deterministically generate in time polynomial in a product description of a finite acyclic circuit at address length with scalar terminal tests, gate types, schemas and requests, nonempty binary factor domains, and injective coordinate maps, such that at least one test is true if and only if accepts . The Lean library separates this compilation into the one-head cellular simulation (5), the layered circuit evaluation (6), the exact edge-schema count (7), the acceptance preservation (8) from a multitape machine, and the numeric catalog validity (9).
What is checked
Proposition 3.2 is stated in the Lean library over arbitrary additive abelian groups and one-head machine programs in (5), arbitrary cellular automaton data and horizons in (6), arbitrary finite alphabets and bit lengths in (7), arbitrary multitape Turing machines with polynomial-time parameters and binary words in (8), and cellular automaton instances equipped with an alphabet presentation of identically true validity and a matching cellular catalog in (9). Along the way, the Lean library also verifies that the binary value of every -bit string is strictly less than ✦, that the compiled base one-head program of is supported on its finite set of reachable control labels✦, and that the length of the encoded one-head input is strictly less than ✦.