English

Compression is all you need: Modeling Mathematics

Artificial Intelligence 2026-03-24 v1 Logic

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.

Keywords

Cite

@article{arxiv.2603.20396,
  title  = {Compression is all you need: Modeling Mathematics},
  author = {Vitaly Aksenov and Eve Bodnia and Michael H. Freedman and Michael Mulligan},
  journal= {arXiv preprint arXiv:2603.20396},
  year   = {2026}
}

Comments

28 pages, 5 figures, 1 appendix

R2 v1 2026-07-01T11:30:32.511Z