OpenAI’s Formal Math Proofs Were About 20 Times as Long as Human Proofs Once Lemmas Were Counted
The article's text, from Joho no Todai's page.
The AI proofs were shorter when only the main theorem counted
203 tokens versus 624. When the researchers compared the median length of the proofs of the central theorems in each project, OpenAI’s AI-generated proofs were shorter. Tokens count units such as symbols and references in a proof. The study counted each reference to an existing definition or lemma as one token.
Adding the lemmas and definitions written to prove the main theorems changed the picture. The median was 144,708 tokens for AI and 8,748 for human-led research, a difference of about 16.5 times.
A team from the Chinese University of Hong Kong and the University of Hong Kong published a paper titled "Knowledge compression and reuse in AI and human contributions to mathematics." It was submitted on November 23, 2026 (UTC) and appeared in arXiv’s December 4 new submissions listing.
The team analyzed 192 main theorems from the mathematical research artifacts OpenAI released in October 2026 that depended on no library beyond Mathlib. It also looked at 112 main theorems from 51 human-led research projects and 156,127 theorems in Mathlib itself. The researchers matched the samples by mathematical field and statement length category. With supporting material included, the AI proofs were about 20 times as long.
The supporting material alone had a median length of 144,548 tokens for AI and 5,417 for human-led research, a difference of about 27 times. The gap was smaller for the proofs of individual lemmas, with medians of 46 tokens for AI and 32 for humans.
The AI main theorems depended on a median of 970 auxiliary declarations, or named lemmas and definitions written for the release. Of the declarations supporting the main theorems, 93% were used by just one main theorem in the sample.
OpenAI’s October 2026 formal proofs vs. human-led research
| Measure | OpenAI’s AI | Human-led research |
|---|---|---|
| Main theorems | 192 | 112 |
| AI proofs depend only on Mathlib; 51 human-led projects | ||
| Length (median; tokens measure symbols and references) | ||
| Proof alone | 203 | 624 |
| Lemmas and definitions alone | 144,548 | 5417 |
| Full proof | 144,708 | 8748 |
| Proof of an individual lemma | 46 | 32 |
| Full proof length ratio | AI proofs about 16.5x as long | |
| Lemma and definition length ratio | AI material about 27x as long | |
| Comparison accounting for field and statement length | ||
| Full AI proof | About 20x as long | |
| Declarations supporting AI main theorems (lemmas and definitions in the release) | ||
| Median dependency count | 970 | |
| Used by only one main theorem | 93% | |
※The median total can differ from the sum of medians.
The gap in overall proof length reflects the amount of supporting material more than the length of the individual lemmas. What does that difference mean now that computers can formally check mathematical proofs?
What it means to compress mathematical knowledge
Lean, the proof assistant used in the study, lets researchers write mathematical statements and proofs precisely enough for computers to check them. Its Mathlib library contains named definitions, theorems, and lemmas. A new proof can refer to existing theorems and lemmas by name.
A lemma is a statement that can be used, for example, as a step in proving another theorem. An argument that applies to other problems can be stated as a separate lemma so later proofs can cite it.
The paper uses the mean value theorem from calculus as an example. In Mathlib, its statement takes 24 tokens. Recursively expanding the definitions it uses brings that to 63,123 tokens. The proof, including lemmas, takes 265 tokens. Expanding its references down to Lean’s primitives yields 249,127 tokens. Material reached along multiple paths counts only once.
The proof of the mean value theorem references Cauchy’s mean value theorem, which in turn references Rolle’s theorem. These named references save the work of rewriting extensive arguments already established elsewhere.
Using formal proofs, which let researchers record these dependencies precisely, the team described knowledge compression with three metrics.
Conceptual compression (C) uses the ratio of the length after expanding definitions in a statement to the length of the original statement. Technical compression (T) uses the ratio of the length after expanding references such as lemmas to the length of the original proof. Deductive compression (D) uses the ratio of proof length to statement length. All three are expressed as natural logarithms of length ratios.
The team called deductive compression minus technical compression (D−T) compression debt. The length of a main theorem’s proof includes any lemmas and definitions written to support it.
For a given statement length and expanded proof length, the more existing theorems can shorten the written proof, the lower the compression debt. A short statement with a long proof and little compression through existing theorems yields a higher value.
What makes this approach interesting is that it measures how well knowledge is organized using statement lengths, proof lengths, and dependencies, without relying on subjective impressions of a theorem’s difficulty.
Theorems with lower compression debt tended to be cited more often
The researchers examined whether 23,057 Mathlib theorems were referenced in subsequent proofs. Their statistical analysis accounted for mathematical field and when the theorems were added to the library, holding statement length and expanded proof length constant.
OpenAI’s October 2026 formal proofs: Compression debt comparison
| Measure | OpenAI’s AI | Human-led research |
|---|---|---|
| Compression debt (median measure of knowledge organization) | ||
| Referenced theorems | −4.92 | −4.49 |
| After adjusting for length | No statistically significant difference | |
| New main theorems | 6.59 | 3.26 |
| Medians by AI theorem and by human-led project for referenced results | ||
| 23,057 existing Mathlib theorems: Doubling the written proof length | ||
| Change in odds | −6% | −13% |
| Mathlib developers | −7% | |
| Odds: probability of being cited divided by probability of going uncited | ||
| Accounts for field, addition date, statement length, and expanded proof length | ||
| Changes in odds are statistical associations | ||
Each doubling of written proof length was associated with a 7% drop in the odds of being cited by Mathlib developers, a 6% drop for AI, and a 13% drop for human-led research projects. Odds are the probability of being cited divided by the probability of going uncited.
The pattern held when the researchers restricted the analysis to 5,841 theorems that had not changed since they entered the library. This was a statistical association in the existing Mathlib corpus. Whether shortening proofs in itself increases reuse remains to be tested.
The way AI uses existing knowledge is also revealing. For each AI main theorem and each human-led project, the researchers calculated the median compression debt of the Mathlib theorems referenced. The median of those values was −4.92 for AI and −4.49 for human-led research. The difference was statistically insignificant after adjusting for theorem length.
AI and humans both tended to reference existing theorems with low compression debt. For newly written main theorems, however, median compression debt was 6.59 for AI and 3.26 for humans. None of the Mathlib theorems in the study reached the AI median.
The comparison shows why it makes sense to assess the ability to use existing knowledge separately from the ability to produce knowledge that others can use.
The gap in proof length persisted under different conditions
The researchers started with 26,602 Lean-related GitHub repositories as of October 2026 to select human-led research. They used a large language model and human review to examine project descriptions and change histories, identifying 255 eligible research projects.
The team excluded projects where more than 5% of Lean code lines had been added in changes attributed to AI, as well as projects with large bulk imports of code. It considered projects created before June 2025 and later projects whose leadership by professional mathematicians could be verified. The final analysis included 51 projects with at least one proven main theorem.
The human-led label reflects the available records. AI use that leaves no trace in the history may still be present, a limitation of the comparison.
Differences in which problems AI and humans solved and how they wrote their proofs also matter. OpenAI’s release often put the substance of the statement in custom definitions, leaving the main theorem itself short. After excluding statements of five tokens or less, the AI proofs were about 11 times as long as the human proofs.
In a regression that accounted for the expanded lengths of both statements and proofs, the AI proofs were about 6.5 times as long. The 95% confidence interval ranged from 3.2 to 12.8 times. The comparison cannot fully match for mathematical difficulty, but a large gap persisted after accounting for writing conventions and expanded lengths.
The AI sample was limited to OpenAI’s October 2026 release. Whether the pattern holds for other AI systems requires further study. The authors also noted that citations take time to accumulate, so the actual reuse of the new main theorems remains an open question.
The first version of the paper also includes measurements taken at different revisions of the source repositories. The researchers plan to rerun the analysis using fixed revisions and update the figures in the next version.
Generating formal proofs at scale and the burden of review
OpenAI’s release of a large collection of mathematical manuscripts had already raised concerns about the burden of verification and peer review. Mathematicians may eventually tidy up and shorten long proofs through review and library integration. The team looked at the revision histories of human-written proofs to see how much difference that made.
Of the theorems incorporated into Mathlib from human-led projects, the researchers selected 196 for comparison. The proofs of 98 got shorter, 33 got longer, and 65 stayed the same. Among proofs that changed, the median revised proof was 80% of its original length.
The team also tracked 1,646 Mathlib theorems over a median of 2.6 years after their addition to the library. Their combined proof length, without separately counting lemmas, fell by about 6%. The researchers estimate that a large gap in compression debt would persist even if the AI proofs were revised at the rate seen in Mathlib.
AI-generated proofs can have shorter alternatives. The researchers point to an inequality for which the OpenAI release contained one proof of 133,870 tokens and another of 66,757 tokens. The organization of knowledge could be evaluated at the point of generation.
The sheer volume of work is another issue. The researchers counted 865 pull requests submitted to Mathlib in October 2026 without AI assistance, of which 676 were merged. Counting AI-assisted pull requests as well, 2,703 remained open at the end of October.
The files containing OpenAI’s main theorems and other files in the release they reference directly or indirectly contain 318,798 declarations. At Mathlib’s average of 7.8 declarations per pull request without AI assistance, that amounts to roughly 41,000 proposals.
That estimate converts the number of declarations into the average size of existing proposals. It does not measure the time needed to review them for inclusion in the library. The volume of generated proofs takes on a different weight when the work includes checking formal correctness, making the results reusable, and getting them accepted into a shared library.
In its public repository of mathematical manuscripts, OpenAI describes the artifacts as raw research data rather than finished papers. After a November 24 update, the release contained 730 manuscripts grouped into 375 research outcomes, with about 42% of the main results formalized.
What will the next piece of research inherit?
A similar problem arises in software development. A developer can meet the requirements of a particular feature by writing many helper functions. Extracting the parts that can serve a broader purpose and making them callable from other programs can make later development easier.
In mathematics, generalizing an argument that appears in a proof can produce knowledge that helps solve other problems. How much mathematics useful to future researchers comes out of proving an individual theorem? That contribution is hard to capture by measuring generation alone.
Kyoto University’s Department of Mathematics announced an introductory intensive course in Lean for June 22–26, 2026, taught by a researcher from RIKEN. The published course materials cover writing proofs with Mathlib.
The study also proposes using compression debt to evaluate AI proofs during training. Future research will need to test whether training for lower compression debt yields results that subsequent researchers are more likely to use.
There is considerable value in AI proving new theorems. If we can extract knowledge for the next discovery from those results, the work will have value beyond the individual problem solved. Part of the beauty of mathematics lies in understanding a long argument and then finding that it applies to an entirely unexpected problem.
