Lune

OOPSLA2025Top-tier venue

Synthesizing Implication Lemmas for Interactive Theorem Proving

Ana Brendel, Aishwarya Sivaraman, Todd D. Millstein

2025Year

Abstract

Interactive theorem provers (ITP) enable programmers to formally verify properties of their software systems. One burden for users of ITPs is identifying the necessary helper lemmas to complete a proof, for example those that define key inductive invariants. Existing approaches to lemma synthesis for ITPs have limited, if any, support for synthesizing implications: lemmas of the form 𝑃 1 ∧ • • • ∧ 𝑃 𝑛 =⇒ 𝑄. In this paper, we propose a technique and associated tool for synthesizing useful implication lemmas. Our approach employs a form of data-driven invariant inference to explore strengthenings of the current proof state, based on sample valuations of the current goal and assumptions. We have implemented our approach in a Rocq tactic called dilemma. We demonstrate its effectiveness in synthesizing necessary helper lemmas for proofs from the Verified Functional Algorithms textbook as well as from prior benchmark suites for lemma synthesis.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext a490acc8-7f0a-424d-ac08-e265ee04466e

Builds on6

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines