Theoremresearch
Renz-Nebel tractability theorem for RCC8
Also called maximal tractable subclasses of RCC8.
RCC8 consistency is NP-complete. Path consistency decides it for the 148 relations of H8, a maximal tractable class; with C8 and Q8 these are the only such classes with all base relations.
This theorem tells which RCC8 constraint networks can be checked fast. Renz and Nebel (1999) proved that consistency is NP-complete in general, found a class of 148 relations on which path consistency decides it in time, and proved that this class cannot be enlarged. Renz (1999) then found two more maximal tractable classes, and , and showed that these three are the only maximal tractable classes that contain all base relations. It is the spatial counterpart of the Nebel-Bürckert theorem for Allen's interval algebra.
Statement
Setting. A region is a non-empty regular closed subset of a topological space; a region need not be connected (Renz 1999, Section 2). The base relations are DC, EC, PO, EQ, TPP, NTPP, TPPi and NTPPi, and is the set of these eight. An RCC8 relation is a set of base relations; there are 256. For a set of relations, RSAT is the problem: given a finite set of constraints with over finitely many variables, is there an assignment of regions that meets every constraint? Path consistency is algebraic closure with the RCC8 composition table: repeat until nothing changes, and report inconsistency if a label becomes empty. It runs in time for variables. Path consistency decides RSAT if every path-consistent set over with no empty label is consistent.
Define, with standing for TPP or NTPP:
- , contains TPP or NTPP, and contains TPPi or NTPPi, 72 relations;
- , 76 relations, and = the other 180 relations;
- minus the relations with ( and ) or ( and ), 148 relations;
- minus the relations with , and , 158 relations;
- minus the relations with , and , 160 relations.
These are the definitions of Renz (1999, Definition 10 and Section 4); is also the set of relations whose propositional encoding by Renz and Nebel (1999) is a Horn formula. The counts include the empty relation and were checked by enumeration.
Theorem 1 (Renz and Nebel 1999). (a) RSAT for all 256 relations is NP-complete. (b) RSAT is polynomial. (c) Path consistency decides RSAT, so it is solved in time. (d) is maximal: for every relation , RSAT is NP-complete.
Theorem 2 (Renz 1999, Theorems 17 and 18). Path consistency decides RSAT and RSAT. For every set of RCC8 relations that contains all base relations and the universal relation, RSAT is polynomial if and only if , or ; otherwise it is NP-complete.
In plain words
Checking a set of topological facts about regions, such as "A touches B" or "C is inside D or overlaps it", is hard in general. But if every fact is one of 148 allowed kinds, a simple local rule, applied to every triple of regions until nothing changes, finds every contradiction. Adding any other kind of fact makes the problem hard again. Two other large sets of allowed kinds work in the same way, and no other set that contains the eight basic relations does.
Proof
The full proofs are long and use computer checks, so this is a proof sketch with the exact locators.
Membership in NP (Theorem 1a). A set is consistent exactly when one of its refinements to base relations is consistent, and by (b) such a refinement is checked in polynomial time. So a refinement is a certificate.
Hardness (Theorem 1a, 1d) (Renz and Nebel 1999; summarized in Renz 1999, Lemma 7). RSAT is NP-hard for every , and RSAT is NP-hard. Both are reductions from 3-SAT: each literal becomes a constraint with , true when and false when ; "polarity constraints" make a literal and its negation take opposite values, and "clause constraints" make at least one literal of each clause true. Maximality follows because the closure of under intersection, converse and composition, plus any relation outside , contains , and the closure can be simulated with extra variables when the universal relation is present.
Tractability of (Theorem 1b, 1c) (Renz and Nebel 1999). Each RCC8 relation is encoded as a propositional formula over atoms that stand for region terms, following the encoding of RCC8 in modal logic. The relations of are exactly those whose encoding is Horn, so RSAT reduces to Horn satisfiability, which is decided by positive unit resolution. Renz and Nebel relate positive unit resolution on the encoding to path consistency on the network, and show that positive unit resolution derives no empty clause from the encoding of a path-consistent set with no empty label. The base relations are in , which gives (b); Nebel (1995) had proved (b) earlier with an intuitionistic encoding.
Reduction by refinement (Renz 1999, Definition 1 and Lemma 2). Say that reduces by refinement to if each has a sub-relation , and every path-consistent set over can be refined, by replacing each () with , to a set on which path consistency does not produce an empty label. Lemma. If path consistency decides RSAT and reduces by refinement to , then path consistency decides RSAT. Proof. Let over be path consistent with no empty label. Refine it to as in the definition. Path consistency on gives a path-consistent set over with no empty label, which is consistent because path consistency decides RSAT. A solution of a refinement of is a solution of .
Tractability of and (Renz 1999, Proposition 13, Proposition 16, Theorem 17). Every relation contains EQ, and is in (Proposition 13). Take the refinement that removes EQ from every such label. The procedure CHECK-REFINEMENTS (Renz 1999, Section 3, Lemma 4 and Theorem 5) tests, on every path-consistent triple of relations of the class, that the refinements stay consistent under path consistency, and it reaches a fixed point; the computer check succeeds for and for (Proposition 16). So both classes reduce by refinement to , and the lemma gives Theorem 2, first part.
Completeness of the list (Renz 1999, Lemmas 8, 9 and 12). RSAT is NP-hard if contains together with or with (Lemmas 8 and 9, again by 3-SAT), and RSAT is NP-hard for (Corollary 11). A computer enumeration of the closures of all sets that contain the base relations, the universal relation and two more relations shows that each is inside , or , or is NP-hard by these results (Lemma 12). With the tractability of the three classes, this gives Theorem 2.
Consequences
- Fast checks for most relations. Networks whose labels are in , or are decided by algebraic closure in time. Since , every relation outside lies in one of the classes.
- Better search. A backtracking search for general RCC8 networks only needs to split each label into relations of one tractable class, not into base relations, and can run path consistency at each node as an exact test of the leaves.
- A solution, not only a yes. Gerevini and Renz (1998) gave an algorithm that finds a consistent scenario for a set over , by removing EQ and then refining in a fixed order; by the refinement result it also applies to and (Renz 1999, Section 6).
- Base relations. A network of base relations is decided by path consistency. This is used in every RCC8 reasoner.
Tightness
- Maximality. Each of the three classes is maximal: adding any relation makes RSAT NP-complete.
- Not unique. Unlike the interval algebra, where the ORD-Horn class is the only maximal tractable class with all base relations, RCC8 has three. Their intersection is not maximal.
- Hypotheses matter. The classification covers sets that contain all base relations and the universal relation. Sets without some base relations are outside it. The results are about regular closed regions that may have several pieces; if regions must be connected, or be discs in the plane, the consistency problem changes.
- Path consistency is not enough in general. For the full set of 256 relations, path consistency runs in but cannot decide an NP-complete problem unless P = NP.
History
Randell, Cui and Cohn (1992) introduced the region connection calculus and its eight base relations. Nebel (1995) showed that networks of base relations are decided in polynomial time, using Bennett's encoding in intuitionistic logic. Renz and Nebel (1999) proved NP-completeness of the full calculus and found the maximal tractable class . Renz (1999) introduced reduction by refinement, found and , and completed the classification for sets with all base relations. The analogous classification of RCC5 is due to Jonsson and Drakengren (1997).
References
- Jochen Renz and Bernhard Nebel, On the complexity of qualitative spatial reasoning, a maximal tractable fragment of the Region Connection Calculus, Artificial Intelligence 108(1-2), 1999, pages 69 to 123 (NP-completeness of RSAT, the propositional encoding of RCC8, the class H8 of relations with a Horn encoding, the proof that path consistency decides RSAT(H8) through positive unit resolution, and the maximality of H8)
- Jochen Renz, Maximal tractable fragments of the Region Connection Calculus, a complete analysis, Proceedings of IJCAI-99, Morgan Kaufmann, 1999, pages 448 to 454 on the IJCAI site, 448 to 455 in dblp (Section 3, Definition 1, Lemma 2, Theorem 5 and Corollary 6 on reduction by refinement; Section 4, Lemma 7 to Lemma 12 and Definition 10 on NP8, P8, C8 and Q8; Section 5, Proposition 13, Proposition 16, Theorem 17 and Theorem 18)
- Bernhard Nebel, Computational properties of qualitative spatial reasoning, first results, KI-95, Lecture Notes in Artificial Intelligence 981, Springer, 1995, pages 233 to 244 (polynomial consistency for RCC8 base relations)
- David A. Randell, Zhan Cui and Anthony G. Cohn, A spatial logic based on regions and connection, Proceedings of KR'92, Morgan Kaufmann, 1992, pages 165 to 176 (the eight base relations)
- Peter Jonsson and Thomas Drakengren, A complete classification of tractability in RCC-5, Journal of Artificial Intelligence Research 6, 1997, pages 211 to 221 (the analogous classification for RCC5)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 3NQTXX Edit this page History Report an error Markdown