The DLV system for knowledge representation and reasoning
Nicola LeoneGerald PfeiferWolfgang FaberThomas EiterGeorg GottlobSimona PerriFrancesco Scarcello
Presents the DLV system, detailing the formal foundations, computational complexity, and architectural design of a leading disjunctive logic programming engine capable of solving complex declarative knowledge representation and optimization problems up to -completeness.
Modern artificial intelligence, data integration, and knowledge management systems frequently need to represent and process complex, incomplete, and highly combinatorial knowledge. While declarative logic formalisms excel at expressing domain rules and constraints without requiring procedural code, evaluating expressive programs has traditionally suffered from prohibitive computational costs and a lack of robust, production-grade reasoning engines.
The article provides a comprehensive evaluation of the DLV system, an industrial-strength implementation of Disjunctive Logic Programming (DLP), demonstrating its formal semantics, theoretical computational foundations, system architecture, and real-world performance against alternative Answer Set Programming solvers.
The authors analyze the formal complexity of the full DLV language and its syntactic fragments across different reasoning tasks, establishing a complete theoretical taxonomy. To evaluate system performance, the authors conducted empirical benchmarks comparing DLV against state-of-the-art Answer Set Programming solvers (GnT, Smodels, and ASSAT) across problem domains ranging from polynomial-time database tasks to highly intractable benchmark problems up to the second layer of the Polynomial Hierarchy.
The evaluation revealed four key findings. First, DLV achieves superior scalability on data-intensive deductive database tasks, handling instances up to 10,000 nodes where competing systems exhausted memory at roughly 700 nodes due to inefficient program instantiation. Second, on hard problems at the second level of the Polynomial Hierarchy, DLV’s native handling of disjunction significantly outperformed GnT, solving problem instances up to thirty times larger. Third, on NP-complete search problems such as Hamiltonian Path, DLV solved instances up to size 105, whereas alternative solvers reached memory or time limits at sizes 45 to 50. Fourth, the complexity analysis demonstrated that DLV with weak constraints captures decision problems up to the third level of the Polynomial Hierarchy, enabling declarative optimization encodings that cannot be expressed in standard disjunctive datalog.
These findings indicate that expressive logic programming is practically viable for large-scale enterprise data integration, scheduling, and diagnosis. By dynamically tailoring evaluation algorithms to the exact syntactic complexity of a given input, DLV avoids the computational overhead typical of general-purpose reasoning engines, thereby reducing runtime and hardware costs for complex domain-specific modeling.
Organizations evaluating declarative knowledge systems should consider DLV, particularly for applications requiring complex optimization, reasoning with incomplete information, or large input data sets. System implementers should also leverage the Guess/Check/Optimize methodology to develop and debug logic-based business rules modularly.
The findings are bounded by the specific benchmark sets, resource limits of 256MB per component, and variations caused by rule encodings and domain predicate choices across different instantiators. Nevertheless, the theoretical proofs and empirical results provide high confidence that DLV is an efficient, robust platform for declarative problem solving across diverse complexity classes.
- Paper: Nonmonotonic Reasoning, Preferential Models and Cumulative Logics, Sarit Kraus et al. (1990). Provides foundational mathematical and model-theoretic principles for non-monotonic consequence relations that underpin declarative non-monotonic logic programming formalisms like DLV.
- Paper: Domain-Specific Heuristics in Answer Set Programming: A Declarative Non-Monotonic Approach, Richard Comploi-Taupe et al. (2023). Extends answer set programming solving methodologies beyond standard ground-and-solve architectures like DLV by introducing declarative, domain-specific heuristics evaluated over partial assignments.
