LOGIC 1
LOGIC 1
Proposition
A proposition is a statement that is either
true or false, but not both.
• Atlanta was the site of the 1996
Summer Olympic games.
• 1+1 = 2
• 3+1 = 5
• What will my CS1050 grade be?
Definition 1. Negation of p
Let p be a proposition.
The statement “It is
Table 1.
not the case that p” is The Truth Table for the
also a proposition, Negation of a Proposition
0 0 1 0 0 1
1 1 1 1 1 0
∧ 0 1
0 0 0
1 0 1
Logical Equivalence
• An important technique in proofs is to
replace a statement with another
statement that is “logically equivalent.”
• Tautology: compound proposition that is
always true regardless of the truth values
of the propositions in it.
• Contradiction: Compound proposition
that is always false regardless of the truth
values of the propositions in it.
Logically Equivalent
• Compound propositions P and Q are
logically equivalent if P↔Q is a
tautology. In other words, P and Q
have the same truth values for all
combinations of truth values of simple
propositions.
• This is denoted: P⇔Q (or by P Q)
Example: DeMorgans
• Prove that ¬(p∨q) ⇔ (¬p ∧ ¬q)
p q (p∨q) ¬(p∨q) ¬p ¬q (¬p ∧ ¬q)
TT T F F F F
TF T F F T F
FT T F T F F
FF F T T T T
Illustration of De Morgan’s Law
¬
(p∨q)
p
q
Illustration of De Morgan’s Law
¬p
p
Illustration of De Morgan’s Law
¬q
q
Illustration of De Morgan’s Law
¬p ∧
¬q
p
q
Example: Distribution
Prove that: p ∨ (q ∧ r) ⇔ (p ∨ q) ∧ (p
∨ r)
p q r q∧r p∨(q∧r) p∨q p∨r (p∨q)∧
(p∨r)
T T T T T T T T
T T F F T T T T
T F T F T T T T
T F F F T T T T
F T T T T T T T
F T F F F T F F
F F T F F F T F
F F F F F F F F
Prove: p↔q⇔(p→q) ∧ (q→p)
pq p↔q p→q q→p (p→q)∧(q→p)
TT T T T T
TF F F T F
FT F T F F
FF T T T T