[Paper Review] Detecting Unsolvable Queries for Definite Logic Programs
This paper proposes a novel method to detect unsolvable queries in definite logic programs by searching for a finite pre-interpretation such that the query is false in the least model derived from it. Using goal-directed abduction and constraint solving over pre-interpretations—combined with tabulation for efficiency—it reduces search space and outperforms general-purpose model generators in detecting query failure with less backtracking.
In solving a query, the SLD proof procedure for definite programs sometimes searches an infinite space for a non existing solution. For example, querying a planner for an unreachable goal state. Such programs motivate the development of methods to prove the absence of a solution. Considering the definite program and the query ``
Motivation & Objective
- To develop efficient methods for proving that a query in a definite logic program has no solution, especially when SLD resolution leads to infinite search trees.
- To address the problem of detecting query failure in planning and integrity constraint verification, where infinite derivation trees may exist without solutions.
- To improve upon existing techniques like model generators, type inference, and program specialization by focusing on pre-interpretations that make the query false in the least model.
- To explore the use of abduction and constraint solving in the context of pre-interpretations to guide the search for failure proofs.
- To demonstrate that searching over pre-interpretations is more efficient than searching over full interpretations for failure detection.
Proposed method
- The method uses a goal-directed abductive search over finite pre-interpretations to find one where the query is false in the least model of the program based on that pre-interpretation.
- It abstracts the original program into a DATALOG program under a given pre-interpretation, enabling efficient least model evaluation via tabulation.
- Two procedures are developed: one combining abduction with tabulation and failure analysis, and another using constraints to represent abducibles and solving them via finite domain or abductive solvers.
- The approach leverages tabulation to avoid redundant computation and ensure termination during least model evaluation.
- Constraints on pre-interpretations are formulated and solved using either an abductive solver or a finite domain constraint solver to check existence of valid pre-interpretations.
- The method avoids the overhead of monitoring execution (unlike loop checking) and reduces search space compared to full model generation.
Experimental results
Research questions
- RQ1Can we detect unsolvable queries in definite logic programs more efficiently than with general-purpose first-order model generators?
- RQ2Is searching over pre-interpretations more effective than searching over full interpretations for proving query failure?
- RQ3Can abduction and constraint solving be effectively combined with tabulation to prove failure in definite programs?
- RQ4How does the use of pre-interpretations compare to type inference or program specialization in detecting query failure?
- RQ5What are the limitations of the method when the query fails only in models over infinite domains?
Key findings
- The proposed method reduces backtracking significantly compared to general-purpose model generators like FINDER and FMCATINF, as it searches a smaller space of pre-interpretations.
- Tabulation effectively controls the cost of least model evaluation, making the approach scalable and efficient for practical use.
- The abductive solver outperforms chronological backtracking in complex cases, especially when predicates have high arity or large domains are required.
- The method is more powerful than type inference based on regular approximations and cannot prove failure when the query fails only in infinite-domain models.
- Conjunctive partial deduction and set-based analysis fail to solve the planning problems tested, while the pre-interpretation approach succeeds.
- Background knowledge is essential for guiding abductive search; simply specifying constraints without such knowledge leads to unguided, inefficient search.
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.