Skip to main content
QUICK REVIEW

[Paper Review] Modeling Next-Token Prediction as Left-Nested Intuitionistic Implication

Paul Tarau|arXiv (Cornell University)|Jan 7, 2026
Computability, Logic, AI AlgorithmsComputer Science0 citations
TL;DR

The paper introduces the Arrow Language Model, a neural architecture that treats next-token prediction as left-nested intuitionistic implication, using non-commutative operator composition and Prolog-based theorem provers to validate properties of the model.

ABSTRACT

We introduce the \emph{Arrow Language Model}, a neural architecture derived from an intuitionistic-logic interpretation of next-token prediction. Instead of representing tokens as additive embeddings mixed by attention, we encode a prefix as a \emph{left-nested implication chain} whose structure preserves order through non-commutative composition. Next-token prediction corresponds to \emph{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 show that a neural architecture equivalent to multiplicative RNNs arises naturally from a proof-theoretic interpretation of next-token prediction as nested intuitionistic implication, we present a practical low-rank neural realization and position the model relative to Transformers and state-space models. Keywords: logic-based derivation of neural architectures, intuitionistic implicational logic, token-as-operator neural models, state-space models, alternatives to transformer-based foundational models.

Motivation & Objective

  • Motivate and formalize next-token prediction as constructive proof extension in intuitionistic implicational logic.
  • Represent sequences as left-nested implications to preserve order without attention-based mixing.
  • Derive a neural architecture that processes tokens as operators transforming a proof state.
  • Show relations between commutative vs. non-commutative sequencing and single- vs. multi-token prediction.
  • Position the model relative to Transformers and state-space models, and provide open-source code

Proposed method

  • Use implicational propositional logic and the LJT calculus to build symbolic theorem provers for intuitionistic logic (iprove, lprove).
  • Encode sequences as left-nested implication chains and prove order sensitivity (non-commutativity).
  • Demonstrate that next-token prediction corresponds to modus ponens within the left-nested framework.
  • Provide a Curry–Howard interpretation linking tokens to lambda-term operators and state transitions.
  • Derive a practical low-rank neural realization of the Arrow Architecture and compare conceptually to transformers and state-space models.
  • Release open-source code and Prolog representations for verification

Experimental results

Research questions

  • RQ1Can next-token prediction be understood as constructive proof extension in intuitionistic implicational logic?
  • RQ2Does left-nested implication adequately preserve order in sequence representations and support incremental generation?
  • RQ3Can a neural architecture derived from this logic (Arrow Language Model) reproduce or relate to existing models like multiplicative RNNs, transformers, or state-space models?
  • RQ4How can single-token and multi-token predictions be proven and tested within a purely implicational prover framework?

Key findings

  • A left-nested implicational representation enforces a strict sequential dependency depth, aligning with stepwise proof extensions.
  • Next-token prediction is interpretable as constructive proof completion via modus ponens in intuitionistic implicational logic.
  • A neural architecture equivalent to multiplicative RNNs arises naturally from the proof-theoretic interpretation of next-token prediction.
  • The framework provides a way to test logical properties of sequence processing using Prolog-based theorem provers (iprove, lprove).
  • The approach suggests a novel, logic-driven alternative to transformer-based architectures and situates the model among state-space model considerations.
  • Open-source implementation resources are provided (GitHub links)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.