Definitionadvanced
Composition table
Also called transitivity table, weak composition table.
The m by m table that gives, for base relations a and b of a qualitative calculus, every base relation that can hold between x and z when x a y and y b z.
A composition table is the finite multiplication table of a qualitative constraint calculus: for two base relations and , the entry lists every base relation that can hold between and when and . It is what lets a program reason about infinite domains with finite symbols, and every propagation method, from algebraic closure to Allen's constraint propagation, is a loop around it. The page Allen's interval algebra shows sample entries of the interval table; this page is about tables in general: their definition, the laws they obey, how to compute one, and the shape of the interval table as a whole.
Definition
Let the calculus have domain and base relations . Its composition table is the array
For relations , the (weak) composition is the union . A program that stores relations as -bit masks computes it with at most table look-ups, or once for all pairs of masks.
The table is strong (or extensional) when as sets of pairs, that is, when for every and every pair there is a with and . Otherwise the table is only weak: it is still the smallest union of base relations that contains .
Laws. For every calculus, with the converse and the identity:
- identity: ;
- converse: exactly when ;
- cycle law: exactly when , exactly when .
Proof of the cycle law. means that there are with , and . The same three points have , and , which says ; the other case is the same with and in the roles of the middle point. The converse law is the same argument read from to .
If the table is strong, then composition is associative, , and the relations form a relation algebra. For a weak table, associativity can fail (Ligozat and Renz 2004).
Computing a table. When a finite set of values realizes every configuration of three objects, the table is the set of triples of base relations seen on that set. For the point algebra, the values suffice. For intervals, three intervals have 6 endpoints, so every order type of them appears among the intervals with endpoints in , and the triples give all 169 entries. The implementations on the algebraic closure page compute both tables this way, and check the converse law and associativity, instead of typing the table in.
Examples and non-examples
Point algebra. The base relations , and on give this table, where "all" is :
| all | |||
| all |
The entry is "all" because and say nothing about and . The table is strong over and , which are dense, and only weak over , where needs .
Allen's interval algebra. The entries hold 409 base relations in total. 97 entries are single relations, 42 have 3, 24 have 5, 3 have 9 and 3 are universal (, and ). Every entry has an odd size. The table is strong and associative. A few entries that the interval page does not list:
| b | d | |
| o | oi | |
| s | si | |
| f | fi |
For example, and say that and both start with ; then and start together, and either can end first, which gives s, eq or si.
Region calculi. The 64 entries of the RCC8 table come from the topology of regions. For the standard models of regions, the RCC8 table is weak (Renz and Ligozat 2005).
Product calculi. For the rectangle algebra, , so the table is never stored; it is read off two interval tables.
Non-example: a table of rules. "If is before and is before then is before " is one entry, not a table. A table must cover every pair of base relations, so that the composition of any two relations is defined.
Non-example: unions as input. The entry for the relations and is not a separate row of the table. It is the union of and , so the table has only entries even though there are relations.
Common errors
- Reading the table in the wrong order. assumes and ; swapping and gives a different entry, for example while .
- Typing a 169-entry table by hand. Small errors survive for a long time. Generate the table from concrete values and check the converse and cycle laws.
- Assuming that a table that is used for propagation is strong. A weak table still gives sound propagation, but algebraic closure may then say less about consistency.
Related definitions
- Qualitative constraint calculus: the base relations whose table this is.
- Allen's interval algebra and point algebra: the two classical tables.
- Algebraic closure: the propagation that applies the table to all triples of a network.
- Path consistency: the same use of composition in general CSPs, where relations are stored explicitly instead of by table.
- Qualitative constraint network: the networks the table is used on.
References
- James F. Allen, Maintaining knowledge about temporal intervals, Communications of the ACM 26(11), 1983, pages 832 to 843 (the transitivity table of the 13 interval relations)
- 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 (weak composition and the laws it obeys)
- 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 tables)
- Peter B. Ladkin and Roger D. Maddux, On binary constraint problems, Journal of the ACM 41(3), 1994, pages 435 to 469 (composition tables as the atom structures of relation algebras)
- 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 (which calculi have associative and strong composition)
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 9B01H6 Edit this page History Report an error Markdown