Advertisement
Crazyvlad

Untitled

Dec 19th, 2022
1,826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defrule rbrother
  2. (person (name ?x) (gender male))
  3. (person (name ?y))
  4. (parent (parentname ?z) (childname ?x))
  5. (parent (parentname ?z) (childname ?y))
  6. =>
  7. (if (<> (str-compare ?x ?y) 0) then
  8. (printout t ?x “ is a brother of ” ?y crlf)
  9. (assert (brother (name1 ?x) (name2 ?y))))
  10. )
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement