CPT 317 - AI Week 7 FOL (Question and Answer)
CPT 317 - AI Week 7 FOL (Question and Answer)
CPT 317 - AI Week 7 FOL (Question and Answer)
Exercise 1:
1. 9x(A(x; y) ^ B(x))
2. 9x(9y(A(x; y) ! B(x))
3. :9x(9y(A(x; y))) ! B(x)
4. 8x(:9y(A(x; y)))
5. 9x(A(x; y)) ^ B(x)
6. 9x(A(x; x)) ^ 9y(B(y))
1
6. Frogs are green.
7. Frogs are not green.
8. No frog is green.
9. Some frogs are not green.
10. A mechanic likes Bob.
11. A mechanic likes herself.
12. Every mechanic likes Bob.
13. Some mechanic likes every nurse.
14. There is a mechanic who is liked by every nurse.
Exercise 3: Models
(a) and (c) done in class on Monday. (b) to be done at home by Wednesday.
(a) Check whether the formulas below are true within the model M with domain fItalo Calvino, Roberto
Baggio, torre Ei el g and interpretation:
I(c) =
I(e) =
I(b) =
I(P ) = fc; bg
I(S) = fcg
I(A) = f(c; b); (e; c); (e; b)g
I(C) = fbg
1. P (c)
2. P (e)
3. S(e)
4. A(c; e)
5. A(e; c)
6. A(e; e)
2
11. 9x(:P (x) _ S(x))
12. 9x(:P (x) ^ S(x))
(b) Given the model M de ned by D = f0; 1g, and the interpretation:
I(P ) = f0; 1g
1. 8xP (x)
2. P (0)
3. :R(0; 0)
4. 9xR(x; x)
5. 8xR(x; x)
6. 8xR(x; x) ! P (x)
7. 8x:R(x; x) ! P (x)
8. 8x(P x ! :R(x; x))
(c) Find a model in which the following formula is true and a model in which it is false:
3
1 Solutions
Exercise 1
Exercise 2
1. 8x(B(x) _ S(x))
2. 8x(B(x) _ 8x(S(x))
3. 9x(8y(L(y; x)))
4. :9x(:9y(L(y; x)))
5. 9x(N(x) ! 8y(A(y)))
6. 8x(F x ! Gx)
9. 9x(F x ^ :Gx)
10. 9X(M x ^ L(x; b))
Exercise 3
(a) 1. true
2. false
3. false
4. false
5. true
4
6. false
7. false
8. false
9. true, x = c
10. false
11. true, x = e
12. false
13. false
14. false
15. false
(b) 1. true
2. true
3. false
4. true
5. false, x = 1
6. true
7. true
8.