Independent scholarship · Open accessThe monthly digest

Full manuscript · browser edition

Rice's Theorem in Higher Categorical Semantics: Effective Presentations and Neural Computation

Continuous, single-column reading. Equations, tables, proofs, references and appendices stay in document order.

Contents · 12 sections

Rice’s Theorem in Higher Categorical Semantics

Abstract

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.

1. Scope and contribution

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.

2. Effective descriptions and the diagonal argument

Definition 2.1 (acceptable numbering). Let φ:N×N⇀N,φe(x)=φ(e,x),\varphi:\mathbb N\times\mathbb N\rightharpoonup\mathbb N, \qquad \varphi_e(x)=\varphi(e,x), be a universal partial computable evaluator. Its sections enumerate all unary partial computable functions. We assume a total computable specialization function ss satisfying φs(a,z)(x)≃φa(⟨z,x⟩).\varphi_{s(a,z)}(x)\simeq\varphi_a(\langle z,x\rangle). Here ⟨−,−⟩\langle-,-\rangle is a computable pairing, and ≃\simeq means equal defined outputs or joint divergence. Let R\mathcal R be the set of these partial functions. Write e∼fe\sim f when φe=φf\varphi_e=\varphi_f extensionally.

Lemma 2.2 (effective fixed point). For every total computable t:N→Nt:\mathbb N\to\mathbb N, there exists qq with φq=φt(q)\varphi_q=\varphi_{t(q)}.

Proof. Universality supplies a code bb for (z,x)⟼φt(s(z,z))(x).(z,x)\longmapsto\varphi_{t(s(z,z))}(x). Put q=s(b,b)q=s(b,b). Then, as partial computations, φq(x)≃φb(⟨b,x⟩)≃φt(s(b,b))(x)=φt(q)(x).\varphi_q(x)\simeq\varphi_b(\langle b,x\rangle) \simeq\varphi_{t(s(b,b))}(x)=\varphi_{t(q)}(x). No step decides whether either computation terminates. □\square

Theorem 2.3 (Rice). If P⊆RP\subseteq\mathcal R contains some φa\varphi_a and omits some φb\varphi_b, there is no total computable D:N→{0,1}D:\mathbb N\to\{0,1\} such that D(e)=1⟺φe∈P.D(e)=1\quad\Longleftrightarrow\quad\varphi_e\in P.

