cs.AIMar 20, 2026

Compression is all you need: Modeling Mathematics

Authors: Vitaly Aksenov, Eve Bodnia, Michael H. Freedman, Michael Mulligan

Abstract

Human mathematics (HM), the mathematics humans discover and value, is a vanishingly small subset of formal mathematics (FM), the totality of all valid deductions. We argue that HM is distinguished by its compressibility through hierarchically nested definitions, lemmas, and theorems. We model this with monoids. A mathematical deduction is a string of primitive symbols; a definition or theorem is a named substring or macro whose use compresses the string. In the free abelian monoid AnA_n, a logarithmically sparse macro set achieves exponential expansion of expressivity. In the free non-abelian monoid FnF_n, even a polynomially-dense macro set only yields linear expansion; superlinear expansion requires near-maximal density. We test these models against MathLib, a large Lean~4 library of mathematics that we take as a proxy for HM. Each element has a depth (layers of definitional nesting), a wrapped length (tokens in its definition), and an unwrapped length (primitive symbols after fully expanding all references). We find unwrapped length grows exponentially with both depth and wrapped length; wrapped length is approximately constant across all depths. These results are consistent with AnA_n and inconsistent with FnF_n, supporting the thesis that HM occupies a polynomially-growing subset of the exponentially growing space FM. We discuss how compression, measured on the MathLib dependency graph, and a PageRank-style analysis of that graph can quantify mathematical interest and help direct automated reasoning toward the compressible regions where human mathematics lives.

Figures & tables

Explore similar work

CardsList
  1. Learning to Discover Interesting Mathematics

    Sep 23, 2026Niket Patel, Ahmad Rammal, Amaury Hayat +2Automated Theorem ProvingLean Theorem Proving

  2. TheoremGraph: Bridging Formal and Informal Mathematics

    Jun 24, 2026Simon Kurgan, Evan Wang, Eric Leonen +6KG ConstructionGraph-Based Retrieval

  3. ResearchMath-14K: Scaling Research-Level Mathematics via Agents

    May 27, 2026Guijin Son, Seungyeop Yi, Minju Gwak +3Supervised Fine-TuningLLM Mathematical Reasoning