Lemma Generation for Model Elimination by Combining Top-Down and Bottom-Up Inference

Marc Fuchs

Abstract

Automated Theorem Proving (ATP) faces a persistent challenge in balancing goal-directed focus with the ability to leverage derived knowledge. This paper explores a hybrid framework that enhances top-down model elimination provers with bottom-up lemma generation. By introducing Pattern-Controlled Level Saturation and Evolutionary Lemma Generation, we address the "relevancy problem" inherent in lemma production. Experimental results on the TPTP library show that these hybrid methods consistently outperform standard provers, particularly in challenging domains like Set Theory and Boolean Algebra.

Introduction

In the field of automated reasoning, two primary paradigms exist: top-down (goal-oriented) and bottom-up (data-driven) inference. Top-down provers, such as SETHEO, are efficient at maintaining focus on a specific goal but often suffer from redundancy, repeatedly solving identical sub-problems. Conversely, bottom-up provers excel at deriving new facts but frequently generate a vast amount of irrelevant information, "drowning" in a search space disconnected from the target goal.

The proposed research seeks a "holy grail" in ATP: a hybrid system that utilizes bottom-up techniques to generate useful "shortcuts" or lemmas for a top-down search. The primary obstacle is the relevancy problem—ensuring that generated lemmas are actually useful for the specific goal at hand.

Methodology

To bridge the gap between these paradigms, two distinct strategies for lemma generation are proposed.

1. Pattern-Controlled Level Saturation

This method introduces an abstraction layer to guide the bottom-up process. During an initial top-down phase, the prover explores the goal and identifies patterns—generalized versions of subgoals characterized by fixed lengths and symbol counts.

In the subsequent bottom-up phase, these patterns act as a strict filter. A generated lemma is only retained if it is unifiable with one of the pre-defined top-down patterns. This mechanism prevents the bottom-up process from exploring irrelevant logical branches by forcing it to align with the abstract requirements of the top-down search.

Figure 1: Visualization of connection tableaux used in top-down model elimination.

2. Evolutionary Lemma Generation

The second approach utilizes Genetic Programming (GP) to evolve proof components. Here, partial proofs or lemmas (represented as connection tableaux) are treated as individuals in a population.

  • Fitness Function: Tableaux are evaluated based on their proximity to solving open subgoals or their utility in resolving queries.
  • Genetic Operators: New lemmas are "bred" through crossover (swapping sub-tableaux) and mutation.

This evolutionary approach is self-adaptive, capable of discovering "hard" lemmas (e.g., depth 4) that systematic search methods might discard due to memory constraints. These lemmas act as macro-operators, allowing the prover to bypass multiple logical steps in a single leap.

Experimental Evaluation

The proposed methods, SETHEO/PAT (pattern-based) and SETHEO/GP (evolutionary), were evaluated using the TPTP (Thousands of Problems for Theorem Provers) library version 2.0.0. The study focused on five difficult mathematical domains: Boolean Algebra (BOO), Category Theory (CAT), Combinatory Logic (COL), Group Theory (GRP), and Set Theory (SET).

Figure 3: Performance comparison across mathematical domains for standard and hybrid SETHEO variants.

As shown in Figure 3, both hybrid approaches demonstrated significant gains over the baseline SETHEO prover. In the SET domain, while standard SETHEO solved 41 problems within the 15-second time limit, the pattern-based approach solved 50, and the evolutionary approach (labeled as SETHEO/OP in the table) reached 54. Similar trends were observed across all domains, indicating that lemma generation provides a stable and consistent performance boost.

Key Insights and Conclusion

The success of these methods highlights the power of abstraction and evolution in managing search space complexity. Using patterns as filters effectively manages the "infinite" nature of logic by focusing on structural relevance rather than literal matches. Furthermore, the evolutionary approach proves adept at preserving complex lemmas that are crucial for solving "hard" problems.

While lemma generation introduces preprocessing overhead, the resulting reduction in the final refutation search space more than compensates for the initial cost. Future work will explore the high potential for parallelization in both pattern generation and evolutionary cycles to further scale these techniques for increasingly complex mathematical theorems.

Summary updated

BibTeX
@inproceedings{fuchs1999lemma,
  author = {Marc Fuchs},
  title = {{Lemma Generation for Model Elimination by Combining Top-Down and Bottom-Up Inference}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1999},
}
Figure