Effective presentations, homotopy invariance, and neural computation
16 October 2026 · Version 1.0
Rice’s theorem concerns effective descriptions of behavior, rather than the physical substrate implementing those descriptions. We formulate this distinction using an acceptable numbering of partial computable functions and an extensional presentation into an infinity groupoid or an infinity topos. A nontrivial Boolean semantic predicate cannot have a total computable pullback to program codes. Boolean observations factor through zero truncation, so Postnikov truncation preserves this obstruction whenever the predicate retains its two witnesses. A separate realizability formulation identifies the partial-function assembly as having no nontrivial decidable subobject in the effective topos. For neural computation, we give an explicit, effective compiler from register machines to finite rational ReLU recurrent circuits, prove its simulation invariant, and transfer Rice’s theorem to their partial input-output semantics. We distinguish this result from fixed-horizon rational ReLU verification and verification of closed finite-state systems, both of which are decidable under stated hypotheses. An exact-arithmetic implementation and finite simulation checks accompany the proofs. The contribution is an assumption-explicit synthesis and reproducible construction, rather than a claim that classical undecidability or neural universality is new.
Keywords: Rice’s theorem; categorical semantics; infinity topos; realizability; recurrent neural networks; verification; ReLU.
The phrase “a property of a neural network” may refer to its syntax, a bounded computation, an unbounded trajectory, or its entire partial input-output function. These are different decision problems. Rice’s theorem [1] addresses the last kind when the model effectively represents all partial computable functions. Neither approximation power on compact sets nor a large parameter count supplies this hypothesis.
Higher categorical semantics adds equivalences, paths between equivalences, and further coherence. A Boolean predicate that respects these identifications is still a predicate on connected components. Its effectiveness must be assessed relative to a presentation by finite codes. This paper makes that requirement explicit and proves a relative Rice theorem in an arbitrary nondegenerate infinity topos. The theorem does not assert that an infinity topos, by itself, enforces computability.
The neural application uses exact rational states, unbounded iteration, and a finite rational ReLU circuit as the recurrent transition cell. The dimension can depend on the program. We provide the compiler equations and an executable implementation; no theorem below depends on experimental behavior of a trained network. Earlier neural universality [6] and undecidability [7] are acknowledged. Our construction uses a different, explicitly specified interface from the weighted-language model of [7].
We work in classical external mathematics with a fixed universe of small sets and spaces. Internal topos statements are identified separately. All undecidability statements are uniform statements over finite descriptions, allowing unbounded running time and memory unless a bound is specified.
Definition 2.1 (acceptable numbering). Let be a universal partial computable evaluator. Its sections enumerate all unary partial computable functions. We assume a total computable specialization function satisfying Here is a computable pairing, and means equal defined outputs or joint divergence. Let be the set of these partial functions. Write when extensionally.
Lemma 2.2 (effective fixed point). For every total computable , there exists with .
Proof. Universality supplies a code for Put . Then, as partial computations, No step decides whether either computation terminates.
Theorem 2.3 (Rice). If contains some and omits some , there is no total computable such that
Proof. Given such , define the total computable code transformation For the fixed point of Lemma 2.2, implies , and implies . Both contradict correctness.
The theorem permits an algorithm to inspect every bit of a program’s syntax. It forbids a total correct answer when the required answer is extensional and nonconstant. It does not forbid semidecision procedures, incomplete sound analyses, or decisions on restricted subclasses.
Write for the infinity category of spaces and for a discrete space. An infinity groupoid is a space, with points, paths, and higher paths; is its set of connected components. The zero truncation retains those components and discards higher homotopy.
Here denotes a mapping space. An object is -truncated when every mapping space into it has vanishing homotopy groups above degree ; is left adjoint to the inclusion of these objects. An infinity topos is an accessible left exact localization of a presheaf infinity category for a small infinity category [4]. Left exact means preserving finite limits.
Definition 3.1 (extensional presentation). An extensional presentation of computable behavior in a space is a map such that implies a path . A Boolean semantic observation is a map . It is nontrivial on the presentation when and for some codes . It is effectively decidable on this presentation when its composite with is total computable.
This condition identifies all extensionally equal programs at the level of components. A groupoid containing only syntax isomorphisms or parameter permutations need not satisfy it. Merely localizing at chosen architecture symmetries does not establish the required hypothesis.
For an infinity category and fixed interface objects , one may take . Its points are operations, paths identify parallel operations, and higher paths express coherence. The presentation condition must still be verified for this choice.
Theorem 3.2 (higher semantic Rice theorem). For an extensional presentation , no nontrivial Boolean semantic observation is effectively decidable on codes.
Proof. The set is saturated under , because a map to a discrete space takes endpoints of every path to the same bit. It therefore defines a nontrivial subset of . A computable composite contradicts Theorem 2.3.
The semantic map can exist mathematically even though its pullback has no computable realizer. In particular, existence of a morphism in is not a claim that it is an algorithm.
Proposition 3.3 (truncation invariance). For every integer , Consequently Theorem 3.2 applies to the induced presentation in each , with the same bits and witnesses.
Proof. A zero-truncated target is -truncated for . Apply the universal property of truncation twice [4]. The factorizations preserve the composite on every code.
For example, take with , where the connected Eilenberg–Mac Lane space has its only nonzero homotopy group . Set . There is genuine higher homotopy, but every Boolean observation is independent of its connected second factor. This is an example of the theorem’s scope, not evidence that arbitrary higher invariants encode computability.
Definition 3.4 (relative effective decision in a topos). Let be a nondegenerate infinity topos, so its initial and terminal objects differ. Let be the constant-object functor, and put . Consider Let be the section induced by the numeral . Require whenever . A relative effective decision is a total recursive together with a homotopy .
Theorem 3.5 (relative topos Rice theorem). If there are codes with and , no relative effective decision exists.
Proof. Were such a decision, equality would give a path between the constant sections and of . The two coproduct injections are distinct in a nondegenerate topos, by disjointness of coproducts. Thus externally. The two witnesses give and . Apply Theorem 2.3.
No geometric point or enough-points assumption is used. The theorem concerns this specified external realization of codes. A nonconstant predicate elsewhere in need not be nontrivial on the presented behaviors. For an arbitrary subobject , a characteristic map to the subobject classifier expresses a proposition; a decision requires a factorization through . These are distinct requirements.
The mapping-space argument of Proposition 3.3 also holds in as Thus the same relative obstruction survives Postnikov truncation. This uses a reflective universal property; we do not assume that Postnikov truncation preserves arbitrary pullbacks. Separately, a geometric inverse-image functor , with nondegenerate, preserves the presentation hypotheses and the two witnesses. Theorem 3.5 then applies in . An observation that a further quotient makes constant is outside its nontriviality hypothesis.
Proposition 3.6 (Lawvere’s diagonal pattern). In a cartesian closed infinity category with terminal object, suppose represents every map up to homotopy: for every , some satisfies . Then every endomorphism has a homotopy fixed point.
Proof. Put and choose representing . Evaluation at gives .
This is Lawvere’s diagonal argument [2] with equalities replaced by homotopies. For , negation has no homotopy fixed point, obstructing the representation premise. Lemma 2.2 supplies the effective self-reference actually used by Rice’s theorem. A universal partial evaluator is not a total evaluation morphism representing every total Boolean function; we do not identify these premises.
An assembly over partial recursive application consists of a set and a nonempty set of realizers for each . A morphism is a set function tracked by a partial computable : for every , is defined and belongs to . The standard assembly embedding into Hyland’s effective topos is full and faithful [3]. This is an elementary realizability topos; we do not identify it with a Grothendieck infinity topos.
Define the behavior assembly and the Boolean assembly with realizer sets , .
Theorem 4.1 (realizability Rice theorem). Every morphism in is constant. Equivalently, has no nontrivial decidable subobject.
Proof. Fullness yields an assembly tracker for the underlying function. Every natural number is an index for a partial computable function, so is defined on every natural number and returns the required Boolean value. If the function were nonconstant, would decide a nontrivial extensional index set, contradicting Theorem 2.3. Conversely, each constant function has a constant tracker. Decidable subobjects are classified by maps to , giving the final claim.
This makes effectiveness part of the morphism notion. It does not say that every proposition about a partial function is trivial: characteristic maps to need not provide Boolean decisions.
Definition 5.1 (register programs). A program has finitely many labels and registers . Its instructions are:
Input initializes at a designated start label. Halting may occur initially. The finite-program model, allowing a finite number of scratch registers, computes exactly the partial recursive functions [5]. To recall the effective simulation, a tape is represented by two stacks encoded as base- integers. Push uses multiplication by the constant and addition of a digit; pop uses quotient and remainder by . Increment, decrement, zero-test loops and scratch registers implement these operations. The finite control and the two stack routines simulate each Turing step. Conversely a Turing machine directly simulates register instructions. Hardwiring parameters and a universal interpreter give an acceptable numbering. Hence there is a total effective translation from Definition 2.1’s codes to these programs.
Definition 5.2 (neural recurrent circuit). A cell is a finite acyclic circuit with rational affine gates and gates, taking to . Recurrence repeats the cell: . Skip connections and an affine output layer are permitted. Such a cell can also be arranged as a finite layered ReLU network by copying intermediate values, representing a signed value by its positive and negative parts if needed. We claim a recurrent circuit theorem, without assuming a single-layer update of the form .
Encode a configuration with label as Call these states well formed. They lie in , and the program counter is one-hot. Define For encoded counters, is exactly the indicator of . For and , ; the circuit uses this ReLU expression, not multiplication of two state variables.
For a decrement instruction at acting on , put The first branch is active precisely at an active zero test, the second at an active positive test. Route to for an increment, to and to for a decrement, and back to for a halt. Each new control coordinate is the sum of its incoming activations. Update each counter by All sums are finite and determined by the program. These are rational affine and ReLU operations only.
Theorem 5.3 (effective exact simulation). There is a total computable compiler satisfying for every register configuration . Consequently the well-formed states are forward invariant, and iteration simulates every finite number of register steps exactly.
Proof. If , and ; otherwise and . Hence the branch activations are Boolean. Exactly one instruction and one successor branch are active. The control-coordinate sums therefore give the next one-hot label. An active increment changes to . An active positive decrement changes it to . In that case , so the result is at most one. An inactive instruction or a zero branch adds no counter change. Halt leaves all coordinates fixed. These are exactly the register rules. Induction proves the iteration statement. The finite instruction list directly determines a finite DAG with rational coefficients, proving computability of compilation.
No invariant is claimed for arbitrary real states outside the encoded set. The counter values approach zero as register contents grow. Bounded state magnitude therefore does not supply finite memory: exact states require arbitrarily many bits. Converting input into is computable but need not be efficient in the binary length of .
Read a compiled circuit by checking its designated halt labels and, at halt, decoding to return . Exact rational decoding is effective: in lowest terms the numerator is one and the denominator is a power of two. A rational-cell execution is an ordinary partial computable procedure. Let denote this partial neural behavior.
Theorem 6.1 (compiler transfer). Suppose neural codes admit a total computable compiler with . For every nonempty proper , no algorithm that halts on every compiled code can correctly decide whether .
Proof. Composing the alleged decision with gives the total decision forbidden by Theorem 2.3.
Theorem 5.3 and the register translation provide this compiler. Membership in the compiler image need not itself be decidable: Theorem 6.1 is already a promise impossibility. It also rules out a total decision on any larger effective model containing the compiled circuits with the same semantics. Nontriviality must occur on the represented behaviors; universality ensures it for every nonempty proper .
Corollary 6.2. Each of the following problems is undecidable for the compiled neural class:
| Property of | Formal condition | Opposite witnesses |
|---|---|---|
| Termination at input zero | constant zero / nowhere defined | |
| Totality | constant zero / nowhere defined | |
| Implements zero everywhere | constant zero / constant one | |
| Never returns forbidden value one | constant zero / constant one |
Proof. Each property is extensional, and its two witnesses are partial computable functions. Apply Theorem 6.1.
The first property is semidecidable by simulation; its undecidability does not imply absence of a semidecision procedure. No claim is made that every Rice property has the same arithmetical complexity.
Corollary 6.3 (behavioral equivalence). There is no total algorithm deciding . If neural semantics has an extensional presentation into a space or topos as in Section 3, every nontrivial Boolean observation remains undecidable on neural codes. If, additionally, holds only if , deciding that path-existence relation is impossible.
Proof. An equivalence decision against a fixed constant-zero circuit would decide the third row of Corollary 6.2. The semantic observation claim is Theorem 3.2 or 3.5 after composition with . Under the additional faithfulness condition, path existence is exactly behavioral equality.
Proposition 6.4 (unbounded recurrent safety). For rational ReLU cells, deciding from a rational initial state whether a designated rational half-space is ever reached is undecidable, even when the simulated trajectory remains in the unit cube.
Proof. Specialize an arbitrary program and input to a register program run from zero. Compile it, and let be the half-space . On well-formed trajectories its left side is zero or one. The trajectory reaches exactly when the program halts. The initial state and half-space are rational and effective. A reachability decision would decide halting.
For arbitrary architectures, internal trajectory safety is not automatically a property of the eventual input-output function: two implementations can have the same outputs and different intermediate states. Proposition 6.4 therefore gives its own reduction. It does not silently infer every dynamical safety problem from extensionality.
Proposition 7.1 (bounded rational ReLU verification). Given a finite rational ReLU cell, a fixed finite horizon , a rational polyhedral initial-state set, and a finite Boolean combination of rational linear state constraints, existence of a violating trajectory of length at most is decidable. The same applies to a finite feedforward rational ReLU network.
Proof. Unroll the cell times. For each ReLU relation , choose one of the linear cases There are finitely many choices. Add the initial and violation constraints and decide the resulting finite systems of rational linear equalities and strict or weak inequalities. Boolean combinations can be put into finite disjunctive form. Linear real arithmetic is decidable, so finite enumeration decides existence. Universal safety is the complement of this existential problem. A finite feedforward graph is already a finite unrolling.
This argument establishes decidability, not an efficient algorithm; exact neural verification methods such as Reluplex [8] address computational cost. It also decides equality of two finite rational ReLU feedforward maps on a rational polyhedral domain, by testing whether any output coordinate differs. Such maps are total without an unbounded execution loop.
Proposition 7.2 (closed finite-state recurrence). A deterministic closed transition system on a known finite state space has decidable reachability and eventual halting from a specified initial state.
Proof. Simulate until the target is reached or a state repeats. At most distinct states are visited before repetition. Determinism makes all future states repeat the previously observed cycle, so a missing target will never appear.
A fixed-width numerical neural system with bounded storage and specified arithmetic can meet this hypothesis. An unbounded external tape, growing context, input stream, tool memory, or arbitrary-precision arithmetic can invalidate it. Noncomputable real parameters also fall outside the effective indexing assumed here; no physical hypercomputation conclusion follows from them.
Theorem 8.1 (no complete bilateral effective certification). Let be a nontrivial extensional property of the compiled neural behaviors. There cannot exist two computably enumerable certificate relations and that are sound for and its complement, respectively, and such that every compiled has a certificate on one side.
Proof. On a compiled input, dovetail the two certificate enumerations, searching all candidate certificates. Completeness eventually finds one; soundness determines the correct bit and prevents contradictory successful certificates. This is a total correct decision on the compiler image, contrary to Theorem 6.1.
The statement permits complete certification of one side when that side is semidecidable, proof-carrying models from a restricted class, and sound tools that return “unknown.” It also permits a bounded specification whose bound is part of the input. If a training or synthesis pipeline were claimed to produce a correct yes-or-no certificate for every arbitrary compiled recurrent model and a nontrivial extensional specification, Theorem 8.1 would refute that uniform guarantee. It says nothing about the success rate on a data distribution or a finite benchmark.
The accompanying standard-library Python implementation compiles instructions into a serialized DAG containing only rational affine and ReLU nodes. Execution uses exact fractions. Its independent integer interpreter is compared with neural transitions on 2,700 enumerated instruction-boundary states and 4,800 seeded multistep transitions. Additional checks cover 121 addition runs, absorbing halt, serialization, rejected malformed encodings, a growing counter checked at 1,101 successive times, and the closed finite-state repetition bound. Seven tests pass. These finite checks corroborate the compiler implementation; the mathematical proofs establish the universal statements. The artifacts do not contain a Lean, Coq, or other machine-checked proof and do not implement an undecidability solver.
The manuscript includes its Markdown, LaTeX, PDF and HTML
representations, the compiler, tests, examples, reference metadata and
SHA-256 checksums. Commands and interpretation limits are in
README.md. HTML uses MathML for browser-native mathematical
rendering.
Authorship and automation. Submitted under the responsible human author’s established public byline, Anonymous. OpenAI Codex assisted with research, mathematical formulation, proof drafting, implementation and artifact preparation. The responsible human author authorized submission. Automated checks concern the finite implementation evidence and document generation; they are not independent peer review. No assertion of editorial acceptance or publication is made by the manuscript.
H. G. Rice. “Classes of recursively enumerable sets and their decision problems.” Transactions of the American Mathematical Society 74(2), 358–366 (1953). Publisher PDF. DOI: 10.1090/S0002-9947-1953-0053041-6.
F. W. Lawvere. “Diagonal arguments and cartesian closed categories.” Lecture Notes in Mathematics 92, 134–145 (1969). Reprinted with author commentary, Reprints in Theory and Applications of Categories 15, 1–13 (2006). Journal version.
J. M. E. Hyland. “The Effective Topos.” In A. S. Troelstra and D. van Dalen (eds.), The L. E. J. Brouwer Centenary Symposium, Studies in Logic and the Foundations of Mathematics 110, 165–216 (1982). Author-hosted text. DOI: 10.1016/S0049-237X(09)70129-6.
J. Lurie. Higher Topos Theory. Annals of Mathematics Studies 170, Princeton University Press (2009), especially Section 5.5.6 on truncated objects. Author’s preprint.
M. L. Minsky. “Recursive Unsolvability of Post’s Problem of ‘Tag’ and other Topics in Theory of Turing Machines.” Annals of Mathematics 74(3), 437–455 (1961). DOI: 10.2307/1970290.
H. T. Siegelmann and E. D. Sontag. “On the Computational Power of Neural Nets.” Journal of Computer and System Sciences 50(1), 132–150 (1995). Author-hosted published paper.
Yining Chen, Sorcha Gilroy, Andreas Maletti, Jonathan May and Kevin Knight. “Recurrent Neural Networks as Weighted Language Recognizers.” NAACL-HLT, Volume 1, 2261–2271 (2018). Publisher text and metadata. DOI: 10.18653/v1/N18-1205.
Guy Katz, Clark Barrett, David L. Dill, Kyle Julian and Mykel J. Kochenderfer. “Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks.” CAV (2017). Author preprint.