Aesop: White-Box Best-First Proof Search for Lean

Jannis Limperg, Asta Halkjær From

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

Abstract

We present Aesop, a proof search tactic for the Lean 4 interactive theorem prover. Aesop performs a tree-based search over a user-specified set of proof rules. It supports safe and unsafe rules and uses a best-first search strategy with customisable prioritisation. Aesop also allows users to register custom normalisation rules and integrates Lean's simplifier to support equational reasoning. Many details of Aesop's search procedure are designed to make it a white-box proof automation tactic, meaning that users should be able to easily predict how their rules will be applied, and thus how powerful and fast their Aesop invocations will be. Since we use a best-first search strategy, it is not obvious how to handle metavariables which appear in multiple goals. The most common strategy for dealing with metavariables relies on backtracking and is therefore not suitable for best-first search. We give an algorithm which addresses this issue. The algorithm works with any search strategy, is independent of the underlying logic and makes few assumptions about how rules interact with metavariables. We conjecture that with a fair search strategy, the algorithm is as complete as the given set of rules allows.

Original languageEnglish
Title of host publicationCPP 2023
Subtitle of host publicationProceedings of the 12th ACM SIGPLAN International Conference on Certified Programs and Proofs
EditorsRobbert Krebbers, Dmitriy Traytel, Brigitte Pientka, Steve Zdancewic
PublisherAssociation for Computing Machinery, Inc
Pages253-266
Number of pages14
ISBN (Electronic)9798400700262
DOIs
Publication statusPublished - Jan 2023
Event12th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2023 - Co-located with POPL 2023 - Boston, United States
Duration: 16 Jan 202317 Jan 2023

Conference

Conference12th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2023 - Co-located with POPL 2023
Country/TerritoryUnited States
CityBoston
Period16/01/2317/01/23

Bibliographical note

Funding Information:
Limperg was funded by the NWO under the Vidi programme (project No. 016.Vidi.189.037, Lean Forward).

Publisher Copyright:
© 2023 Owner/Author.

Keywords

  • deductive verification
  • interactive theorem proving
  • Lean
  • proof search
  • tactic
  • type theory

Fingerprint

Dive into the research topics of 'Aesop: White-Box Best-First Proof Search for Lean'. Together they form a unique fingerprint.

Cite this