<< Previous exercise (4.62) | Index | Next exercise (4.64) >>
(rule (step-son ?m ?s) (and (son ?w ?s) (wife ?m ?w))) (rule (has-son ?x ?y) (or (son ?x ?y) (step-son ?x ?y))) (rule (grandson ?g ?s) (and (has-son ?g ?f) (has-son ?f ?s))) ; the grandson of Cain (grandson Cain ?x) ; the sons of Lamech (has-son Lamech ?x) ; the grandsons of Methushael (grandson Methushael ?x)
meteorgan