Chapter1 s1
Chapter1 s1
Chapter1 s1
and Proofs
Chapter 1, Part I: Propositional Logic
Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter Summary
Propositional Logic
The Language of Propositions
Applications
Logical Equivalences
Predicate Logic
The Language of Quantifiers
Logical Equivalences
Nested Quantifiers
Proofs
Rules of Inference
Proof Methods
Proof Strategy
Propositional Logic
Section 1.1
Propositions
A proposition is a declarative sentence that is either true or false.
Examples of propositions:
a) The Moon is made of green cheese.
b) Trenton is the capital of New Jersey.
c) Toronto is the capital of Canada.
d) 1+0=1
e) 0+0=2
Examples that are not propositions.
a) Sit down! Not declarative
b) What time is it?
c) x+1=2 They are neither true nor false
d) x+y=z
Propositional Logic
Constructing Propositions
Propositional Variables: p, q, r, s, …
The proposition that is always true is denoted by T and
the proposition that is always false is denoted by F.
Compound Propositions; constructed from logical
connectives and other propositions
Negation ¬
Conjunction ∧
Disjunction ∨
Implication →
Biconditional ↔
Compound Propositions:
1. Negation
The negation of a proposition p is denoted by ¬p and
has this truth table:
p ¬p
T F
F T
Example:
If p denotes “The earth is round.”,
then ¬p denotes “The earth is not round.”
2. Conjunction
The conjunction of propositions p and q is denoted by
p ∧ q and has this truth table:
p q p∧q
T T T
T F F
F T F
F F F
Example:
If p denotes “I am at home.” and q denotes “It is raining.”
then p ∧q denotes “I am at home and it is raining.”
3. Disjunction
The disjunction of propositions p and q is denoted by
p ∨q and has this truth table:
p q p ∨q
T T T
T F T
F T T
F F F
Example:
If p denotes “I am at home.” and q denotes “It is raining.”
then p ∨q denotes “I am at home or it is raining.”
The Connective Or in English
In English “or” has two distinct meanings.
“Inclusive Or” - In the sentence “Students who have taken CS202 or
Math120 may take this class,” we assume that students need to have taken
one of the prerequisites, but may have taken both. This is the meaning of
disjunction. For p ∨q to be true, either one or both of p and q must be true.
“Exclusive Or” - When reading the sentence “Soup or salad comes with this
entrée,” we do not expect to be able to get both soup and salad. This is the
meaning of Exclusive Or (Xor). In p ⊕ q , one of p and q must be true, but
not both. The truth table for ⊕ is:
p q p ⊕q
T T F
T F T
F T T
F F F
4. Implication
If p and q are propositions, then p →q is a conditional statement or
implication which is read as “if p, then q ” and has this truth table:
p q p →q
T T T
T F F
F T T
F F T
p q r is equivalent to (p q) r
If the intended meaning is p (q r )
then parentheses must be used.