HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers

Albert Q. Jiang Wenda Li Szymon Tworkowski Konrad Czechowski Tomasz Odrzygóźdź Piotr Miłoś Yuhuai Wu Mateja Jamnik

Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers

Abstract

In theorem proving, the task of selecting useful premises from a large library to unlock the proof of a given conjecture is crucially important. This presents a challenge for all theorem provers, especially the ones based on language models, due to their relative inability to reason over huge volumes of premises in text form. This paper introduces Thor, a framework integrating language models and automated theorem provers to overcome this difficulty. In Thor, a class of methods called hammers that leverage the power of automated theorem provers are used for premise selection, while all other tasks are designated to language models. Thor increases a language model's success rate on the PISA dataset from $39\%$ to $57\%$, while solving $8.2\%$ of problems neither language models nor automated theorem provers are able to solve on their own. Furthermore, with a significantly smaller computational budget, Thor can achieve a success rate on the MiniF2F dataset that is on par with the best existing methods. Thor can be instantiated for the majority of popular interactive theorem provers via a straightforward protocol we provide.

Benchmarks

BenchmarkMethodologyMetrics
automated-theorem-proving-on-minif2f-testSledgehammer
ITP: Isabelle
Pass@1: 10.4
cumulative: 10.4
automated-theorem-proving-on-minif2f-testThor
ITP: Isabelle
Pass@1: 29.9
cumulative: 29.9

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
Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers | Papers | HyperAI