reasonable Restaurant);- ft
not expensiveC Restaurant}. i - ! ?- 9ood_etaadard(X), reasonable £ X).
, , Prolog X = francesco
, , ?- reasonable (X), good_atandard (). Prolog
II:
, . , reasonable (X} , . : not Goal , Goal not Goal. , .
, , . Prolog ?- expensive! X).
: " X, expensive { X) ? , X?" X . Prolog , X = jeanluis.
?- not expensive (X).
: " X, not expensive (X!?" , X = francesco. Prolog "", . nor. expensive1! X) : not i X, , expensive ())
: X expensive (XJ
134 I. Prolog
, , not. , . . , , , Prolog, .
.
, -, , -,
.
, Prolog ( ), , , .
|
|
, :
, 1, 2
; not Goal Goal.
, true fail; , .
, , , . .
not . not .