Docsity

Propositional Logic Cheat Sheet, Exercises of Logic

Toggle sidebar
bg1
Chapter 1 cheat sheet
Logical operators, their truth tables, laws:
Precedence of Logical Operators: ¬, ,,,  , 
Laws of Propositional logic:
p ¬p
T F
F T
pq p → q
T T T
T F F
F T T
FFT
pqp q
T T F
T F T
F T T
F F F
pqp q
TTT
T F F
F T F
F F T
(p q) p  q
(p q) p  q
De Morgan's
Laws (1)
p p p
p p p
Idempotent laws
(5)
(p) p Double negation
law (2) p T T
p F F
Domination laws
(6)
p q q p
p q q p
Commutative
laws (3)
p T p
p F p
Identity laws (7)
p (p q) p
p (p q) p
Absorption laws
(4)
p  p T
p  p F
Negation laws (8)
(p q) r p (q r)
(p q) r p (q r) Associative laws (9)
p (q r) (p q) (p r)
p (q r) (p q)  (p r) Distributive laws (10)
p q p q (11) p q (p q) (q p) (12)
p q q p (13) p q  p q (14)
p q  p q (15) p q (p q) (p  q) (16)
p q (p  q) (17) (p q) p q (18)
(p q) p  q (19)
(p q) (p r) p (q r) (20)
(p q) (p r) p (q r) (21)
(p r) (q r) (p q) r (22)
(p r) (q r) (p q) r (23)
pq p ˅ q
TTT
TFT
FTT
FFF
pf2

Partial preview of the text

Download Propositional Logic Cheat Sheet and more Exercises Logic in PDF only on Docsity!

Chapter 1 cheat sheet

Logical operators, their truth tables, laws:

Precedence of Logical Operators: ¬, , , ,  , 

Laws of Propositional logic:

p ¬p

T F

F T

p q p → q

T T T T F F F T T F F T

p q p  q

T T F T F T F T T F F F

p q p  q

T T T T F F F T F F F T (p  q)  p  q (p  q)  p  q De Morgan's Laws (1) p  p  p p  p  p Idempotent laws (5) ( p)  p Double negation law (2) p  TT p  FF Domination laws (6) p  q  q  p p  q  q  p Commutative laws (3) p  T  p p  F  p Identity laws (7) p  (p  q)  p p  (p  q)  p Absorption laws (4) p  p  T p  p  F Negation laws (8) (p  q)  r  p  (q  r) (p  q)  r  p  (q  r) Associative laws (9) p  (q  r)  (p  q)  (p  r) p  (q  r)  (p  q)  (p  r) Distributive laws (10)

p  q  p  q (11) p  q  (p  q)  (q  p) (12)

p  q  q  p (13) p  q  p  q (14)

p  q  p  q (15) p  q  (p  q)  (p  q) (16)

p  q  (p  q) (17) (p  q)  p  q (18)

(p  q)  p  q (19)

(p  q)  (p  r)  p  (q  r) (20)

(p  q)  (p  r)  p  (q  r) (21)

(p  r)  (q  r)  (p  q)  r (22)

(p  r)  (q  r)  (p  q)  r (23)

p q p ˅ q

T T T T F T F T T F F F

p q p  q

T T T T F F F T F F F F

 - universal quantifier  - existential quantifier ! - uniqueness quantifier  Precedence of Quantifiers and Logical Operators:  ¬, , , ,  ,! Quantifiers' precedence: from left to the right Quantifiers with restricted domain: x<0 (x^2 >0) can be re-written with implication x (x<0  x^2 >0) x>0 (x^2 =4) can be re-written with conjunction x (x>0  x^2 =4) Negating Quantified expressions (De Morgan's Laws): ¬xP(x)  x¬P(x) ¬xP(x)  x¬P(x) Nested quantifiers: Rules of inference: Rule of inference Name p p → q ∴ q Modus ponens ¬q p → q ∴ ¬p Modus tollens p ∴ p ∨ q Addition p ∧q ∴ p Simplification p q ∴ p ∧q Conjunction p → q q → r ∴ p → r Hypothetical syllogism p ∨q ¬p ∴ q Disjunctive syllogism p ∨q ¬p ∨r ∴ q ∨r Resolution Statement When True? When False? y x P(x,y) x y P(x,y) P(x,y) is true for any pair x, y there is a pair x, y for which P(x,y) is False x y P(x,y) For any x, there is a y, for which P(x,y) s true There is an x, for which P(x,y) is false for any y x y P(x,y) There exists an x, for which P(x,y) is true for any y There is no x, such that P(x,y) is true for any y x y P(x,y) y x P(x,y) There is a pair x, y for which P(x,y) is true P(x,y) is false for every pair x, y