The delay of a goal G(X) on a variable X, creates a circular dependency, modelled by a compound '$ATTR'/2. Currently we do not provide the usual attributed variable schema with put_attr/3, etc... Similarly, as of now the utility predicate deref/2 resp. unify/2 should be called, instead of (=)/2, when the participation of attributed variables is assumed.
dif/2, freeze/2 and when/2 were realized with minimum guards for maximum performance. The end-user might nevertheless see freeze(X, member(X, [1,2])) and dif(X, 1) not producing X = 2, due to the myopic nature of the predicates. More advanced inferencing can be found in constraint programming libraries and/or custom attributed variables programming.
The following attrvars predicates are provided: