paper-with-me

Papers

Lean Copilot: Large Language Models as Copilots for Theorem Proving in Lean

2024-04-18 · Peiyang Song, Kaiyu Yang, Anima Anandkumar

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.

📄 PDF Abstract BibTeX arXiv:2404.12534

Code (2)

lean-dojo/leancopilot 공식 구현 pytorch
lean-dojo/leaninfer pytorch

Tasks

Automated Theorem ProvingHallucination

Similar Papers 제목 키워드 기반

Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning

2024-12-19 · Simon Frieder, Jonas Bayer, Katherine M. Collins, Julius Berner 외

The suite of datasets commonly used to train and evaluate the mathematical capabilities of AI-based mathematical copilots (primarily large language models) exhibit several shortcomings. These limitations include a restri…

Math

Do It For Me vs. Do It With Me: Investigating User Perceptions of Different Paradigms of Automation in Copilots for Feature-Rich Software

2025-04-22 · Anjali Khurana, Xiaotian Su, April Yi Wang, Parmit K Chilana

Large Language Model (LLM)-based in-application assistants, or copilots, can automate software tasks, but users often prefer learning by doing, raising questions about the optimal level of automation for an effective use…

Language ModelingLanguage ModellingLarge Language Model

Modeling and Optimizing User Preferences in AI Copilots: A Comprehensive Survey and Taxonomy

2025-05-28 · Saleh Afzoon, Zahra Jahanandish, Phuong Thao Huynh, Amin Beheshti 외

AI copilots represent a new generation of AI-powered systems designed to assist users, particularly knowledge workers and developers, in complex, context-rich tasks. As these systems become more embedded in daily workflo…

Large Language ModelRecommendation Systems

Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repair

2023-09-01 · Yuxiang Wei, Chunqiu Steven Xia, Lingming Zhang

During Automated Program Repair (APR), it can be challenging to synthesize correct patches for real-world systems in general-purpose programming languages. Recent Large Language Models (LLMs) have been shown to be helpfu…

Code GenerationProgram Repairvalid

MEDCO: Medical Education Copilots Based on A Multi-Agent Framework

2024-08-22 · Hao Wei, Jianing Qiu, Haibao Yu, Wu Yuan

Large language models (LLMs) have had a significant impact on diverse research domains, including medicine and healthcare. However, the potential of LLMs as copilots in medical education remains underexplored. Current AI…