Chapter1 Sec1.1
Chapter1 Sec1.1
Proofs
Propositional Logic
Section 1.1
©McGraw-Hill Education
Propositions(Statements)
©McGraw-Hill Education
Propositions(Statements)
©McGraw-Hill Education
Propositions(Statements)
©McGraw-Hill Education
Negation of proposition
©McGraw-Hill Education
Negation of proposition
©McGraw-Hill Education
Conjunction of Two proposition
©McGraw-Hill Education
Conjunction of Two proposition
©McGraw-Hill Education
Disjunction of Two proposition
©McGraw-Hill Education
Disjunction of Two proposition
©McGraw-Hill Education
Examples
©McGraw-Hill Education
Exclusive or of two propositions
©McGraw-Hill Education
Exclusive or of two propositions
©McGraw-Hill Education
Conditional Statements(Implication)
©McGraw-Hill Education
Conditional Statements(Implication)
©McGraw-Hill Education
Understanding Implication 1
• ¬p → ¬q is the inverse of p → q
Example: Find the converse, inverse, and contrapositive
of “It is raining is a sufficient condition for me not going
to town.”
Solution:
converse: If I do not go to town, then it is raining.
inverse: If it is not raining, then I will go to town.
contrapositive: If I go to town, then it is not raining.
©McGraw-Hill Education
Biconditional Statements
©McGraw-Hill Education
Biconditional Statements
If p and q are propositions, then we can form the biconditional
proposition p ↔ q, read as “p if and only if q .” The biconditional
p ↔ q denotes the proposition with this truth table:
p q P↔q
T T T
T F F
F T F
F F T
©McGraw-Hill Education
Expressing the Biconditional
Some alternative ways “p if and only if q” is
expressed in English:
• p is necessary and sufficient for q
• if p then q, and conversely
• p iff q
©McGraw-Hill Education
Truth Tables For Compound Propositions
Construction of a truth table:
Rows
• Need a row for every possible combination of values for
the atomic propositions.
Columns
• Need a column for the compound proposition (usually at
far right)
• Need a column for the truth value of each expression
that occurs in the compound proposition as it is built up.
• This includes the atomic propositions
©McGraw-Hill Education
Problem
How many rows are there in a truth table with n
propositional variables?
Solution: 2n We will see how to do this in
Chapter 6.
Note that this means that with n propositional
variables, we can construct 2n distinct (that is,
not equivalent) propositions.
©McGraw-Hill Education
Precedence of Logical Operators
©McGraw-Hill Education
Example Truth Table
Construct a truth table for p ∨ q → ¬r
p q r ¬r p∨q p ∨ q → ¬r
T T T F T F
T T F T T T
T F T F T F
T F F T T T
F T T F T F
F T F T T T
F F T F F T
F F F T F T
©McGraw-Hill Education
Equivalent Propositions
Two propositions are equivalent if they always
have the same truth value.
Example: Show using a truth table that the
conditional is equivalent to the contrapositive.
Solution:
p q ¬p ¬q p→q ¬q → ¬p
T T F F T T
T F F T F F
F T T F T T
F F T T T T
©McGraw-Hill Education
Using a Truth Table to Show Non-
Equivalence
Example: Show using truth tables that neither
the converse nor inverse of an implication are
not equivalent to the implication.
Solution:
p q ¬p ¬q p→q ¬p → ¬q q→p
T T F F T T T
T F F T F T T
F T T F T F F
F F T T T T T
©McGraw-Hill Education