Algorithm Search⌘K

Definitionadvanced

ORD-Horn subclass

Also called ORD-Horn relations, ORD-Horn algebra.

The 868 interval relations, counting the empty one, that are defined by Horn clauses over endpoint comparisons; path consistency decides their networks.

The ORD-Horn subclass is the set of relations of Allen's interval algebra that can be written as a conjunction of Horn clauses whose literals compare endpoints. Nebel and Bürckert defined it in 1995 and proved that algebraic closure decides consistency of every network whose labels are ORD-Horn, and that no relation can be added without making the problem NP-complete. This page is the definition of the class and how to test membership; the tractability proof is on the page Nebel-Bürckert theorem, and the other maximal classes are on tractable subclasses of the interval algebra.

Definition

Write an interval as X=(x−,x+)X = (x^-, x^+) with x−<x+x^- < x^+, and let Y=(y−,y+)Y = (y^-, y^+). The endpoints of the pair are x−,x+,y−,y+x^-, x^+, y^-, y^+. Following Nebel and Bürckert (1995):

  • an ORD clause is a disjunction of literals pρqp \mathrel{\rho} q, where p,qp, q are endpoints and ρ∈{≤,=,≠}\rho \in \{\le, =, \ne\};
  • an ORD-Horn clause is an ORD clause with at most one literal of the form p≤qp \le q or p=qp = q; all other literals are p≠qp \ne q;
  • an interval relation RR is ORD-Horn when there is a finite set Φ\Phi of ORD-Horn clauses on x−,x+,y−,y+x^-, x^+, y^-, y^+ such that, for all intervals XX and YY, XRYX \mathrel{R} Y holds exactly when the endpoints satisfy every clause of Φ\Phi.

The set of ORD-Horn relations is written H\mathcal{H}. The condition x−<x+x^- < x^+ is itself ORD-Horn (x−≤x+x^- \le x^+ and x−≠x+x^- \ne x^+), and a strict p<qp < q is the pair of clauses p≤qp \le q and p≠qp \ne q, so strict order is allowed.

Testing membership. Every set of ORD-Horn clauses on 4 endpoints defines a union of base relations. For a relation RR, let hull(R)\mathrm{hull}(R) be the intersection of all clause-defined relations that contain RR. Then R∈HR \in \mathcal{H} exactly when hull(R)=R\mathrm{hull}(R) = R. There are only finitely many clauses on 4 endpoints, so a program finds H\mathcal{H} by checking all 8192 relations. The test of the page Allen's constraint propagation does this.

Facts (Nebel and Bürckert 1995; the counts were also checked by machine).

  1. H\mathcal{H} has 868 relations, counting the empty relation, so 867 non-empty ones, about 10.6% of the 8192.
  2. H\mathcal{H} contains the 13 base relations and the universal relation, and it is closed under converse, intersection and composition.
  3. H\mathcal{H} contains the 188 pointisable relations (counting the empty one), which are conjunctions of point algebra constraints between endpoints, and these contain the 83 convex relations, which use no ≠\ne.
  4. Algebraic closure decides consistency of networks over H\mathcal{H}, and H\mathcal{H} is maximal: for every relation R∉HR \notin \mathcal{H}, consistency over H∪{R}\mathcal{H} \cup \{R\} is NP-complete.
  5. H\mathcal{H} equals the class of preconvex relations of Ligozat, defined geometrically.

Examples and non-examples

A convex relation: {b,m}\{b, m\}. It is the single clause x+≤y−x^+ \le y^-: XX ends at or before the start of YY.

A pointisable relation that is not convex: {d,o}\{d, o\}. It is in H\mathcal{H} and is a conjunction of point relations, but one of them is ≠\ne, so it is not convex.

ORD-Horn but not pointisable: {o,s,fi}\{o, s, fi\}. It is defined by

x−≤y−,x+≤y+,y−≤x+,y−≠x+,(x−≠y−∨x+≠y+).x^- \le y^-,\quad x^+ \le y^+,\quad y^- \le x^+,\quad y^- \ne x^+,\quad (x^- \ne y^- \lor x^+ \ne y^+).

The first four clauses allow o, s, fi and eq; the last clause, with no positive literal, removes eq. It needs a disjunction, so it is not a conjunction of point relations, but the disjunction has no positive literal, so it is Horn.

Larger members. {b,m,o}\{b, m, o\}, {s,eq,si}\{s, eq, si\}, {m,o,fi}\{m, o, fi\} and {b,di,o,m,fi}\{b, di, o, m, fi\} are ORD-Horn.

Non-example: {b,bi}\{b, bi\}. "XX is before or after YY" is x+<y−∨y+<x−x^+ < y^- \lor y^+ < x^-. It needs a clause with two order literals; its hull is {b,o,d,di,oi,bi}\{b, o, d, di, oi, bi\}. It is one of the relations of the NP-hardness reduction (NP-completeness of the interval algebra).

Non-example: {b,d}\{b, d\}. "Before or during" is not ORD-Horn: every clause set that both b and d satisfy also allows o, so the hull of {b,d}\{b, d\} is {b,o,d}\{b, o, d\}, which is ORD-Horn.

Non-example: {d,di,oi,si,f}\{d, di, oi, si, f\}. It is not ORD-Horn either, and by fact 4 adding it to H\mathcal{H} makes consistency NP-complete.

Common errors

  • Counting 868 as the number of non-empty relations. The count includes the empty relation.
  • Confusing ORD-Horn with pointisable. Pointisable relations are conjunctions of single literals; ORD-Horn allows disjunctions of ≠\ne literals with one positive literal.
  • Treating p=qp = q as two positive literals. It is one literal; a clause p=q∨r≠sp = q \lor r \ne s is the same as the two Horn clauses p≤q∨r≠sp \le q \lor r \ne s and q≤p∨r≠sq \le p \lor r \ne s.

References

  1. Bernhard Nebel and Hans-Jürgen Bürckert, Reasoning about temporal relations, a maximal tractable subclass of Allen's interval algebra, Journal of the ACM 42(1), 1995, pages 43 to 66 (ORD clauses, ORD-Horn clauses, the subclass H with 868 relations, its closure properties and the tractability and maximality results)
  2. Marc Vilain, Henry Kautz and Peter van Beek, Constraint propagation algorithms for temporal reasoning, a revised report, in Readings in Qualitative Reasoning about Physical Systems, Morgan Kaufmann, 1990, pages 373 to 381 (the pointisable interval relations)
  3. Peter van Beek, Reasoning about qualitative temporal information, Artificial Intelligence 58(1-3), 1992, pages 297 to 326 (the pointisable subclass and its algorithms)
  4. Andrei Krokhin, Peter Jeavons and Peter Jonsson, Reasoning about temporal relations, the tractable subalgebras of Allen's interval algebra, Journal of the ACM 50(5), 2003, pages 591 to 640 (ORD-Horn as one of the 18 maximal tractable subalgebras)
  5. Gérard Ligozat, Qualitative Spatial and Temporal Reasoning, ISTE and Wiley, 2011, the convex and preconvex interval relations, and their equality with ORD-Horn

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/HMHYF4/text.yaml