Session 18 - Monday, October 1st

First Order Logic


A key to predicate logic we have been ignoring is the inclusion of quantifiers

You should recall from discrete that you can also write statements such as

" x  fast(x) implies horse(x)

$ y  fast(y) implies valuable(y)

Represent the following sentences in predicate logic with quantifiers

 

Last time we looked at representing the following sentences in predicate logic

  1. Schafer is a Hoosier - hoosier(Schafer)
  2. Hoosiers like basketball - "x hoosier(x) -> likes (x,Basketball)
  3. Children of basketball fans are basketball fans.  "x,y  childOf(x,y) AND likes (y, Basketball) -> likes (x,Basketball)
  4. Basketball fans like the month of March.  "y  likes(y,Basketball) -> likes(y,March)
  5. Margaret is Schafer's daughter  daughterOf(Margaret,Schafer)

Rules of Inference

Two common rules for reasoning over predicate logic representations rely on a simple rule from propositional logic involving implication, extended for reasoning with variables:

Modus Ponens   (p ^ (p->q)  -> q  )

man(Marcus)         p

"x man(x) implies person(x)         p -> q

person(Marcus)         q

 

Modus Tolens  ( q'  ^ (p->q)  -> p'  )

not( person(Lassie) )    q'

"x man(x) implies person(x)         p -> q

not( man(Lassie) )         not p

 

 

Remember: