Manuscript Offprint
arXiv:2611.02840Iterated Narrow Networks: Turing Completeness at Width 4 on Convex Input Spaces and the Complexity of Verification
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the iterates of a fixed ReLU network of width 4, that is, the discrete-time system on . Equivalently, is the output of a weighted network made of copies of , or of a recurrent network with no external input, started at . We prove that every deterministic Turing machine admits such a network . The network can be constructed in polynomial time from . Each iteration has depth poly(|M|). The iterates of simulate exactly on every encoded tape. The number of iterations is proportional to the running time of . Moreover, the fourth coordinate irreversibly flags every point of the convex cube whose simulation reads an invalid digit. This flag is the certificate that makes hardness reductions sound on convex input regions, the regime of practical verifiers. Convex regions were previously inaccessible because of a continuity obstruction inherent to ReLU networks. The correspondence has three consequences. First, reachability for iterated width-4 ReLU networks spans the full complexity hierarchy along the single axis of the time bound: it is NP-complete for a unary bound, NEXP-complete for a binary bound and RE-complete (undecidable) with no bound. Second, two extra neurons of width suffice to extend the hardness to every common smooth activation: at width 6, the robust verification problem (a promise problem with gap) is NP-complete for tanh, sigmoid, GELU, Swish, ELU, and any polynomial-time-computable continuous non-polynomial activation with a polynomial-time-computable Lipschitz constant. Third, the whole spectrum transfers to discretized Neural ODEs in dimension 5.
1 Introduction
We study the iterates of a fixed ReLU network of constant width: the discrete-time system
where is a feedforward ReLU network of width 4. In other words, the object of study is a recurrent network that takes no per-step input: its input is its initial state , and its outputs are its states . Iterating one fixed block is the pattern behind deep equilibrium models [Bai et al., 2019] and discretized Neural ODEs [Chen et al., 2018, Kidger, 2022]. Residual and highway
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
networks [He et al., 2016, Srivastava et al., 2015] follow the same pattern with untied weights. We ask what the iterates of a width-4 block can compute, and what it costs to verify their behavior.
The correspondence. We prove that iterated width-4 ReLU networks are Turing complete on convex input regions, with iteration count playing the role of time. For every Turing machine (TM) , we construct in polynomial time a single network of width 4 and depth poly(|M|) per iteration. Its iterates simulate exactly on encoded tapes, and irreversibly flag every point of whose simulation reads an invalid digit (Theorem 3). Instantiated on a universal TM , the construction yields a single fixed block that simulates every machine on every input. The consequence is a hardness ladder along the single axis of the time bound (Theorem 7). At fixed width 4, bounded-time reachability is NP-complete for a unary bound, NEXP-complete for a binary bound and undecidable with no bound. NP-hardness of ReLU verification has been known since Katz et al. [2017]; the ladder shows that restricting the width does not restore tractability, since width 4 already suffices (Section 2.2). The hardness extends at width 6 to every common smooth activation (Theorem 10) and, through the correspondence of Duan et al. [2024], to discretized Neural ODEs at dimension 5 (Theorem 50).
The obstruction, in plain terms. A TM tape is an infinite binary string, and to feed it to a network we must store it in a single real number. Writing the tape in base 2 fails twice over: , so two different tapes can be the same number, and reading off the first bit is a discontinuous operation. Writing it in base 4 using only the digits 1 and 3, a device going back to Siegelmann and Sontag [1991], repairs both defects. The encoding becomes injective, and the two possible leading digits are separated by a fixed gap, so a continuous piecewise-affine gadget can read the first digit. The price is that the valid encodings form a Cantor-like set of measure zero, whereas verification asks a question about a full-dimensional convex region. The two domains cannot be reconciled by any continuous preprocessing: any continuous map from a convex set into is constant (Proposition 11), and ReLU networks compute only continuous piecewise-affine maps. Since continuous encoding is impossible, our network detects: a fourth coordinate accumulates, one base-4 digit per iteration, a continuous certificate that irreversibly flags every input whose simulation reads an invalid digit. This online certificate is the ingredient that is new at the level of network construction. It is what makes every verification reduction below sound on convex regions.
Four theorems. Formal statements are in Section 2, proofs in the appendices.
(Th.3) Turing completeness of iterated width-4 networks on convex input spaces. For every TM , a single polynomial-time-constructible width-4 ReLU network simulates when iterated, exactly on encoded inputs, and irreversibly flags every point of the convex cube whose simulation reads an invalid digit.
(Th.7) Verification spectrum. Bounded-time reachability for iterated width-4 ReLU networks is NP-complete with unary time bound, NEXP-complete with binary time bound and RE-complete (undecidable) with no bound.
(Th.10) Robust verification at width 6 for smooth activations. For every continuous, non-polynomial, -at-a-point, polynomial-time-computable activation , the -robust verification problem (a promise problem with gap) for width-6 -networks is NP-complete.
(Th.50) Neural ODE consequences at dimension 5 (App.H). Through the correspondence of Duan et al. [2024] between vanilla feedforward networks and splitting-method discretizations, the whole spectrum transfers to the discretized reachability of Neural ODEs at dimension 5.
Positioning. Table 1 situates the results; its mode column records whether a statement concerns a feedforward network or the iterates of one (a recurrent network). Siegelmann–Sontag Siegelmann [1999], Siegelmann and Sontag [1991, 1994] established TM universality for recurrent networks; in the variant relevant here, where the input is placed in the initial state, their construction requires fractal-encoded inputs and does not optimize width. (Their results with per-step input sequences carry no such restriction, but answer a different question.) Bounded-width approximation by feedforward networks was developed by Hanin and Sellke [2017], Park et al. [2020], Telgarsky [2016]. Bournez et al. [2025] contains two distinct results: a width-3 network simulating one TM step exactly on the fractal encoding set, and a separate width-12 uniform approximation theorem for arbitrary continuous piecewise-affine maps on convex domains. Theorem 3 improves neither width. It establishes a different property: a single width-4 network whose iterates are exact on encoded inputs and certify non-encoded inputs, uniformly over the whole convex cube (Section 3.1 explains why neither prior result yields this). Verification of ReLU networks was previously known to be NP-hard via SMT-style encodings Katz et al. [2017]; (Th.7) lifts this to the full NP / NEXP / RE spectrum along the time bound, and (Th.10) extends it to smooth activations at width 6. Training hardness is known up to -completeness Blum and Rivest [1988], Abrahamsen et al. [2021], Froese et al. [2022]. The question we study is also the narrow-network analogue of a line of work on how expressive power grows with the number of sequential steps: Merrill and Sabharwal [2024] show that transformers gain expressive power as the number of chain-of-thought steps grows, and ours is the same trade-off in a different architecture class, pushed to its limit. Finally, the Neural ODE consequence (Th.50) uses the discrete-to-continuous correspondence Chen et al. [2018], Duan et al. [2024].
| mode | input domain | guarantee | width | activation | |
|---|---|---|---|---|---|
| Siegelmann-Sontag [1991, 1994, 1999] | recurrent | fractal | exact TM simulation | not optimized | saturated linear |
| Hanin and Sellke [2017] Park et al. [2020] | feedforward | compact | uniform approx. | to | ReLU |
| Bournez et al. [2025], main thm. | feedforward | convex | uniform approx. of CPAMs | 12 | ReLU |
| Bournez et al. [2025], Thm. 23 | iterated | fractal | exact TM step; no claim off fractal | 3 | ReLU |
| Bournez et al. [2026] | iterated | fractal + convex | NP-hardness via 3-SAT | 3, 4 | ReLU |
| this paper, Th.3 | iterated | convex | exact TM simulation + certificate | 4 | ReLU |
| this paper, Th.10 | both | convex | robust verif. NP-c. | 6 | smooth |
Table 1: Positioning. The mode column distinguishes feedforward statements from statements about the iterates of a fixed block. (Th.3) improves neither width of Bournez et al. [2025]: it is the first exact TM simulation whose soundness extends to a full-dimensional convex input region, which is what the NEXP and undecidability statements require.
2.1 Networks, iteration, and verification
The model: iterated networks. The object of study in Theorems 3 and 7 is the discrete-time system obtained by iterating a fixed feedforward ReLU network of width 4. In other words, it is a weight-tied recurrent network that takes no per-step input: its input is its initial state and its outputs are its states. We write for the t-fold composition. Which representation a result concerns is stated with the result: the unary-bound NP-completeness also holds for feedforward width-4 networks, by unrolling (Corollary 8), while the NEXP and RE statements concern the iterated representation, whose unrolled depth would be exponential or unbounded.
We consider neural networks with rational weights, with the “enhanced neuron” convention (e.g. Kidger and Lyons [2020]): a neuron is a map with affine and the activation. We write for the class of feedforward networks with inputs, outputs, activation, and bounded width (i.e. every hidden layer has at most neurons).
Verification problems. Our hardness results concern the following decision problems.
Definition 1 (Reachability). The reachability problem takes as input a -network and two convex regions Init, Acc specified by rational linear inequalities, and asks whether .
Here, the network is presented as a weighted graph, where the encoding of each hidden layer is the adjacency matrix, but every entry is the numerator-denominator-pair describing the rational weight.
Companion work Bournez et al. [2026] establishes NP-completeness at widths 3 and 4 via fractal preprocessing from 3-SAT, with #P/PP corollaries on the fractal encoding set. The TM-simulation, NEXP, undecidability and smooth-activation contributions of the present paper are disjoint; the only overlap is Corollary 8 (NP-completeness of width-4 verification on convex input), which here arises as a corollary of Theorem 3 (a strictly stronger primitive whose further consequences are illustrated by Theorems 7, 10 and 50 and follow more generally from standard complexity theory Sipser [1997], Arora and Barak [2009]).
This formulation follows the standard one in the neural-network verification literature (see e.g. Katz et al., 2017, Wurm, 2023a).
Definition 2 (Bounded-time reachability). The -bounded reachability problem takes the same input plus a time bound (encoded either in unary or in binary) and asks whether .
When , both problems admit NP-membership for unary : by the small-witness property for piecewise-affine systems (Lemma 36, classical), it suffices to guess a rational of polynomial bit complexity and simulate steps with exact rational arithmetic. For binary , no such polynomial-time simulation exists; we recover NEXP-membership in Section 4.
2.2 Why reachability, why convex regions, why iterates
Robustness certification is exactly the reachability question we study: an ball around a data point is an axis-aligned box, hence a convex polytope specified by rational linear inequalities, and the certification query is literally , with the region where the decision is wrong. This is the VNN-LIB and VNN-COMP specification format [Brix et al., 2023], decided by complete verifiers such as Reluplex, Marabou and -CROWN [Katz et al., 2017, Wang et al., 2021]. Convex initial regions are therefore imposed by the application. Iteration matters wherever one block is applied repeatedly, above all in closed-loop verification of a neural controller, where the reachable set over control steps is exactly . The practical reading of our results is that certification cost scales along depth, or number of steps, and not along width: at width 4, relaxing only the time bound climbs PTIME NP NEXP undecidable, and the remaining route to tractability is a restriction on the dynamics or on the parameters (Section 6).
2.3 Encoding Turing machines
We encode Turing-machine (TM) configurations using base-4 digits , a Cantor-style encoding in the lineage of Siegelmann and Sontag [1991, 1994]. Allowing all digits would create ambiguities like ; restricting to digits 1 and 3 makes the presentation of a number unique, and resolves the discontinuity issues inherent to ReLU iteration. A word maps to . A configuration (current state , tape to the left of the head (reversed), tape from the head onward ) is encoded as
where co-encodes the state and the right tape into a single base-4 string with as a constant-length prefix followed by , based on a packing borrowed from Bournez et al. [2025] that saves one coordinate over the naive encoding which would force width 5. The third coordinate is a scratch register used by the simulator; the fourth is a validity register, both initially 0 (see Section 4). We write for the state set of , for the prefix-encoded set of states, for the Cantor-like set of points whose base-4 expansion uses only digits , for the -th coordinate projection, for the map sending a configuration of to the next one, and for the configuration at step on an infinite tape , with the initial configuration. The state prefix of consists of its first base-4 digits, and the post-state-prefix (or tape-suffix) portion of is the remainder. We say that a digit of , or of the tape-suffix of , is visited during the first iterations of the network of Theorem 3 if it is exposed as the leading digit of its register at some iteration . When encodes a configuration, the visited digits are exactly the tape cells read by 's head.
2.4 Turing completeness of iterated width-4 networks on convex input spaces
Theorem 3 (Turing completeness on convex input spaces). For every deterministic Turing machine over the binary alphabet, one can construct in polynomial time a single ReLU network of width 4 and depth , with a constant , such that:
(i) (Faithful simulation, all time.) For every and every , . (For finite inputs , take for any suffix 's behavior up to time depends only on the first symbols.)
(ii) (Online validity certificate.) The fourth coordinate is non-decreasing in and bounded in . Moreover, for with , we have iff every leading base-4 digit of and of the post-state-prefix portion of visited by 's head during the first iterations lies in , and the state prefix of stays in along the trajectory. In particular, for all whenever and the -part of lie in and the state prefix of encodes a valid state.
Part (i) alone holds at width 3 (Theorem 12, due to Bournez et al., 2025).
Remark 4 (Online certificate; single fixed network). Part (ii) is an online certificate: the fourth coordinate is updated one digit per iteration via a width-2 sub-gadget, so is uniformly polynomial in , independent of input length. (A finite ReLU network cannot have its zero set equal to exactly, hence a check spread over the iterations.) Taking a universal Turing machine, embeds an arbitrary pair into a single point of , and becomes a single fixed network simulating any TM on any input . Width 4 is the price of the pair (i)+(ii), and we claim no lower bound for the pair.
The combination of (i) and (ii) is what makes the verification reductions work: property (i) gives soundness on encoded inputs, and property (ii) on the rest of the convex region. Plugging in halting problems of varying time complexity yields the hardness spectrum below.
Remark 5 (Convex inputs are the range of a quantifier, not a tolerance). Theorem 3 is not a robustness property: part (i) requires an exact encoding, and nothing is claimed about inputs near an encoding beyond part (ii). The convex region is the range of the existential quantifier in the verification problems, where it is imposed by the application (Section 2.2); part (ii) is what holds on the rest of that region.
Remark 6 (No certificate hypothesis in the complexity results). Certifying, in the sense of part (ii), is a capability of the witness network, not a hypothesis on a model class: Definitions 1 and 2 and Theorem 7 and Corollaries 8 and 14 quantify over all width-4 ReLU networks. Remark 34 makes the certified set precise.
2.5 Verification spectrum of iterated width-4 networks
Theorem 7 (Verification spectrum at width 4). For iterated width-4 ReLU networks (the system of Section 2.1), -bounded reachability is:
(i) NP-complete when is encoded in unary;
(ii) NEXP-complete when is encoded in binary;
(iii) RE-complete (hence undecidable) with no time bound.
The hardness statements hold even when Init and Acc are axis-aligned hyperrectangles with rational endpoints.
Corollary 8 (Verification of feedforward width-4 ReLU networks). Verification of feedforward width-4 ReLU networks on convex Init, (deciding whether , a single application of ) is NP-complete.
2.6 Robust verification at width 6 for smooth activations
Why “robust”. Exact verification of -networks for smooth such as tanh quickly leaves classical complexity classes: the relevant decision problems involve transcendental constraints whose decidability rests on contested hypotheses [Macintyre et al., 1996, Wurm, 2023a, 2024]. The standard remedy is robust verification, which allows a fixed tolerance with a promise gap.
Definition 9 (-robust verification). Given a -network , convex regions Init, , and a rational , the -robust verification problem is the promise problem:
-
Output YES if with ;
-
Output NO if , ;
-
Promise: the input falls into one of these two cases.
Here and is Euclidean distance. The -bounded variant considers for .

Figure 1: One iteration of the width-4 network of Theorem 3: holds the left tape, co-encodes the state and the right tape, is a scratch register, and accumulates the certificate via the max update, with iff the leading digits and the state prefix are valid (Remark 33).
Theorem 10 (Robust verification at width 6). Let satisfy:
(H1) is continuous and non-polynomial;
(H2) is at some point with non-zero derivative;
(H3) is polynomial-time computable, and admits a polynomial-time-computable Lipschitz constant on every bounded interval.
Then -robust verification and -robust -bounded reachability (with unary) for -networks of width 6 are NP-complete.
Coverage of (H1)–(H3). (H1)–(H2) is the relaxation of differentiability of Kidger and Lyons [2020]; with (H3) they cover ReLU, leaky ReLU, tanh, sigmoid, GELU, Swish, ELU, softplus, arctan, the Gaussian and every analytic non-polynomial activation. Constructive bit-complexity bounds are provided by Zhang et al. [2024]; the remaining cases follow from interval evaluation under (H3).
3 Proof sketch of Theorem 3
The proof of Theorem 3 has three modular components, illustrated in Figure 1: a width-3 subnetwork that simulates one Turing-machine step on the -base-4 encoding domain (Stage 1, at width 3, based on ideas from Bournez et al. [2025]); a width-2 subnetwork that produces a continuous encoding-validity certificate (Stage 2); and a combinator that propagates the certificate across iterations (Stage 3). The full network has width 4. We first identify the obstruction, then describe each stage; complete proofs are in Appendices B to D.
3.1 The continuity obstruction, and why exactness is forced
Why exactness, in one sentence. Each simulated tape shift multiplies a coordinate by 4 (Lemma 31), so a per-step error becomes about after iterations: an approximation accurate for steps needs precision , hence a network whose size grows with the time horizon. Theorem 7(ii)–(iii) quantify over exponential and unbounded with one fixed finite network, so no approximation-based construction can reach them.
The obstruction. The existing ReLU-based simulations operate on the fractal set (totally disconnected, Lebesgue measure 0), whereas verification asks for a trajectory from a convex initial region . The two domains are incompatible in a strong sense.
Proposition 11 (No continuous encoding). Every continuous map from a convex subset of into is constant.
Proof. A convex set is connected, the continuous image of a connected set is connected, and is totally disconnected, so the image is a single point.
ReLU networks realize only continuous piecewise-affine maps Arora et al. [2016], so no subnetwork can map Init onto valid encodings, and none can gate the simulation on the discontinuous predicate “is a valid encoding?”. Bournez et al. [2025] circumvent this by approximating the validity predicate
Both are promise problems with a gap; “NP-complete” is shorthand for “NP-hard for the YES instances of the promise and admitting an NP verifier on the promise,” i.e. formally promiseNP-complete in the sense of Goldreich [2006].
uniformly, at width 12 and at the cost of exact iteration; the companion work Bournez et al. [2026] restricts inputs by 3-SAT preprocessing, which yields NP-hardness but no TM simulation. We instead realize a continuous certificate that vanishes on valid encodings, is positive elsewhere and is non-decreasing along trajectories: any input which was never a valid encoding is flagged and stays flagged. The certificate occupies one extra coordinate, hence width 4.
Stage 1: width-3 TM step on encoded inputs. TM simulation at some fixed width has been known since Siegelmann and Sontag [1991]; Bournez et al. [2025] reach width 3, which we make fully explicit in Appendix B and use as a black box.
Theorem 12 (Width-3 step simulation, inspired from Bournez et al. [2025]). For every Turing machine over , there exists a ReLU network of depth poly() such that, for every valid encoded configuration , , where denotes the set of co-encodings of a state prefix in followed by an -tape suffix, and the third coordinate is a scratch register reset to 0 between steps.
Theorem 12 treats the encoding domain as a set of exact rational points: each TM transition is an explicit affine map on the relevant cylinder of , and the gaps between cylinders allow these maps to be assembled at width 3. Outside the encoded domain, has no specified behavior, which is what forces the certificate: it is what lets us talk about verification on convex inputs rather than on the fractal encoding set.
Stage 2: continuous encoding-validity certificate. The new ingredient is a per-step error gadget err: , continuous and piecewise affine, which vanishes exactly on and is positive elsewhere. It can be implemented as a sum of two tents by the nested ReLU expression
Applied to , err vanishes iff the leading base-4 digit of lies in (scheduling inside the width-4 network: Appendix C).
Proposition 13 (Per-step encoding-validity gadget). The function is continuous, non-negative, computable in constant depth inside the width-4 register network of Theorem 3, and vanishes precisely on the leading-digit -cylinders of .
Stage 3: combining the stages, and proof of Theorem 3. The full width-4 network assembles, at each iteration, a per-step certificate update followed by Stage 1's TM step:
-
Apply the per-step error gadget err to and to the leading digits of the tape-suffix portion of (Proposition 13; the state-prefix portion of is checked by the same gadget composed with a constant-depth slicing, Appendix C). Update , where is the maximum of the digit-error and state-distance terms (Remark 33). The maximum is computed as at width 2.
-
Apply Stage 1, the width-3 step simulation , to to obtain . The fourth register is propagated unchanged through Stage 1 by an identity wire.
Each iteration of has constant depth on top of ; thus the per-iteration depth of is , independent of any input length or time horizon.
Scheduling and width-4 bound. Each step is a sequence of register-layer updates (Definition 15), each modifying one of : the error gadgets are width-2 and sequentialized so that serves as accumulator while are read-only and holds scratch data; Stage 1 then updates and preserves through an identity wire (register form of register width 4, Remark 42).
Proof of Theorem 3. is non-negative and bounded by 1; the max update keeps non-decreasing and in . If and the tape-suffix of lie in , and the state-prefix of is in , every leading digit visited stays in and the state stays in along the trajectory (since preserves valid encodings by Theorem 12); vanishes at every iteration, throughout, and by induction, proving (i). Conversely, when a visited leading digit falls outside or the state-prefix leaves , the per-step error is positive at that iteration; becomes positive and stays so. Stage 2 checks before Stage 1 reads, so the simulator never operates on a forbidden digit while . (A fully worked example is given in Appendix D.4.)
4 Verification spectrum of iterated width-4 networks
4.1 Proof of Theorem 7
Reductions: a uniform recipe. For each part of Theorem 7, we reduce a classical TM complexity problem to width-4 reachability. The reduction is identical across the three parts, so we describe it once. Let ask whether some Turing machine accepts some input within some (problem-dependent) time bound. By Theorem 3, applied to , we obtain a width-4 ReLU network with the simulation and certificate properties. Recall that the second coordinate co-encodes the state (constant-length prefix of length ) and the right tape (Section 2). Define
i.e. has the prefix of the initial state, the remaining digits of encode an arbitrary right tape, is unrestricted in (left tape), and the scratch and validity registers are pinned to 0. Define , i.e. the state-prefix of encodes the final state . Both Init and Acc are convex and specified by rational linear inequalities (axis-aligned in ). The reduction maps (or in the unbounded case) to (or ). Correctness is by Theorem 3: a trajectory enters Acc iff throughout, i.e. every step is locally valid in the sense of Lemma 35, and the state-prefix of encodes at some iteration . Equivalently, the trajectory enters Acc iff accepts on some infinite binary tape within the time bound, which matches the NP / NEXP / RE hardness sources by padding: acceptance on some infinite tape in steps reduces to acceptance on some length- prefix in steps (see Lemma 37).
It remains only to choose for each part and verify the upper bound.
Part (i): unary . Take to be “does accept some within steps?” with unary, which is NP-complete by Cook–Levin applied to a TM with the standard polynomial slowdown Arora and Barak [2009]. Hardness follows from the recipe above. NP-membership follows from Lemma 36: a non-deterministic verifier guesses a rational of polynomial bit complexity and simulates exactly for steps. With unary, total time is .
Part (ii): binary . Take to be SUCCINCT-TM-ACCEPTANCE: “does accept some of length at most in at most steps?” with binary. This problem is NEXP-complete by a standard padding argument from SUCCINCT-SAT Arora and Barak [2009]. Hardness follows from the recipe above with binary as the new time bound. For membership: a non-deterministic verifier guesses and in time polynomial in the input size; simulation of for iterations takes time because may be exponential in the binary encoding . The overall verifier runs in non-deterministic exponential time, hence NEXP-membership.
Part (iii): no time bound. Take to be the halting problem on the empty input: “does halt on the empty word?”, which is RE-complete. The recipe gives together with the singleton (equivalent to a degenerate hyperrectangle with rational endpoints). A trajectory from this single point reaches Acc iff halts on the empty word. Membership in RE is a standard semi-decision procedure (simulate until the trajectory enters Acc, accept if so).
A note on the NEXP witness. The witness in Part (ii) encodes a TM input of length up to as the point ; Remark 38 explains why this lands on NEXP rather than EXPTIME.
4.2 Two corollaries used in the sequel
Two consequences follow at no additional cost. By complementation, the dual problem “does hold for every ?” is coNP-complete (this is what complete verifiers like Marabou and -CROWN Katz et al. [2017], Wang et al. [2021] certify), and by a gap construction using the certificate of Theorem 3, approximating within additive error inherits the full spectrum.
Corollary 14 (Universal verification and approximation hardness). For width-4 ReLU networks: (i) universal verification is coNP-complete; (ii) approximating worst-case output within is NP-hard (unary ), NEXP-hard (binary ), and undecidable (no ).
5 Robust verification at width 6 for smooth activations
Theorem 7 addresses ReLU. We extend the hardness to every common smooth activation at the cost of two additional units of width, in the robust framework of Section 2.6: exact verification for smooth leaves classical complexity [Macintyre et al., 1996, Wurm, 2024, 2023b], while the promise gap [Gao et al., 2012] absorbs the approximation error and matches the finite-precision regime of numerical verifiers. Theorem 10 shows this relaxation does not help.
5.1 ReLU-register networks and -emulation
The reduction from ReLU width 4 to width 6 is most cleanly stated in a register normal form, in which each hidden layer updates a single coordinate. Every ReLU network of width can be expressed in this form at a polynomial cost in depth.
Definition 15 (ReLU-register network). A ReLU-register network of register width and depth is a composition , where and are affine, and each layer updates a single coordinate via , leaving the others unchanged.
We work directly with this register form: it captures all ReLU networks (any standard ReLU network of width and depth embeds into a register network of register width and depth ; for our purposes, we only need that is natively in register form of register width 4, see Remark 42 in Appendix F.1). The technical core of the section is the following emulation result, adapted from Kidger and Lyons [2020].
Lemma 16 (Per-layer -emulation at width ). Let satisfy hypotheses (H1)-(H3) of Theorem 10. For every ReLU-register layer , every compact , and every , there exists a -network of depth such that . The construction time is polynomial in the description size of and in .
Mechanism of the +2 overhead. The width decomposes into identity wires (one per register coordinate, each implemented by one enhanced -neuron via the local-identity approximation of Kidger and Lyons [2020, Lemma 4.1], see Proposition 40) plus a -subnetwork of width 2 that approximates the univariate non-linearity on a bounded range (Kidger and Lyons [2020, Proposition 4.9]). The full proof of Lemma 16 is in Appendix F.2.
Composing per-layer emulators with a standard telescoping argument yields a network-level approximation result.
Lemma 17 (Network-level -emulation). Let be a ReLU-register network of register width and depth , and let be compact. For every , there exists a -network of depth , with , and constructible in time poly().
5.2 Proof of Theorem 10
We prove NP-membership and NP-hardness of -robust verification for -networks of width 6. The bounded-time variant (unary ) follows by the same argument with depth scaled by . Throughout this section and Appendix F, we write for the acceptance region Acc of Definition 9.
NP-membership. By Lemma 36 (applied to the ReLU-equivalent given by Lemma 16), a non-deterministic verifier can guess a rational of polynomial bit complexity. It then computes to precision using polynomial-time evaluation of and exact rational arithmetic for affine layers. By (H3), each evaluation costs time and the polynomial-time-computable Lipschitz constant on the relevant compact yields total iteration error . Choosing requires bits of precision per step. The verifier returns YES iff . On promise YES, and the verifier accepts; on promise NO, and the verifier rejects.
NP-hardness via robust reduction from ReLU. Corollary 14 (or directly the proof of Theorem 7) establishes that the -robust verification problem is NP-hard for ReLU networks at width 4 for some fixed (concretely, the construction yields a separation of between and on the relevant compact). We reduce this to robust verification at width 6.
Given a width-4 ReLU instance , since is natively in register form of register width 4 (Remark 42), apply Lemma 17 on the compact with precision to obtain a width-6 -network such that . Output the -instance . YES preservation. If the original instance is YES, then with . Then , so . The output instance is YES.
NO preservation. If the original is NO, then , , so . We need , which holds since . The output instance is NO.
The reduction is polynomial-time (Lemma 17 is polynomial-time constructible by Lemma 44); promise is preserved; YES/NO map correctly. Hence -robust verification of -networks at width 6 is NP-hard. NP-membership above gives completeness.
Two complements. The argument needs unary: with binary, the precision required is doubly exponential in the input, and a NEXP-style statement at binary is open. The approximation hardness of Corollary 14 transfers to width-6 -networks by the same reduction (Appendix F.3).
6 Discussion and open problems
What this paper establishes. The iterates of a single fixed ReLU network of width 4 simulate an arbitrary Turing machine, exactly on encoded inputs and with a certificate on the rest of the convex cube (Theorem 3); their verification spans the hierarchy from NP to undecidable along the time-bound axis (Theorem 7); the hardness extends to all standard smooth activations at width 6 in the robust framework (Theorem 10) and, through Duan et al. [2024], to Neural ODEs at dimension 5 (Theorem 50). The technical novelty over classical Turing-simulation theorems for narrow recurrent networks is a continuous encoding-validity certificate that resolves a continuity obstruction at the cost of one extra unit of width.
Practical implications. Depth, not width, is the axis along which verification cost scales super-polynomially (Section 2.2). This is consistent with the empirical observation that depth dominates the cost of complete verifiers [Katz et al., 2017, Wang et al., 2021], although our worst-case analysis does not by itself explain solver behavior on trained networks.
Open problems. Four questions remain. (i) Width 2. Width 1 admits polynomial-time verification, widths 3 and 4 admit NP-completeness via fractal preprocessing Bournez et al. [2026], and width 4 obeys the full spectrum of Theorem 7; width 2 is open. (ii) Continuous-time simulation. Theorem 50 holds under splitting-method discretization; whether a Lipschitz piecewise-affine ODE admits TM simulation by its continuous flow, at any dimension, is open (Appendix H.4). (iii) Trained and constrained networks. Our construction is essentially expanding: each tape shift multiplies by 4. First, contractivity: non-expansive iterates (spectral norm at most 1, as enforced in deep equilibrium models [Bai et al., 2019] and normalizing flows) cannot create digit resolution, and we believe that bounded-time reachability leaves the NEXP / RE regime under such a constraint. Second, parameterized complexity in the number of unstable neurons, the quantity that governs complete solvers in practice, rather than in width or depth. (iv) Beyond piecewise-affine activations. (H1)–(H3) cover the standard smooth activations but not softmax or attention. Extending to Transformer-style architectures is natural.
Acknowledgments and Disclosure of Funding
O. Bournez and J. Cohen acknowledge support from PGMO, and O. Bournez from ANR project OTC ANR-24-CE48-0335. A. Wurm acknowledges partial support from the BTU Graduate Research School. The authors declare no competing interests.
References
Mikkel Abrahamsen, Linda Kleist, and Tillmann Miltzow. Training neural networks ∃R-complete. In Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan, editors, Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, volume 34, pages 18293–18306, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/9813b270ed0288e7c0388f0fd4ec68f5-Abstract.html.
Raman Arora, Amitabh Basu, Poorya Mianjy, and Anirbit Mukherjee. Understanding deep neural networks with rectified linear units. CoRR, abs/1611.01491, 2016. doi: 10.48550/arXiv.1611.01491. URL http://arxiv.org/abs/1611.01491.
Sanjeev Arora and Boaz Barak. Computational Complexity - A Modern Approach. Cambridge University Press, 2009. ISBN 978-0-521-42426-4. doi: 10.1017/cbo9780511804090. URL http://www.cambridge.org/catalogue/catalogue.asp?isbn=9780521424264.
Eugene Asarin, Oded Maler, and Amir Pnueli. Reachability analysis of dynamical systems having piecewise-constant derivatives. Theoretical Computer Science, 138(1):35–65, feb 1995. ISSN 0304-3975. doi: 10.1016/0304-3975(94)00228-B.
Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep equilibrium models. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019), 2019. doi: 10.48550/arXiv.1909.01377.
Hugo Bazille, Olivier Bournez, Walid Gomaa, and Amaury Pouly. On the complexity of bounded time reachability for piecewise affine systems. In Joël Ouaknine, Igor Potapov, and James Worrell, editors, Reachability Problems - 8th International Workshop, RP 2014, Oxford, UK, September 22-24, 2014. Proceedings, volume 8762 of Lecture Notes in Computer Science, pages 20–31. Springer, 2014. doi: 10.1007/978-3-319-11439-2\2. URL https://doi.org/10.1007/978-3-319-11439-2\2.
Vincent D. Blondel, Olivier Bournez, Pascal Koiran, and John N. Tsitsiklis. The stability of saturated linear dynamical systems is undecidable. Journal of Computer and System Science, 62(3):442–462, may 2001. doi: 10.1006/jcss.2000.1737. URL https://doi.org/10.1006/jcss.2000.1737.
Avrim Blum and Ronald L. Rivest. Training a 3-node neural network is np-complete. In David S. Touretzky, editor, Advances in Neural Information Processing Systems 1, [NIPS Conference, Denver, Colorado, USA, 1988], volume 1, pages 494–501. Morgan Kaufmann, 1988. doi: 10.1016/s0893-6080(05)80010-3. URL http://papers.nips.cc/paper/125-training-a-3-node-neural-network-is-np-complete.
Olivier Bournez and Michel Cosnard. On the computational power of dynamical systems and hybrid systems. Theoretical Computer Science, 168(2):417–459, nov 1996. ISSN 0304-3975. doi: 10.1016/S0304-3975(96)00086-2. URL https://doi.org/10.1016/S0304-3975(96)00086-2.
Olivier Bournez, Manuel Lameiras Campagnolo, Daniel Silva Graça, and Emmanuel Hainry. Polynomial differential equations compute all real computable functions on computable compact intervals. Journal of Complexity, 23(3):317–335, June 2007. doi: 10.1016/j.jco.2006.12.005. URL http://dx.doi.org/10.1016/j.jco.2006.12.005.
Olivier Bournez, Johanne Cohen, and Adrian Wurm. A universal uniform approximation theorem for neural networks. In Pawel Gawrychowski, Filip Mazowiecki, and Michal Skrzypczak, editors, 50th International Symposium on Mathematical Foundations of Computer Science, MFCS 2025, Warsaw, Poland, August 25-29, 2025, volume 345 of LIPIcs, pages 29:1–29:20, Dagstuhl, Germany, 2025. Schloss Dagstuhl - Leibniz-Zentrum für Informatik. ISBN 978-3-95977-388-1. doi: 10.4230/LIPIcs.MFCS.2025.29. URL https://doi.org/10.4230/LIPIcs.MFCS.2025.29.
Olivier Bournez, Johanne Cohen, Laura Cohen, and Adrian Wurm. Fractal gadgets for neural networks: The complexity of the narrow regime. In 46th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FST/TCS'2026), December 2026.
Christopher Brix, Mark Niklas Müller, Stanley Bak, Taylor T. Johnson, and Changliu Liu. First three years of the international verification of neural networks competition (VNN-COMP). International Journal on Software Tools for Technology Transfer, 25(3):329–339, 2023. doi: 10.1007/s10009-023-00703-4.
Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. In Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolò Cesa-Bianchi, and Roman Garnett, editors, Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pages 6572–6583, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/69386f6bb1dfed68692a24c8686939b9-Abstract.html.
Yifei Duan, Li'ang Li, Guanghua Ji, and Yongqiang Cai. Vanilla feedforward neural networks as a discretization of dynamical systems. Journal of Scientific Computing, 101(3):82, 2024. doi: 10.1007/s10915-024-02710-2. URL https://doi.org/10.1007/s10915-024-02710-2.
Vincent Froese, Christoph Hertrich, and Rolf Niedermeier. The computational complexity of relu network training parameterized by data dimensionality. J. Artif. Intell. Res., 74:1775–1790, 2022. doi: 10.1613/jair.1.13547. URL https://doi.org/10.1613/jair.1.13547.
Sicun Gao, Jeremy Avigad, and Edmund M. Clarke. Delta-decidability over the reals. In Proceedings of the 27th Annual IEEE Symposium on Logic in Computer Science, LICS 2012, Dubrovnik, Croatia, June 25-28, 2012, pages 305–314. IEEE, IEEE Computer Society, 2012. doi: 10.1109/LICS.2012.41. URL https://doi.org/10.1109/LICS.2012.41.
Oded Goldreich. On promise problems: A survey. In Oded Goldreich, Arnold L. Rosenberg, and Alan L. Selman, editors, Theoretical Computer Science, Essays in Memory of Shimon Even, volume 3895 of Lecture Notes in Computer Science, pages 254–290. Springer, 2006. doi: 10.1007/11685654\12. URL https://doi.org/10.1007/11685654\12.
Boris Hanin and Mark Sellke. Approximating continuous functions by relu nets of minimal width. CoRR, abs/1710.11278, 2017. doi: 10.48550/arXiv.1710.11278. URL http://arxiv.org/abs/1710.11278.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770–778. IEEE Computer Society, 2016. doi: 10.1109/CVPR.2016.90. URL https://doi.org/10.1109/CVPR.2016.90.
Helge Holden, Kenneth H Karlsen, Knut-Andreas Lie, and Nils Henrik Risebro. Splitting methods for partial differential equations with rough solutions. European Mathematical Society, 7:12, 2010.
John E. Hopcroft and Jeffrey D. Ullman. Introduction to Automata Theory, Languages and Computation, Second Edition. Addison-Wesley, 2nd edition, 2000.
Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International conference on computer aided verification, pages 97–117. Springer, 2017.
Patrick Kidger. On neural differential equations. CoRR, abs/2202.02435, 2022. doi: 10.48550/arXiv.2202.02435. URL https://arxiv.org/abs/2202.02435.
Patrick Kidger and Terry J. Lyons. Universal approximation with deep narrow networks. In Jacob D. Abernethy and Shivani Agarwal, editors, Conference on Learning Theory, COLT 2020, 9-12 July 2020, Virtual Event [Graz, Austria], volume 125 of Proceedings of Machine Learning Research, pages 2306–2327. PMLR, PMLR, 2020. URL http://proceedings.mlr.press/v125/kidger20a.html.
Pascal Koiran, Michel Cosnard, and Max H. Garzon. Computability with low-dimensional dynamical systems. Theoretical Computer Science, 132(2):113–128, sep 1994. ISSN 0304-3975. doi: 10.1016/0304-3975(94)90229-1. URL https://doi.org/10.1016/0304-3975(94)90229-1.
Angus Macintyre, Alex J Wilkie, and P Odifreddi. On the decidability of the real exponential field. Kreisel's Mathematics, 115:451, 1996.
William Merrill and Ashish Sabharwal. The expressive power of transformers with chain of thought. In The Twelfth International Conference on Learning Representations (ICLR 2024), 2024. doi:10.48550/arXiv.2310.07923.
Cristopher Moore. Generalized shifts: unpredictability and undecidability in dynamical systems. Nonlinearity, 4(3):199–230, 1991. doi: 10.1088/0951-7715/4/2/002.
Christos H Papadimitriou and Mihalis Yannakakis. A note on succinct representations of graphs. Information and control, 71(3):181–185, 1986.
Sejun Park, Chulhee Yun, Jaeho Lee, and Jinwoo Shin. Minimum width for universal approximation. CoRR, abs/2006.08859, 2020. doi: 10.48550/arXiv.2006.08859. URL https://arxiv.org/abs/2006.08859.
Alexander Schrijver. Theory of linear and integer programming. Wiley-Interscience series in discrete mathematics and optimization. Wiley, 1999. ISBN 978-0-471-98232-6. doi: 10.2307/253980.
Hava T. Siegelmann. Neural networks and analog computation - beyond the Turing limit. Progress in theoretical computer science. Birkhäuser, 1999. ISBN 978-0-8176-3949-5.
Hava T. Siegelmann and Eduardo D. Sontag. Turing computability with neural nets. Applied Mathematics Letters, 4(6):77–80, 1991. doi: 10.1016/0893-9659(91)90080-f.
Hava T. Siegelmann and Eduardo D. Sontag. Analog computation via neural networks. Theoretical Computer Science, 131(2):331–360, sep 1994. ISSN 0304-3975. doi: 10.1016/0304-3975(94)90178-3. URL https://doi.org/10.1016/0304-3975(94)90178-3.
Michael Sipser. Introduction to the theory of computation. PWS Publishing Company, 1997. ISBN 978-0-534-94728-6.
Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. Highway networks. CoRR, abs/1505.00387, 2015. doi: 10.48550/arXiv.1505.00387. URL http://arxiv.org/abs/1505.00387.
Matus Telgarsky. Benefits of depth in neural networks. In COLT, pages 1517–1539, 2016.
Hale F Trotter. On the product of semi-groups of operators. Proceedings of the American Mathematical Society, 10(4):545–551, 1959.
Shiqi Wang, Huan Zhang, Kaidi Xu, Xue Lin, Suman Jana, Cho-Jui Hsieh, and J. Zico Kolter. Beta-CROWN: Efficient bound propagation with per-neuron split constraints for neural network robustness verification. In Advances in Neural Information Processing Systems (NeurIPS), volume 34, pages 29909–29921, 2021.
Adrian Wurm. Complexity of reachability problems in neural networks. In International Conference on Reachability Problems, pages 15–27. Springer, 2023a.
Adrian Wurm. Complexity of reachability problems in neural networks. CoRR, abs/2306.05818, 2023b. doi: 10.48550/arXiv.2306.05818. URL https://doi.org/10.48550/arXiv.2306.05818.
Adrian Wurm. Robustness verification in neural networks. In International Conference on the Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pages 263–278. Springer, 2024.
Shijun Zhang, Jianfeng Lu, and Hongkai Zhao. Deep network approximation: Beyond ReLU to diverse activation functions. Journal of Machine Learning Research, 25(35):1–39, 2024.
A Notation and preliminaries
This appendix collects formal definitions used throughout the paper. The neural-network model itself is defined in Section 2.1; here we record additional conventions and the verification problems considered.
Rational networks. Throughout, we restrict attention to rational neural networks and inputs: all parameters (weights, biases, activation slopes and hyperplane coefficients of Init and ) are rational numbers. When convenient (here, in Section 5 and in Appendix F) we write for the acceptance region Acc.
Verification and reachability problems. Fix an activation .
Definition 18 (-Verification). The -Verification problem is the following decision problem. Given: a neural network and two convex regions Init, Acc specified by linear inequalities. Decide: is there such that ?
Definition 19 (-Bounded-Time Recurrent Reachability). The -Bounded-Time Recurrent Reachability problem is the decision problem. Given: a neural network , two convex regions Init, Acc , and a time bound encoded in unary (resp. binary, or unbounded). Decide: is there and with ?
The robust variants (-robust verification, -robust bounded-time reachability) are defined in Definition 9.
B Width-3 simulation of Turing machines (after Bournez et al. [2025])
This appendix recalls the building block of our main theorem: a width-3 ReLU network simulating one step of a Turing machine on a base-4 encoding with digits in . The result is adapted from Bournez et al. [2025].
B.1 Turing machine conventions
We use the following conventions throughout. A deterministic Turing machine is a tuple , where is a finite set of states; is the tape alphabet, with denoting the distinguished blank symbol; is the transition function, where and denote a one-cell move of the head to the left and to the right, respectively; is the initial state; and is the unique accepting state. The choice of digits for the binary input alphabet, instead of , is consistent with the encoding of Section 2.3 and avoids a separate treatment of the digit 0. Thus, a binary input is identified with the tape word defined by .
A configuration of is a triple where is the current state and encode the left and right halves of the (bi-infinite) tape, with the head positioned at the leftmost symbol of . The set of configurations is denoted . The transition function induces the single-step map . A run on input is the sequence of configurations where and . We say accepts in steps if has state .
Remark 20. We will sometimes consider acting on an infinite binary tape instead of a finite input; the initial configuration is then where . Within steps visits at most tape positions, so a finite input of length behaves identically to any infinite extension .
B.2 Encoding configurations
Let denote the set of base-4 reals with digits in , that is,
This is a Cantor-like fractal subset of . The choice of digits in rather than creates uniform gaps between the leading-digit cylinders, which is what allows continuous gadgets to discriminate them. This trick is inspired from Siegelmann and Sontag [1991]: see also discussions and references in Remark 28.
A configuration of a Turing machine over alphabet (with blank ) is a triple where is a state and are the left and right halves of the tape. Following Bournez et al. [2025], we encode such a configuration into two reals by a map
where the second coordinate -encodes state and right tape in base 4: places a constant-length state prefix of length ahead of . This packing keeps the working dimension at 2; the equivalent “naive” encoding would require 3 dimensions. The width-4 network of Theorem 3 embeds into its first two coordinates, the third being a scratch register and the fourth a validity register (Section 2).
B.3 Auxiliary tool: efficient compilation of one-dimensional CPAMs
We need to write some particular continuous affine maps (CPAM) as particular narrow neural networks.
B.3.1 Some known statements
We review some known statements. We improve some of them, as we need to discuss very small width constructions, and also some effectivity considerations.
Theorem 21 (Arora et al. [2016]). Every CPAM can be represented by a .
Note that this is easily extended to CPAMs with any finite output dimension. However, in practice, the question of the width or depth of the involved ReLU-net that performs a CPAM function is relevant. The article Hanin and Sellke [2017] studies the numbers , defined to be the minimal value of width such that for every continuous function and every there is a ReLU net with input dimension , hidden layer widths at most , and output dimension that -approximates . The main result of Hanin and Sellke [2017] is the following estimate for .
Theorem 22 ([Hanin and Sellke, 2017, Theorem 1]). For every , .
The following has been discussed:
Definition 23 (Max-min string, [Hanin and Sellke, 2017, Definition 1]). A function is a max-min string of length on input variables and output variables if there exist affine functions such that
where each is either a coordinate-wise max or a min.
Proposition 24 (Width efficient computation of max-min string, [Hanin and Sellke, 2017, Proposition 2]). For every max-min string on input variables and output variables with length and every compact , there exists a and depth that computes for every .
B.3.2 What we actually use
For our purposes, we only need the well-known fact that any one-dimensional continuous piecewise-affine map (CPAM) is expressible as a ReLU expression via the standard hinge representation. The specific gadgets used in the present paper (Lemmas 29 to 31) are constructed explicitly with width-2 implementations that do not appeal to a general width-optimal compilation. They can be seen as (sometimes optimized) particular instances of the following observation.
Lemma 25 (Compilation of bounded CPAMs). Let and let be a continuous piecewise affine map with breakpoints . Then is computed exactly on by a ReLU network of width 2 and depth (including one affine output layer).
Proof. Let denote the slopes of on the subintervals , set , and adopt the convention . The hinge decomposition (see e.g. Arora et al. [2016]) reads
Define the partial sums for , so that and .
Positivity offset. Each is continuous on the compact , hence
is finite (with explicit bound , where ). Set and , so .
Construction. We build a width-2 network whose state after the -th block of two ReLU layers equals .
Initialization (1 layer). The input is lifted by
the equality holding because both coordinates are on (the first by hypothesis, the second by choice of ).
Block (2 layers). SUB-LAYER A. Apply
The second coordinate is preserved since . The first equals : on , so ; on , and (since ).
SUB-LAYER B. Apply
The first coordinate is preserved since . The second argument equals , which is by definition of ; hence the ReLU acts as the identity.
Output (1 affine layer). After 2n ReLU layers in blocks, the state is . The affine map yields .
Width and depth. Width is 2 throughout; depth is .
B.4 Width-3 step simulation
Theorem 26 (Simulation of TM, [Bournez et al., 2025, Theorem 23]). Let be a Turing machine with input alphabet and tape alphabet , and let be its configuration space. There exist a piecewise-affine function and an encoding map such that the diagram below commutes:
That is, for every pair of configurations in .

