something is a person if it is either Adam or Eve, or if it has a mother. We can express this in a single rule as follows:

person(X) :- (X=adam; X=eve; mother(X, Y)).

  • silasmariner
    link
    fedilink
    arrow-up
    6
    ·
    5 days ago

    I never saw such a potent combination of gender politics and prolog