arXiv:2610.40560cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40560

FARMS: A Verifiable Foundation for Automated Computational Science

Di Wu, Ling Liang, Haizhao Yang

Abstract

Automated computational science could accelerate discovery by selecting, adapting and developing numerical methods. This prospect requires mathematical knowledge that AI systems can interpret and reuse with explicit guarantees. Here we present FARMS, a faithful and efficient foundation that transforms computational mathematics into AI-ready computing knowledge. FARMS connects formal statements to source context, algorithmic meaning and quantitative guarantees through source preparation, reusable representations and semantic review. Across 171 targets in randomized numerical linear algebra and numerical partial differential equations, 157 were accepted by the pipeline, with mean estimated costs of US $0.85–2.29 per target across sources. Lean-checked implications from explicit source premises connect selected statements to computational skills, illustrated by a heat-flow solve and wave-response compression. FARMS therefore supports an affordable, reusable knowledge foundation for trustworthy automated computational science.

GitHub repo: https://github.com/Woody2357/FARMS-Computational-Science

Project page: https://woody2357.github.io/FARMS-Computational-Science/

1 Introduction

Artificial intelligence (AI) is expanding the ways in which scientific knowledge can be discovered and used 1−3^{1-3}. One opportunity is to develop the computational methods that make new investigations possible. Advances in automated algorithm discovery 4^{4}, from matrix multiplication 5^{5} to program search 6^{6}, show that AI can contribute to the machinery of computation itself. Extending this capability across computational science calls for a mathematical foundation that AI systems can use to select methods, combine their guarantees and reason about proposed improvements. Such a foundation would allow automated discovery to build on the accumulated knowledge of computational mathematics, with the conditions supporting each computational decision available for inspection and checking.

Randomized numerical linear algebra and numerical partial differential equations (PDEs) are central to this opportunity. Randomized methods make large matrix problems tractable through sampling, sketching and low-rank approximation, supporting efficient analysis and computation at scale 7;8^{7;8}. Numerical PDE methods connect mathematical models of physical systems to simulations through discretization, stability and error analysis 9^{9}. Randomized sketching also yields preconditioners that accelerate the iterative solution of large least-squares and linear systems 10;11^{10;11}, while low-rank representations compress families of simulated responses for repeated use 12^{12}, connecting linear algebra to the computation and reuse of simulation results. Making their mathematical knowledge accessible to AI would provide reusable components for developing computational methods across a broad range of scientific problems.

Much of this knowledge is expressed through relationships among theorems, algorithms and surrounding explanations. A randomized approximation guarantee depends on how samples are drawn, which outputs the algorithm can construct and how success is measured. A PDE estimate may depend on boundary conditions, regularity and a particular error norm. These relationships determine whether a guarantee can support a computation. An AI-ready representation must therefore be faithful to the computational meaning of the source, preserving the conditions that connect a method to its guarantees. Constructing such representations must also be efficient if researchers are to extend them across the growing literature and share them as a community resource.

Formal mathematics provides a foundation for explicit representations and machine-checked reasoning 13−16^{13-16}. Advances in neural theorem proving 17−20^{17-20} and autoformalization 21;22^{21;22} have broadened access to this foundation, supported by shared mathematical benchmarks 23;24^{23;24}. These efforts increasingly encompass textbook libraries and applied mathematics 25−28^{25-28}. Recent work in numerical analysis 29^{29} and physics reasoning 30^{30} report that compilation-based metrics overstate formalization quality and audits translations for semantic correctness and library reuse. Research on statement evaluation draws the same distinction between successful compilation and faithful representation of a source claim 31;32^{31;32}. For computational science, these developments create an opportunity to connect mathematical literature with the practical reasoning needed to use numerical methods. This requires representations that retain algorithmic operations, quantitative guarantees and the dependencies needed to combine them in scientific workflows.

Here we present FARMS (Faithful Alignment and Representation of Mathematical Statements), a faithful and efficient foundation for automated computational science. FARMS turns mathematical literature into AI-ready computing knowledge by connecting formal statements to their source context and computational interpretation. Source preparation recovers the algorithms and definitions needed to interpret each claim; reusable domain representations support formalization; and compilation, semantic review and bounded repair assess the resulting statements. Selected statements can then be combined through Lean-checked implications to form computational skills with explicit applicability conditions. This organization connects knowledge construction to its subsequent use in numerical reasoning and computation.

We study 171 targets from four sources in randomized numerical linear algebra and numerical PDEs 7−9;33^{7-9;33}. The cumulative collection contains 157 pipeline-accepted formalizations, with mean estimated costs of US 0.85–2.29 per target across sources. On six randomly selected targets, FARMS costs an estimated US 2.84 per target, compared with US 58.02 for our statement-level adaptation of AutoformBot. We further demonstrate knowledge reuse in a steady heat-flow solve and compression of wave-response libraries, where mathematical guarantees guide accuracy decisions. Together, these results support a practical route to a verifiable foundation for automated computational science: faithful computing knowledge, checked connections to applications and efficient construction that can lower the cost of community participation in trustworthy automated scientific discovery.

References (43)