NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Application of Automatic Transformations to Program Verification

TL;DR

This paper introduces a novel technique for enhancing automated theorem proving by integrating "automatic transformations" directly into the inference process. By modifying unification and literal clashing algorithms, the authors significantly improve search strategies, particularly for broad, rather than deep, proofs often encountered in program verification.

What Problem Does This Paper Address?

Automated theorem proving systems often struggle with the sheer size of the search space required to find proofs. This is especially true in program verification, where proofs can be "broad" – meaning many intermediate steps are needed, but each step is relatively simple. Traditional methods rely on inference rules like resolution and paramodulation, but these can be inefficient. For instance, incorporating domain-specific knowledge (like commutativity or ordering relations) often requires adding many axioms, which can bloat the search space and paradoxically block necessary deductions. Furthermore, practical theorem provers often employ strategies like demodulation (simplifying terms) and canonical ordering of equality literals, which, while useful, can introduce incompleteness. This paper aims to address this by making certain logical equivalences and relations automatically available during the proof search, thereby streamlining the process and overcoming some of the incompleteness issues.

Methods

The core contribution is the development of new literal clashing and unification algorithms that incorporate "automatic transformations." These transformations are essentially logical equivalences that are applied directly within the inference steps, rather than being treated as separate axioms.

The authors propose two lists of transformations:

  • LCLASH1: Transformations that change the sign and/or major function symbol of a literal (e.g., LT(X,Y) <=> ~LT(Y,X)).
  • LCLASH2: Transformations that permute arguments of a literal (e.g., commutativity).

These lists are processed in a specific order to efficiently find clashes. The new algorithms allow inferences that might otherwise be blocked by standard ordering or demodulation rules. They also aim to generate more general clauses earlier in the search, which can prune the search space more effectively.

A similar approach is extended to unification of terms, using equality literals as transformations and paramodulation as the inference mechanism. This "expanded unification algorithm" also utilizes two lists of transformations (UNIFY1 and UNIFY2) for term manipulation.

Key to their approach are several restrictions on these transformations to ensure efficiency and prevent infinite loops, such as requiring identical variable sets and bounding the complexity of transformations.

Datasets

The paper evaluates their approach on two sets of problems:

  1. Eleven real problems: These were problems being tested on the environmental theorem proving system developed by B. T. Smith.
  2. Slight variations of the eleven problems: These were created to specifically characterize the conditions under which the new algorithms are most effective.

The authors do not introduce new benchmark datasets but rather use existing problems from the domain of program verification.

Key Insights and Ideas

  • Transformations as first-class citizens: Instead of treating logical equivalences as passive axioms, the paper makes them active participants in the inference process. This is a significant shift in how theorem provers can leverage domain knowledge.
  • Bridging the gap between theory and practice: The authors acknowledge that while complete methods are theoretically appealing, they often fail in practice. Their heuristic approach, while sacrificing some completeness, aims for practical performance gains.
  • Broad vs. Deep Proofs: The technique is particularly well-suited for "broad" proofs, common in program verification, where many simple steps are needed. By reordering the search space, it can find proofs more efficiently in these scenarios.
  • Overcoming incompleteness: The automatic application of transformations helps mitigate incompleteness introduced by strategies like demodulation and canonical ordering of equality literals.
  • Efficiency through staged processing: Using two lists for transformations (LCLASH1 and LCLASH2) allows for an efficient sieve, quickly identifying potential clashes before more complex unification is attempted.

Key Results

The experimental results, while not always showing a dramatic reduction in the total number of clauses generated, highlight significant improvements in other metrics:

  • Number of clauses participating in proof: The trans version (with transformations) never exceeded the notrans version, showing a reduction of up to 10%.
  • Number of clauses selected by the search strategy: The trans version often selected fewer clauses, with reductions up to 50%.
  • Depth of empty clause: The trans version generally resulted in shallower proofs (fewer inference steps), with reductions up to 50%.
  • Noise sensitivity: Adding "noise" (extraneous literals, complex terms) to problems significantly hurt performance in the notrans version, but the trans version was much less affected.

Limitations and Future Work

  • Completeness: The authors explicitly state that their approach sacrifices completeness for performance. The goal is to find a proof efficiently, not necessarily all proofs or to guarantee a proof if one exists.
  • User-defined transformations: Currently, the user must select which transformation clauses to make "automatic." The paper suggests work is needed to develop general rules for making these choices.
  • Search strategies: While the transformations improve performance, better search strategies that emphasize breadth-first search could further capitalize on their power.
  • Relaxing restrictions: The authors suggest exploring relaxation of certain restrictions, particularly on substitutions, which could impact the resulting clause space.
  • Broader application: Incorporating automatic transformations into other theorem proving components like demodulation and subsumption is proposed as future work.

Summary updated

BibTeX
@inproceedings{1981application,
  title = {{Application of Automatic Transformations to Program Verification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1981},
}
Figure