Neural theorem proving combines large language models (LLMs) with proof assistants such as Lean, where the correctness of formal proofs can be rigorously verified, leaving no room for hallucination. With existing neural theorem provers pretrained on a fixed collection of data and offering valuable suggestions at times, it is challenging for them to continually prove novel theorems in a fully autonomous mode, where human insights may be critical. In this paper, we explore LLMs as copilots that assist humans in proving theorems. We introduce Lean Copilot, a general framework for running LLM inference natively in Lean. It enables programmers to build various LLM-based proof automation tools that integrate seamlessly into the workflow of Lean users. Lean users can use our pretrained models or bring their own ones that run either locally (with or without GPUs) or on the cloud. Using Lean Copilot, we build LLM-based tools that suggest proof steps, complete proof goals, and select relevant premises. Experimental results on the Mathematics in Lean textbook demonstrate the effectiveness of our method compared to existing rule-based proof automation in Lean (aesop). When assisting humans, Lean Copilot requires only 2.08 manually-entered proof steps on average (3.86 required by aesop); when automating the theorem proving process, Lean Copilot automates 74.2% proof steps on average, 85% better than aesop (40.1%). We open source all code and artifacts under a permissive MIT license to facilitate further research.
From LLM-Generated Conjectures to Lean Formalizations: Automated Polynomial Inequality Proving via Sum-of-Squares Certificates
School of Software Engineering, East China Normal University, Shanghai, China(东华大学软件工程学院);College of Computer Science and Technology, National University of Defense Technology, Changsha, China(国防科技大学计算机科学与技术学院);School of Computer and Information Engineering, Henan University, Kaifeng, China(河南大学计算机与信息工程学院)
MathlibLemma: Folklore Lemma Generation and Benchmark for Formal Mathematics
Department of Computer Science, University of Virginia(弗吉尼亚大学计算机科学系);Astronomy , California Institute of Technology(加州理工学院天文学系);Purdue University(普渡大学);Massachusetts Institute of Technology(麻省理工学院)
IneqAgent: Agentic Inequality Proving in Lean with Symbolic Computation
School of Software Engineering, East China Normal University(华东师范大学软件工程学院);School of Computer and Information Science, Southwest University(西南大学计算机与信息科学学院)
LeanConjecturer: Automatic Generation of Mathematical Conjectures for Theorem Proving
OMRON SINIC X Corporation(OMRON SINIC X公司);Department of Physics, Kyoto University(京都大学物理系);AI Innovation Research Promotion Center, Shiga University(Shiga大学AI创新研究促进中心);Research and Development Center for Large Language Models, National Institute of Informatics(国家信息研究所大型语言模型研究开发中心);National Institute of Science and Technology Policy (NISTEP)(科学技术政策研究所)
Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs
D-CHAB, ETH Zurich, Zurich, Switzerland.;D-INFK, ETH Zurich, Zurich, Switzerland.;ETH AI Center, Zurich, Switzerland.;University of Pennsylvania, PA, USA.;Independent Researcher.
FAIR at Meta(Meta 的 FAIR 部门);Inria(法国国家科学与技术研究院);Sorbonne Université(索邦大学);Institut universitaire de France(法国国家科学研究院);CERMICS École des Ponts ParisTech(巴黎理工学院 CERMICS 实验室);ENS, PSL Research University(巴黎高等师范学院与巴黎科学实验室)
LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Proving
School of Mathematical Sciences, Peking University(北京大学数学科学学院);IQuest Research(IQuest研究院);Research Institute for Mathematical Sciences, Kyoto University(京都大学数学研究所);Westlake Institute for Advanced Study, Westlake University(西湖研究所在线高级研究院);Beijing International Center for Mathematical Research and the New Cornerstone Science Laboratory, Peking University(北京国际数学研究中心和新基石科学实验室,北京大学);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心);Center for Intelligent Computing, Great Bay Institute for Advanced Study, Great Bay University(智能计算中心,Great Bay高级研究院,Great Bay大学);Zhongguancun Academy(中关村学院)
Proof Artifact Co-training for Theorem Proving with Language Models
University of Pittsburgh(匹兹堡大学);OpenAI;IBM Research(IBM研究院);Google Research(谷歌研究院);Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学);CIBO Technologies(CIBO科技);University of Toronto(多伦多大学);University of Cambridge(剑桥大学)
Combining Textual and Structural Information for Premise Selection in Lean
Faculty of Mathematics and Physics, University of Ljubljana(卢布尔雅纳大学数学与物理学院);University of Ljubljana(卢布尔雅纳大学);Department of Knowledge Technologies, Jožef Stefan Institute(知识技术系,乔泽夫·斯塔芬研究所)
Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics
Academy of Mathematics and Systems Science, University of Chinese Academy of Sciences(中国科学院数学与系统科学研究院);Tongji University(同济大学);University of Cambridge(剑桥大学);Imperial College London(伦敦帝国学院);University of Edinburgh(爱丁堡大学);University of Liverpool(利物浦大学);Xi'an Jiaotong-Liverpool University(西安交通大学利物浦大学)
Safe: Enhancing Mathematical Reasoning in Large Language Models via Retrospective Step-aware Formal Verification
School of Computer Science, National Key Laboratory for Multimedia Information Processing, PKU-Anker LLM Lab, Peking University(计算机学院、多媒体信息处理国家重点实验室、PKU-Anker LLM实验室、北京大学);Huawei Noah’s Ark Lab(华为诺亚实验室);The Hong Kong University of Science and Technology(香港科技大学);The Hong Kong Polytechnic University(香港理工大学)
Discover and Prove: An Open-source Agentic Framework for Hard Mode Automated Theorem Proving in Lean 4
State Key Laboratory for Multimedia Information Processing, School of Computer Science, PKU-Anker LLM Lab, Peking University(信息处理国家重点实验室,计算机科学学院,PKU-Anker LLM实验室,北京大学);Huawei Technologies Co., Ltd.(华为技术有限公司);School of Software & Microelectronics, Peking University(软件与微电子学院,北京大学);School of Electronics Engineering and Computer Science, Peking University(电子工程与计算机科学学院,北京大学)
TheoremBench: Evaluating LLMs on Theorem Proving in Formal Mathematics
Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究所);HSE University(高等经济大学);Artificial Intelligence Research Institute(人工智能研究所);Sberbank(俄罗斯联邦储蓄银行)