Quiz Solution
Quiz Solution
Quiz Solution
Q Show that
(A-B) – (B-C) = A-B (Proof using Set Identities)
Q Use the inference rules and find the conclusion. Also, name the rule. (5
marks)
• “It is not sunny this afternoon and it is colder than yesterday.”
• “We will go swimming only if it is sunny.”
• “If we do not go swimming, then we will take a canoe trip.”
• “If we take a canoe trip, then we will be home by sunset.”
Using the inference rules, construct a valid argument for the conclusion:
“We will be home by sunset.”
Solution
p: “It is sunny this afternoon.”
r: “We will go swimming.”
t: “We will be home by sunset.”
q: “It is colder than yesterday.”
s: “We will take a canoe trip
¬p ∧ q (Specialization)
¬p
R→ p (Modus tollens)
¬r
¬r → ¬s (Modus ponens)
S
S→t (Modus ponens)
t
Q You are about to leave for school in the morning and discover that you don’t have your
glasses. You know the following statements are true:
• If I was reading the newspaper in the kitchen, then my glasses are on the kitchen table.
• If my glasses are on the kitchen table, then I saw them at breakfast.
• I did not see my glasses at breakfast.
• I was reading the newspaper in the living room or I was reading the newspaper in the
kitchen.
• If I was reading the newspaper in the living room then my glasses are on the coffee table.
Where are the glasses?
Solution:
Let,
RK = I was reading the newspaper in the kitchen.
GK =My glasses are on the kitchen table.
SB =I saw my glasses at breakfast.
RL =I was reading the newspaper in the living room.
GC =My glasses are on the coffee table.
1. RK →GK by(a)
GK →SB by(d)
∴ RK →SB by transitivity
∼SB by (c)
∴ ∼RK by modus tollens
3. RL ∨ RK by(d)
4. RL →GC by(e)
Solution
Q The program for Tarski’s World provides pictures of blocks of various sizes, shapes, and
colors, which are located on a grid. Shown in Figure 3.1.1 is a picture of an arrangement of
objects in a two-dimensional Tarski world. The configuration can be described using logical
operators and—for the two-dimensional version—notation such as Triangle(x), meaning “x is a
triangle,” Blue(y), meaning “y is blue,” and RightOf(x, y), meaning “x is to the right of y (but
possibly in a different row).” Individual objects can be given names such as a,b, or c
Determine the truth or falsity of each of the following statements. The domain for all variables is
the set of objects in the Tarski world shown above.
• ∀t, Triangle(t) → Blue(t).
• ∀x,Blue(x) → Triangle(x).
• ∃y such that Square(y)∧ RightOf(d, y).
• ∃z such that Square(z)∧ Gray(z)