Abstract
Automated theorem proving in the context of program verification often encounters a "search space explosion" due to the repeated application of simple, "obvious" axioms like commutativity or associativity. This paper proposes a technique to integrate these transformations directly into the clashing and unification algorithms of a theorem prover. By "baking in" these properties, the system can more efficiently navigate "broad" proofs, leading to significant reductions in proof depth and improved search efficiency.
Introduction
In program verification, theorem provers frequently encounter situations where a proof step is logically trivial but computationally expensive. For instance, proving that $A < B$ clashes with $\neg(B > A)$ typically requires several intermediate resolution steps using axioms that define the relationship between inequality operators. These axioms generate numerous "shallow" resolvents that clutter the search space, a phenomenon the authors describe as the "broad" proof problem. Standard provers struggle because they treat every transformation as a separate branch in an ever-expanding search tree.
Methodology: Integrating Transformations
The core innovation lies in modifying the theorem prover's fundamental engines: the clashing algorithm and the unification algorithm. Instead of treating logical properties as separate clauses, they are integrated into the inference process itself.
Literal Transformations
The system utilizes two specialized lists for literal transformations:
- LCLASH1: Handles transformations that alter the predicate symbol or sign (e.g., $LT(X, Y) \leftrightarrow \neg LT(Y, X)$).
- LCLASH2: Manages transformations that permute arguments (e.g., $EQUAL(X, Y) \leftrightarrow EQUAL(Y, X)$).
When attempting to clash two literals, the prover proactively applies these transformations to determine if a match can be achieved without additional resolution steps.
Expanded Unification
A similar recursive approach is applied to term unification. For example, if a function $f$ is known to be commutative, the unification algorithm treats $f(a, b)$ and $f(b, a)$ as identical.
The authors prioritize operational efficiency over theoretical completeness. While the method may not find every possible unification, it is designed to handle the vast majority of cases encountered in real-world program verification, where "complete" methods often prove too slow to be practical.
Experimental Results
The approach was evaluated using 11 real-world problems from an environmental theorem proving system and additional synthetic "noise" tests designed to challenge the search strategy.
Proof Efficiency
The "transformed" version of the prover demonstrated a significant reduction in proof depth—up to 50% in several test cases. Although the proactive transformations occasionally generated more total clauses (up to 18% more), the number of clauses that actually needed to be selected to reach a proof was drastically lower. In one instance, the number of selected clauses dropped from 9 down to 4.
Robustness to Noise
The system showed remarkable stability when irrelevant data ("noise") was introduced. While standard provers slowed down significantly under these conditions, the version with integrated transformations maintained its performance, successfully finding proofs where the baseline version failed.
Conclusion and Future Work
Integrating automatic transformations into the core of a theorem prover offers a powerful way to mitigate the search space explosion in program verification. However, the current implementation requires manual selection of which transformations to include. Future research will focus on automating this selection process and developing search strategies specifically tuned for the "breadth" of program verification proofs, rather than the "depth" typical of mathematical theorems.
Summary updated