Defining the mathematical family tree with a minimal programming language
Abstract
I introduce MLISP, a Turing-complete language with nine single-character commands (a b c d f 0 i j k), and use it to define 88 mathematical structures and a family tree of 65 theories that they model, with three aims: Pedagogy: It presents the mathematical structures in a unified way, with standardized presentation tableaus that define them and axiomatized theories that describe them. Connections: It highlights how they are related in the family tree via added symbols, axioms, etc. While the full tree is obviously infinite, its lower parts naturally separate into six main branches: the relational branch, the algebraic branch, the logic branch, the number branch, the set branch and the continuum branch. Foundations: The definitions, key theorems and models of each entry are verified in Lean. Mathematical structures are defined as equivalence classes of presentations, which in a constructivist spirit are defined in a simple, explicit and self-contained way in standardized presentation tableaus with minimal human baggage. For finite structures, the generating functions are defined by lookup tables. For countably infinite ones, they are instead defined computationally using MLISP, since more complex languages such as Lean are massive overkill for rigorously defining standard arithmetic operations (for example, the program "jibjbfid" defines subtraction). An interactive version is available at https://tegmark.org/mathtree. The Lean code is public, also verifies the correctness of MLISP and includes 43% of the theorems from Mathlib 2026-10-11. abstract
Create a lesson
Metadata
- Categories
- cs.PL, math-ph, math.MP
- Comments
- 33 pages. https://tegmark.org/mathtree includes and interactive MLISP calculator and a detailed atlas of the mathematical theories and structures
Related papers
Statically Typed Purely Functional Definitional Interpreters for {\it Essentials of Programming Languages}
Shared title terminologycs.PLKwanghoon Choi
Agent-Native by Design: A Programming Language for Agentic Applications
Shared title terminologycs.PLJayanaka Dantanarayana, Savini Kashmira, Xiaoyu Ma et al.
Mathematical foundations for symmetric programming and reasoning
Shared title terminologycs.PLOhad Kammar, Matija Pretnar
TauLang: A Language and Compiler for Space-Time Programming on Statically Scheduled Accelerators
Shared title terminologycs.PLXuxiao Yang, Junchi Wu, Yuqi Peng et al.
Grassmann: The Coordinate-Independent Linear Algebra Programming Language
Shared title terminologycs.PLTheadora Fields Collin, Gilbert Bernstein, Oded Stein et al.
Coexponential Exploration in the Clef Programming Language
Shared title terminologycs.PLHouston Haynes