
CS440
Homework 5 (due Tue. 10/17)
1. [25 pts]
Represent the following sentences in first-order logic. Define a vocabulary of func-
tions/predicates for doing so.
(a) Every student who takes French passes it.
(b) The best score in homework1 is greater than the best score in homework2.
(c) Every person who buys a policy is smart.
(d) No person buys an expensive policy.
(e) John envies everyone who owns an SUV and a big house.
(f) There is a barber who shaes all men intown who do not shave themselves.
(g) A person born in the UK, each of whose parents is a UK citizen or a UK resident,
is a citizen by descent.
(h) A person born outside the UK, one of whose parents is a UK citizen by birth, is
a UK citizen by descent.
2. [21 pts]
Using the Predicates āmaleā, āfemaleā, and āchildā write defintions for grandChild, great-
GrandParent, brother, aunt, uncle, brotherInLaw, and cousin.
3. Existential Instantiation [15 pts]
Suppose a knowledgebase contains just one sentence, āx asHig hAs(x, longsP eak).
Which of the following are legitimate results of applying Existential Instantiation?
(a) asHighAs(longsP eak , longsP eak).
(b) asHighAs(shavano, l ongsP eak).
4. Resolution [19 pts]
How can resolution be used to show that a sentence is valid? Unsatisfiable?
5. Proof by resolution [20 pts]
From āHorses are animalsā it follows that āThe head of a horse is the head of an
animalā. Demonstrate that this inference is valid using resolution; use the prdicates
headOf(h, x), horse(x), and animal(x).
Submission In class on the due date.