Skip to main content

Resolution: Mary loves John

Short answer

Convert axioms to clauses, add negated goal clauses ¬study(John) and loves(Mary,John). Resolution chain from loves yields star(John), play(John), pass(John), then study(John), clashing with ¬study(John) to give NIL. Thus if John doesn't study, Mary doesn't love him.

Consider the following axioms: i) Anyone whom Mary loves is a football star. ii) Any student who does not pass does not play. iii) John is a student. iv) Any student who does not study does not pass. v) Anyone who does not play is not a football star. Prove that "If John does not study, then Mary does not love John" using resolution by refutation.

Method: convert every axiom to first-order logic, then to clause form, add the negation of the goal, and resolve until the empty clause (NIL) appears.

Step 1: Axioms in FOPL

Predicates: loves(x,y), star(x) = x is a football star, student(x), pass(x), play(x), study(x). Constants: Mary, John.

  1. ∀x loves(Mary,x) → star(x)
  2. ∀x [student(x) ∧ ¬pass(x)] → ¬play(x)
  3. student(John)
  4. ∀x [student(x) ∧ ¬study(x)] → ¬pass(x)
  5. ∀x ¬play(x) → ¬star(x)

Goal: ¬study(John) → ¬loves(Mary,John)

Step 2: Clause form (remove →, using P → Q ≡ ¬P ∨ Q)

C1: ¬loves(Mary,x) ∨ star(x)
C2: ¬student(x) ∨ pass(x) ∨ ¬play(x)
C3: student(John)
C4: ¬student(x) ∨ study(x) ∨ ¬pass(x)
C5: play(x) ∨ ¬star(x)

(Axiom 5: ¬(¬play) ∨ ¬star = play ∨ ¬star.)

Step 3: Negate the goal

¬[¬study(John) → ¬loves(Mary,John)] ≡ ¬study(John) ∧ loves(Mary,John). This gives two clauses:

C6: ¬study(John)
C7: loves(Mary,John)

Step 4: Resolution refutation

StepResolveUnifierResolvent
C8C7 and C1x = Johnstar(John)
C9C8 and C5x = Johnplay(John)
C10C9 and C2x = John¬student(John) ∨ pass(John)
C11C10 and C3nonepass(John)
C12C11 and C4x = John¬student(John) ∨ study(John)
C13C12 and C3nonestudy(John)
C14C13 and C6noneNIL (empty clause)
 C7 loves(M,J)   C1 ¬loves(M,x)∨star(x)
        \             /
         C8 star(J)        C5 play(x)∨¬star(x)
              \              /
               C9 play(J)        C2 ¬student∨pass∨¬play
                    \              /
                     C10 ¬student(J)∨pass(J)   C3 student(J)
                              \                  /
                               C11 pass(J)       C4 ¬student∨study∨¬pass
                                     \             /
                                      C12 ¬student(J)∨study(J)   C3
                                              \                  /
                                               C13 study(J)    C6 ¬study(J)
                                                       \         /
                                                          NIL

Conclusion

The set of axioms plus the negated goal gives the empty clause, so it is unsatisfiable. Hence the goal is true: if John does not study, then Mary does not love John.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Artificial Intelligence chapter 4 questions →