0% found this document useful (0 votes)
5 views28 pages

Chapter1 Sec1.1

The document covers foundational concepts in propositional logic, including definitions of propositions, negation, conjunction, disjunction, and conditional statements. It explains the relationships between different types of logical statements such as converse, contrapositive, and biconditional, along with the construction and interpretation of truth tables. Additionally, it discusses the equivalence of propositions and provides examples to illustrate these concepts.

Uploaded by

Manish Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views28 pages

Chapter1 Sec1.1

The document covers foundational concepts in propositional logic, including definitions of propositions, negation, conjunction, disjunction, and conditional statements. It explains the relationships between different types of logical statements such as converse, contrapositive, and biconditional, along with the construction and interpretation of truth tables. Additionally, it discusses the equivalence of propositions and provides examples to illustrate these concepts.

Uploaded by

Manish Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 28

The Foundations: Logic and

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

In p → q there does not need to be any connection


between the antecedent or the consequent. The
“meaning” of p → q depends only on the truth values of
p and q.
These implications are perfectly fine, but would not be
used in ordinary English.
• “If the moon is made of green cheese, then I have more
money than Bill Gates. ”
• “If the moon is made of green cheese then I’m on welfare.”
• “If 1 + 1 = 3, then your grandma wears combat boots.”
©McGraw-Hill Education
Different Ways of Expressing p → q
if p, then q p implies q
if p, q p only if q
q unless ¬p q when p
q if p
q whenever p p is sufficient for q
q follows from p q is necessary for p

a necessary condition for p is q


a sufficient condition for q is p
©McGraw-Hill Education
Converse, Contrapositive, and Inverse
From p → q we can form new conditional statements .
• q→p
• ¬q → ¬p is the contrapositive of p → q
is the converse of p → q

• ¬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

If p denotes “I am at home.” and q denotes “It is raining.” then


p ↔ q denotes “I am at home if and only if it is raining.”

©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

You might also like