Introduction
In his paper *Compression Is All You Need*, Fields Medalist Michael Freedman makes a striking claim: compression is the core mechanism by which mathematical knowledge is constructed. Using an elegant algebraic model, the paper addresses three long-standing questions: How do we build mathematical knowledge? What is the essential difference between human mathematics and formal logic-based mathematics? How should human mathematicians collaborate with AI in the future? Freedman's answer rests on a single concept—compression.
Mathematical Foundations of the Compression Theory
Freedman abstracts mathematical reasoning as symbol strings and measures compression via macros: definitions, lemmas, and theorems are names for substrings of the raw symbol string. Introducing a macro compresses an expression; expanding it restores the original information.
Free Commutative vs. Free Non-Commutative Monoids
The model compares two extremes:
- Free commutative monoid \(A_n\): generators can be reordered; elements are \(n\)-dimensional vectors of natural numbers; ball volume grows polynomially with radius. This models order-independent mathematical objects.
- Free non-commutative monoid \(F_n\): generators are strictly ordered; there are \(n^r\) strings of length \(r\), so ball volume grows exponentially. This models order-dependent reasoning, such as formal proofs or code.
- Log-sparsity suffices in \(A_n\): a logarithmically sparse macro set achieves exponential expansion of expressive power.
- Near-maximal density required in \(F_n\): only polynomially dense macro sets yield linear improvement; significant growth beyond linear requires nearly maximal macro density.
- Extreme cases: at polynomial density, \(A_n\) can achieve infinite expansion; even exponential density in \(F_n\) only slightly exceeds linear growth.
- Expanded length shows a clear exponential relationship with depth and packed length.
- Packed length distributions remain approximately constant across depths.
- Formal mathematics is the totality of all valid deductions under given axioms and rules—an enormous space, mostly untouched by humans (as Gödel's incompleteness theorems imply).
- Human mathematics is a tiny subset whose distinctiveness lies in compressibility: layered definitions, lemmas, and theorems form reusable macros that dramatically reduce the symbols needed to express new ideas.
- Growth mode: formal systems grow linearly and exhaustively; human mathematics achieves exponential expansion through compression.
- Structure: formal proofs are flat strings; human mathematics has a deep, modular, hierarchical concept network.
- Complexity distribution: in formal systems, per-step complexity grows with depth; in human mathematics, each definition stays locally simple regardless of nesting depth.
- Compression is understanding: to understand a phenomenon is to find a concise description preserving its essential features. In mathematics, deeper compression equals deeper understanding.
- Universality of compression: this connects to Shannon's information theory, the compression thesis in AI (understanding as prediction, e.g., large language models compressing text), and the Free Energy Principle, under which self-organizing systems minimize prediction error—equivalently, maximize compression. In this view, mathematics is the extreme manifestation of a universal cognitive principle.
- New perspectives on classic questions:
- *Invention vs. discovery*: mathematics is closer to discovery—mathematicians are explorers finding compressible, meaningful structures in an infinite logical space.
- *Objectivity*: compressible structures exist objectively; human mathematics is a compression mapping of them, shaped by cognitive limits and interests.
- *Progress*: mathematical progress is the deepening of compression—breakthroughs like calculus and group theory are compression paradigm shifts.
Density of Macro Sets and Expansion Power
Adding a macro is like adding a redundant generator. Introducing 10, 100, 1000, ... in \(\mathbb{N}\) recreates decimal positional notation. Key findings:
Predictions and Empirical Validation via MathLib
Freedman makes two predictions for human mathematics:
1. Expanded length grows exponentially with depth and packed length: more foundational definitions support a larger superstructure. 2. Packed length is roughly constant across depths: each definition's intrinsic complexity stays stable no matter how deep the nesting.
Formal mathematics would predict instead a roughly linear relationship and growing packed length.
To test this, Freedman's team used MathLib, a large Lean 4 library with hundreds of thousands of entries, constructing a directed acyclic graph of dependencies and computing each node's depth, packed length, and expanded length. Results strongly confirmed the theory:
These results align with the \(A_n\) model and contradict the \(F_n\) model, suggesting human mathematics is genuinely "soft and compressible."
Human Mathematics vs. Formal Mathematics
Key differences:
Thus human mathematics is not merely a subset of formal mathematics but a compression-filtered distillation of it—only compressible, meaningful structures are retained, which is why the vast edifice of mathematics remains graspable by human minds.
Philosophical Significance
Conclusion and Outlook
Freedman's *Compression Is All You Need* provides rigorous modeling and empirical support for compression as the core mechanism of mathematical knowledge construction, clarifying the human/formal distinction and enriching philosophy of mathematics. For AI-human collaboration, it suggests AI should not merely generate proofs but discover compressible structures—acting as a mathematical explorer. AI mathematical ability could be measured by compression depth rather than problem count. Most excitingly, collaboration may let us explore the non-compressible regions beyond human mathematics—structures too complex or uninteresting for humans but meaningful to more advanced intelligences—redefining the boundaries of mathematical cognition.