Manuscript Offprint
arXiv:2611.06962Formalizing inverse problems in the age of AI: possibilities, pitfalls, and an invitation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Proof assistants such as Lean 4 check mathematical proofs down to the axioms, and AI agents have recently made writing such proofs cheap. We describe AutolP, a Lean 4 library in which classical linear regularization theory, together with the functional analysis it rests on, has been autoformalized by AI agents. A machine-checked proof certifies only the formal statement it proves, so the remaining human task is to confirm that each formal statement says what was intended. We organize the library around this task: a reviewer compares the formal statements with their natural-language counterparts and never needs to read a proof. Our experience is that the risks lie in the statements rather than in the proofs, and that simple automated tests on the statements can expose problems even in the established literature. We illustrate this with a textbook theorem whose hypothesis is more restrictive than asserted. We invite the inverse problems community to extend and build on the library.
Keywords: formal verification, proof assistants, Lean, autoformalization, regularization theory, ill-posed problems, artificial intelligence
Contents
| 1 Introduction | 2 |
|---|---|
| 1.1 Reviewing formal libraries | 3 |
| 2 The AutolP library | 3 |
| 2.1 Relation to Mathlib and Tau Ceti | 3 |
| 2.2 Scope | 4 |
| 3 Organization of the library | 4 |
| 4 How the work was carried out | 5 |
| 5 Lessons learned | 6 |
| 5.1 Delimiting nodes is helpful | 6 |
| 5.2 Junk values are dangerous | 6 |
| 5.3 Bad prose is confusing | 7 |
| 5.4 Non-vacuity tests catch mistakes | 8 |
| 6 Comparison with Armstrong's workflow | 9 |
*University of Graz, Austria
†LUT University, Finland
‡AI University, Kazakhstan
§University of Helsinki, Finland
7 An invitation to contribute
10
8 Discussion and outlook
10
Appel and Haken’s original proof of the four color theorem in 1976 is often viewed as the first major theorem whose proof no human could verify by hand. It is a reduction to almost two thousand configurations that were checked by a computer program [2, 3]. At the time, philosophers asked whether such an argument was a proof at all [30]. Accepting the original proof of the four color theorem meant trusting a custom program written for that one purpose. Formal proof offers a way around this. The idea goes back to John McCarthy in 1962 [19]: write the proof in a language precise enough that a single, small, general-purpose program can check every step. A number of systems followed, including Automath (1967) [10, 11], LCF (1972) [20], and later Coq [9] and Lean, among others.
The correctness of a formal proof does not depend on any code written specifically for that proof. All trust rests on the proof checker, which is shared by all its users and has been examined by them for years. In other words, trust is moved out of each individual proof and into one piece of common infrastructure, and the correctness of a proof does not require a review. What still requires review is the statement: the checker certifies that a proof establishes its formal statement, not that the formal statement expresses the intended mathematics. This is the main subject of the present paper.
The current technology-driven crisis in mathematics appears more profound than the controversy around Appel and Haken’s proof in the 70s. AI systems now produce results at a volume that human refereeing cannot match, and the question of trust that the four color theorem raised for a single proof now arises for whole bodies of work. Nonetheless, we expect that formalization will become an increasingly important tool, since its cost has collapsed. Agents based on openly available frontier models can already formalize mathematics automatically with relative ease [4]. Such automatic formalization is often called autoformalization [31, 32].
While it is unknown according to which principles OpenAI decided what to formalize, a potential deciding factor could have been the size of the gap between already formalized theory and that required by a result. In the present paper we address this gap within the field of inverse problems. We describe AutoIP, a Lean library of autoformalized results in linear regularization theory. Shared libraries not only speed up the formalization process but also save computational resources by eliminating overlapping work. Inverse problems are a natural field for such a library. The classical theory rests on functional analysis that is largely available in Mathlib, and it is now being extended rapidly by learned and data-driven regularization methods. Convergence guarantees for such methods are new and less scrutinized theory, where we would expect formalization to find more issues of the kind we report in Section 5.4 in the settled classical theory.
Cheap formalization may change how applied mathematics is done. An applied inverse problem is usually studied piece by piece: uniqueness and stability, regularization, discretization, convergence of the numerical method and the model of the noise are treated in separate papers, often under assumptions that do not quite fit together. A formal library can hold such pieces in one place and check that the conclusions of one match the assumptions of the next. This makes large projects feasible that follow an applied problem from its mathematical model to guarantees for the algorithm that solves it. Much of the work such projects require, for example tracking constants, checking that every case is covered, or verifying that a known result carries over to a slightly different setting, is tedious and often simply not done. This is the kind of work that can now be delegated to AI agents, while people decide what should be proved and check that it was.
1.1 Reviewing formal libraries
We hope that AutolP serves as an invitation for the inverse problems community to build and manage a formalized library of results specific to the field. While such results could in principle be incorporated in Lean libraries of general mathematics, there are benefits in keeping the review process within the community. The two existing general libraries, Mathlib [24] and Tau Ceti [27], sit at opposite ends of a spectrum regarding the review process.
Most formalization in Lean 4 builds on Mathlib, a large library of formalized mathematics maintained by its community under human review. It covers much of the standard curriculum, including the parts of functional analysis that the theory of inverse problems rests on. Human reviewers of Mathlib not only attest the correctness of statements but also judge the quality of proofs. The review process is slow.
Tau Ceti builds on Mathlib and adds formalized mathematics on top of it at great speed. The speed comes from leaving the review to AI agents. They check each contribution, including whether its statements and definitions say what they should, against roadmaps and review rubrics written by humans.
We propose a middle ground where the correspondence of statements is attested by human reviewers, but proofs are not read.
2 The AutolP library
2.1 Relation to Mathlib and Tau Ceti
Much of the functional-analytic material in Part I of AutolP is available in Mathlib. When Mathlib already contains a result, AutolP has no statement of its own but a citation to Mathlib. It is thereby also an index into the part of Mathlib the theory rests on.
The operator-theoretic infrastructure on top of Mathlib has recently grown quickly in Tau Ceti. Its relevant human-written roadmap is Polar decomposition: functional calculus, the operator modulus, and singular systems [26]. Within a few days in October 2026, Tau Ceti merged several formalized results outlined in the roadmap, including the Moore–Penrose inverse [25]. For maps and between finite-dimensional inner product spaces, is the Moore–Penrose inverse of if and only if it satisfies the four Penrose equations
This material was largely imported from an existing formalization developed at Kitware [17]. The Moore–Penrose inverse and singular systems of Tau Ceti are, however, finite-dimensional objects, with one exception: uniqueness under the Penrose equations (1) is proved in arbitrary inner product spaces. In particular, Tau Ceti represents a Moore–Penrose inverse as an everywhere-defined linear map. This form only covers operators with closed range, so it cannot express the ill-posed case.
AutolP formalizes the infinite-dimensional theory needed in inverse problems. It contains a singular system for every compact operator between Hilbert spaces, with nonincreasing and when there are infinitely many, and the expansion . It also contains the Moore–Penrose inverse of a bounded operator, given as a partially defined linear map on that sends to the minimum-norm least-squares solution of . Around it, AutolP includes the classical result that is bounded exactly when is closed, the non-closed case being the one of interest to inverse problems. The definitions in AutolP and Tau Ceti can be connected, of course. In
Table 1: Size of AutolP.
| Definitions | 51 |
|---|---|
| cited from Mathlib | 14 |
| predicates | 15 |
| constructions | 22 |
| reviewed by an author | 22 |
| Theorems | 73 |
| cited from Mathlib | 22 |
| stated in Lean | 51 |
| reviewed by an author | 25 |
| Lemmas / corollaries / propositions | 83 / 16 / 5 |
| Lean files (library / tests) | 523 / 152 |
| Lines of Lean (library / tests) | 22 312 / 13 250 |
| Non-vacuity obligations | 503 |
the closed-range case, the operator of AutolP satisfies the Penrose equations (1), so by uniqueness it coincides with Tau Ceti's Moore–Penrose inverse wherever both are defined.
2.2 Scope
AutolP builds the regularization theory on top of functional analysis. At the time of writing, this theory has no overlap with Mathlib or Tau Ceti and Table 1 summarizes the size of the library. The contents follow the structure of the linear part of the lecture notes [8], which reorganize classical material from [14, 16]. They cover the Moore–Penrose inverse, source conditions, parameter choice rules, convergence rates and order optimality, spectral, Tikhonov and Landweber regularization, and discretization as regularization. Four further chapters, drawing more extensively on [14, 18], add general source conditions, iterated Tikhonov and semi-iterative methods, perturbed operators, and the balancing principle. The material is settled, and it rests on Hilbert space theory that is largely in Mathlib, so the gap to existing formalized mathematics is small.
There are many ways to extend the library. They naturally include nonlinear problems as well as modern topics such as variational regularization in Banach spaces and statistical or machine-learning-based approaches to inverse problems. Some of these topics need foundations from other areas, such as convex analysis or statistics, that do not naturally belong in AutolP but are not yet available (to the required extent) in Mathlib.
3 Organization of the library
Lean checks that proofs establish the formal statements they are attached to. It does not attest that the statements say what was intended. Our review model asks a person to read the formal statement against the informal one, and the architecture of AutolP is organized around it: a minimal, fixed set of files is designated for reading, and everything else is arranged so that it need not be read unless the reviewer is interested in the particulars of the proofs. A formalization aimed at one main result has one statement to compare, together with the definitions it uses. In the formalization of Fermat's Last Theorem [1], for example, the final statement is compared with the one stated in Mathlib, which unfolds to four lines of definitions. A library has no main result. Each definition and each theorem is a deliverable, and each has to be compared with its informal counterpart.
The natural language statements are given in an ordinary LaTeX document, which we call the blueprint and whose definitions, lemmas, and theorems we call nodes. Each node corresponds to one Lean file, its specification, at a path determined by the position of the node in the blueprint. The specification contains the formal statement of the node and no other statements. A reader attesting the correctness of
Lemma (Tikhonov solves a regularised normal equation). Let and . For one has if and only if .
theorem tikhonov_iff_normal (hs : IsSingularSystem K ) (y : F) (x : E) : x = spectralReg hs tikhonovFilter (tikhonovFilter_exists_bound_on_spectrum hs) (K.adjoint oL K + (( ) : ) • ContinuousLinearMap.id E) x = K.adjoint y
Figure 1: A node of the blueprint (top) and the formal statement in its specification (bottom). The proof is omitted. In the Lean code listings of this paper, is the scalar field, or , and E and F are the Hilbert spaces X and Y. Here hs is the singular system of , : Set.Ioi () is a parameter , and spectralReg hs tikhonovFilter _ y is . Its third argument is a proof that the Tikhonov filter is bounded on , which the functional calculus requires. On the right-hand side of the equivalence, K.adjoint oL K is and ContinuousLinearMap.id E is the identity on X.
the formalized statements works from the PDF of the blueprint and goes from a node to its specification. The remaining Lean files of the library are not part of what they read. A companion extension for Visual Studio Code [21] supports this workflow. A click on the label of a node in the blueprint source opens its specification, and a key binding in a Lean file shows the corresponding statement in the PDF. Together with the Lean extension, which follows the citations of Mathlib in the specifications, the reader can move between the blueprint, the formal statements and Mathlib without searching.
Figure 1 shows a node and its specification. Let be compact, with singular system , and let . A function that is bounded on defines a bounded operator on by
Here is the orthogonal projection onto the kernel of . A family of such functions , called a filter, defines the spectral regularization , so that . The Tikhonov filter is . The node of Fig. 1 states that is the unique solution of the regularized normal equation.
The choice of organization was inspired by the formalization of Fermat's Last Theorem. This was carried out on Prove2Me [7], which uses separate files for each statement. There the separation serves compilation speed and the coordination of many agents, and trust rests on the final statement. In AutoIP it also serves the reader. A similar architecture is used by the recent formalization harness Trellis [29].
A critical part of a formalization effort is the choice of definitions. In Lean, definitions are often constructive, and mathematically equivalent constructions can differ greatly in how usable they are. For this reason, AutoIP refers to concrete constructions only locally, and uses them globally via characterizing properties. This is enforced by the module system of Lean, which separates what a file exports from what it uses internally. A file that imports a definition sees its name and type but, unless the definition is explicitly exposed, not its body. In AutoIP only one file per node, its holding the characterizing properties, imports the specification with access to the bodies. Every other node sees the definition only through those properties.
4 How the work was carried out
The blueprint was written by the authors, its statements following [8, 14], and the Lean code was written by AI agents. The first round of autoformalization was carried out with few instructions beyond the blueprint itself. Reviewing its outcome afterwards led to several rounds of restructuring, some of which are described in the next section. Our working method grew out of those rounds and was not in place
¹Shorthand for application programming interface.
during the first one. We compare it with the workflow of Armstrong [4] in Section 6. As far as possible, our practices are implemented as programmatic checks. For example, the files of the library must follow the organization outlined in Section 3, no axioms can be introduced, and no unused code is allowed to remain. An agent works until these checks pass.
What no program can check is recorded instead. For each node, a record states whether its specification says what the node says, and whether this was read by an author or by an agent. For each constructive definition, the agent records why it chose its construction over the alternatives, and an author approves or rejects the choice. A rejection or a mismatch stands until the text it objects to changes. Each record carries hashes of the informal and the formal statement it was written about, and of everything these rest on: the nodes the prose refers to and the definitions the formal statement uses. Formal statements use a hashing scheme similar to that of Trellis [29]. When either hash changes, the record expires and the node is marked for a new reading, while a change of a proof leaves the record intact. This made the repeated restructuring affordable, since the records showed exactly which statements had to be read again.
5 Lessons learned
5.1 Delimiting nodes is helpful
Our first attempt at organizing the results in AutolP took the shape of a conventional library, inspired by Mathlib, with formalizations of distinct nodes sharing a file. Thus the set of statements that required comparison was not delimited. Such organization made attestation of the correspondence between informal and formal statements cumbersome for us. Moreover, reviews by successive AI agents disagreed. For instance, GPT-5.6 Sol reviewed the library against slightly adapted² code-quality (generality, API design, naming, placement, proof quality, documentation and reuse) rubrics of Tau Ceti [28] and raised about 300 objections. Claude Opus 5, the model that wrote the code, acted on slightly over half of them and rejected the rest of the findings. When Claude Opus 5 then reviewed the material against the same rubrics, it raised more than 450 new objections. We stress that the model objected to the already revised code written by the same model in a separate session.
The reviews of correspondence between formal and informal statements were more stable but not settled: Claude Opus 5 judged 17 of the 224 nodes of the library at that time a mismatch. After the restructuring into the organization described above, three rounds of such reviews by Claude Opus 5.5 covered between 205 and 229 nodes each and found a single mismatch in total. (The number of nodes varies because the library changed between the rounds and one round did not cover all of it.) We attribute the improvement in part to the restructuring, which gave each review a delimited task, although the change of model may also have contributed.
5.2 Junk values are dangerous
Every function in Lean is total. A function that is meaningful only on part of its natural domain must still return a value elsewhere, and Mathlib returns an arbitrary value, often called a junk value. For example, Module.finrank, the dimension of a vector space as a natural number, is 0 on every infinite-dimensional space. Junk values are convenient when writing proofs by hand, since proper treatment of the out-of-domain values would lead to longer arguments. But they come with a cost: it is easy to write a formal statement that says less than intended. Our simplest example is the following lemma of the blueprint.
Lemma (Dimension counting). Let be a Hilbert space and let be subspaces with finite-dimensional and . Then .
It was initially formalized as
²Tau Ceti uses the rubrics for agentic review of single pull requests. We adapted them to library-wide review.
theorem Submodule.exists_ne_zero_mem_inf_orthogonal {U V : Submodule ℓ E} [U.HasOrthogonalProjection] [FiniteDimensional ℓ U] (h : Module.finrank ℓ U < Module.finrank ℓ V) : ∃ v : E, v ≠ 0 ∧ v ∈ V ∧ v ∈ U⊥
If V is infinite-dimensional, then Module.finrank ℓ V is 0 and the hypothesis h fails. The formal lemma therefore says nothing about infinite-dimensional V, although the informal one allows it. The current formalization compares dimensions as cardinals, which have no junk value on infinite-dimensional spaces:³
theorem Submodule.exists_ne_zero_mem_inf_orthogonal_of_rank_lt {U V : Submodule ℓ E} [FiniteDimensional ℓ U] (h : Module.rank ℓ U < Module.rank ℓ V) : ∃ v : E, v ≠ 0 ∧ v ∈ V ∧ v ∈ U⊥
The old statement is not vacuous: its hypotheses can be satisfied, and the non-vacuity tests described below would not have caught it. It is simply weaker than the informal lemma. To read a formal statement correctly, a reviewer must know the junk value of every function in it. AutolP aims to introduce no new junk values by defining each function on its natural domain. Its statements also carry hypotheses that rule out Mathlib's junk values. The resulting longer proofs are of little consequence, since the proofs are autoformalized.
Mathlib documents its junk values. In the case of Module.finrank it says
The rank of a module as a natural number.
For a finite-dimensional vector space V over a field k, Module.finrank k V is equal to the dimension of V over k.
For a general module M over a ring R, Module.finrank R M is defined to be the supremum of the cardinalities of the R-linearly independent subsets of M, if this supremum is finite. It is defined by convention to be 0 if this supremum is infinite. See Module.rank for a cardinal-valued version where infinite rank modules have rank an infinite cardinal.
5.3 Bad prose is confusing
An informal definition written for formalization should state the type of the object it defines and should live in a single definition environment in the blueprint. In the first version of the blueprint, the Moore–Penrose inverse violated these principles: it had no definition of its own; rather, it was introduced in a theorem.
Theorem (Existence and uniqueness of the Moore–Penrose inverse). Let and let . Then is bijective, and has a unique linear extension with
is called the Moore–Penrose inverse of . It is in general unbounded.
A second characterization, as a minimum-norm solution, was given in a subsequent theorem.
Theorem (The Moore–Penrose inverse computes the minimum norm solution). Let . Then (i) least squares solutions of exist, and are exactly the solutions of ; (ii) there is a unique minimum norm solution, namely ; (iii) the set of all least squares solutions is .
³The hypothesis [U.HasOrthogonalProjection] of the first version, which asks for the orthogonal projection onto to exist, is absent from the second only because it follows from [FiniteDimensional ℓ U] and Lean infers it automatically.
Here is the orthogonal projection onto . The autoformalization took the second characterization, which does not say explicitly that is a linear map. The resulting formal definition did not make a linear map on its domain.
def mpDomain (T : E →L[[k] F) : Submodule [k F := LinearMap.range T.toLinearMap ⊆ (LinearMap.range T.toLinearMap)⊥
noncomputable def moorePenrose (T : E →L[[k] F) (y : F) : E := if h : ∃ x, IsMinimumNorm T y x then h.choose else 0
Here E →L[[k] F is the space of bounded linear operators from E to F, and moorePenrose is a function on all of F, with junk value 0 outside the domain. Its linearity is two separate lemmas, each carrying the hypothesis . Every use of had to carry the same hypothesis and re-derive the same facts.
The current blueprint defines the inverse in one place.
Definition (The Moore–Penrose inverse). Let . The Moore–Penrose domain of is , and the Moore–Penrose inverse of is the linear map with domain sending to the minimum norm solution of in the sense of the definition of least squares and minimum norm solutions. Outside that domain takes no value. It is in general unbounded.
The formal definition follows it, as a linear map on , packaged as a partially defined linear map from to (the construction, still based on the minimum norm solution, and proofs of linearity are omitted).
noncomputable def moorePenroseLinear [CompleteSpace E] (T : E →L[[k] F) : mpDomain T →l[[k] E where ...
noncomputable def moorePenrose [CompleteSpace E] (T : E →L[[k] F) : F →l.[[k] E := 〈mpDomain T, moorePenroseLinear T〉
Here mpDomain T →l[[k] E is the space of linear maps from the domain to E, and F →l.[[k] E that of partially defined linear maps from F to E.
5.4 Non-vacuity tests catch mistakes
A theorem whose hypotheses are contradictory is provable and states nothing. A theorem whose hypotheses always hold may be read as stating more than it does. To guarantee that AutoIP does not contain such vacuous statements, for every statement in a specification, two obligations were generated using a deterministic (not AI-based) algorithm: exhibit an instance in which the hypotheses hold, and one in which they fail. AI agents were then instructed to prove that the obligations hold.
The satisfiability obligations exposed a theorem from the canon of the regularization theory literature whose hypothesis is far more restrictive than it appears. Let be a compact operator between Hilbert spaces, and for consider the source sets
Let be a family of maps , for example in Tikhonov regularization. A parameter choice is a map that selects the parameter from the noise level and the data . It is a priori if it depends on alone. The pair is a convergent regularization method if as for every , where
is the worst-case error. The pair is order optimal for and if there is such that
see [14, Def. 3.17] and [8, (4.8)]. Parameter choices such as the discrepancy principle compare the residual with for a fixed , and the theorem below is stated for the whole family of rescaled choices . Both sources state that if, for every , the pair is order optimal for a fixed and all , then it is a convergent regularization method [14, Thm. 3.18], [8, Thm. 4.14]. This abstract convergence theorem is true, but its hypothesis is far stronger than it looks.
Take , which lies in for every , and data with . The reconstruction is then at distance at most from for every . Since does not depend on , letting shows that the method returns 0 on all data with . The hypothesis asks for one parameter choice that works for all , so a priori rules tuned to a given are not admitted. For an a priori parameter choice, where depends on alone and is linear, this means for every , so the method can converge only if , that is, . Likewise, if the parameter choice takes values in , as in our definition, a family of injective , such as Tikhonov regularization, returns 0 only on , so it satisfies the hypothesis only if .
The discrepancy principle of [14] avoids the second restriction: on data with it chooses and returns 0, which is exactly what the hypothesis demands. The application of the abstract convergence theorem to the discrepancy principle there [14, Thm. 4.17] is therefore sound. A priori rules, however, cannot satisfy the hypothesis, although right after the proof of the theorem [14, p. 63] states that “the assumptions of Theorem 3.18 are fulfilled for all parameter choice strategies that will be considered in this book”. The lecture notes [8] define the discrepancy principle without the value , and use the theorem to prove convergence both for a priori rules and for the discrepancy principle [8, Thms. 5.9 and 5.11]. These appeals to the theorem fail, although the convergence results themselves remain true.
The abstract convergence theorem was initially formalized and proved in AutoIP, with parameter choices taking values in as in [8]. Its satisfiability obligation was first discharged with on the trivial space, which raised no alarm. However, when the non-vacuity witnesses were later required to be non-trivial, this obligation was the only one that kept the zero operator. An agent review then explained why the hypothesis can hold only in degenerate cases, and the theorem was removed from the library.
No formal proof in AutoIP had ever used the theorem, while the agents were given natural language proofs, following [8], that deduce the convergence of, for example, Tikhonov regularization from it. The autoformalization produced correct convergence proofs that bypassed the theorem. Aligned statements guarantee that the theorems proved are the intended ones. They say nothing about whether a formal proof follows an informal one. In this case the divergence hid a gap in the informal proofs: the appeals to the abstract convergence theorem fail, although the theorems they serve remain true. That a verified formalization need not validate the informal proof it started from is discussed further in [6].
6 Comparison with Armstrong’s workflow
A detailed account of an autoformalization workflow is given by Armstrong [4], together with the instructions he gives to his agents [5]. It is probably the most thorough account available at the time of writing. These instructions were published in October 2026, when our work had largely been carried out, which is why we did not follow them more closely. Nonetheless, our approach shares the basic principles with that of Armstrong. Proofs may be left unfinished while statements are settled, but definitions may not, and a definition must not introduce junk values. A person signs off on the correspondence between a formal statement and its informal counterpart, and such attestations are recorded. Beyond this, the two approaches differ in ways that reflect the material they were applied to.
Armstrong formalizes research papers, where the route of a proof may need to be chosen, steps are left implicit, and the source may contain errors. His agents first extract from the paper a dependency graph that records the results, the substantive steps of their proofs, alternative routes, and the places where the argument has gaps. AutoIP consists of textbook material with clear dependencies. The blueprint already gives such a graph, its nodes connected by their cross-references. The graph can be extracted programmatically using a LaTeX parser such as plasTeX [23], and a separate graph would be redundant for us.
Formalizing a research paper often leads to a deep tree of statements with the root corresponding to the main result of the paper, while AutoIP is a forest of statements that form shallower chains. Armstrong selects a small set of key statements that are approved by the author before any proof work starts and then frozen. A statement that turns out to be wrong is replaced by a new version, with renewed approval. Freezing guards against a statement being quietly weakened to make its proof go through. Consequences of such a weakening are smaller in a shallow forest than in a deep tree, since fewer statements are affected by it. We deferred reviewing statements until after they had been proved. On the one hand, no reading was spent on statements that were later changed or discarded while the proofs were written. On the other hand, bad design choices by an agent went unnoticed until they had global consequences. For instance, repairing the awkward formalization of the Moore–Penrose inverse, described in Section 5.3, required several hours of agent compute.
Armstrong's agents audit each statement by a protocol that establishes the correspondence between premises of the formal statement and those of the informal one. Each hypothesis and argument must be justified as a piece of the informal text, part of setting up the types, or a correction approved by the author. Such a procedure did not occur to us. In turn, we generate non-vacuity tests programmatically, and Armstrong's workflow seems to have no systematic counterpart to them. The two kinds of checks complement each other. The abstract convergence theorem of Section 5.4 would pass Armstrong's classification, since its hypothesis is taken from the informal source. It was caught by a non-vacuity test. Conversely, our non-vacuity tests cannot detect a hypothesis that is satisfiable but should not be there. Neither kind of test would catch the dimension counting lemma of Section 5.2, whose hypothesis corresponds to one in the source text but is distorted by the junk value of a library function.
7 An invitation to contribute
The review model of AutoIP places the human effort where human judgement is needed: in deciding whether a formal statement captures the meaning of the informal one. This is also its present bottleneck. Of the roughly two hundred nodes of the library, all have been attested by AI agents, but only some by the authors so far. The human-reviewed nodes include all definitions that construct new objects (the remaining definitions either cite Mathlib or define predicates). Reading a specification against its node in the blueprint requires familiarity with the mathematics and the ability to read Lean statements, but no experience in writing Lean proofs. We therefore see such attestation as the most valuable contribution, and also as the natural way into the library.
A second way to contribute is to extend the blueprint. A new chapter, written as ordinary LaTeX in the style of the existing ones, can be formalized by AI agents along the lines described above. Natural candidates are results that are classical but absent from the present selection, such as those related to regularization of nonlinear problems or to Bayesian inverse problems. Some of these need foundations that are not yet formalized, and part of the work is to identify them.
Finally, some of the infrastructure in AutoIP is of general interest and belongs in general libraries. The singular systems of compact operators and the Moore–Penrose inverse with its natural domain, discussed in Section 2.1, are examples. Moving such material into Mathlib or Tau Ceti, and replacing it in AutoIP with citations, keeps the library focused on the theory specific to inverse problems.
Contributions of this kind require shared conventions on review, credit and the disclosure of AI use. We do not try to settle them here. Instead, we invite the community to discuss them. A possible forum is the AutoIP repository, https://github.com/l-oksanen/autoip/discussions.
8 Discussion and outlook
AutoIP covers classical material that has been settled for decades, and its blueprint follows mainly two sources [8, 14]. A library of this kind does not show that research mathematics in inverse problems can be formalized as easily. Nonetheless, even this material contained a theorem whose hypothesis is far more restrictive than stated, and which is applied where the hypothesis does not hold. It was found not by reading but by a mechanical test, and then only once the test was made strict enough. We expect that formalizing more recent and less scrutinized work will expose more such issues, and we see this as one of the main benefits of formalization for the field.
The lessons above also show what formalization does not provide. A machine-checked proof certifies its formal statement and nothing else. Statements can be weakened by junk values, definitions can be formalized in a shape that is technically correct but awkward to use, and a formal proof can diverge from the informal proof it was meant to follow without anyone noticing. None of these issues is detected by the proof checker, and all of them were found by people or by tests designed by people, with agents helping to diagnose them. The human work therefore shifts from checking proofs to specifying statements and reviewing them. This work requires deciding what was meant, and it is not clear that it becomes cheaper as the models improve. The disagreements between AI reviewers reported above, and the fact that an agent review accepted the first formalization of the Moore–Penrose inverse, suggest that it cannot simply be delegated to them either.
The cost of formalization will likely continue to fall. If it does, we expect formal proofs to become a routine companion of research papers in inverse problems, as numerical code is today, and formal libraries to become part of the infrastructure of the field. For this to happen, the community needs shared libraries, shared conventions for what a reviewer must check, and people willing to do the review.
Data availability statement
The Lean 4 source code and LTX blueprint are openly available at https://github.com/l-oksanen/autoip.
Use of AI tools
The Lean 4 code of AutoIP was written by AI agents: Claude Opus 5 and, from late September 2026, Claude Opus 5.5 (Anthropic). The same agents processed the proofs in the blueprint, whose statements follow [8, 14]. The code was reviewed by AI agents, GPT-5.6 Sol (OpenAI) and Claude Opus 5 and 5.5, as described in the section on lessons learned. The non-vacuity obligations were generated by a deterministic program and proved by Claude Opus 5.5. All proofs are checked by the Lean 4 kernel, and the correspondence between formal and informal statements is attested as described in Section 3. The development was carried out with monthly subscriptions to the Claude Team plan for scientists. A single premium seat for three months would have sufficed for the entire development, although in practice most authors used plans of their own. The reviews by GPT-5.6 Sol used a single monthly ChatGPT Plus subscription.
In preparing this manuscript, Claude Opus 5.5 was used to search the version history of the repositories and the Tau Ceti project for the data reported here, to draft parts of the text and the bibliography, and to typeset the Lean listings. The authors reviewed and edited all text and take full responsibility for the content.
Acknowledgements
L.O. was supported by the European Research Council of the European Union, grant 101086697 (LoCal), and the Research Council of Finland grant 359182 (Flagship of Advanced Mathematics for Sensing Imaging and Modelling). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the other funding organizations.
References
[1] Anthropic. Formalizing Fermat's Last Theorem. https://www.anthropic.com/research/formalizing-fermats-last-theorem, 2026. 4 September 2026.
[2] K. Appel and W. Haken. Every planar map is four colorable. Part I: Discharging. Illinois Journal of Mathematics, 21(3):429–490, 1977.
[3] K. Appel, W. Haken, and J. Koch. Every planar map is four colorable. Part II: Reducibility. Illinois Journal of Mathematics, 21(3):491–567, 1977.
[4] S. Armstrong. Autoformalization is now very easy. Blog post, https://www.scottnarmstrong.com/2026/10/autoformalization-is-now-very-easy/, 2026. 4 October 2026; accessed 19 October 2026.
[5] S. Armstrong. LeanAutoformalizationSkills: skills for formalizing mathematics in Lean 4 with Codex or Claude Code. https://github.com/scottnarmstrong/LeanAutoformalizationSkills, 2026. Commit 05a0731, 7 October 2026; accessed 20 October 2026.
[6] A. Bastounis, F. Circelli, and A. C. Hansen. Navier–Stokes lost in translation: Why Lean verification of AI autoformalisation does not guarantee correct natural language proofs, 2026. arXiv:2610.08144, doi:10.48550/arXiv.2610.08144.
[7] S. Chen, K. Marwaha, X. Lu, H. Yuen, and T. Peng. Prove2Me: An open collaborative platform for scaling math formalization, 2026. arXiv:2608.28433, doi:10.48550/arXiv.2608.28433.
[8] C. Clason. Regularization of inverse problems. Lecture notes, 2021. arXiv:2001.00617.
[9] T. Coquand and G. Huet. The calculus of constructions. Information and Computation, 76(2-3):95-120, 1988.
[10] N. G. de Bruijn. AUTOMATH, a language for mathematics. T.H.-Report 68-WSK-05, Technische Hogeschool Eindhoven, 1968.
[11] N. G. de Bruijn. The mathematical language AUTOMATH, its usage, and some of its extensions. In Symposium on Automatic Demonstration (Versailles, December 1968), volume 125 of Lecture Notes in Mathematics, pages 29–61. Springer, 1970.
[12] L. de Moura, S. Kong, J. Avigad, F. van Doorn, and J. von Raumer. The Lean theorem prover (system description). In Automated Deduction – CADE-25, volume 9195 of Lecture Notes in Computer Science, pages 378–388. Springer, 2015.
[13] L. de Moura and S. Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, volume 12699 of Lecture Notes in Computer Science, pages 625–635. Springer, 2021.
[14] H. W. Engl, M. Hanke, and A. Neubauer. Regularization of Inverse Problems, volume 375 of Mathematics and Its Applications. Kluwer Academic Publishers, Dordrecht, 1996.
[15] G. Gonthier. Formal proof—the four-color theorem. Notices of the American Mathematical Society, 55(11):1382–1393, 2008.
[16] A. Kirsch. An Introduction to the Mathematical Theory of Inverse Problems, volume 120 of Applied Mathematical Sciences. Springer, New York, second edition, 2011. doi:10.1007/978-1-4419-8474-6.
[17] Kitware, Inc. AIQ DKPS formalization. https://github.com/AIQ-Kitware/aiq-dkps-formalization, 2026. Apache-2.0; accessed 19 October 2026.
[18] P. Mathé and S. V. Pereverzev. Geometry of linear ill-posed problems in variable Hilbert scales. Inverse Problems, 19(3):789–803, 2003. doi:10.1088/0266-5611/19/3/319.
[19] J. McCarthy. Computer programs for checking mathematical proofs. In Recursive Function Theory, volume 5 of Proceedings of Symposia in Pure Mathematics, pages 219–227. American Mathematical Society, 1962.
[20] R. Milner. Logic for computable functions: description of a machine implementation. Stanford Artificial Intelligence Memo AIM-169, Stanford University, 1972.
[21] L. Oksanen. sini: navigation between a LaTeX blueprint, its PDF and a Lean library in Visual Studio Code. https://github.com/l-oksanen/sini-vscode, 2026. Accessed 20 October 2026.
[22] OpenAI. Sharing AI progress in mathematics. https://openai.com/index/sharing-ai-progress-in-mathematics/, 2026. 6 October 2026; manuscripts at https://github.com/openai/math. Accessed 17 October 2026.
[23] plasTeX: a LaTeX document processing framework in Python. https://github.com/plastex/plastex, 2026. Accessed 20 October 2026.
[24] The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), pages 367–381. ACM, 2020.
[25] The Tau Ceti contributors. The Moore–Penrose inverse and its characterization by the Penrose equations. Tau Ceti pull request #13805, https://github.com/TauCetiProject/TauCeti/pull/13805, 2026. Merged 9 October 2026.
[26] The Tau Ceti contributors. Polar decomposition: functional calculus, the operator modulus, and singular systems. Tau Ceti roadmap, https://github.com/TauCetiProject/TauCetiRoadmap/blob/main/TauCetiRoadmap/OperatorTheory/PolarDecomposition/README.md, 2026. Accessed 19 October 2026.
[27] The Tau Ceti contributors. Tau ceti: an AI-welcome Lean 4 library downstream of Mathlib. https://github.com/TauCetiProject/TauCeti, 2026. Commit cfda6ef, accessed 19 October 2026.
[28] The Tau Ceti contributors. TauCetiReview: review rubrics and machinery for Tau Ceti. https://github.com/TauCetiProject/TauCetiReview, 2026. Rubrics in the directory rubrics/; accessed 19 October 2026.
[29] trellis: a formalization harness for guiding agents from a natural-language mathematical proof to a verified Lean development. https://github.com/wpegden/trellis, 2026. Accessed 19 October 2026.
[30] T. Tymoczko. The four-color problem and its philosophical significance. The Journal of Philosophy, 76(2):57–83, 1979.
[31] Q. Wang, C. Kaliszyk, and J. Urban. First experiments with neural translation of informal to formal mathematics. In Intelligent Computer Mathematics (CICM 2018), volume 11006 of Lecture Notes in Computer Science, pages 255–270. Springer, 2018. doi:10.1007/978-3-319-96812-4_22.
[32] Y. Wu, A. Q. Jiang, W. Li, M. N. Rabe, C. Staats, M. Jamnik, and C. Szegedy. Autoformalization with large language models. In Advances in Neural Information Processing Systems, volume 35, 2022.