A New Mehtod for Proving Certain Presburger Formules

W. W. BledsoeIJCAI 1975

Abstract

W.W. Bledsoe introduces the "sup-inf" method, a novel approach for proving the validity of Presburger formulas containing only universal quantifiers. By treating these problems as an interval-bounding challenge rather than an exhaustive integer search, the method significantly improves efficiency in automated program verification.

Introduction

In formal methods, Presburger Arithmetic—integer arithmetic involving addition and inequality—is a fundamental tool for proving program assertions, such as ensuring array indices remain within bounds. While this logic is decidable, traditional algorithms like Cooper’s often struggle with computational efficiency. The primary bottleneck in these older methods is their reliance on quantifier elimination, which frequently forces the system to perform exhaustive searches through large ranges of consecutive integers, especially when coefficients are not unity (e.g., $3x < 7$). Bledsoe’s "sup-inf" method seeks to avoid these long searches by handling "proof by cases" more naturally, a common requirement in software validation.

The Sup-Inf Approach

The core innovation of the paper is shifting the strategy from searching for integers to calculating algebraic bounds. To prove a theorem $F$, the algorithm negates it ($\neg F$) and attempts to show that the resulting expression is unsatisfiable. It achieves this by determining the tightest possible interval $[\text{inf } x, \text{sup } x]$ for each variable $x$.

A typical Presburger formula involving multiple variables and inequalities that the sup-inf method is designed to solve.

Quasi-linear Formulas

Bledsoe generalizes standard Presburger formulas into "quasi-linear" forms. These allow for the use of rational numbers and the incorporation of max and min functions. By converting integer constraints into these forms, the algorithm can leverage algebraic properties to skip the need for checking every integer in a range.

The method transforms standard integer inequalities into quasi-linear forms with rational coefficients to facilitate algebraic bounding.

Recursive Algorithms

The system relies on a pair of recursive algorithms to traverse the set of inequalities:

  • SUP(J, L): Finds the upper bound (supremum) of expression $J$.
  • INF(J, L): Finds the lower bound (infimum) of expression $J$.

When a variable appears on both sides of an inequality (e.g., $x \le 6 - x$), the algorithm uses specialized routines (SUPP and INFF) to solve for the variable algebraically, finding the point where the bounds meet. If the algorithm finds an interval that contains no integers for at least one variable, the negated formula is proven false, and the original theorem is confirmed true.

Key Insights and Results

A major advantage of this method is its use of a "natural form" for hypotheses. By storing constraints as a set of bounds, the system can easily update its knowledge base with new information during a proof without recalculating the entire state. This makes it exceptionally well-suited for program verification, where logic often involves complex branching (if-then-else statements).

The algorithms were successfully integrated into an automatic theorem-proving system at the University of Texas. Results indicated that the method successfully avoids the "adverse examples" that cripple Cooper’s algorithm, such as formulas requiring the testing of dozens of consecutive integers. While the paper initially presented the method with some conjectures for complex cases, its correctness was later formally proven by Robert Shostak.

Limitations and Future Work

The sup-inf method is specifically designed for formulas with universal quantifiers ($\forall$). It remains unclear if the approach can be effectively extended to handle existential quantifiers ($\exists$) or mixed quantification. Furthermore, the process requires Skolemization as a preprocessing step to handle constants. While highly effective for the quasi-linear formulas found in program verification, it is not presented as a universal replacement for all classes of Presburger problems.

Summary updated

BibTeX
@inproceedings{bledsoe1975new,
  author = {W. W. Bledsoe},
  title = {{A New Mehtod for Proving Certain Presburger Formules}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1975},
}

Loading related content...

Figure