Figure 2: Width-3 block computing . Coordinates 2–3 host the width-2 subnetwork of Lemma 25 (staircase + shifted partial sum); coordinate 1 carries through each layer via on . A final constant-depth junction outputs on coordinate 2 and resets coordinate 3 to 0.
Proof. Since the original argument in Bournez et al. [2025] leaves several technical points implicit, we give a self-contained derivation, combining a structural decomposition of the TM step with the one-dimensional compilation of Lemma 25.
Decomposition into one-coordinate atomic updates. The transition of Bournez et al. [2025] acts on the encoded pair through a finite sequence of atomic operations: read the leading base-4 digit of the active half-tape (Lemma 30), branch on the state-symbol pair via a constant-depth case split on the finitely many such pairs, write the new symbol, shift the head, update the state prefix. Each atomic operation modifies exactly one of the two encoded coordinates , and reduces, after the case split, to a continuous piecewise-affine map of one variable with breakpoints (the gadgets of Lemmas 30 and 31 are particular instances). Since the number of atomic operations depends only on , the construction yields
where depends on and each has the form , or , with a 1D CPAM taking values in .
One atomic update fits in width 3. Take the first form (the second is symmetric). Lemma 25 provides a width-2 ReLU subnetwork computing , internally maintaining a 2-register state (staircase variable and shifted partial sum). We place these two registers in coordinates 2 and 3 of the ambient width-3 network, while coordinate 1 carries through every ReLU layer via (valid since ). A constant-depth ReLU junction at the end of the block extracts into coordinate 2, zeros coordinate 3, and preserves in coordinate 1, restoring the layout required at the entry of . (See Figure 2 for an illustration).
Concatenation. Stacking the blocks produces of depth , where is the number of breakpoints of . The commutation on holds cylinder-by-cylinder by the explicit case analysis in Bournez et al. [2025]; outside the encoded domain , is the continuous piecewise-affine extension determined by the construction, with no claim made.
Remark 27 (Equivalence with Theorem 12). Theorem 12 in the main body differs from Theorem 26 only in its bookkeeping: the scratch register is exposed as an explicit third input/output coordinate, reset to 0 between TM steps. The conversion from one formulation to the other is purely affine and does not increase the hidden width: prepend an map dropping the third input coordinate, and append an map padding the output with a zero third coordinate. We use the two-dimensional formulation for the width analysis above and the three-dimensional register form when chaining the simulator with the encoding-validity certificate of Stage 2 in Section 3.
Remark 28. The use of base-4 digits in rather than a binary representation is essential: a continuous ReLU map cannot discriminate adjacent base-2 digits, but it can discriminate -digits because of the gap of size between and . See Blondel et al. [2001], Moore [1991], Koiran et al. [1994], Bournez and Cosnard [1996], Siegelmann and Sontag [1991] for related work. Note that the gaps are between the leading-digit cylinders, not between admissible points: is a perfect set, two encodings agreeing on their first digits differ by at most , so no fixed margin separates distinct encodings and no rounding step back onto the encoding set exists. This is one more reason


