Definitionadvanced
Qualitative constraint calculus
Also called qualitative calculus, qualitative spatial and temporal calculus.
A finite set of jointly exhaustive, pairwise disjoint base relations on an infinite domain, closed under converse, with unions as relations and a weak composition.
A qualitative constraint calculus is a small, fixed vocabulary of relations, such as "before", "meets" or "overlaps", that describes how two objects of an infinite domain lie relative to each other without numbers. It has a finite set of base relations, exactly one of which holds between any two objects, and every set of base relations is a relation of the calculus, read as "one of these". Composition is replaced by a finite table, so reasoning works on symbols. This page defines the general notion; Allen's interval algebra, the point algebra and RCC8 are the main instances, and a set of constraints in a calculus is a qualitative constraint network.
Definition
Let be a set, the domain, usually infinite: the real numbers, the intervals of the real line, the regions of the plane. Following Ligozat and Renz (2004), a partition scheme on is a finite set of binary relations on , the base relations, such that
- jointly exhaustive: ;
- pairwise disjoint: for ;
- identity: the identity relation is one of the ;
- converse: for each , its converse is also a base relation.
The first two are often called JEPD. A relation of the calculus is a union of base relations, written as the set of their names; there are relations, from the empty relation to the universal relation . Union, intersection, complement and converse of relations are relations again. The usual composition need not be a union of base relations, so the calculus uses weak composition:
the smallest relation of the calculus that contains . It distributes over unions, so it is fixed by the values , the composition table. Composition is strong when for all relations; then the relations form a relation algebra in the sense of Tarski. With weak composition they form, in general, only a non-associative algebra (Ligozat and Renz 2004).
The qualitative calculus is the set of relations with these operations. Its reasoning problem is consistency of networks: given variables over and a relation on some pairs, is there an assignment that satisfies all of them?
Examples and non-examples
Point algebra. or , with the base relations , and . Composition is strong: between there is always a . The relations are the 8 subsets, such as for and for . See the point algebra.
Point algebra over the integers. With and the same 3 base relations, the scheme is still JEPD, but composition is only weak. The pairs in are those with , which is not a union of base relations, while . The table is the same as over . A network of the calculus has an integer solution exactly when it has a real one, because only the order of the values matters, so the weaker composition does not change the answers here.
Allen's interval algebra. is the set of pairs of reals with , with 13 base relations given by the order of the 4 endpoints. Composition is strong, and there are relations. See Allen's interval algebra.
Region calculi. RCC8 has 8 base relations between regions, such as "disconnected", "externally connected" and "tangential proper part"; RCC5 merges some of them into 5. For the standard models of regions, their tables give weak composition (Renz and Ligozat 2005).
Products. The cardinal direction calculus for points of the plane uses one point algebra relation per axis, base relations. The rectangle algebra uses one Allen relation per axis, base relations.
Non-example: not exhaustive. on misses the pairs with .
Non-example: not disjoint. on is exhaustive, but both relations hold when , so "exactly one holds" fails and the table cannot be read as a function of the base relations.
Non-example: metric constraints. The constraints of the simple temporal problem use infinitely many relations, one per pair . They are not a qualitative calculus, and they are solved by shortest paths instead of a table.
Common errors
- Assuming that the table is associative or gives the exact composition. Both hold for the point and interval algebras, but not for every calculus.
- Confusing a base relation with a relation. "" says that one of two base relations holds, not both.
- Taking the identity for granted. If it is not a base relation, a network cannot say that two variables are the same object.
Related definitions
- Composition table: the finite table of that the calculus computes with.
- Qualitative constraint network: a set of variables with a relation of the calculus on each pair.
- Algebraic closure: the propagation that uses the table to tighten a network.
- Constraint satisfaction problem: the general problem; a qualitative network is a binary CSP with an infinite domain.
- Point algebra, Allen's interval algebra, RCC8 and rectangle algebra: the main calculi.
References
- Gérard Ligozat and Jochen Renz, What is a qualitative calculus? A general framework, PRICAI 2004, Lecture Notes in Computer Science 3157, Springer, 2004, pages 53 to 64 (partition schemes, weak composition, and the algebras they give)
- Jochen Renz and Gérard Ligozat, Weak composition for qualitative spatial and temporal reasoning, CP 2005, Lecture Notes in Computer Science 3709, Springer, 2005, pages 534 to 548 (weak and strong composition, and when algebraic closure decides consistency)
- Frank Dylla and others, A survey of qualitative spatial and temporal calculi, algebraic and computational properties, ACM Computing Surveys 50(1), 2017, pages 1 to 39 (the definition of a qualitative calculus, the algebraic properties of many calculi, and a table of them)
- Gérard Ligozat, Qualitative Spatial and Temporal Reasoning, ISTE and Wiley, 2011, Chapters 1 and 11 (the point and interval calculi, and the general notion of a qualitative formalism)
- James F. Allen, Maintaining knowledge about temporal intervals, Communications of the ACM 26(11), 1983, pages 832 to 843 (the first calculus of this kind, for time intervals)
Where this leads
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 2CP170 Edit this page History Report an error Markdown