Lune

ACL2026顶会

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

Jordan Meadows, Lan Zhang, André Freitas

摘要

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 (e.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 syntactically correct and semantically 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

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Llemma: An Open Language Model for Mathematics 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
  • Llemma: An Open Language Model for Mathematics 引用了 Autoformalization with Large Language Models
  • Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency 引用了 Llemma: An Open Language Model for Mathematics
  • Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency 引用了 Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
  • Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency 引用了 Autoformalization with Large Language Models
  • Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs 引用了 Autoformalization with Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper18

  1. Executable Code Actions Elicit Better LLM AgentsXingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang 等ICML 2024 · 436 次引用
  2. Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos 等ICLR 2024 · 433 次引用
  3. Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe 等NeurIPS 2022 · 364 次引用
  4. Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic ConsistencyZenan Li, Yifan Wu, Zhaoyu Li, Xinming Wei 等NeurIPS 2024 · 48 次引用
  5. Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal ProofsAlbert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothée Lacroix 等ICLR 2023 · 25 次引用

相关 Paper

  1. PRISM-Physics: Causal DAG-Based Process Evaluation for Physics ReasoningWanjia Zhao, Qinwei Ma, Jingzhe Shi, Shirley Wu 等ICLR 2026 · 4 次引用
  2. Autoformalizing Euclidean GeometryLogan Murphy, Kaiyu Yang, Jialiang Sun, Zhaoyu Li 等ICML 2024 · 16 次引用
  3. Lean4Physics: Comprehensive Reasoning Framework for College-level Physics in Lean4Yuxin Li, Minghao Liu, Ruida Wang, Wenzhao Ji 等ICLR 2026 · 7 次引用
  4. LoC-Decomp: LLM Autoformalization via Logical Concept Decomposition and Iterative Feedback CorrectionJiangze Shi, Zhiwei Zhang, Baoquan Ma, Shuai Zhao 等ICLR 2026
  5. ProofFlow: A Dependency Graph Approach to Faithful Proof AutoformalizationRafael Cabral, Tuan Manh Do, Xuejun Yu, Wai Ming Tai 等ICLR 2026 · 21 次引用
黄昏的海面,两侧是细线勾勒的悬崖