Constraint languages that arise from finite algebras have recently been the object of study, especially in connection with the Dichotomy Conjecture of Feder and Vardi. An important class of algebras are those that generate congruence distributive varieties and included among this class are lattices, and more generally, those algebras that have near-unanimity term operations. An algebra will generate a congruence distributive variety if and only if it has a sequence of ternary term operations, called J´onsson terms, that satisfy certain equations. We prove that constraint languages consisting of relations that are invariant under a short sequence of J´onsson terms are tractable by showing that such languages have bounded width. Consequently, the class of instances of the constraint satisfaction problem arising from such a constraint language that fail to have solutions is definable in Datalog.
Emil W. Kiss, Matthew Valeriote