| - Up - | Next >> |
We start with selection constraints over integers which is called element constraint in the literature.
An element constraint has has the following form:
All a variables
denote integers. These integers may be restricted by additional finite domain constraints. The above element constraint is equivalent to
i.e. it says that
is the
-th element of the list
.
Element constraints can used to describe applications of finite functions on integers partially. For instance,
is equivalently expressed through the following element constraint:
This constraint says that
where
is the finite function defined through:
The operational semantics of element constraints can be specified through the following two propagation rules where
are natural numbers and
a finite set of natural numbers.
| - Up - | Next >> |