This exercise uses the function MapColor and predicates In(x, y), Borders(x, y), and Country(x), whose arguments are
Question:
This exercise uses the function MapColor and predicates In(x, y), Borders(x, y), and Country(x), whose arguments are geographical regions, along with constant symbols for various regions. In each of the following we give an English sentence and a number of candidate logical expressions. For each of the logical expressions, state whether it (1) correctly expresses the English sentence; (2) is syntactically invalid and therefore meaningless; or (3) is syntactically valid but does not express the meaning of the English sentence.
a. Paris and Marseilles are both in France.
(i) In(Paris ∧ Marseilles, France ).
(ii) In(Paris, France ) ∧ In(Marseilles, France ).
(iii) In(Paris, France ) ∨ In(Marseilles, France ).
b. There is a country that borders both Iraq and Pakistan.
(i) ∃ c Country(c) ∧ Border (c, Iraq) ∧ Border (c, Pakistan).
(ii) ∃ c Country(c) ⇒ [Border (c, Iraq) ∧ Border (c, Pakistan)].
(iii) [∃ c Country(c)] ⇒ [Border (c, Iraq) ∧ Border (c, Pakistan)].
(iv) ∃ c Border (Country(c), Iraq ∧ Pakistan).
c. All countries that border Ecuador are in South America.
(i) ∀c Country(c) ∧ Border (c,Ecuador ) ⇒ In(c, SouthAmerica).
(ii) ∀ c Country(c) ⇒ [Border (c,Ecuador ) ⇒ In(c, SouthAmerica)].
(iii) ∀ c [Country(c) ⇒ Border (c,Ecuador )] ⇒ In(c, SouthAmerica).
(iv) ∀c Country(c) ∧ Border (c,Ecuador ) ∧ In(c, SouthAmerica).
d. No region in South America borders any region in Europe.
(i) ¬[∃ c, d In(c, SouthAmerica) ∧ In(d, Europe) ∧ Borders(c, d)].
(ii) ∀ c, d [In(c, SouthAmerica) ∧ In(d, Europe)] ⇒ ¬Borders(c, d)].
(iii) ¬∀ c In(c, SouthAmerica) ⇒ ∃d In(d, Europe)∧ ¬Borders(c, d).
(iv) ∀ c In(c, SouthAmerica) ⇒ ∀d In(d, Europe) ⇒ ¬Borders(c, d).
e. No two adjacent countries have the same map color.
(i) ∀ x, y ¬Country(x) ∨ ¬Country(y)∨ ¬Borders(x, y) ∨
¬(MapColor (x) = MapColor (y)).
(ii) ∀ x, y (Country(x) ∧ Country(y) ∧ Borders(x, y) ∧ ¬(x = y)) ⇒
¬(MapColor (x) = MapColor (y)).
(iii) ∀ x, y Country(x) ∧ Country(y) ∧ Borders(x, y) ∧
¬(MapColor (x) = MapColor (y)).
(iv) ∀ x, y (Country(x) ∧ Country(y) ∧ Borders(x, y)) ⇒ MapColor (x ≠ y).
Step by Step Answer:
Artificial Intelligence A Modern Approach
ISBN: 978-0136042594
3rd edition
Authors: Stuart Russell, Peter Norvig