Discrete Mathematics: Chapter 1 The Foundations: Logic and Proofs: Propositional Logic
Discrete Mathematics: Chapter 1 The Foundations: Logic and Proofs: Propositional Logic
Discrete Mathematics: Chapter 1 The Foundations: Logic and Proofs: Propositional Logic
2. Conjunction
Let p and q be propositions.
The conjunction of p and q,
denoted by p ⌃ q, is the proposition
“p and q.”
The truth value of p ⌃ q is true if both p and q
are true. Otherwise, it is false.
Test Your Understanding
3. Disjunction
Let p and q be propositions.
The disjunction of p and q,
denoted by p ⌄ q, is the proposition
“p or q.”
The truth value of p ⌄ q is false if both p and q are
false. Otherwise, it is true.
Test Your Understanding
4. Exclusive Or
Let p and q be propositions.
The exclusive or of p and q,
denoted by p ⊕ q, is the proposition
“either p or q, but not both.”
The truth value of p ⊕ q is true if exactly one of p
and q is true. Else, it is false.
Truth Table
p ⌝p
T F
F T
Truth Table
p q p⌃q
T T T
T F F
F T F
F F F
Truth table
p q p⌄q p q p⊕q
T T T T T F
T F T T F T
F T T F T T
F F F F F F
Compound Propositions using Logical Operators
5. Conditional Statement
Let p and q be propositions.
• The conditional statement p → q , is the
proposition
“if p, then q.”
• The truth value of p → q is false if p is true and
q is false. Else, it is true.
More on Conditional Statement
p q p → q
T T T
T F F
F T T
F F T
Test Your Understanding
6. Bi-conditional Statement
Let p and q be propositions.
• The bi-conditional statement p ↔ q, is the proposition
“p if and only if q.”
• The truth value of p ↔ q is true if p and q have the same
truth value. Else, false.
• Some common ways to represent bi-conditional statement
• “p is necessary and sufficient for q”
• “if p then q, and conversely”
• “p iff q.”
Test Your Understanding
p q p↔q
T T T
T F F
F T F
F F T
Compound Propositions
p q ⌝q ( p ⌄ ⌝q ) p⌃q ( p ⌄ ⌝q ) → ( p ⌃ q )
T T F T T T
T F T T F F
F T F F F T
F F T T F F
Precedence of Logical Operators
Operator Precedence
⌝ 1
⌃ 2
⌄ 3
→ 4
↔ 5
Examples: p ∧ q ∨ r means (p ∧ q) ∨ r
, p ∨ q → r is the same as (p ∨ q) → r