Discrete Structures - (Lesson 1) Propositional Logic
Discrete Structures - (Lesson 1) Propositional Logic
PROPOSITIONAL LOGIC
The Foundations: Logic and Proofs
Introduction Objectives Content Summary
Content Summary
1. Logical Propositions
2. Connectives
Negation, Conjunction, Disjunction
Exclusive OR, Implication, and Biconditional
3. Truth Tables
Introduction Objectives
Learning Objectives
By the end of this lesson, the students are expected to grasp the ff:
Ability to Construct and Interpret Truth Tables: Learn how to construct truth
tables to evaluate the truth values of compound propositions.
Constructing Propositions
Propositional Variables are commonly assigned as 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.
Negation (¬)
The negation of a proposition p is denoted by ¬p. (not)
It represents the logical operation of negating or inverting the truth value of a
proposition.
Introduction Content Summary Objectives Negation
Negation (¬)
The negation of a proposition p is denoted by ¬p. (not)
It represents the logical operation of negating or inverting the truth value of a
proposition.
Example: p ¬p
Let p be "The computer is turned on."
Then "¬p" denotes "It is not the case that the T F
computer is turned on.” F T
or more simply “The computer is not turned on.” Truth Table
(Negation)
Introduction Content Summary Objectives Conjunction
Conjunction (∧)
The conjunction of propositions p and q is denoted by p ∧ q. (and)
It represents the logical operation of "and" between two propositions. The resulting
compound proposition is true only when both of its constituent propositions
are true.
Introduction Content Summary Objectives Conjunction
Conjunction (∧)
The conjunction of propositions p and q is denoted by p ∧ q. (and)
It represents the logical operation of "and" between two propositions. The resulting
compound proposition is true only when both of its constituent propositions
are true.
p q p∧q
Example:
Let p be "It is raining" and q be "I have an umbrella." T T T
T F F
Then p∧q denotes F T F
"It is raining and I have an umbrella."
F F F
Truth Table
(Conjunction)
Introduction Content Summary Objectives Disjunction
Disjunction
The disjunction of propositions p and q is denoted by p∨q. (or)
It represents the logical operation of "or" between two propositions. The resulting
compound proposition is true if at least one of its constituent propositions is
true.
Introduction Content Summary Objectives Disjunction
Disjunction
The disjunction of propositions p and q is denoted by p∨q. (or)
It represents the logical operation of "or" between two propositions. The resulting
compound proposition is true if at least one of its constituent propositions is
true.
p q p∨q
Example: T T T
Let p be "It is sunny" and q be "It is a weekend." T F T
Then p∨q denotes F T T
"It is sunny or it is a weekend." F F F
Truth Table
(Disjunction)
Introduction Content Summary Objectives Exclusive Or
Exclusive OR (⊕)
The exclusive or of propositions p and q is denoted by p⊕q. (either, but not both)
It represents the logical operation that returns true if exactly one of the two
propositions is true. It excludes the possibility of both propositions being true.
Introduction Content Summary Objectives Exclusive Or
Exclusive OR (⊕)
The exclusive or of propositions p and q is denoted by p⊕q. (either, but not both)
It represents the logical operation that returns true if exactly one of the two
propositions is true. It excludes the possibility of both propositions being true.
p q p⊕q
Example:
Let p be "It is raining" and q be "It is sunny." T T F
T F T
Then p⊕q denotes F T T
"Either it is raining or it is sunny, but not both."
F F F
Truth Table
(Exclusive OR)
Introduction Content Summary Objectives Connective Or
Inclusive OR in English
Inclusive Or:
The inclusive or, denoted by "or," is a connective that represents a choice between
two options. It is used when both options can be true, or when only one of the options
needs to be true. In other words, the inclusive or allows for the possibility of either
option being true or both options being true.
"You can have tea or coffee." In this case, the inclusive or means that you can choose
either tea, or coffee, or even have both if you like.
Introduction Content Summary Objectives Connective Or
Exclusive OR in English
Exclusive Or:
The exclusive or, denoted by "either...or" or "but not both," is a connective that
represents a choice between two options with the condition that only one option can be
true, and both options cannot be true simultaneously. It excludes the possibility of both
options being true.
"You can have either a hot dog or a hamburger, but not both." This means that you can
choose to have a hot dog or a hamburger, but you cannot have both at the same time.
Introduction Content Summary Objectives Implication
Implication (→)
The implication of propositions p and q is denoted by p→q. (if, then)
It represents the logical operation where the truth of the hypothesis or
antecedent (p) implies the truth of the conclusion or consequent (q).
Introduction Content Summary Objectives Implication
Implication (→)
The implication of propositions p and q is denoted by p→q. (if, then)
It represents the logical operation where the truth of the hypothesis or
antecedent (p) implies the truth of the conclusion or consequent (q).
Example: p q p→q
Let p be "It is raining" and q be "I will bring an T T T
umbrella."
T F F
Then p→q denotes. F T T
If it is raining, then I will bring an umbrella.
F F T
Truth Table
(Implication)
Introduction Content Summary Objectives Implication
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 going to the eras tour.”
- “If 1 + 1 = 3, then your grandma wears combat boots.”
Biconditional (↔)
The biconditional of propositions p and q is denoted by p↔q. (if and only if)
It represents a relationship between two propositions, stating that they are
both true or false. If both propositions have the same truth value (either both
true or both false), then the biconditional is considered true.
Introduction Content Summary Objectives Biconditional
Biconditional (↔)
The biconditional of propositions p and q is denoted by p↔q. (if and only if)
It represents a relationship between two propositions, stating that they are
both true or false. If both propositions have the same truth value (either both
true or both false), then the biconditional is considered true.
Example: p q p↔q
Let p be "It is raining" and q be "The ground is T T T
wet." Truth Table
T F F (Biconditional)
q → p is the converse of p → q
¬ q → ¬ p is the contrapositive of p → q
¬ p → ¬ q is the inverse of p → q
Let's use the original statement "If it is raining, then the ground is wet"
Key Takeaways
NAME SYMBOL DESCRIPTION
Key Takeaways
NAME SYMBOL DESCRIPTION
p q
T T
Example 1
T F
(( p ∧ q )∨ ¬q ) F T
F F
Introduction Content Summary Objectives Truth Table
p q ¬q
T T F
Example 1
T F T
(( p ∧ q )∨ ¬q ) F T F
F F T
Introduction Content Summary Objectives Truth Table
p q ¬q (p∧ q)
T T F T
Example 1
T F T F
(( p ∧ q )∨ ¬q ) F T F F
F F T F
Introduction Content Summary Objectives Truth Table
p q ¬q (p∧q) ((p∧q)∨¬q)
T T F T T
Example 1
T F T F T
(( p ∧ q )∨ ¬q ) F T F F F
F F T F T
Introduction Content Summary Objectives Truth Table
Example 2
p∨q →¬p
Introduction Content Summary Objectives Truth Table
p q r ¬p q∧r (¬ p → (q ∧ r) )
Solve this
(¬p → (q ∧ r))
Introduction Content Summary Objectives Truth Table Assignment
Propositional Logic:
Assignment
1. Create statements for each of the logical connectives and their symbolic logic
expressions using distinct variables. ( p and q)
Example:
Negation:
Statement: It is not raining.
Symbolic Logic Expression: ¬p