Abstract
Circumscription is a fundamental formalism for non-monotonic reasoning, yet its first-order (FO) variants—particularly those involving varying constants and priorities—remain computationally challenging. This paper introduces a practical framework for computing general FO circumscription by translating it into Answer Set Programming (ASP) under stable model semantics. We present the cfo2lp solver, which utilizes linear translations and a novel optimization for existential quantifiers. Experimental evaluations on circuit diagnosis and stable marriage problems demonstrate that our approach significantly outperforms existing propositional solvers and handles complex, prioritized reasoning tasks with high efficiency.
Introduction
In artificial intelligence, circumscription allows for "common sense" reasoning by minimizing the extension of certain predicates, effectively formalizing the "default" behavior of systems. For instance, one might minimize an "abnormality" predicate to assume birds fly unless stated otherwise. Despite its theoretical elegance, computing general FO circumscription with varying constants is notoriously difficult. Existing tools often lack support for varying constants, are limited to propositional logic, or fail to handle prioritized circumscription, where certain predicates are prioritized for minimization over others. This work bridges the gap between high-level logical theory and practical computation.
Methodology
The core of our approach is the translation of FO circumscription into Answer Set Programming (ASP), leveraging the robust optimization of modern ASP solvers. Our methodology involves three primary components:
- Linear Translation ($T_{rv}$ and $T^s_{rv}$): We provide a mathematical mapping of FO circumscription into FO theories under Stable Model (SM) semantics. This allows us to use ASP as a powerful intermediate language.
- Priority Handling: Prioritized circumscription is decomposed into a conjunction of parallel circumscriptions, allowing for a single-pass solution.
- Existential Quantifier Optimization ($\Gamma_\exists$): To mitigate the "grounding" bottleneck—where abstract rules explode into specific instances—we introduced the $\Gamma_\exists$ optimization. This reduces the size of the resulting logic programs by approximately one-third, facilitating the handling of complex FO formulas.
The resulting tool, cfo2lp, takes FO circumscription as input and utilizes the high-performance clasp solver to find solutions.
Experimental Evaluation
We evaluated cfo2lp against two primary benchmarks: the Circuit Diagnosis Problem (CDP) and the Extended Stable Marriage Problem (ESMP).
Performance in Diagnosis
The CDP models an $n$-bit ripple adder with prioritized failure probabilities for different logic gates. As shown in the performance data, cfo2lp scales significantly better than the propositional solver circ2dlp.
For a 40-gate circuit, cfo2lp achieved solutions in approximately 0.4 seconds, whereas circ2dlp required nearly 10 seconds. Notably, circ2dlp timed out for larger circuits (80+ gates), while cfo2lp maintained efficient performance.
Optimization Impact
The ESMP tests the solver's ability to handle existential quantifiers and find optimal matches. Our results indicate that the $\Gamma_\exists$ optimization is crucial for performance.
The optimization saved between 10% and 60% of computation time. For instance, in a large-scale matching task ($n=42$), the optimized solver reduced computation time from 369 seconds to 152 seconds in Instance 1, representing a significant efficiency gain.
Discussion and Conclusion
Our findings highlight that Stable Model Semantics serves as an ideal bridge for circumscription, allowing researchers to leverage decades of ASP solver optimization. By supporting varying constants and priorities, cfo2lp provides a more natural and versatile representation for real-world applications like database repair and semantic web modeling.
While the current framework is limited to finite domains and may face grounding bottlenecks with extremely nested quantifiers, it represents a significant step toward making general FO circumscription a practical tool for AI. Future work will focus on further refining quantifier elimination to handle even larger and more complex datasets.
Summary updated