[Paper Review] DLV - A System for Declarative Problem Solving
DLV is a declarative problem-solving system implementing answer set semantics for disjunctive datalog with strong and default negation, integrity constraints, arithmetic built-ins, and multiple frontends. It efficiently handles complex knowledge representation tasks, including diagnosis, planning, and deductive databases, with performance scaling to large problems (e.g., 1M literals) and sub-second execution on hard benchmarks after optimization.
DLV is an efficient logic programming and non-monotonic reasoning (LPNMR) system with advanced knowledge representation mechanisms and interfaces to classic relational database systems. Its core language is disjunctive datalog (function-free disjunctive logic programming) under the Answer Set Semantics with integrity constraints, both default and strong (or explicit) negation, and queries. Integer arithmetics and various built-in predicates are also supported. In addition DLV has several frontends, namely brave and cautious reasoning, abductive diagnosis, consistency-based diagnosis, a subset of SQL3, planning with action languages, and logic programming with inheritance.
Motivation & Objective
- To implement a practical, efficient system for non-monotonic reasoning and logic programming under answer set semantics.
- To support advanced knowledge representation features such as disjunctive rules, strong and default negation, integrity constraints, and arithmetic built-ins.
- To provide user-friendly frontends for application-specific reasoning tasks like diagnosis, planning, and SQL3 integration.
- To enable scalable reasoning on large knowledge bases, demonstrating feasibility for real-world applications.
- To serve as a foundational engine for integrating logic-based reasoning into AI and database systems.
Proposed method
- The system is built on a kernel language of disjunctive datalog with function-free terms, supporting positive and negative literals, default negation (via 'not'), and strong negation.
- Answer set semantics is implemented via the Gelfond-Lifschitz reduct: a set X is an answer set if it is a minimal model of the reduct P^X, formed by removing rules whose negative body intersects X.
- Ground instantiation of rules is used to compute answer sets over the Herbrand base, ensuring completeness and correctness under the semantics.
- Frontends extend the core system with specialized reasoning modes: brave/cautious reasoning, abductive and consistency-based diagnosis, SQL3 subset, action language planning, and inheritance-based logic programming.
- The system uses standard GNU tools (GCC, flex, bison) for portability across Unix-like platforms and supports multiple binary distributions.
- Performance is enhanced through optimized algorithms and heuristics, with execution times improving significantly over time on hard benchmarks.
Experimental results
Research questions
- RQ1Can a practical system be built that supports full answer set semantics for disjunctive logic programs with negation and constraints?
- RQ2How efficiently can such a system handle complex, real-world reasoning problems like diagnosis and planning?
- RQ3To what extent can the system scale to large knowledge bases with millions of rules and literals?
- RQ4Can the system be effectively used as a backend engine for deductive databases and AI applications?
- RQ5What performance improvements are achievable through algorithmic and heuristic optimization?
Key findings
- DLV successfully implements answer set semantics for full disjunctive datalog with strong and default negation, integrity constraints, and arithmetic built-ins.
- The system handles problems with up to 1 million literals and 1 million rules, demonstrating scalability on large knowledge bases.
- Execution times for hard benchmarks like 3COL and STRATCOMP dropped from over 1000 seconds to under 1 second within a year, showing significant performance gains.
- The HPATH and PRIME problems were solved in 0.3s and 0.8s respectively by late 1999, indicating high efficiency on NP- and Σ₂ᴾ-hard problems.
- DLV outperforms other systems on comparable benchmarks and is being evaluated at CERN for large-scale deductive database workloads.
- The system's modular design with multiple frontends enables users to solve domain-specific problems without deep knowledge of logic programming syntax.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.