The standard prolog predicate that always fails.
kw
fail
The backward chaining goal fail
always fails. It is sometimes used with cut.
(defrule nice :backward ((nice ?x) <-- (rottweiler ?x) (cut) (fail)) ((nice ?x) <--))
implements "everything is nice unless it is a rottweiler".
KnowledgeWorks and Prolog User Guide (Unix version) - 01 Dec 2021 19:35:49