Docsity

Homework on First-Order Logic, Predicates, and Resolution, Assignments of Computer Science

Toggle sidebar
bg1
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.

Partial preview of the text

Download Homework on First-Order Logic, Predicates, and Resolution and more Assignments Computer Science in PDF only on Docsity!

CS

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 asHighAs(x, longsP eak). Which of the following are legitimate results of applying Existential Instantiation? (a) asHighAs(longsP eak, longsP eak). (b) asHighAs(shavano, longsP 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.