Truth Tables and Logic Exercises
Truth Tables and Logic Exercises
1. Create the truth table for the following expressions and determine if it is a tautology or contingency.
or contradiction
not (p and q) if and only if (not p or not q)
(not (p and not p)) implies [(p and not q) or (p and not r)]
c. (pVq) ↔ (q → p)
2. Let p, q, r be the propositions, whose truth values are T, F, and F respectively. Find the value.
Indeed, from the following propositions:
a.¬(r∧q)→[¬(¬p∧q)V(p∧¬r)]
c. (pV ¬r)V(q ↔ p)
d. [¬p∧(¬q∨r)] ↔ [(p∧¬q)∨(p∧¬r)]
a) 1. p ∧q -p
2. p 2. r ∧ s
3. p→ s 3. p↔ q
4. -p or q 4. -q ∨ s
5. -(p ∧ r) 5. q→ -p
6. s→ -r __________
__________ ∴p
∴ -r
-(p ∨q)∧s (r ∧ s) ∨ p
2. p or s 2. -p or q
3. p→ q 3. p→ q
4. r and s 4. (q ∧ s)→ r
5. p _________
___________ ∴r
∴p
f) 1. r ∨ s g) 1. - →q -r
2. p→ r 2. p ∧ s
3. s ∧ q 3. r
4. - q→ -r 4. t→ q
5. r ________
6. q→ t ∴q
____________
∴t
-p→ -q i) 1. p ∨ q
2. r and s 2. r ∧ s
3. p→ r 3. r and q
4. q ∨ r 4. q→ p
___________ 5. q
∴r ______________
∴ q↔ s
[Link] U = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20} be the universal set, and let A = { x belongs to U / x is a multiple of 3 }
}, B = { x ∈ U / x is a multiple of 4 }. Check the laws of Morgan with A and B.
Morgan's laws:
➢ A '∩B' = (A∪B)'
➢ A '∪B' = (A∩B)'
It keeps raining
The river rises
the bridge is swept away by the waters
One single road is enough for the whole city
E: the engineers have made a mistake