Proof. Given such DD, define the total computable code transformation t(e)={bD(e)=1,aD(e)=0.t(e)=\begin{cases}b&D(e)=1,\\a&D(e)=0.\end{cases} For the fixed point qq of Lemma 2.2, D(q)=1D(q)=1 implies φq=φb∉P\varphi_q=\varphi_b\notin P, and D(q)=0D(q)=0 implies φq=φa∈P\varphi_q=\varphi_a\in P. Both contradict correctness. □\square

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.

3. Higher categorical and topos formulations

Write S\mathcal S for the infinity category of spaces and 2={0,1}\mathbf2=\{0,1\} for a discrete space. An infinity groupoid is a space, with points, paths, and higher paths; π0B\pi_0 B is its set of connected components. The zero truncation τ≤0B\tau_{\leq0}B retains those components and discards higher homotopy.

Here Map⁡\operatorname{Map} denotes a mapping space. An object is nn-truncated when every mapping space into it has vanishing homotopy groups above degree nn; τ≤n\tau_{\leq n} is left adjoint to the inclusion of these objects. An infinity topos is an accessible left exact localization of a presheaf infinity category Fun⁡(Cop,S)\operatorname{Fun}(\mathcal C^{\mathrm{op}},\mathcal S) for a small infinity category C\mathcal C [4]. Left exact means preserving finite limits.

Definition 3.1 (extensional presentation). An extensional presentation of computable behavior in a space BB is a map d:Ndisc⟶Bd:\mathbb N_{\mathrm{disc}}\longrightarrow B such that φe=φf\varphi_e=\varphi_f implies a path d(e)≃d(f)d(e)\simeq d(f). A Boolean semantic observation is a map p:B→2p:B\to\mathbf2. It is nontrivial on the presentation when p(d(a))=1p(d(a))=1 and p(d(b))=0p(d(b))=0 for some codes a,ba,b. It is effectively decidable on this presentation when its composite with dd 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 C\mathcal C and fixed interface objects X,YX,Y, one may take B=Map⁡C(X,Y)B=\operatorname{Map}_{\mathcal C}(X,Y). 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 dd, no nontrivial Boolean semantic observation pp is effectively decidable on codes.

Proof. The set {e:p(d(e))=1}\{e:p(d(e))=1\} is saturated under ∼\sim, because a map to a discrete space takes endpoints of every path to the same bit. It therefore defines a nontrivial subset of R\mathcal R. A computable composite p∘dp\circ d contradicts Theorem 2.3. □\square

The semantic map pp can exist mathematically even though its pullback has no computable realizer. In particular, existence of a morphism in S\mathcal S is not a claim that it is an algorithm.

Proposition 3.3 (truncation invariance). For every integer n≥0n\geq0, Map⁡(B,2)≃Map⁡(τ≤nB,2)≃Map⁡(τ≤0B,2).\operatorname{Map}(B,\mathbf2) \simeq\operatorname{Map}(\tau_{\leq n}B,\mathbf2) \simeq\operatorname{Map}(\tau_{\leq0}B,\mathbf2). Consequently Theorem 3.2 applies to the induced presentation in each τ≤nB\tau_{\leq n}B, with the same bits and witnesses.

Proof. A zero-truncated target is nn-truncated for n≥0n\geq0. Apply the universal property of truncation twice [4]. The factorizations preserve the composite on every code. □\square

For example, take B=Rdisc×K(Z,k)B=\mathcal R_{\mathrm{disc}}\times K(\mathbb Z,k) with k≥1k\geq1, where the connected Eilenberg–Mac Lane space K(Z,k)K(\mathbb Z,k) has its only nonzero homotopy group πk=Z\pi_k=\mathbb Z. Set d(e)=(φe,∗)d(e)=(\varphi_e,*). 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 E\mathcal E be a nondegenerate infinity topos, so its initial and terminal objects differ. Let Δ:S→E\Delta:\mathcal S\to\mathcal E be the constant-object functor, and put 2E=1⨿1=Δ2\mathbf2_{\mathcal E}=1\amalg1=\Delta\mathbf2. Consider d:ΔN→B,p:B→2E.d:\Delta\mathbb N\to B,\qquad p:B\to\mathbf2_{\mathcal E}. Let de:1→Bd_e:1\to B be the section induced by the numeral ee. Require de≃dfd_e\simeq d_f whenever φe=φf\varphi_e=\varphi_f. A relative effective decision is a total recursive D:N→2D:\mathbb N\to\mathbf2 together with a homotopy p∘d≃ΔDp\circ d\simeq\Delta D.

Theorem 3.5 (relative topos Rice theorem). If there are codes a,ba,b with pda≃1p d_a\simeq1 and pdb≃0p d_b\simeq0, no relative effective decision exists.

Proof. Were DD such a decision, equality φe=φf\varphi_e=\varphi_f would give a path between the constant sections D(e)D(e) and D(f)D(f) of 1⨿11\amalg1. The two coproduct injections are distinct in a nondegenerate topos, by disjointness of coproducts. Thus D(e)=D(f)D(e)=D(f) externally. The two witnesses give D(a)=1D(a)=1 and D(b)=0D(b)=0. Apply Theorem 2.3. □\square

No geometric point or enough-points assumption is used. The theorem concerns this specified external realization of codes. A nonconstant predicate elsewhere in BB need not be nontrivial on the presented behaviors. For an arbitrary subobject U↪BU\hookrightarrow B, a characteristic map to the subobject classifier ΩE\Omega_{\mathcal E} expresses a proposition; a decision requires a factorization through 2E\mathbf2_{\mathcal E}. These are distinct requirements.

The mapping-space argument of Proposition 3.3 also holds in E\mathcal E as Map⁡E(B,2E)≃Map⁡E(τ≤nB,2E).\operatorname{Map}_{\mathcal E}(B,\mathbf2_{\mathcal E}) \simeq\operatorname{Map}_{\mathcal E}(\tau_{\leq n}B,\mathbf2_{\mathcal E}). 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 f∗:E→Ff^*:\mathcal E\to\mathcal F, with F\mathcal F nondegenerate, preserves the presentation hypotheses and the two witnesses. Theorem 3.5 then applies in F\mathcal F. 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 u:A×A→Yu:A\times A\to Y represents every map A→YA\to Y up to homotopy: for every h:A→Yh:A\to Y, some a:1→Aa:1\to A satisfies u(a,−)≃hu(a,-)\simeq h. Then every endomorphism v:Y→Yv:Y\to Y has a homotopy fixed point.

Proof. Put h=v∘u∘diagAh=v\circ u\circ\mathrm{diag}_A and choose aa representing hh. Evaluation at aa gives y=u(a,a)≃v(u(a,a))=v(y)y=u(a,a)\simeq v(u(a,a))=v(y). □\square

This is Lawvere’s diagonal argument [2] with equalities replaced by homotopies. For Y=2Y=\mathbf2, 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.

4. A realizability interpretation

An assembly over partial recursive application consists of a set XX and a nonempty set EX(x)⊆NE_X(x)\subseteq\mathbb N of realizers for each x∈Xx\in X. A morphism f:X→Yf:X\to Y is a set function tracked by a partial computable tt: for every e∈EX(x)e\in E_X(x), t(e)t(e) is defined and belongs to EY(f(x))E_Y(f(x)). The standard assembly embedding into Hyland’s effective topos Eff\mathrm{Eff} 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 Beh=(R,E),E(f)={e:φe=f},\mathsf{Beh}=(\mathcal R,E),\qquad E(f)=\{e:\varphi_e=f\}, and the Boolean assembly with realizer sets E(0)={0}E(0)=\{0\}, E(1)={1}E(1)=\{1\}.

Theorem 4.1 (realizability Rice theorem). Every morphism Beh→2\mathsf{Beh}\to\mathbf2 in Eff\mathrm{Eff} is constant. Equivalently, Beh\mathsf{Beh} has no nontrivial decidable subobject.

Proof. Fullness yields an assembly tracker tt for the underlying function. Every natural number is an index for a partial computable function, so tt is defined on every natural number and returns the required Boolean value. If the function were nonconstant, tt 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 1⨿11\amalg1, giving the final claim. □\square

This makes effectiveness part of the morphism notion. It does not say that every proposition about a partial function is trivial: characteristic maps to ΩEff\Omega_{\mathrm{Eff}} need not provide Boolean decisions.

5. An explicit rational ReLU recurrent model

Definition 5.1 (register programs). A program has finitely many labels and registers c0,…,cm−1∈Nc_0,\ldots,c_{m-1}\in\mathbb N. Its instructions are:

Input xx initializes (c0,c1,…)=(x,0,…)(c_0,c_1,\ldots)=(x,0,\ldots) 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-bb integers. Push uses multiplication by the constant bb and addition of a digit; pop uses quotient and remainder by bb. 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 σ(t)=max⁡(0,t)\sigma(t)=\max(0,t) gates, taking z∈Qdz\in\mathbb Q^d to F(z)∈QdF(z)\in\mathbb Q^d. Recurrence repeats the cell: zt+1=F(zt)z_{t+1}=F(z_t). 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 σ(Az+b)\sigma(Az+b).

Encode a configuration with label ℓ\ell as ι(ℓ,c)=(p0,…,pL−1,r0,…,rm−1),pk={1k=ℓ,0k≠ℓ,rj=2−cj.\iota(\ell,c)=(p_0,\ldots,p_{L-1},r_0,\ldots,r_{m-1}), \quad p_k=\begin{cases}1&k=\ell,\\0&k\ne\ell,\end{cases} \quad r_j=2^{-c_j}. Call these states well formed. They lie in [0,1]L+m[0,1]^{L+m}, and the program counter is one-hot. Define Z(r)=σ(2r−1),G(b,r)=σ(r+b−1).Z(r)=\sigma(2r-1),\qquad G(b,r)=\sigma(r+b-1). For encoded counters, Z(rj)Z(r_j) is exactly the indicator of cj=0c_j=0. For b∈{0,1}b\in\{0,1\} and 0≤r≤10\leq r\leq1, G(b,r)=brG(b,r)=br; the circuit uses this ReLU expression, not multiplication of two state variables.

For a decrement instruction at ℓ\ell acting on jj, put aℓ0=σ(pℓ+Z(rj)−1),aℓ+=σ(pℓ−Z(rj)).a_{\ell0}=\sigma(p_\ell+Z(r_j)-1),\qquad a_{\ell+}=\sigma(p_\ell-Z(r_j)). The first branch is active precisely at an active zero test, the second at an active positive test. Route pℓp_\ell to kk for an increment, aℓ0a_{\ell0} to k0k_0 and aℓ+a_{\ell+} to k+k_+ for a decrement, and pℓp_\ell back to ℓ\ell for a halt. Each new control coordinate is the sum of its incoming activations. Update each counter by rj′=rj−12∑ℓ:INC(j,−)G(pℓ,rj)+∑ℓ:DEC(j,−,−)G(aℓ+,rj).r'_j=r_j -\frac12\sum_{\ell:\mathrm{INC}(j,-)}G(p_\ell,r_j) +\sum_{\ell:\mathrm{DEC}(j,-,-)}G(a_{\ell+},r_j). 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 M↦FMM\mapsto F_M satisfying FM(ι(C))=ι(stepM(C))F_M(\iota(C))=\iota(\mathrm{step}_M(C)) for every register configuration CC. Consequently the well-formed states are forward invariant, and iteration simulates every finite number of register steps exactly.

Proof. If cj=0c_j=0, rj=1r_j=1 and Z(rj)=1Z(r_j)=1; otherwise rj≤1/2r_j\leq1/2 and Z(rj)=0Z(r_j)=0. 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 rjr_j to rj−rj/2=2−(cj+1)r_j-r_j/2=2^{-(c_j+1)}. An active positive decrement changes it to 2rj=2−(cj−1)2r_j=2^{-(c_j-1)}. In that case cj≥1c_j\geq1, 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. □\square

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 xx into 2−x2^{-x} is computable but need not be efficient in the binary length of xx.

Read a compiled circuit by checking its designated halt labels and, at halt, decoding r0=2−yr_0=2^{-y} to return yy. 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 νN:N⇀N\nu_N:\mathbb N\rightharpoonup\mathbb N denote this partial neural behavior.

6. Neural Rice theorems and concrete specifications

Theorem 6.1 (compiler transfer). Suppose neural codes admit a total computable compiler CC with νC(e)=φe\nu_{C(e)}=\varphi_e. For every nonempty proper P⊂RP\subset\mathcal R, no algorithm that halts on every compiled code can correctly decide whether νC(e)∈P\nu_{C(e)}\in P.

Proof. Composing the alleged decision with CC gives the total decision forbidden by Theorem 2.3. □\square

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 P⊂RP\subset\mathcal R.

Corollary 6.2. Each of the following problems is undecidable for the compiled neural class:

Property of νN\nu_N Formal condition Opposite witnesses
Termination at input zero νN(0)↓\nu_N(0)\downarrow constant zero / nowhere defined
Totality ∀x  νN(x)↓\forall x\;\nu_N(x)\downarrow constant zero / nowhere defined
Implements zero everywhere νN=(x↦0)\nu_N= (x\mapsto0) constant zero / constant one
Never returns forbidden value one ∀x  (νN(x)↓⇒νN(x)≠1)\forall x\;(\nu_N(x)\downarrow\Rightarrow\nu_N(x)\ne1) constant zero / constant one

Proof. Each property is extensional, and its two witnesses are partial computable functions. Apply Theorem 6.1. □\square

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 νN=νN′\nu_N=\nu_{N'}. If neural semantics has an extensional presentation dd into a space or topos as in Section 3, every nontrivial Boolean observation remains undecidable on neural codes. If, additionally, d(N)≃d(N′)d(N)\simeq d(N') holds only if νN=νN′\nu_N=\nu_{N'}, 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 CC. Under the additional faithfulness condition, path existence is exactly behavioral equality. □\square

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 HH be the half-space ∑h haltph≥1/2\sum_{h\text{ halt}}p_h\geq1/2. On well-formed trajectories its left side is zero or one. The trajectory reaches HH exactly when the program halts. The initial state and half-space are rational and effective. A reachability decision would decide halting. □\square

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.

7. Decidable boundaries

Proposition 7.1 (bounded rational ReLU verification). Given a finite rational ReLU cell, a fixed finite horizon TT, 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 TT is decidable. The same applies to a finite feedforward rational ReLU network.

Proof. Unroll the cell TT times. For each ReLU relation y=max⁡(0,z)y=\max(0,z), choose one of the linear cases (z≥0 ∧ y=z)or(z≤0 ∧ y=0).(z\geq0\ \wedge\ y=z)\quad\text{or}\quad(z\leq0\ \wedge\ y=0). 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. □\square

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 SS has decidable reachability and eventual halting from a specified initial state.

Proof. Simulate until the target is reached or a state repeats. At most ∣S∣|S| distinct states are visited before repetition. Determinism makes all future states repeat the previously observed cycle, so a missing target will never appear. □\square

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.

8. Proof certificates and useful verification

Theorem 8.1 (no complete bilateral effective certification). Let PP be a nontrivial extensional property of the compiled neural behaviors. There cannot exist two computably enumerable certificate relations V+(N,c)V_+(N,c) and V−(N,c)V_-(N,c) that are sound for PP and its complement, respectively, and such that every compiled NN 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. □\square

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.

9. Artifacts, evidence, and authorship

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.

References

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

Complete flattened LaTeX source
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
\documentclass[
  11pt,
  letterpaper,
]{article}
\usepackage{amsmath,amssymb}

\usepackage{iftex}

\ifPDFTeX
  \usepackage[T1]{fontenc}

  \usepackage[utf8]{inputenc}

  \usepackage{textcomp}
 \else   \usepackage{unicode-math}
   \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}

\ifPDFTeX\else
  \fi


\makeatletter
\@ifundefined{KOMAClassName}{      \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}
}{  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}

\usepackage[margin=1in]{geometry}

\usepackage{longtable,booktabs,array}

\usepackage{calc}
 \usepackage{etoolbox}

\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
\usepackage{footnote}

\makesavenoteenv{longtable}
\setlength{\emergencystretch}{3em} \providecommand{\tightlist}{  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} \ifLuaTeX
\usepackage[bidi=basic]{babel}

\else
\usepackage[bidi=default]{babel}

\fi
\babelprovide[main,import]{english}
\let\LanguageShortHands\languageshorthands
\def\languageshorthands#1{}
\ifLuaTeX
  \usepackage{selnolig}
  \fi
\usepackage{hyperref}

 \urlstyle{same}
\hypersetup{
  pdftitle={Rice's Theorem in Higher Categorical Semantics},
  pdfauthor={Anonymous},
  pdflang={en},
  colorlinks=true,
  linkcolor={MidnightBlue},
  filecolor={Maroon},
  citecolor={Blue},
  urlcolor={MidnightBlue},
  pdfcreator={LaTeX via pandoc}}

\title{Rice's Theorem in Higher Categorical Semantics}
\usepackage{etoolbox}

\makeatletter
\providecommand{\subtitle}[1]{  \apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{Effective presentations, homotopy invariance, and neural
computation}
\author{Anonymous}
\date{16 October 2026 · Version 1.0}

\begin{document}
\maketitle

\hypertarget{abstract}{\subsection{Abstract}\label{abstract}}

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.

\textbf{Keywords:} Rice's theorem; categorical semantics; infinity
topos; realizability; recurrent neural networks; verification; ReLU.

\hypertarget{scope-and-contribution}{\subsection{1. Scope and contribution}\label{scope-and-contribution}}

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.

\hypertarget{effective-descriptions-and-the-diagonal-argument}{\subsection{2. Effective descriptions and the diagonal
argument}\label{effective-descriptions-and-the-diagonal-argument}}

\textbf{Definition 2.1 (acceptable numbering).} Let \[
\varphi:\mathbb N\times\mathbb N\rightharpoonup\mathbb N,
\qquad \varphi_e(x)=\varphi(e,x),
\] be a universal partial computable evaluator. Its sections enumerate
all unary partial computable functions. We assume a total computable
specialization function \(s\) satisfying \[
\varphi_{s(a,z)}(x)\simeq\varphi_a(\langle z,x\rangle).
\] Here \(\langle-,-\rangle\) is a computable pairing, and \(\simeq\)
means equal defined outputs or joint divergence. Let \(\mathcal R\) be
the set of these partial functions. Write \(e\sim f\) when
\(\varphi_e=\varphi_f\) extensionally.

\textbf{Lemma 2.2 (effective fixed point).} For every total computable
\(t:\mathbb N\to\mathbb N\), there exists \(q\) with
\(\varphi_q=\varphi_{t(q)}\).

\emph{Proof.} Universality supplies a code \(b\) for \[
(z,x)\longmapsto\varphi_{t(s(z,z))}(x).
\] Put \(q=s(b,b)\). Then, as partial computations, \[
\varphi_q(x)\simeq\varphi_b(\langle b,x\rangle)
\simeq\varphi_{t(s(b,b))}(x)=\varphi_{t(q)}(x).
\] No step decides whether either computation terminates. \(\square\)

\textbf{Theorem 2.3 (Rice).} If \(P\subseteq\mathcal R\) contains some
\(\varphi_a\) and omits some \(\varphi_b\), there is no total computable
\(D:\mathbb N\to\{0,1\}\) such that \[
D(e)=1\quad\Longleftrightarrow\quad\varphi_e\in P.
\]

\emph{Proof.} Given such \(D\), define the total computable code
transformation \[
t(e)=\begin{cases}b&D(e)=1,\\a&D(e)=0.\end{cases}
\] For the fixed point \(q\) of Lemma 2.2, \(D(q)=1\) implies
\(\varphi_q=\varphi_b\notin P\), and \(D(q)=0\) implies
\(\varphi_q=\varphi_a\in P\). Both contradict correctness. \(\square\)

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.

\hypertarget{higher-categorical-and-topos-formulations}{\subsection{3. Higher categorical and topos
formulations}\label{higher-categorical-and-topos-formulations}}

Write \(\mathcal S\) for the infinity category of spaces and
\(\mathbf2=\{0,1\}\) for a discrete space. An infinity groupoid is a
space, with points, paths, and higher paths; \(\pi_0 B\) is its set of
connected components. The zero truncation \(\tau_{\leq0}B\) retains
those components and discards higher homotopy.

Here \(\operatorname{Map}\) denotes a mapping space. An object is
\(n\)-truncated when every mapping space into it has vanishing homotopy
groups above degree \(n\); \(\tau_{\leq n}\) is left adjoint to the
inclusion of these objects. An infinity topos is an accessible left
exact localization of a presheaf infinity category
\(\operatorname{Fun}(\mathcal C^{\mathrm{op}},\mathcal S)\) for a small
infinity category \(\mathcal C\) {[}4{]}. Left exact means preserving
finite limits.

\textbf{Definition 3.1 (extensional presentation).} An extensional
presentation of computable behavior in a space \(B\) is a map \[
d:\mathbb N_{\mathrm{disc}}\longrightarrow B
\] such that \(\varphi_e=\varphi_f\) implies a path \(d(e)\simeq d(f)\).
A Boolean semantic observation is a map \(p:B\to\mathbf2\). It is
nontrivial on the presentation when \(p(d(a))=1\) and \(p(d(b))=0\) for
some codes \(a,b\). It is effectively decidable on this presentation
when its composite with \(d\) 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 \(\mathcal C\) and fixed interface objects
\(X,Y\), one may take \(B=\operatorname{Map}_{\mathcal C}(X,Y)\). Its
points are operations, paths identify parallel operations, and higher
paths express coherence. The presentation condition must still be
verified for this choice.

\textbf{Theorem 3.2 (higher semantic Rice theorem).} For an extensional
presentation \(d\), no nontrivial Boolean semantic observation \(p\) is
effectively decidable on codes.

\emph{Proof.} The set \(\{e:p(d(e))=1\}\) is saturated under \(\sim\),
because a map to a discrete space takes endpoints of every path to the
same bit. It therefore defines a nontrivial subset of \(\mathcal R\). A
computable composite \(p\circ d\) contradicts Theorem 2.3. \(\square\)

The semantic map \(p\) can exist mathematically even though its pullback
has no computable realizer. In particular, existence of a morphism in
\(\mathcal S\) is not a claim that it is an algorithm.

\textbf{Proposition 3.3 (truncation invariance).} For every integer
\(n\geq0\), \[
\operatorname{Map}(B,\mathbf2)
\simeq\operatorname{Map}(\tau_{\leq n}B,\mathbf2)
\simeq\operatorname{Map}(\tau_{\leq0}B,\mathbf2).
\] Consequently Theorem 3.2 applies to the induced presentation in each
\(\tau_{\leq n}B\), with the same bits and witnesses.

\emph{Proof.} A zero-truncated target is \(n\)-truncated for \(n\geq0\).
Apply the universal property of truncation twice {[}4{]}. The
factorizations preserve the composite on every code. \(\square\)

For example, take \(B=\mathcal R_{\mathrm{disc}}\times K(\mathbb Z,k)\)
with \(k\geq1\), where the connected Eilenberg--Mac Lane space
\(K(\mathbb Z,k)\) has its only nonzero homotopy group
\(\pi_k=\mathbb Z\). Set \(d(e)=(\varphi_e,*)\). 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.

\textbf{Definition 3.4 (relative effective decision in a topos).} Let
\(\mathcal E\) be a nondegenerate infinity topos, so its initial and
terminal objects differ. Let \(\Delta:\mathcal S\to\mathcal E\) be the
constant-object functor, and put
\(\mathbf2_{\mathcal E}=1\amalg1=\Delta\mathbf2\). Consider \[
d:\Delta\mathbb N\to B,\qquad p:B\to\mathbf2_{\mathcal E}.
\] Let \(d_e:1\to B\) be the section induced by the numeral \(e\).
Require \(d_e\simeq d_f\) whenever \(\varphi_e=\varphi_f\). A relative
effective decision is a total recursive \(D:\mathbb N\to\mathbf2\)
together with a homotopy \(p\circ d\simeq\Delta D\).

\textbf{Theorem 3.5 (relative topos Rice theorem).} If there are codes
\(a,b\) with \(p d_a\simeq1\) and \(p d_b\simeq0\), no relative
effective decision exists.

\emph{Proof.} Were \(D\) such a decision, equality
\(\varphi_e=\varphi_f\) would give a path between the constant sections
\(D(e)\) and \(D(f)\) of \(1\amalg1\). The two coproduct injections are
distinct in a nondegenerate topos, by disjointness of coproducts. Thus
\(D(e)=D(f)\) externally. The two witnesses give \(D(a)=1\) and
\(D(b)=0\). Apply Theorem 2.3. \(\square\)

No geometric point or enough-points assumption is used. The theorem
concerns this specified external realization of codes. A nonconstant
predicate elsewhere in \(B\) need not be nontrivial on the presented
behaviors. For an arbitrary subobject \(U\hookrightarrow B\), a
characteristic map to the subobject classifier \(\Omega_{\mathcal E}\)
expresses a proposition; a decision requires a factorization through
\(\mathbf2_{\mathcal E}\). These are distinct requirements.

The mapping-space argument of Proposition 3.3 also holds in
\(\mathcal E\) as \[
\operatorname{Map}_{\mathcal E}(B,\mathbf2_{\mathcal E})
\simeq\operatorname{Map}_{\mathcal E}(\tau_{\leq n}B,\mathbf2_{\mathcal E}).
\] 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 \(f^*:\mathcal E\to\mathcal F\), with
\(\mathcal F\) nondegenerate, preserves the presentation hypotheses and
the two witnesses. Theorem 3.5 then applies in \(\mathcal F\). An
observation that a further quotient makes constant is outside its
nontriviality hypothesis.

\textbf{Proposition 3.6 (Lawvere's diagonal pattern).} In a cartesian
closed infinity category with terminal object, suppose
\(u:A\times A\to Y\) represents every map \(A\to Y\) up to homotopy: for
every \(h:A\to Y\), some \(a:1\to A\) satisfies \(u(a,-)\simeq h\). Then
every endomorphism \(v:Y\to Y\) has a homotopy fixed point.

\emph{Proof.} Put \(h=v\circ u\circ\mathrm{diag}_A\) and choose \(a\)
representing \(h\). Evaluation at \(a\) gives
\(y=u(a,a)\simeq v(u(a,a))=v(y)\). \(\square\)

This is Lawvere's diagonal argument {[}2{]} with equalities replaced by
homotopies. For \(Y=\mathbf2\), 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.

\hypertarget{a-realizability-interpretation}{\subsection{4. A realizability
interpretation}\label{a-realizability-interpretation}}

An assembly over partial recursive application consists of a set \(X\)
and a nonempty set \(E_X(x)\subseteq\mathbb N\) of realizers for each
\(x\in X\). A morphism \(f:X\to Y\) is a set function tracked by a
partial computable \(t\): for every \(e\in E_X(x)\), \(t(e)\) is defined
and belongs to \(E_Y(f(x))\). The standard assembly embedding into
Hyland's effective topos \(\mathrm{Eff}\) 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 \[
\mathsf{Beh}=(\mathcal R,E),\qquad E(f)=\{e:\varphi_e=f\},
\] and the Boolean assembly with realizer sets \(E(0)=\{0\}\),
\(E(1)=\{1\}\).

\textbf{Theorem 4.1 (realizability Rice theorem).} Every morphism
\(\mathsf{Beh}\to\mathbf2\) in \(\mathrm{Eff}\) is constant.
Equivalently, \(\mathsf{Beh}\) has no nontrivial decidable subobject.

\emph{Proof.} Fullness yields an assembly tracker \(t\) for the
underlying function. Every natural number is an index for a partial
computable function, so \(t\) is defined on every natural number and
returns the required Boolean value. If the function were nonconstant,
\(t\) 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 \(1\amalg1\), giving the
final claim. \(\square\)

This makes effectiveness part of the morphism notion. It does not say
that every proposition about a partial function is trivial:
characteristic maps to \(\Omega_{\mathrm{Eff}}\) need not provide
Boolean decisions.

\hypertarget{an-explicit-rational-relu-recurrent-model}{\subsection{5. An explicit rational ReLU recurrent
model}\label{an-explicit-rational-relu-recurrent-model}}

\textbf{Definition 5.1 (register programs).} A program has finitely many
labels and registers \(c_0,\ldots,c_{m-1}\in\mathbb N\). Its
instructions are:

\begin{itemize}
\tightlist
\item
  \(\mathrm{INC}(j,k)\): increase \(c_j\) by one and go to \(k\);
\item
  \(\mathrm{DEC}(j,k_0,k_+)\): if \(c_j=0\) go to \(k_0\); otherwise
  decrease it by one and go to \(k_+\);
\item
  \(\mathrm{HALT}\): return \(c_0\) and remain in the same
  configuration.
\end{itemize}

Input \(x\) initializes \((c_0,c_1,\ldots)=(x,0,\ldots)\) 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-\(b\)
integers. Push uses multiplication by the constant \(b\) and addition of
a digit; pop uses quotient and remainder by \(b\). 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.

\textbf{Definition 5.2 (neural recurrent circuit).} A cell is a finite
acyclic circuit with rational affine gates and \(\sigma(t)=\max(0,t)\)
gates, taking \(z\in\mathbb Q^d\) to \(F(z)\in\mathbb Q^d\). Recurrence
repeats the cell: \(z_{t+1}=F(z_t)\). 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 \(\sigma(Az+b)\).

Encode a configuration with label \(\ell\) as \[
\iota(\ell,c)=(p_0,\ldots,p_{L-1},r_0,\ldots,r_{m-1}),
\quad p_k=\begin{cases}1&k=\ell,\\0&k\ne\ell,\end{cases}
\quad r_j=2^{-c_j}.
\] Call these states well formed. They lie in \([0,1]^{L+m}\), and the
program counter is one-hot. Define \[
Z(r)=\sigma(2r-1),\qquad G(b,r)=\sigma(r+b-1).
\] For encoded counters, \(Z(r_j)\) is exactly the indicator of
\(c_j=0\). For \(b\in\{0,1\}\) and \(0\leq r\leq1\), \(G(b,r)=br\); the
circuit uses this ReLU expression, not multiplication of two state
variables.

For a decrement instruction at \(\ell\) acting on \(j\), put \[
a_{\ell0}=\sigma(p_\ell+Z(r_j)-1),\qquad
a_{\ell+}=\sigma(p_\ell-Z(r_j)).
\] The first branch is active precisely at an active zero test, the
second at an active positive test. Route \(p_\ell\) to \(k\) for an
increment, \(a_{\ell0}\) to \(k_0\) and \(a_{\ell+}\) to \(k_+\) for a
decrement, and \(p_\ell\) back to \(\ell\) for a halt. Each new control
coordinate is the sum of its incoming activations. Update each counter
by \[
r'_j=r_j
-\frac12\sum_{\ell:\mathrm{INC}(j,-)}G(p_\ell,r_j)
+\sum_{\ell:\mathrm{DEC}(j,-,-)}G(a_{\ell+},r_j).
\] All sums are finite and determined by the program. These are rational
affine and ReLU operations only.

\textbf{Theorem 5.3 (effective exact simulation).} There is a total
computable compiler \(M\mapsto F_M\) satisfying \[
F_M(\iota(C))=\iota(\mathrm{step}_M(C))
\] for every register configuration \(C\). Consequently the well-formed
states are forward invariant, and iteration simulates every finite
number of register steps exactly.

\emph{Proof.} If \(c_j=0\), \(r_j=1\) and \(Z(r_j)=1\); otherwise
\(r_j\leq1/2\) and \(Z(r_j)=0\). 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 \(r_j\) to \(r_j-r_j/2=2^{-(c_j+1)}\). An
active positive decrement changes it to \(2r_j=2^{-(c_j-1)}\). In that
case \(c_j\geq1\), 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. \(\square\)

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 \(x\) into \(2^{-x}\) is
computable but need not be efficient in the binary length of \(x\).

Read a compiled circuit by checking its designated halt labels and, at
halt, decoding \(r_0=2^{-y}\) to return \(y\). 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 \(\nu_N:\mathbb N\rightharpoonup\mathbb N\)
denote this partial neural behavior.

\hypertarget{neural-rice-theorems-and-concrete-specifications}{\subsection{6. Neural Rice theorems and concrete
specifications}\label{neural-rice-theorems-and-concrete-specifications}}

\textbf{Theorem 6.1 (compiler transfer).} Suppose neural codes admit a
total computable compiler \(C\) with \(\nu_{C(e)}=\varphi_e\). For every
nonempty proper \(P\subset\mathcal R\), no algorithm that halts on every
compiled code can correctly decide whether \(\nu_{C(e)}\in P\).

\emph{Proof.} Composing the alleged decision with \(C\) gives the total
decision forbidden by Theorem 2.3. \(\square\)

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
\(P\subset\mathcal R\).

\textbf{Corollary 6.2.} Each of the following problems is undecidable
for the compiled neural class:

\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}
  >{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3333}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\raggedright
Property of \(\nu_N\)
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Formal condition
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
Opposite witnesses
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
Termination at input zero & \(\nu_N(0)\downarrow\) & constant zero /
nowhere defined \\
Totality & \(\forall x\;\nu_N(x)\downarrow\) & constant zero / nowhere
defined \\
Implements zero everywhere & \(\nu_N= (x\mapsto0)\) & constant zero /
constant one \\
Never returns forbidden value one &
\(\forall x\;(\nu_N(x)\downarrow\Rightarrow\nu_N(x)\ne1)\) & constant
zero / constant one \\
\end{longtable}

\emph{Proof.} Each property is extensional, and its two witnesses are
partial computable functions. Apply Theorem 6.1. \(\square\)

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.

\textbf{Corollary 6.3 (behavioral equivalence).} There is no total
algorithm deciding \(\nu_N=\nu_{N'}\). If neural semantics has an
extensional presentation \(d\) into a space or topos as in Section 3,
every nontrivial Boolean observation remains undecidable on neural
codes. If, additionally, \(d(N)\simeq d(N')\) holds \emph{only if}
\(\nu_N=\nu_{N'}\), deciding that path-existence relation is impossible.

\emph{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 \(C\).
Under the additional faithfulness condition, path existence is exactly
behavioral equality. \(\square\)

\textbf{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.

\emph{Proof.} Specialize an arbitrary program and input to a register
program run from zero. Compile it, and let \(H\) be the half-space
\(\sum_{h\text{ halt}}p_h\geq1/2\). On well-formed trajectories its left
side is zero or one. The trajectory reaches \(H\) exactly when the
program halts. The initial state and half-space are rational and
effective. A reachability decision would decide halting. \(\square\)

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.

\hypertarget{decidable-boundaries}{\subsection{7. Decidable boundaries}\label{decidable-boundaries}}

\textbf{Proposition 7.1 (bounded rational ReLU verification).} Given a
finite rational ReLU cell, a fixed finite horizon \(T\), 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 \(T\) is decidable. The same applies to a finite
feedforward rational ReLU network.

\emph{Proof.} Unroll the cell \(T\) times. For each ReLU relation
\(y=\max(0,z)\), choose one of the linear cases \[
(z\geq0\ \wedge\ y=z)\quad\text{or}\quad(z\leq0\ \wedge\ y=0).
\] 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. \(\square\)

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.

\textbf{Proposition 7.2 (closed finite-state recurrence).} A
deterministic closed transition system on a known finite state space
\(S\) has decidable reachability and eventual halting from a specified
initial state.

\emph{Proof.} Simulate until the target is reached or a state repeats.
At most \(|S|\) distinct states are visited before repetition.
Determinism makes all future states repeat the previously observed
cycle, so a missing target will never appear. \(\square\)

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.

\hypertarget{proof-certificates-and-useful-verification}{\subsection{8. Proof certificates and useful
verification}\label{proof-certificates-and-useful-verification}}

\textbf{Theorem 8.1 (no complete bilateral effective certification).}
Let \(P\) be a nontrivial extensional property of the compiled neural
behaviors. There cannot exist two computably enumerable certificate
relations \(V_+(N,c)\) and \(V_-(N,c)\) that are sound for \(P\) and its
complement, respectively, and such that every compiled \(N\) has a
certificate on one side.

\emph{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. \(\square\)

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.

\hypertarget{artifacts-evidence-and-authorship}{\subsection{9. Artifacts, evidence, and
authorship}\label{artifacts-evidence-and-authorship}}

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
\texttt{README.md}. HTML uses MathML for browser-native mathematical
rendering.

\textbf{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.

\hypertarget{references}{\subsection{References}\label{references}}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  H. G. Rice. ``Classes of recursively enumerable sets and their
  decision problems.'' \emph{Transactions of the American Mathematical
  Society} 74(2), 358--366 (1953).
  \href{https://www.ams.org/journals/tran/1953-074-02/S0002-9947-1953-0053041-6/S0002-9947-1953-0053041-6.pdf}{Publisher
  PDF}. DOI:
  \href{https://doi.org/10.1090/S0002-9947-1953-0053041-6}{10.1090/S0002-9947-1953-0053041-6}.
\item
  F. W. Lawvere. ``Diagonal arguments and cartesian closed categories.''
  \emph{Lecture Notes in Mathematics} 92, 134--145 (1969). Reprinted
  with author commentary, \emph{Reprints in Theory and Applications of
  Categories} 15, 1--13 (2006).
  \href{https://www.tac.mta.ca/tac/reprints/articles/15/tr15abs.html}{Journal
  version}.
\item
  J. M. E. Hyland. ``The Effective Topos.'' In A. S. Troelstra and D.
  van Dalen (eds.), \emph{The L. E. J. Brouwer Centenary Symposium},
  Studies in Logic and the Foundations of Mathematics 110, 165--216
  (1982).
  \href{https://www.dpmms.cam.ac.uk/~jmeh1/Research/Oldpapers/hyland-effectivetopos.pdf}{Author-hosted
  text}. DOI:
  \href{https://doi.org/10.1016/S0049-237X(09)70129-6}{10.1016/S0049-237X(09)70129-6}.
\item
  J. Lurie. \emph{Higher Topos Theory}. Annals of Mathematics Studies
  170, Princeton University Press (2009), especially Section 5.5.6 on
  truncated objects. \href{https://arxiv.org/abs/math/0608040}{Author's
  preprint}.
\item
  M. L. Minsky. ``Recursive Unsolvability of Post's Problem of `Tag' and
  other Topics in Theory of Turing Machines.'' \emph{Annals of
  Mathematics} 74(3), 437--455 (1961). DOI:
  \href{https://doi.org/10.2307/1970290}{10.2307/1970290}.
\item
  H. T. Siegelmann and E. D. Sontag. ``On the Computational Power of
  Neural Nets.'' \emph{Journal of Computer and System Sciences} 50(1),
  132--150 (1995).
  \href{https://binds.cs.umass.edu/papers/1995_Siegelmann_JComSysSci.pdf}{Author-hosted
  published paper}.
\item
  Yining Chen, Sorcha Gilroy, Andreas Maletti, Jonathan May and Kevin
  Knight. ``Recurrent Neural Networks as Weighted Language
  Recognizers.'' \emph{NAACL-HLT}, Volume 1, 2261--2271 (2018).
  \href{https://aclanthology.org/N18-1205/}{Publisher text and
  metadata}. DOI:
  \href{https://doi.org/10.18653/v1/N18-1205}{10.18653/v1/N18-1205}.
\item
  Guy Katz, Clark Barrett, David L. Dill, Kyle Julian and Mykel J.
  Kochenderfer. ``Reluplex: An Efficient SMT Solver for Verifying Deep
  Neural Networks.'' \emph{CAV} (2017).
  \href{https://arxiv.org/abs/1702.01135}{Author preprint}.
\end{enumerate}

\end{document}

End of manuscript · Back to top ↑