Proofs, Programs, and Comprehensibility

Stan Letovsky received a PhD in AI in 1988 and has since worked on bioinformatics and AI in both academic (assistant professor, Johns Hopkins Medical Institutes, adjunct at Boston University) and life science industry settings.

Reactions to the recent release of a bolus of proofs by OpenAI have included a concern that the proofs do not provide insight. I am not a mathematician, but I did an AI PhD thesis in the 80’s exploring what it might mean to automate program understanding. Given the deep links between proofs and programs first identified by Curry and Howard, and the increasing convergence reflected in the adoption by mathematicians of formal proof verification languages like Lean, which can be viewed as programming languages, I am hoping that there might be some insights about comprehensibility that could transfer from software to mathematics. If these thoughts are obvious, or obviously wrong, I can only apologize for the intrusion.

The question I explored in my thesis was what it means to understand a program. Part of the work aimed at understanding cognitive processes in human programmers, based on analyses of transcripts of their spoken thoughts during software maintenance tasks. Another part focused on developing a computational model of motif recognition in programs. I opted to translate target programs into lambda calculus as a starting point, and then had a rewrite rule engine “recognize” motifs defined in a library by factoring them from the program, replacing them with what were effectively subroutine calls. (This anticipated a later technology now known as automated program refactoring.) My hope was that the rewritten program would be more concise and “understandable”, because expressed in terms of known motifs. The overall process could be thought of as ‘reverse computation’, in the sense that the usual beta reduction operation performed by lambda calculus interpreters was being performed in the opposite, lambda abstraction, direction. In general, a combination of both beta reduction and lambda abstraction might be needed to recognize a motif in a program, so motif recognition could in principle involve a search through a space of equivalence-preserving program transformations to find forms in which the motif occurrences would be apparent.

Fast forward 40-odd years. Transformer-based LLMs have become powerful aids for software engineering, exceeding the hopes of those early AI efforts, using an unexpectedly powerful approach relying on neural networks. Meanwhile mathematics has embraced formal representations of proofs via languages like Lean, overcoming the formalization burden using a combination of human teamwork, shared library development, LLM assistance, and now, LLM-based proof generation. And we see pushback on this last based on the argument of the incomprehensibility of AI proofs.

A sociological aside: this pushback is an example of the repeated phenomenon of Turing-test goalpost moving. As soon as some benchmark, originally proposed as a sign of intelligence, is achieved by a program, whether chess playing, natural language translation, or theorem proving, there is an inevitable reaction that “that isn’t real intelligence”. This is not to impugn either the original benchmark setters or the goalpost movers, but simply to observe the underlying dynamic that the Turing Test is a moving target, much like the polyhedrons of Lakatos’ classic “Proofs and Refutations”. It works as an intuition pump, not a finish line.

If some of the OpenAI proofs fail to provide the hoped for “insight” that was expected from a proof of some conjecture, it begs the question of why. What makes one proof insightful and another not? Could it be that in the space of equivalence-preserving proof transformations, there exist equivalent, but more “comprehensible” versions of the proof than the one that the LLM found? What would count as more comprehensible?

One obvious possible criterion of comprehensibility is proof size, relative to a shared library of definitions, lemmas, theorems and conjectures. Expressing a proof in terms of known concepts such as groups, categories, modular forms, etc., moves the amount of Lean code necessary to specify these things from the proof to the library, making them effectively free of charge from a proof size perspective. A lot of people have an initial reaction that it can’t be as simple as size, and while there may be additional criteria out there waiting to be discovered, it is hard to dispute that size matters. Moreover, other frequently proposed criteria such as elegance, simplicity, symmetry, or abstraction often translate into size reduction.

Another way to compress a proof (or program) besides library-dependent factoring is via internal deduplication, to the extent that the same “motifs” may occur repeatedly within it. Conversely, an AI may make proofs less comprehensible, and certainly larger, by failing to introduce definitions that would enable such internal deduplication. Deduplication subsumes library-dependent factoring in the sense that deduplicating a library plus a target proof may automatically remove instances of library motifs from the target, since they are duplications of library definitions. (It can also revise the library in light of the target, which may or may not be desirable.) Also, deduplication can account for how motifs arise in the first place, which a purely library-dependent approach cannot.

These ideas represent the application of minimum description length principles to mathematics. The compression perspective may illuminate not just the comprehensibility of individual proofs, but the historical, and perhaps future, evolution of mathematics as a whole. What library could most effectively compress all of known mathematics? Our current “library” – the mathematical literature – is undoubtedly influenced by accidents of history, and not explicitly optimized by any objective criterion – though the work of mathematicians over the years may have approximated some such optimization process. Could the collection of mathematical knowledge (and conjectures) be subjected to a global compression analysis that would yield more optimal definitions? The March 2026 paper “Compression is all you need: Modeling Mathematics” by Aksenov et al develops a theory of mathematics along these lines, noting that (in one library representation they consider) “interesting” lemmas and theorems are logarithmically scarce in the space of all possible theorems, and are distinguished by their utility for compressing the search space. Interestingly, their approach extends considerations of compressibility beyond the efficient representation of known results to the compression of the search space of as yet unproven theorems. Such compression can change the computation required to prove future results, making more of the proof search space accessible.