Figure 3: Network . Boxes represent ReLU neurons; subscripts indicate biases, edge labels indicate weights, and missing labels correspond to bias 0 and weight 1.
why uniform approximation does not yield exact simulation (the main one is the expansion argument of Section 3.1).
C Encoding-validity gadget at width 4
Theorem 26 requires a validly encoded input from . To make the simulation work uniformly on any input in , we construct a width-4 preprocessing gadget that detects deviation from the encoding set. This appendix develops the auxiliary gadgets and combines them.
C.1 Why we need this gadget
If width and dimension were unrestricted, NP-completeness of verification for ReLU networks would follow from a SAT-style reduction [Wurm, 2023a], or from the bounded-time reachability hardness for two-dimensional CPAMs [Bazille et al., 2014]. Translating the CPAM to a ReLU network via [Arora et al., 2016] yields verification hardness for ReLU networks of some fixed width, but the width is not estimated and is at best loose. Moreover, this approach is unrelated to Turing-machine complexity, so it gives only NP-hardness rather than the full time-bound spectrum (Theorem 7).
We instead exploit Theorem 26: ReLU networks of width 3 already simulate Turing machines, but on the fractal encoding . Since the verification problem asks for the existence of an input in a convex region Init, we must close the gap between “valid encoding inputs” and “arbitrary convex inputs”. The encoding-validity gadget below performs this closure with one extra unit of width.
C.2 Auxiliary gadgets
We construct three width-2 subnetworks that constitute the building blocks of the validity check.
Lemma 29 (Error indicator). There exists a ReLU network in such that, for every , , where satisfies for all , and .
Proof. Let and . Then is strictly positive on and non-positive elsewhere; is strictly positive on and non-positive elsewhere. Define . By construction, iff . Rewriting as a nested ReLU composition gives
which is a finite composition of ReLU and affine operations on a single real input, hence directly implementable by a ReLU network of width 2: at each layer one neuron computes the inner ReLU expression while the second neuron carries the running input value x via (valid since on the domain ). See Figure 3.
Lemma 30 (Leading-digit extraction). There exists a ReLU network in such that, for every , , where whenever .


