next up previous
Next: Formatted Write Up: Built-In Predicates Previous: Invoking Predicates on

Forall

forall( +Cond, +Action)

  For all alternative bindings of Cond Action can be proven. The example verifies that all arithmic statements in the list L are correct. It does not say which is wrong if one proves wrong.
?- forall(member(Result = Formula, [2 = 1 + 1, 4 = 2 * 2]),
		 Result =:= Formula).



Passani Luca
Tue Nov 14 08:58:33 MET 1995