I have been somewhat loose in this post in using terms like comprehensibility and insightfulness interchangeably, but it may be that these are worth distinguishing more clearly, and that the critique of the OpenAI proofs bears more on the latter than the former. Perhaps insight is more related to the compression of the search space of potential future results than to the library of existing ones. Aksenov et al may provide some conceptual tools to clarify this distinction.

An opportunity to clarify the meaning of compressibility and insight in mathematics may be right at hand. Experts offended by proofs or expositions in the OpenAI corpus could experiment by prompting LLMs to rewrite the proofs and/or papers while improving certain criteria or metrics. The results of such experiments could lead to standardized meta-prompts that encode quality criteria. Organizations like AHM and AGMAI could help ensure that such standards do not benefit the AI companies at the expense of the mathematical community.

In summary, as the goalposts of the mathematical Turing test move from generation of any proofs to generation of comprehensible and insightful ones, explicit theories of the latter, grounded in ideas of minimal length encoding of the totality of mathematical knowledge, may have a role to play. I realize this perspective may provide little comfort to those whose careers and lives are being disrupted by this mathematical earthquake. I hope that, as the dust settles, these changes will create opportunities for mathematics—and for mathematicians—that are not yet easy to imagine.


Received 1 November 2026, revised 4 November 2026.

One response to “Proofs, Programs, and Comprehensibility”

  1. ThoughtBuilder Avatar
    ThoughtBuilder

    When speaking of insight, there’s always a distinction between insights in different settings. In the mathematical setting, there’s a clear standard that arises from the history of the subject that is not moving goalposts: or if you are moving them, they are moved back to their older starting positions. (Then again, goalposts are based on assumptions: if those assumptions are revealed to be wrong, the goalposts have to be moved. For example, it was ‘assumed’ that humans are actually competent in estimating which open problems actually require new objects. In fact this is pure cognitive psychosis, exposed by AI. Or some people claim that the whole point of mathematics is ‘solving’ technical conjectures by any means, but closer inspection shows that this includes the subcase where mathematics isn’t even a creative activity at all, which is absurd.)

    The fact that AI proofs don’t generate ‘insight’ is equivalent to its role in the later instead of earlier stages of problem-solving. The later stages make use of a big machine that already exists, using existing objects and ansatz forms, which are made into longer expressions. This doesn’t identify any unified object from smaller-scale pieces, the use of which can then be transferred elsewhere. It leads to no new concepts whatsoever, new concepts are exactly what makes complex machinery unnecessary in the first place. (A new idea is exactly that which cannot be ‘searched for’, there is no ‘search space’ for it, which is why existing AI completely fail in simple fluid intelligence metrics. This is related to the distinction between extrapolation and interpolation: human ideas are ‘wired’ deeply into physical reality, e.g. something like the ‘Feynman method’ of keeping 12-or so problems subconsciously dormant until physical incidents suggest an idea, cannot be done by computers.)

    This is a commonplace in the history of mathematics: the role that AI has today was once held by complex analysis, another ‘big machine’ of its day that led to opaque proofs of results all over the place that had no proper explanation. The most extreme example is Poincare’s 1910 proof of the Fundamental Theorem of Irregular Algebraic Surfaces. This proof (via complex analysis) was regarded by algebraic geometers as an embarrassment for many decades, since it was a foundational theorem about polynomial equations on surfaces. Eventually the situation was only clarified decades later, and motivated the development of scheme theory (Mumford and Grothendieck). The final, proper proof clarifies what is the geometrically ‘essential’ mechanism, that measures the failure of the theorem.

    Other examples abound, e.g. 19th century schools of invariant theory. Gordan was the one that built the symbolic method that treated polynomials as powers of linear forms. The avoidance of this was the alternate ‘combinatorial’ way by Cayley & Sylvester, who used counting methods via power series. (Later on, the two were subsumed by Hilbert’s abstract way.)

    Most of the important concepts of mathematics grew from expositional disputes, and introducing new ideas from applications of mathematics (e.g., Riemann surfaces from potential theory; algebraic topology from periodic orbits of ODEs): not ‘problem-solving’ for short-term prizes.

    Here’s another criterion: an idea is something that can be stated quickly in a few sentences, makes a vast body of complex proofs trivial, and must be an indispensable part of the core curriculum of mathematics in the future.

Comments are moderated. Read our comment policy.

Add to the discussion

New posts by email.

Prefer a feed reader? Subscribe by RSS.

Also on Mathstodon.

Latest comments across the site.

  1. Could you explain to me your workflow? Do you not get demoralized working on something for a long period of...

  2. When speaking of insight, there’s always a distinction between insights in different settings. In the mathematical setting, there’s a clear...