Introduction
Finding finite models for first-order logic formulas is a fundamental task in automated reasoning, yet it is often hampered by the "isomorphism problem." When a solver searches for an interpretation that satisfies a logical formula, it frequently encounters massive amounts of symmetry. These symmetries create isomorphic subspaces—redundant branches of the search tree that are structurally identical to previously explored paths. If a solver fails to find a model in one branch, it is guaranteed to fail in all symmetrical branches, leading to significant computational waste.
While existing heuristics, such as the Least Number Heuristic (LNH), have proven effective at eliminating symmetries in functions, they often struggle with predicates (relationships between elements). This paper introduces two novel strategies—Row-by-Row (RR) and Ramsey Number (RN)—specifically designed to prune the search space by exploiting symmetries within predicates.
The Challenge of Predicate Symmetry
In model finding, a binary predicate can be visualized as an $n \times n$ matrix of truth values. The search process involves assigning TRUE or FALSE to each cell in this matrix. However, because the labels of the domain elements are often arbitrary, many different matrices represent the same underlying structure. For example, swapping the labels of two objects in a grid does not change the logical validity of the arrangement, but it creates a "new" state for a naive solver to check.
Existing symmetry-breaking techniques are often optimized for functional representations. This paper argues that predicates require a distinct mathematical toolkit to handle the "symmetry explosion" effectively, particularly in combinatorial problems where relationships between elements are the primary focus.
Methodology
The authors propose two primary strategies to eliminate redundant search spaces by pre-emptively structuring the search tree based on mathematical certainties.
1. Row-by-Row (RR) Strategy
The RR strategy employs a "divide-and-conquer" approach for binary predicates. By representing the predicate as a matrix, the authors observe that for any given row of truth values, a specific distribution must exist: either at least half the cells are TRUE, or at least half are FALSE.
The RR strategy forces the search into these two distinct subcases. By using domain permutations to "fix" or canonicalize the values in the first half of a row, the solver can bypass a significant portion of the redundant search space. This effectively reduces the number of permutations the solver must consider for subsequent rows.
2. Ramsey Number (RN) Strategy
The RN strategy is a novel application of Ramsey Theory to automated reasoning. Ramsey’s Theorem states that in any sufficiently large structure, a certain level of order is guaranteed to emerge. Specifically, in any sufficiently large graph, one must find either a "clique" (a subset where every node is connected) or an "independent set" (a subset where no nodes are connected).
In the context of a truth-value matrix for a predicate, this means that if the matrix is large enough relative to a known Ramsey number, a sub-clique of TRUE values or FALSE values must exist. The RN strategy splits the search into these guaranteed scenarios. Instead of deciding truth values cell-by-cell, the solver can "jump" over messy, intermediate states that cannot possibly lead to a unique model, focusing only on the mathematically required structures.
Experimental Evaluation
The proposed techniques were evaluated using three classic combinatorial benchmarks known for high degrees of symmetry:
- Pigeon-hole Problem: The task of placing $n+1$ pigeons into $n$ holes.
- Ramsey Number Searching: The search for exact values or bounds of Ramsey numbers.
- Steiner Triple Systems: Problems involving the construction of specific block designs.
Experiments were conducted using established model-finding tools, including SEM and MACE2, as well as the high-performance SAT solver siege_v4.
Key Results and Insights
The integration of RR and RN strategies yielded substantial performance improvements:
- Efficiency Gains: The techniques typically reduced search times by a factor of 2 to 8 across the benchmark suite.
- Search Tree Pruning: The RN strategy proved particularly effective at processing entire submatrices simultaneously, preventing the solver from getting bogged down in cell-by-cell decision-making.
- Complementary Nature: These strategies are not intended to replace existing heuristics like LNH. Instead, they are designed to be complementary, addressing the specific weaknesses of LNH in handling predicate-heavy formulas.
Conclusion and Future Work
This research demonstrates that incorporating deep mathematical properties, such as Ramsey Theory, can significantly enhance the efficiency of model finders. By focusing on predicate-oriented isomorphism, the authors have provided a path toward solving more complex combinatorial problems that were previously computationally intractable.
Future work involves integrating these standalone strategies into a unified framework and conducting a more rigorous comparison with propositional-level symmetry-breaking tools (such as Shatter). Additionally, as more Ramsey numbers are discovered or bounded, the RN strategy's applicability to larger and more complex matrices will continue to expand.
Summary updated