Programs as Singularities
cs.LO, cs.LG, math.LO
Submitted: 2025-04-10
Updated: 2026-09-12
License: http://creativecommons.org/licenses/by/4.0/
The gist: We develop a correspondence between the structure of Turing machines and the structure of singularities of real analytic functions, based on connecting the Ehrhard-Regnier derivative from linear
Terminology
Abstract
We develop a correspondence between the structure of Turing machines and the structure of singularities of real analytic functions, based on connecting the Ehrhard-Regnier derivative from linear logic with the role of geometry in Watanabe's singular learning theory. The correspondence works by embedding ordinary (discrete) Turing machine codes into a family of noisy codes which form a smooth parameter space. On this parameter space we consider a potential function which has Turing machines as critical points. By relating the Taylor series expansion of this potential at such a critical point to combinatorics of error syndromes, we relate the local geometry to internal structure of the Turing machine. The potential in question is the negative log-likelihood for a statistical model, so that the structure of the Turing machine and its associated singularity is further related to Bayesian inference. Two algorithms that produce the same predictive function can nonetheless correspond to singularities with different geometries, which implies that the Bayesian posterior can discriminate between distinct algorithmic implementations, contrary to a purely functional view of inference. In the context of singular learning theory our results point to a more nuanced understanding of Occam's razor and the meaning of simplicity in inductive inference.
Sources
- Dynamical versus Bayesian Phase Transitions in a Toy Model of Superposition
- Derivatives of Turing machines in Linear Logic
- Geometry of Program Synthesis
- Loss Landscape Degeneracy and Stagewise Development in Transformers
- The Local Learning Coefficient: A Singularity-Aware Complexity Measure
- Logic and linear algebra: an introduction
- Elimination and cut-elimination in multiplicative linear logic
- Linear Logic and the Hilbert Scheme
- Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient
Related papers
- An Information-Flow Perspective on Explainability Requirements: Specification and Verification
- A programming language combining quantum and classical control
- Causal Past Logic for Runtime Verification of Distributed LLM Agent Workflows
- Encoder-Decoder Transformers: Logical Characterizations and Periodicity
- Ultraconstructive Model Theory via Bounded Adversarial Finite Structures