Figure 4: Network . Boxes represent ReLU neurons; subscripts indicate biases, edge labels indicate weights, and missing labels correspond to bias 0 and weight 1.
Proof. The digits correspond exactly to (with gaps in between). Define
A direct case analysis verifies: ; . See Figure 4.
Lemma 31 (Base-4 digit shift). There exists a ReLU network in such that, for every , , where for and when with .
Proof. It suffices to verify .
C.3 Width-4 validity check via the -base-4 digit gadget
Proposition 32 (Width-4 encoding-validity check). Fix . There exists a ReLU network such that, for every , satisfies:
-
if with , then and ;
-
conversely, if , then has the form with .
Proof. The network iteratively decodes the first n base-4 digits of x, accumulating any deviation from into an error variable .
Construction. Given the input pair , the network performs the following loop:
-
Initialise .
-
For :
(a) Update the error: .
(b) Extract the leading base-4 digit: .
(c) Update the accumulator: .
(d) Shift the input: .
- Return .
By Lemmas 29, 30, and 31, each instruction can be implemented by a width-2 ReLU subnetwork. The registers p and must be propagated throughout the computation alongside the working register x, yielding total width 4; see Figure 5.
Correctness. Let denote the values after iterations, with initial values .

Figure 5: Sub-network of implementing the i-th loop iteration, which updates into using ReLU neurons and the three components , , and . Outputs are shown at the sources of the arrows, and weights at their targets. The sub-network has width 4. The components and have constant depth. For readability, only one ReLU layer is drawn in parallel with these components; formally, one should include as many ReLU layers as the depths of the corresponding sub-networks.
Property 1. Suppose with . By induction, and . After iterations, and . Moreover, since each vanishes when by Lemma 29. Hence and .
Property 2. Suppose , i.e. . Both (since shift is non-negative) and (sum of ReLUs), so and . We argue by contradiction: suppose is not of the form with . Two cases.
- The first digits are in , but . Then , contradiction (on ).
• There is some with , taken minimal. Then , hence , contradiction.
This completes the proof.
Remark 33 (The per-step certificate of Theorem 3). The per-step certificate of Theorem 3 is
where and are the state-prefix and tape-suffix portions of (Section 2.3), obtained by a constant-depth slicing (a CPAM, expressible as a finite ReLU expression by Lemma 25), and is a state-distance subgadget that vanishes exactly on , built as a -fold minimum of tent functions. The maxima are realized in width 2 via . Thus iff the leading base-4 digit of and of the tape-suffix of lies in (that is, and lie in the closed cylinders , Lemma 29) and the state prefix lies in . The zero set of is a finite union of boxes, which a finite ReLU network can realize. Membership of the full expansions in cannot be checked in one step (Proposition 11): it is checked across iterations, one digit per step, because the simulator's own tape shifts expose successive digits as leading digits. The gadget of Proposition 32 belongs to the finite-word setting of Bournez et al. [2026]: it vanishes exactly when is a base-4 word of length over , and is positive on . Only its one-digit building block (Lemma 29) enters .
D Full proof of Theorem 3
This appendix formalizes the construction sketched in Section 3 of the main body, using the building blocks of Appendices B and C. We construct explicitly, establish a structural invariant on the certificate, and derive parts (i) and (ii) of Theorem 3.
Remark 34 (Certifying a set). Part (ii) of Theorem 3 says, informally, that certifies a set : a coordinate is non-decreasing along the iterates and vanishes along the whole trajectory

