Weak Equivalence for Constraint Sets

Sieger van Denneheuvel, Karen L. KwastIJCAI 1991

Introduction

Standard logical equivalence is often too rigid for practical constraint solving. In classical logic, two sets of equations are equivalent only if they share the exact same variables and constraints. However, in real-world applications like circuit design or database query optimization, solvers frequently simplify complex systems by eliminating intermediate variables. This creates a formal gap: a simplified formula is technically not equivalent to the original set because it ignores internal variables. This paper introduces weak equivalence, a framework that allows solvers to simplify systems by formally "hiding" intermediate variables while proving the output remains logically consistent with the original problem.

Theoretical Framework: Defining Weak Equivalence

The authors propose a formalization called Weak Equivalence ($\equiv_X$). This framework relies on partitioning variables into three distinct categories: known (inputs), wanted (outputs), and intermediate (temporary variables used for modeling). Two constraint sets are considered weakly equivalent with respect to a set of variables $X$ if they impose the exact same restrictions on $X$, regardless of the values taken by intermediate variables.

Hierarchy of logical equivalence relations used to define weak implication and its variants.

The core of this theory is an axiomatic system for "weak implication." Beyond standard rules like Transitivity and Substitution, the authors introduce a novel Abstraction axiom. This rule allows a solver to add or remove solutions for intermediate variables without affecting the global validity of the visible system. Essentially, weak equivalence provides a formal way of stating: "There exists a set of values for the hidden variables such that the visible variables satisfy the constraints."

Implementation and Evaluation: The RL/1 Language

These concepts were implemented and tested within RL/1, a rule-based language designed to integrate relational databases with constraint logic programming. The motivation is primarily query optimization; by using weak equivalence, a system can pre-process complex rules into simple database queries that can be executed efficiently over large datasets.

To evaluate the framework, the authors used symbolic models of physical systems, such as the parallel resistor circuit and the Wheatstone bridge. In the resistor example, the solver must eliminate intermediate current variables to find the relationship between total current and voltage.

A parallel resistor circuit model used to test the elimination of intermediate current variables ($I_1, I_2$).

In more complex cases like the Wheatstone bridge, the RL/1 prototype successfully derived the symbolic "balanced state" equation ($r_1/r_2 = r_3/r_4$) from a raw set of Kirchhoff’s laws, effectively automating the physical derivation process for the user.

Key Results and Insights

The paper establishes several critical results for the logic of constraints:

  • Soundness and Completeness: The authors provide a complete set of axioms for weak implication. They prove that for "primitive constraints" (simple equalities), their axiomatic system is both sound (it never produces false derivations) and complete (it can find all valid implications).
  • Redundancy Identification: A constraint set is shown to be redundant if there exists a solution set for intermediate variables that makes the effect of those constraints equivalent to true.
  • Symbolic Inference: The framework demonstrates that automated solvers can perform high-level symbolic reasoning, bridging the gap between raw physical laws and simplified engineering formulas.

Limitations and Future Work

While the theoretical foundation is robust, the completeness proof is currently limited to primitive constraints. Extending this to non-linear constraints—such as the multiplication required for power or complex resistance formulas—remains a challenge. Additionally, while the paper acknowledges that databases often contain null values, the current RL/1 implementation does not yet handle them natively within the constraint solver. Future research will focus on optimizing the computational cost of these symbolic simplifications for massive, real-world rule bases.

Summary updated

BibTeX
@inproceedings{denneheuvel1991weak,
  author = {Sieger van Denneheuvel and Karen L. Kwast},
  title = {{Weak Equivalence for Constraint Sets}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1991},
}
Figure