arXiv · 2608.08145
On the (Intuitionistic) Logic of Next-Token Prediction
Abstract
We model in intuitionistic implicational logic the key enabler of today's GenerativeAI: the next-token prediction in autoregressive causal neural networks. In our framework, next-token prediction corresponds to modus ponens, and sequence processing becomes constructive proof extension under the Curry-Howard correspondence. Our Prolog-based specialized theorem provers validate fundamental properties of the neural models, among which relations between commutative vs. non-commutative sequencing and single-token vs. multi-token prediction choices. We derive a neural architecture equivalent to multiplicative RNNs that arises naturally from a proof-theoretic interpretation of next-token prediction as nested intuitionistic implication and position the model relative to transformers, state-space models and recursive LLMs.
Explore related subjects
Keep this discovery
Paul Tarau. 2026-08-08. On the (Intuitionistic) Logic of Next-Token Prediction. https://doi.org/10.4204/eptcs.450.4
Cite the original work for its findings. Save a collection to share your selection of sources.