Score: 0

Encoding Peano Arithmetic in a Minimal Fragment of Separation Logic

Published: July 1, 2025 | arXiv ID: 2507.00465v1

By: Sohei Ito, Makoto Tatsuta

Potential Business Impact:

Proves simple math problems are hard for computers.

Business Areas:
Natural Language Processing Artificial Intelligence, Data and Analytics, Software

This paper investigates the expressive power of a minimal fragment of separation logic extended with natural numbers. Specifically, it demonstrates that the fragment consisting solely of the intuitionistic points-to predicate, the constant 0, and the successor function is sufficient to encode all $\Pi^0_1$ formulas of Peano Arithmetic (PA). The authors construct a translation from PA into this fragment, showing that a $\Pi^0_1$ formula is valid in the standard model of arithmetic if and only if its translation is valid in the standard interpretation of the separation logic fragment. This result implies the undecidability of validity in the fragment, despite its syntactic simplicity. The translation leverages a heap-based encoding of arithmetic operations - addition, multiplication, and inequality - using structured memory cells. The paper also explores the boundaries of this encoding, showing that the translation does not preserve validity for $\Sigma^0_1$ formulas. Additionally, an alternative undecidability proof is presented via a reduction from finite model theory. Finally, the paper establishes that the validity problem for this fragment is $\Pi^0_1$-complete, highlighting its theoretical significance in the landscape of logic and program verification.

Page Count
31 pages

Category
Computer Science:
Logic in Computer Science