HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Lyra: Orchestrating Dual Correction in Automated Theorem Proving

Chuanyang Zheng Haiming Wang Enze Xie Zhengying Liu Jiankai Sun Huajian Xin Jianhao Shen Zhenguo Li Yu Li

Lyra: Orchestrating Dual Correction in Automated Theorem Proving

Abstract

Large Language Models (LLMs) present an intriguing avenue for exploration in the field of formal theorem proving. Nevertheless, their full potential, particularly concerning the mitigation of hallucinations and refinement through prover error messages, remains an area that has yet to be thoroughly investigated. To enhance the effectiveness of LLMs in the field, we introduce the Lyra, a new framework that employs two distinct correction mechanisms: Tool Correction (TC) and Conjecture Correction (CC). To implement Tool Correction in the post-processing of formal proofs, we leverage prior knowledge to utilize predefined prover tools (e.g., Sledgehammer) for guiding the replacement of incorrect tools. Tool Correction significantly contributes to mitigating hallucinations, thereby improving the overall accuracy of the proof. In addition, we introduce Conjecture Correction, an error feedback mechanism designed to interact with prover to refine formal proof conjectures with prover error messages. Compared to the previous refinement framework, the proposed Conjecture Correction refines generation with instruction but does not collect paired (generation, error & refinement) prompts. Our method has achieved state-of-the-art (SOTA) performance on both miniF2F validation (48.0% -> 55.3%) and test (45.5% -> 51.2%). We also present 3 IMO problems solved by Lyra. We believe Tool Correction (post-process for hallucination mitigation) and Conjecture Correction (subgoal adjustment from interaction with environment) could provide a promising avenue for future research in this field.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
automated-theorem-proving-on-minif2f-testLyra + GPT-4
ITP: Isabelle
Pass@100: 47.1
cumulative: 47.1
automated-theorem-proving-on-minif2f-validLyra + GPT-4
Pass@100: 52.0

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Lyra: Orchestrating Dual Correction in Automated Theorem Proving | Papers | HyperAI