




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





1
2
3
5
p q p ∧q
6
p ¬p
7
p q p ∧q
8
p q p∨q
9
10
11
12
p q
p ∧q
¬q
( (p ∧ q) ∨¬ q)
19
20
21
22
if( TO or CC does not contain blah OR TO or CC does not contain foo) Delete message
23
Take 1 or 2 pills every 4-6 hours until condition improves. Do not exceed 6 pills per day, or take for longer than 7 days unless directed by a doctor. Do not take this drug during the last 3 months of pregnancy, unless directed by a doctor. If you are taking XYZs and PDQs or have taken either an XYZ or a PDQ within the last 90 days, and the other within the last 30 days, or are taking an ABC or have taken an ABC within the last 60 days, you should not take this drug. Do not drink alcohol or smoke while on this drug. If you have a heart condition, asthma, diabetes, or have an IQ below 25, do not take this drug. Do not take this drug if you have a high fever, cold sweats, runny nose, headache, or sore throat, and discontinue use if you develop any of these symptoms, and dizziness, nervousness, or sleeplessness occur.
24
25
26
27
p q
¬p∨q
¬p
p→q
28
F
F
F
F
T
T
T
T
p
F F
F T
T F
T T
F F
F T
T F
T T
q r
F
F
F
T
T
T
T
T
(p∨q)∧(p∨r)
F
T
F
T
T
T
T
T
p∨r
F
F
T
T
T
T
T
T
p∨q
F
F
F
T
T
T
T
T
p∨(q∧r)
F
F
F
T
F
F
F
T
q∧r
29
Equivalence Name
p∧F ⇔ F
p∨T ⇔ T Domination laws
p∨F ⇔ p
p∧T ⇔ p Identity laws
p∧p ⇔p
p∨p ⇔ p Idempotent laws
¬(¬p) ⇔p Double negation law
p∧¬p ⇔ F (Not an offical name)
p∨¬p ⇔ T Cancellation laws
30
Equivalence Name
p∧q ⇔ q∧p
p∨q ⇔ q∨p Commutative laws
(p∧q)∧r ⇔ p∧(q∧r)
(p∨q)∨r ⇔ p∨(q∨r) Associative laws
p∧(q∨r) ⇔ (p∧q)∨(p∧r)
p∨(q∧r) ⇔ (p∨q)∧(p∨r) Distributive laws
¬(p∨q) ⇔ ¬p∧¬q
¬(p∧q) ⇔ ¬p∨¬q De Morgan’s laws
(p→q) ⇔ (¬p∨q) Implication law
37
p q p∧q
¬(p∧q)
p∨q
38
p q ¬(p∨q)
if(NOT p AND NOT q)) Delete message
if( TO or CC does not contain blah AND TO or CC does not contain foo) Delete message
39
40
41
42
43
44
45
a) (p→q)∧p b) (¬p↔¬q) ↔(q↔r) c) p∧(q→¬ (r ∨ q))
46