mlsanityData to 7 Oct 2026

FormalScience: Scalable Human-in-the-Loop Autoformalisation of Science with Agentic Code Generation in Lean

arXiv 2604.23002 ↗First posted 24 Apr 2026cs.AI cs.CLcited by 4

On the map: LLM reasoning → Mathematical reasoning

also in 1 more
Abstract (arXiv)

Formalising informal mathematical reasoning into formally verifiable code is a significant challenge for large language models. In scientific fields such as physics, domain-specific machinery (textite.g. Dirac notation, vector calculus) imposes additional formalisation challenges that modern LLMs and agentic approaches have yet to tackle. To aid autoformalisation in scientific domains, we present FormalScience; a domain-agnostic human-in-the-loop agentic pipeline that enables a single domain expert (without deep formal language experience) to produce textitsyntactically correct and textitsemantically aligned formal proofs of informal reasoning for low economic cost. Applying FormalScience to physics, we construct FormalPhysics, a dataset of 200 university-level (LaTeX) physics problems and solutions (primarily quantum mechanics and electromagnetism), along with their Lean4 formal representations. Compared to existing formal math benchmarks, FormalPhysics achieves perfect formal validity and exhibits greater statement complexity. We evaluate open-source models and proprietary systems on a statement autoformalisation task on our dataset via zero-shot prompting, self-refinement with error feedback, and a novel multi-stage agentic approach, and explore autoformalisation limitations in modern LLM-based approaches. We provide the first systematic characterisation of semantic drift in physics autoformalisation in terms of concepts such as notational collapse and abstraction elevation which reveals what formal language verifies when full semantic preservation is unattainable. We release the codebase together with an interactive UI-based FormalScience system which facilitates autoformalisation and theorem proving in scientific domains beyond physics.https://github.com/jmeadows17/formal-science

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 32 of its 51 references that are in the map. First posted on arXiv 24 Apr 2026.

Builds on

32 of 51 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoning12 Jun
  2. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition30 Apr
  3. 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learning15 Apr
  4. 2024Herald: A Natural Language Annotated Lean 4 Dataset9 Oct
  5. 2023Llemma: An Open Language Model For Mathematics16 Oct

Other references · 27

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
  3. 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
  4. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  5. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  6. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
  7. 2025The AI Scientist-v2: Workshop-Level Automated Scientific Discovery via Agentic Tree Searchcited by 375
  8. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
  9. 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 180
  10. 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 153
  11. 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 115
  12. 2024Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistencycited by 39
15 more
  1. 2024Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Provingcited by 35
  2. 2024Reliable Evaluation and Benchmarks for Statement Autoformalizationcited by 25
  3. 2025ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Datacited by 23
  4. 2024Consistent Autoformalization for Constructing Mathematical Librariescited by 20
  5. 2025Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitionscited by 20
  6. 2024Enhancing Ethical Explanations of Large Language Models through Iterative Symbolic Refinementcited by 16
  7. 2024MathGAP: Out-of-Distribution Evaluation on Problems with Arbitrarily Complex Proofscited by 12
  8. 2022Formalizing Chemical Physics using the Lean Theorem Provercited by 9
  9. 2025Grammars of Formal Uncertainty: When to Trust LLMs in Automated Reasoning Taskscited by 9
  10. 2025DRIFT: Decompose, Retrieve, Illustrate, then Formalize Theoremscited by 8
  11. 2025Towards a Common Framework for Autoformalizationcited by 7
  12. 2021Similarity-Based Equational Inference in Physicscited by 4
  13. 2024Exploring the Limits of Fine-grained LLM-based Physics Inference via Premise Removal Interventionscited by 3
  14. 2025Improving Autoformalization Using Direct Dependency Retrievalcited by 2
  15. 2025MSC-180: A Benchmark for Automated Formal Theorem Proving from Mathematical Subject Classificationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics
  2. 2025Chain of Unit-Physics: A Primitive-Centric Approach to Scientific Code Synthesis
  3. 2026Formalizing Mathematics at Scale
  4. 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
  5. 2026AIProver: Agentic Auto-Formalization of Mathematical Research via Certificate-Driven Evolving Harness
  6. 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physics
  7. 2026Advancing Mathematics Research with AI-Driven Formal Proof Search
  8. 2026PhysProver: Advancing Automatic Theorem Proving for Physics