Return the first match of a backward chaining goal.
A list or symbol.
Any backward chaining goal.
or a value matching
The backward chaining inference engine is started to look for any set of bindings which satisfy
. Using those bindings,
is instantiated and returned.
Two values are returned. The second value indicates with
that a proof was found, or with
that no proof exists. In the former case, the first value is the instantiated version of
, in the latter case, the first value is
Any subgoals that match the object base will only find objects from the current inferencing state.
(any '(?x is in (1 2 3)) '(member ?x (1 2 3)))
(1 IS IN (1 2 3)), T
(any '(?truck is a truck) '(truck ?truck))
(#<TRUCK TRUCK5> IS A TRUCK), T
KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011