Generating Theorems by Generating Proof Structures
Christoph Wernhard
TL;DR
The paper addresses generating theorems from a fixed axiom set without a specific goal by leveraging condensed detachment and proof-structure enumeration, framed within a formulas-as-types perspective and connected to Metamath. It introduces inductive level characterizations and bottom-up SGCD-based theorem generation, then enhances this with DAG-based lemma synthesis and the incorporation of combinators to compress proof terms. On a Metamath POI benchmark (1,374 theorems), the authors generate proofs for 697 theorems (including 10 with rating 1) and show that lemmas markedly boost automated provers (e.g., Vampire and leanCoP) in solving POI problems. They further extend the approach with combinatory proof schemas, obtaining an additional 116 POI theorems (totaling 734), including 12 highly challenging ones, demonstrating the practical impact of structured proof-term generation for automated reasoning. The work unifies automated proving and theorem generation under a chain of techniques (CD, DAG compression, combinators, and PSP-like schemas), offering a scalable framework for lemma discovery and improved prover performance with potential extensions to richer logics and premise selection.
Abstract
We address generating theorems from a given set of axioms, without proof goal, aiming at value from a mathematical point of view or as lemmas for automated proving. As benchmark, we convert a fragment of the Metamath database set.mm. Our techniques are centered on proof terms and condensed detachment, which ties in with approaches to automated first-order proving by proof structure enumeration, and links to Metamath as well as to formulas-as-types. Our methods for generating theorems are based on partitioning the set of proof terms into inductively characterized levels. We study two ideas for improvement: Lemma synthesis by DAG compression of proof term sets and incorporating combinators into proof term construction.