Figure 6: The width-4 network . The block updates the certificate coordinate to while leaving untouched; the block then applies the width-3 simulator to with as scratch, and propagates the updated through an identity wire.
of exactly when . Here is the set of inputs whose visited digits (Section 2.3) lie in and whose state prefix stays in . This set contains the encoded configurations, and it is exactly what soundness requires. The quantification over all is essential, since no finite ReLU network has zero set (Remark 4). The certificate appears only inside the witness network built for hardness (Remark 6).
D.1 Construction of the simulating network for a Turing machine M
Recall the encoding map from Appendix B: a configuration is encoded as , where the second coordinate co-encodes state and right tape. The full input to is
with the third coordinate used as scratch by the width-3 simulator and the fourth as a validity accumulator.
The network is defined as the composition of two register-network blocks; see Figures 1 (schematic) and 6 (formal).
(C) (width-4 certificate update):
where is the per-step certificate of Remark 33: iff the leading base-4 digit of and of the tape-suffix of lies in and the state prefix of lies in . Membership of the full expansions in is checked across iterations, one digit per step (Remark 33). The max is realized in width 2 via .
(S) (width-3 simulation): applies the width-3 network of Theorem 26 to using as scratch, while propagating unchanged through an identity wire (this is consistent with the register-form structure of , see Remark 42).
The order (check before simulation) is essential: any encoding violation is detected before has the chance to overwrite . The total per-iteration depth is , and the width is 4.
D.2 Structural invariant
The key technical content of the proof is the following invariant, which formalizes the claim made informally in Stage 2 of Section 3.
Lemma 35 (Encoding-validity invariant). Let be any input, and let for . Call step locally valid if the leading base-4 digit of and of the tape-suffix of lies in and the state-prefix of lies in . Then for every :
(a) (Monotonicity.) and .
(b) (Local validity preserves the certificate.) If every step is locally valid, then . In particular, if , the tape-suffix of is in and the state-prefix of is in , then every step is locally valid, since preserves these properties (Theorem 26), and for all .
(c) (Violation detected.) Conversely, if some step is not locally valid, then for all . In particular, if , then , and this persists forever.
Summed over the steps , the local-validity conditions are exactly the condition of Theorem 3(ii): every digit visited during the first iterations (Section 2.3) lies in , and the state prefix stays in along the trajectory.
Proof. (a) The fourth coordinate is updated by , which is non-decreasing. Since (Remark 33) and , induction gives .
(b) If step is locally valid, then by Remark 33, hence . Iterating from to yields . The second claim follows since maps valid encodings to valid encodings (Theorem 26), so every leading digit exposed along the trajectory stays in and the state prefix stays in .
(c) If step is not locally valid, then (Remark 33), so . By monotonicity, for all .
D.3 Proof of Theorem 3
Proof of Theorem 3. Part (i): faithful simulation on encoded inputs. Let be an infinite binary tape and the initial configuration of on . The input is with both and encoded as required.
We claim by induction on that , where is the per-step iteration count of in Theorem 26. The base case is immediate. For the inductive step, suppose for some . By Theorem 26, maps in iterations. Since the trajectory remains within encoded configurations (the simulator preserves -encoded tapes by Theorem 26), the validity hypothesis of Lemma 35(b) holds at every step, so the fourth coordinate stays at 0. Hence .
Part (ii): online certificate properties. The boundedness and monotonicity of are exactly Lemma 35(a). For , the condition for to hold is exactly local validity of every step , which by the closing claim of Lemma 35 is the visited-digit condition of the statement. The contrapositive (a violation forces thereafter) is Lemma 35(c).
Effective construction. The reduction is computable in polynomial time: is constructed in poly() time by Theorem 26, the certificate gadget in poly() time by Remark 33, and the register-form composition is immediate by construction (Remark 42). Instantiating , where is a fixed universal TM (Lemma 39), yields a single fixed network whose iterates simulate every .
D.4 A worked example
There is no encoder anywhere in the construction: in the reachability problem, the input to the network is not produced by encoding anything. It is chosen by the existential quantifier directly inside the convex region Init, and is applied to whichever point the quantifier picks. Almost every point of Init is not a valid encoding, and being finitely representable is unrelated to being a valid encoding: the rationals in are dense, and only a measure-zero subset of them encodes anything. The following two witnesses make this concrete. Fix any and the regions Init, Acc of Section 4.1: the state prefix of is pinned to , , and is free in .
Witness A (a valid encoding). Take (all digits equal to 1, hence ), and let the tape-suffix digits of all be 1 as well. Every step is locally valid: , so (Lemma 29), and likewise on the suffix of ; the same happens at every later step, since maps encodings to encodings (Theorem 26). So throughout and the iterates are exactly . If accepts the all-ones tape, the trajectory enters Acc.
Witness B (not an encoding). Take , with as in Witness A. This point is perfectly representable (three bits), lies in Init, and is not in : its leading digit is 0. The gadget evaluates , and with err as in Lemma 29 the first tent contributes while the second contributes 0, so . Hence jumps to at the first iteration and, being non-decreasing, stays at least forever. Since Acc requires , this witness can never reach Acc, whatever the continuous extension of does with it downstream.
Witness B is exactly the case the certificate exists for: without it, acting on is an unconstrained continuous piecewise-affine map, and nothing would prevent it from landing in Acc, making the instance answer YES for reasons unrelated to .
E Verification spectrum at width 4
E.1 Polynomial-bit-complexity witness lemma
The NP-membership claim in the proof of Theorem 7 (unary , width-4 ReLU) and in the proof of Theorem 10 (unary , width-6 smooth , after emulation) rests on the following classical observation.
Lemma 36 (Polynomial-bit-complexity for ReLU network reachability). Let be a ReLU network with rational weights of bit complexity , depth , and width . Let Init, Acc be convex regions specified by rational linear inequalities of bit complexity , and let . If there exists a real with for some , then there exists a rational with the same property and bit complexity poly.
Proof. Suppose is a real point such that for some . We construct a rational witness of polynomial bit complexity.
Step 1: activation pattern. A single forward pass through a ReLU network of width and depth involves at most neurons, hence ReLU activations. For each , the composition involves such neurons. Hence, at most ReLU activations in total along the trajectory . Each neuron is in one of two states: active (ReLU() = z, i.e. ) or inactive (ReLU() = 0, i.e. ). Let denote the activation pattern realized at .
Step 2: polyhedral characterization. Fix any activation pattern . On the set of points for which iterating produces the pattern , each ReLU acts as either the identity or zero, and so becomes an affine map for every . The set of realizing is the polyhedron
where each is an affine function of with rational coefficients of bit complexity at most poly (the bit complexity grows by at most at each layer).
Step 3: linear system. For and , the conjunction “” is a system of rational linear inequalities. Each inequality has rational coefficients of bit complexity poly, and the system has at most poly inequalities. The system is feasible over since satisfies it.
Step 4: rational witness. By a standard result in polyhedral combinatorics [Schrijver, 1999, Ch. 10], any feasible system of rational linear inequalities admits a rational solution of bit complexity polynomial in the bit complexity of the system. Applied to , this yields a rational of bit complexity with , , and .
E.2 Underlying complexity statements about Turing machines
We use the following classical facts about Turing-machine complexity.
Lemma 37 (Basic statements from complexity theory). Let . The following decision problems are complete for the indicated complexity classes.
(i) (Unary time bound, NP-complete.) Given a deterministic Turing machine and in unary, does there exist and such that accepts in steps?
(ii) (Binary time bound, NEXP-complete.) Given a deterministic Turing machine and in binary, does there exist and such that accepts in steps?
(iii) (No time bound, RE-complete.) Given a deterministic Turing machine , does there exist such that accepts (in finite time)?
Proof. We treat the three items in turn.
(i) NP-completeness (unary time bound).
NP-membership. Let be an instance, with given in unary. A nondeterministic polynomial-time verifier guesses of length at most and a time , then simulates on input for exactly steps. Since is in unary, the witness has polynomial bit length and the simulation runs in polynomial time. The verifier accepts iff is in an accepting state at step .
NP-hardness. We reduce from SAT. Let be a Boolean formula in CNF with variables. Construct a deterministic Turing machine that, on input , checks whether (rejecting otherwise), interprets as a Boolean assignment, and accepts iff is satisfied under this assignment. The machine runs in time ; let be a unary encoding of an upper bound on this runtime. Then iff , accepts in steps. The reduction is polynomial-time.
(ii) NEXP-completeness (binary time bound).
NEXP-membership. Let be an instance with in binary, of total input size . Since visits at most tape positions in steps, we may restrict to . A nondeterministic verifier guesses such a in nondeterministic bits and a time , then simulates on for steps in deterministic time . Total nondeterministic running time is , hence in NEXP.
NEXP-hardness. We reduce from SUCCINCT-3SAT, the canonical NEXP-complete problem Papadimitriou and Yannakakis [1986], Arora and Barak [2009]. An instance is a Boolean circuit of size that, on input a -bit clause index, outputs three pairs (variable index, sign) encoding a clause of a 3-CNF formula over variables; the question is whether is satisfiable. From , construct a deterministic Turing machine that, on input interpreted as an assignment, iterates over all clauses of (each obtained by simulating , which runs in time ) and accepts iff every clause is satisfied. Then has size and runs in time ; let in binary, of size bits. The equivalence , accepts in steps yields the reduction.
(iii) RE-completeness (no time bound).
RE-membership. A semi-decision procedure enumerates pairs (e.g. by increasing) and simulates on for steps; it accepts iff an accepting configuration is reached.
RE-hardness. We reduce from the halting problem , which is RE-complete Arora and Barak [2009]. Given , let be the machine that ignores its input and simulates on . Then iff , accepts . The map is polynomial-time.
Remark 38 (Two binary- variants: EXPTIME vs. NEXP). With in binary, two natural variants of the decision problem above must be distinguished:
-
Fixed input. “Given , a fixed input , and in binary, does accept in at most steps?” This is EXPTIME-complete: the deterministic simulation runs in time , and hardness follows from the time-hierarchy theorem.
-
Existential input. As in Lemma 37(ii) above: is quantified existentially. This is NEXP-complete.
The two problems differ in whether is part of the input or (fixed) quantified existentially. Our reduction in the proof of Theorem 7 encodes as the real-valued point chosen existentially inside the network’s convex initial region, hence corresponds to the existential variant. This is why we obtain NEXP, not EXPTIME, for binary .
By passing to a fixed universal Turing machine, the same statements hold with replaced by an instance of a single fixed .
Lemma 39 (Fixing the machine). There exists a fixed deterministic universal Turing machine such that the three problems of Lemma 37 retain their respective complexity classifications when “ accepts in steps” is replaced by “ accepts in at most steps” for some fixed polynomial .
Proof. Fix once and for all a deterministic universal Turing machine with the standard property (see e.g. Hopcroft and Ullman [2000], Arora and Barak [2009]) that there exists a polynomial such that, for every deterministic Turing machine , every , and every ,
where is a standard binary encoding of the pair, of size .
The map (with in case (iii)) is, by (1), a two-sided reduction between each item of Lemma 37 and its universal-machine variant. It remains to verify that is polynomial-time and that the resulting universal-machine variant falls into the claimed class.
For Lemma 37(i), is in unary, so is computable and written in unary in polynomial time. For Lemma 37(ii), is in binary, so and is polynomial-time. For Lemma 37(iii), is the identity on .
In each case, membership in the appropriate class (NP/NEXP/RE) follows by viewing the universal-machine variant as a special case of Lemma 37 applied to the single fixed machine on inputs of the form : the new time bound is , which has the same encoding type as (unary/binary/none, depending on the item); the size of is polynomial in and . Hardness follows from Equation (1) together with the hardness part of the corresponding item of Lemma 37.
E.3 Proof of Theorem 7
We now assemble the ingredients to give a formal proof of Theorem 7, restating the result for convenience.
Theorem (Theorem 7, restated). The bounded-time recurrent reachability problem (Definition 19) for width-4 ReLU networks is:
(i) NP-complete when is encoded in unary;
(ii) NEXP-complete when is encoded in binary;
(iii) RE-complete (undecidable) when is unbounded.
Reduction recipe (uniform across (i)–(iii)). For each item, we reduce a Turing-machine acceptance problem to width-4 recurrent reachability. The reduction is identical across items; only the source problem and the encoding of vary.
Let be a deterministic Turing machine and a time bound (unary, binary, or absent). By Theorem 3, applied to , we obtain a width-4 ReLU network of depth , constructible in polynomial time, with the simulation property (part (i)) and the online certificate property (part (ii)). Recall from Appendix B that the second coordinate co-encodes the state and right tape: a state-prefix of length is followed by a -encoded right tape.
Define the convex regions
Both regions are specified by axis-aligned linear inequalities with rational coefficients of bit complexity , hence convex and polynomial-time constructible from .
The reduction maps the Turing-machine instance (or just for case (iii)) to the reachability instance , where is the per-step iteration count of Theorem 3.
Correctness of the recipe. We claim:
() Suppose and for some . We have and (since ). By monotonicity of along the trajectory (Lemma 35(a)), this forces for every . By items (b)–(c) of Lemma 35, every step is locally valid: the leading digit of and of the tape-suffix of lies in , and the state-prefix of lies in . Since acts by affine maps that are uniform on leading-digit cylinders, the state prefixes of its first iterates depend only on the digits visited during the first iterations. Let be obtained from by setting every unvisited digit of and of the tape-suffix of to 1. Then encodes a configuration with , and and have the same state prefix for every . By Theorem 3(i), faithfully simulates on the infinite binary tape encoded by , and its trajectory reaches a state-encoded at iteration . Hence accepts in some steps.
() Conversely, suppose accepts some in steps. Set . By Theorem 3(i), , whose state-prefix is and whose fourth coordinate is 0 (by Lemma 35(b), since the trajectory remains within encoded configurations). Hence with .
Polynomial-time computability. The reduction is polynomial-time: is constructed in by Theorem 3; Init and Acc are described by rational coefficients; and the new time bound has size , which preserves the encoding (unary stays unary, binary stays binary).
Hardness of (i)–(iii). Apply the recipe with the source problems of Lemma 37:
• (i) Source: Lemma 37(i), NP-complete with unary . The recipe yields a polynomial-time reduction to width-4 reachability with unary time bound .
• (ii) Source: Lemma 37(ii), NEXP-complete with binary . The recipe yields a polynomial-time reduction preserving the binary encoding of the time bound.
• (iii) Source: Lemma 37(iii), RE-complete with no time bound. The recipe yields a polynomial-time reduction to unbounded reachability.
Membership in (i): NP. Given with in unary, build in polynomial time. By Lemma 36 applied with parameters , time bound , weight bit complexity , and region bit complexity , any reachability witness can be taken rational of bit complexity . A nondeterministic verifier guesses such a rational , simulates exactly for iterations, and checks at each step whether the trajectory enters Acc. Total time is , hence NP-membership.
Membership in (ii): NEXP. Given with in binary, build as before. Apply Lemma 36 with the same parameters except now binary, of bit length . The lemma yields a rational witness of bit complexity , which is exponential in the input size . A nondeterministic verifier guesses such a witness in nondeterministic time, then simulates for steps in deterministic exponential time. Total nondeterministic running time is , hence NEXP-membership.
Membership in (iii): RE. A semi-decision procedure simulates from each rational point of Init enumerated in some computable order, for increasing numbers of iterations, accepting if the trajectory ever enters Acc. By Lemma 36, if the instance is positive then some rational of finite bit complexity reaches Acc in finite time, so the procedure halts and accepts on positive instances. Hence the problem is in RE.
Combining hardness and membership in each case proves Theorem 7.
F Robust hardness transfer from ReLU to smooth activations
This appendix proves Theorem 10 by transferring NP-hardness from ReLU networks at width 4 to -networks at width 6. We work with the register form of ReLU networks, in which each hidden layer updates a single coordinate.
The key technical ingredient, used to construct identity-preserving gadgets and approximate ReLU from , is the local-identity approximation of Kidger and Lyons [2020, Lemma 4.1].
Proposition 40 (Local approximation of the identity, Kidger and Lyons, 2020, Lemma 4.1). Let be continuous and continuously differentiable at at least one point with nonzero derivative there. Let be compact. Then a single enhanced neuron with activation uniformly approximates the identity function Id: on , with arbitrarily small error.
Proof sketch (after Kidger and Lyons, 2020). By hypothesis there exist where is continuously differentiable with . For set and . Then is realized by a single enhanced neuron, and uniformly on any compact as , by the mean-value theorem applied to on .
F.1 Register networks
Definition 41 (ReLU-register network, restated from Definition 15). A ReLU-register network of register width and depth is a composition
where and are affine, and each register-layer is of the form: there exist an index and parameters , such that for and .
Remark 42 (Native register form of ). The network of Theorem 3 is, by its construction, in register form of register width 4:
-
the width-3 simulator of Theorem 26 is in register form by the construction of Bournez et al. [2025];
-
the certificate update modifies a single coordinate, computed in width 2 via ;
• the unmodified coordinates are propagated unchanged.
In particular, can be passed directly to the -emulation of Lemma 17 below without any preliminary register-form conversion.
F.2 Approximation of ReLU register networks by smooth networks
We approximate ReLU-register networks by -networks in two steps: first one register-layer at a time (Lemma 43), then the entire network by telescoping (Lemma 17).
This is precisely Lemma 16 of the main body, which we restate and prove here.
Lemma 43 (Approximating one ReLU register-layer at width ). Let be continuous, non-polynomial, and at some point with non-zero derivative. Fix , a compact set , an index , and parameters , . Consider the ReLU register-layer with for and . Then for every there exists a -network , constructible in time poly , such that
Proof. The strategy is to dedicate of the neurons to approximating the identity on the register coordinates, and the remaining 2 neurons to approximating the ReLU operation . Coordinates are then assembled via the output affine map.
Step 1: ingredients. By hypothesis on and Proposition 40, for every compact and every there exists a single enhanced -neuron computing a function with .
By the effective ReLU emulation result of Zhang et al. [2024] (see also Kidger and Lyons, 2020, Theorem 4.3 for existence), for activations satisfying (H1)–(H3) and every compact and every , there exists a -network of width 2 and constant depth, constructible in time poly( , ) where , such that .
Step 2: compact sets used. Let , finite by compactness of , and set . Let be a compact set containing every coordinate value for , .
Step 3: construction of . Set and define as follows. The hidden layer has neurons:
• Neurons : each neuron takes input via the input affine map and applies the identity-emulating gadget on . By Step 1, neuron outputs with for .
• Neurons and : jointly compute the ReLU gadget applied to the pre-activation , formed via the input affine map. By Step 1, the combined output approximates within on .
The output affine map assembles the output coordinates: for , set ; for , set .
Step 4: error bound. For every and every coordinate :
Hence uniformly on .
Step 5: constructibility. Both and are constructed by the proofs of Proposition 40 and Theorem 4.3 of Kidger and Lyons [2020] in time poly( , size ).
We now lift the per-layer approximation to a network-level statement. This is precisely Lemma 17 of the main body, which we restate and prove here.
Lemma 44 (Lemma 17, restated). Let be continuous, non-polynomial, and at some point with non-zero derivative. Let be a ReLU-register network of register width and depth , let be compact, and let . Then there exists a -network of depth , constructible in time , such that
Proof. Write . Let be the Lipschitz constant of in (since ReLU is 1-Lipschitz and ); let be the Lipschitz constant of .
Step 1: compact propagation with buffer. Set and inductively , all compact in . Let and define the enlarged compacts (closed -neighborhood in ).
Step 2: per-layer approximation. Apply Lemma 43 on with target precision
producing a -block such that
The block is constructible in time poly .
Step 3: composed network. Define . Each has width and constant depth, so has width and depth .
Step 4: error telescoping. For , let and , with and .
We claim by induction that and for every and . The base case is immediate. Assume both claims for . Then , so the approximation guarantee for applies at this point, giving
Solving the recurrence yields . By the choice of , each summand satisfies
so uniformly. This shows in particular , validating the induction.
Step 5: final bound. Apply :
uniformly on K.
Constructibility. The constants and are computable from the affine parameters of in linear time. Each has bits. By Step 2, each is constructible in time , and the composition is linear in .
F.3 Robust hardness transfer
Theorem 45 (Robust hardness transfer ReLU ). Fix and , and let satisfy hypotheses (H1)–(H3) of Theorem 10. If -robust verification (resp. -robust bounded-time reachability) is NP-hard for width- ReLU-register networks in dimension , then the corresponding problem is NP-hard for width- -networks.
Proof. We give a polynomial-time many-one promise-preserving reduction. Given an instance of -verification for a ReLU-register network of width , apply Lemma 44 on the compact with target precision to obtain a width- -network satisfying . Output the instance , where denotes the closed -neighborhood of .
YES preservation. If there exists with , then , so : the output is YES at the new promise gap .
NO preservation. If for all , then , hence , so the output is NO.
For bounded-time reachability with unary , apply the same reduction with and where and is a Lipschitz constant of on ; the standard error-recurrence telescoping (cf. Step 4 of Lemma 44) controls the iterated error within across iterations.
The reduction is polynomial-time by the constructibility bound of Lemma 44.
Theorem 46 (NP-membership for robust verification of smooth networks). Fix , and let satisfy hypotheses (H1)–(H3) of Theorem 10. Then -robust verification (resp. robust bounded-time reachability with unary ) for -networks of dimension belongs to NP.
Proof. A nondeterministic verifier guesses a rational with polynomially many bits (justified below) and evaluates to precision using polynomial-time evaluation of (by (H3)) and exact rational arithmetic for the affine layers.
Witness bit-complexity. By hypothesis (H3), admits a polynomial-time-computable Lipschitz constant on every bounded interval. Combined with the Lipschitz constants of the affine layers, is Lipschitz with constant on . By Lemma 43 applied at precision , there is a ReLU-equivalent with . Apply Lemma 36 to : any feasible real witness for the ReLU instance can be replaced by a rational witness of bit complexity poly(input). The promise gap of vs. tolerates the cumulative error , ensuring that the rational witness preserves the YES/NO classification.
Verification. The verifier evaluates to precision . Under the vs. promise, in the YES case and in the NO case, so the approximate output unambiguously certifies the correct case.
Conclusion. Combining Theorem 45 with NP-hardness of robust ReLU verification at width 4 (the unary- case of Theorem 7, equivalently Corollary 14), and Theorem 46 for membership, yields Theorem 10.
On binary for . The argument above relies on unary so that the cumulative approximation error remains controllable in polynomial time. With binary, the same calculation requires , which has bits of precision, doubly exponential in the input. Whether -robust bounded-time reachability of -networks at width 6 admits a NEXP-style hardness statement at binary remains open.
Approximation hardness for -networks. The approximation-hardness of Corollary 14 extends to -networks at width 6 via the same reduction: under (H1)-(H3) there exists such that approximating the worst-case output of a width-6 -network within additive error is NP-hard (unary ). The argument is identical to the proof above, using that the promise gap of Corollary 14 is preserved up to a constant by the -emulation. Combined with Corollary 14, this yields a unified intractability picture for ReLU and all common smooth activations at constant width.
F.4 Proof of Corollary 8
Corollary (Corollary 8, restated). Verification of feedforward width-4 ReLU networks on convex Init, Acc is NP-complete.
Proof. NP-membership. Apply Lemma 36 with (no iteration): a nondeterministic verifier guesses a rational of polynomial bit complexity, evaluates exactly, and checks .
NP-hardness. We reduce from Theorem 7(i). Given a -bounded reachability instance with in unary, where and , Acc are as constructed in Appendix E.3, output the unrolled feedforward network together with Init and Acc unchanged. The unrolled has width 4, depth , and is polynomial-time constructible since is unary.
It remains to verify the equivalence . The reverse direction is immediate by absorption: in the construction of Appendix E.3, Acc corresponds to “state reached and ”. Since is the unique accepting (and thus terminal) state of , once the trajectory enters Acc, acts as the identity on Acc at every subsequent iteration, so as well. The forward direction is trivial (take ).
G Statements for various activation functions
The hypotheses of Theorem 10 ( continuous, non-polynomial, polynomial-time computable, at some point with non-zero derivative) are mild and cover every smooth activation in modern use. The following table summarizes which standard activations satisfy the assumptions and inherit the consequent complexity statements at width 6.
Table 2: Coverage of Theorem 10 on standard activations.
| Activation | Conditions of Theorem 10 | Notes |
|---|---|---|
| tanh | yes | smooth on |
| sigmoid | yes | smooth on |
| GELU | yes | smooth on |
| Swish | yes | smooth on , any |
| ELU | yes | except at 0; |
| softplus | yes | assumption holds at any other point |
| arctan | yes | smooth on |
| Gaussian | yes | smooth on |
For exact verification (without robustness), much stronger lower bounds hold for several of these activations. The following result of Wurm [2024, 2023b] shows that exact verification is -hard for a broad class of activations, including those permitting transcendental constraints.
Theorem 47 (Wurm 2024, 2023b). With identity nodes allowed:
-
Verification is -complete for any non-linear polynomial , and -hard whenever coincides with a non-linear polynomial on an interval.
-
Verification is -hard for any activation that allows pp-defining a function coinciding with the exponential on an interval (in particular, the exponential, ELU, , the Gaussian , arctan, and the Gallant–White cosine-smasher).
These results explain why we restrict our analysis to the robust variant: exact verification falls outside the standard polynomial hierarchy, while robust verification recovers NP-completeness (Theorem 10).
H Neural ODEs at bounded dimension
Our results are stated for discrete iterated networks. In this section we transfer them to Neural ODEs [Chen et al., 2018] via the natural correspondence established by Duan et al. [2024], obtaining a Lipschitz piecewise-affine vector field of dimension 5 whose splitting-method-discretized flow simulates an arbitrary Turing machine. Verification hardness transfers automatically. The pure continuous-time question remains open with a precise technical obstruction.
H.1 The Duan et al. correspondence
Duan et al. [2024] establish that vanilla feedforward networks, not only residual ones, are exact numerical discretizations of (non-autonomous) dynamical systems. Their Theorem 1 shows that for every flow map of a Lipschitz ODE on a compact set, there exists a vanilla leaky-ReLU FNN of width approximating it; the construction proceeds via splitting of an associated neural ODE. The mechanism implicit in their construction also yields the converse direction we need: every leaky-ReLU FNN of width exactly with non-singular layers is the splitting-method iteration of an explicit non-autonomous piecewise-affine vector field. We state and use this converse direction below.
Lemma 48 (Splitting interpretation, after Duan et al. [2024]). Let be the leaky-ReLU activation, , and let be a vanilla feedforward leaky-ReLU network of depth , with all hidden layers of width exactly and non-singular weight matrices. Then there exists a Lipschitz piecewise-affine vector field , piecewise constant in on each unit interval and computable in time poly(size()) from the parameters of , such that is exactly the time- output of a Lie-Trotter splitting discretization of the non-autonomous ODE at step size 1. In particular, equals the -th iterate of the splitting scheme started at .
Proof. For each layer , the layer is the Lie-Trotter composition (Trotter [1959], see e.g. Holden et al. [2010]) of the time-1 flow of an affine ODE (whose flow at realizes when is non-singular, after re-parameterization; see Duan et al., 2024 Section 3.5–3.6) and the time-1 flow of the activation ODE rescaled appropriately. Setting for , where encodes both ingredients of layer , gives the required non-autonomous vector field. Composing unit splitting steps reproduces exactly .
From ReLU to leaky-ReLU at width +1. Lemma 48 requires leaky-ReLU rather than ReLU. The two activations are related by the elementary identity , which expresses ReLU as a linear combination of one leaky-ReLU neuron and one identity register. By keeping alongside in a single extra register, every ReLU neuron at width can be emulated by a leaky-ReLU subnetwork at width , with the same depth modulo a constant. We record this as a folklore lemma.
Lemma 49 (ReLU leaky-ReLU emulation at width +1). For every fixed and every ReLU network , there exists a leaky-ReLU network with the same depth up to a constant factor, such that for all .
Proof. For each ReLU neuron in , the identity allows us to compute as a linear combination of and . Implementing this in a vanilla leaky-ReLU FNN requires keeping alongside between layers; one extra register suffices for this passthrough, where the identity wire is itself realized by a single leaky-ReLU neuron via Proposition 40. The depth increases by a constant per layer.
H.2 Neural ODE universality at dimension 5
Combining Theorem 3 (width-4 ReLU universality) with Lemma 49 (ReLU leaky-ReLU at width 5) and Lemma 48 (leaky-ReLU width non-autonomous ODE in dimension ) yields the following.
Theorem 50 (Discretized Neural ODE consequence at dimension 5). For every length bound , there exists a polynomial-time constructible non-autonomous Lipschitz piecewise-affine vector field , piecewise constant in on each unit interval and realizable layer-by-layer as a leaky-ReLU vanilla neural network of width 5, and a fixed convex acceptance region specified by rational linear inequalities, such that the following holds. For every deterministic Turing machine over and every input with , there is a polynomial-time-computable initial condition and an integer step count such that the Lie-Trotter splitting discretization sequence of at step size 1, started at , satisfies: accepts , . Taking to be a fixed universal Turing machine , becomes a single non-autonomous vector field parameterized by length only, so the discretized flow simulates any on any input of length .
Caveat on continuous flow. The discretization sequence is what reproduces the network iteration; it is not in general equal to the continuous flow of sampled at integer times. Splitting methods are only first-order accurate in the step size, and for step size 1 the gap is real. The continuous flow exists and is unique by Lipschitz of , but its values at integer times need not encode TM configurations. Furthermore, the vector field is non-autonomous (piecewise constant in , with one piece per unit step); whether the construction can be carried out with an autonomous vector field is left open. See Appendix H.4 for related open questions.
Proof. By Theorem 3, the width-4 ReLU network simulates a universal Turing machine on convex inputs . By Lemma 49, an associated width-5 leaky-ReLU network realizes the same iteration on the embedded set . By Lemma 48 applied to , there is a non-autonomous Lipschitz piecewise-affine vector field , piecewise constant in on unit intervals, whose Lie-Trotter splitting discretization at step 1 over time intervals reproduces . Setting (with Acc from the verification recipe of Section 4.1) closes the equivalence.
Reading. Width 4 in the discrete network and dimension 5 in the Neural ODE are the same quantity up to the leaky-ReLU emulation overhead. The “+1” is the cost of moving from ReLU to leaky-ReLU, the splittable activation required by the Duan correspondence. The question of whether Theorem 3 can be carried out directly with leaky-ReLU at width 4 (which would yield a dimension-4 Neural ODE), or whether the non-autonomous vector field can be made autonomous, is left open.
H.3 Verification hardness transfers
The verification spectrum of Theorem 7 transfers to Neural ODEs by Theorem 50.
Corollary 51 (Verification spectrum for Neural ODEs at dimension 5). For Lipschitz piecewise-affine Neural ODEs in dimension 5, with convex initial and acceptance regions , the discretized reachability problem “does the splitting-discretized trajectory enter within discretization steps?” is NP-complete with unary, NEXP-complete with binary, and RE-complete (undecidable) without a time bound.
An analogous transfer of Theorem 10 (smooth at width 6) to Neural ODEs requires extending the correspondence [Duan et al., 2024] from leaky-ReLU to other activations. The Duan et al. argument is stated for leaky-ReLU and relies specifically on its invertibility; we leave the extension to tanh, GELU, sigmoid, Swish, and other smooth activations as an open direction.
Practical reading. A practitioner verifying a low-dimensional Neural ODE faces the full hardness spectrum already at dimension 5. The empirical observation that complete verifiers degrade rapidly with integration time [Katz et al., 2017, Wang et al., 2021] is, on this account, an intrinsic complexity-theoretic phenomenon and not a solver artifact: integration time plays the role of Turing-machine time, and the hardness ladder is unconditional on solver design.
H.4 Open: pure continuous-time exact simulation
Theorem 50 establishes universality of Neural ODEs under splitting-method discretization. The discretized flow at integer times reproduces TM steps exactly. The continuous flow at non-integer times is well-defined (by Lipschitz of ) but need not encode any meaningful TM configuration.
A natural strengthening would be: a Lipschitz piecewise-affine whose continuous flow satisfies for every integer , for a non-trivial non-linear PA map. Whether this is achievable is open, and we record two related questions.
Three known regimes. For the broader question of continuous-time TM simulation, three regimes are established in the literature:
-
Polynomial (rather than piecewise-affine) vector fields [Bournez et al., 2007] (analytic flow, but no longer in the Neural-ODE class as commonly used).
-
Piecewise-constant discontinuous fields, e.g. PCD systems [Asarin et al., 1995, Koiran et al., 1994] (closed-form jumps at cell boundaries, but not Lipschitz).
-
Splitting-method discretization (Theorem 50): exact simulation at discretization times, with continuous interpolation between them.
The Lipschitz piecewise-affine class, the class most aligned with practical Neural ODEs, is not covered by any of these.
Two open questions. We highlight two natural open questions for future work, in increasing order of strength:
-
(Robust continuous-time) Does there exist an autonomous Lipschitz piecewise-affine vector field (for some constant ) such that the continuous flow simulates a universal Turing machine in the following robust sense: for every machine and input , the trajectory enters an -neighborhood of a designated accepting region in finite time iff accepts ?
-
(Exact continuous-time) Does there exist such an with exactly at integer times, for some non-trivial PA map derived from ?
We leave both questions for future work.