Discrete Structure Lecture 2
Discrete Structure Lecture 2
LECTURE 2
Previous Lecture Summery
• Logical Equivalences.
• De Morgan’s laws.
• Tautologies and Contradictions.
• Laws of Logic.
• Conditional propositions.
Logical Equivalence
Definition
Two Propositional Forms are called logically
equivalent if and only if they have identical truth
values for each possible substitution of propositions
for their propositional variables.
Solution
p ¬p ¬ (¬p)
T F T
F T F
1. ¬(pq) ≡ ¬p¬q
2. ¬(pq) ≡ ¬p¬q
Applying De-Morgan’s Law
Question: Negate the following compound Propositions
-1< x 4
Solution: The given proposition is equivalent to
-1 < x and x 4,
By De Morgan’s laws, the negation is
-1 ≥ x or x > 4.
Tautology and Contradiction
p ¬p p ¬p p ¬p
T F T F
F T T F
1. Commutative laws
pq ≡ qp ; pq ≡ qp
2. Associative laws
p (q r) ≡ (p q) r ; p(q r) ≡ (pq)r
3. Distributive laws
p (q r ) ≡ (p q) (p r)
p (q r) ≡ (p q) (p r)
Laws of Logic
4. Identity laws
p t ≡ p ; pc ≡ p
5. Negation laws
p¬p ≡ t ; p ¬p ≡ c
7. Idempotent laws
p p ≡ p ; pp ≡ p
Laws of Logic
9. Absorption laws
p (pq) ≡ p ; p (p q) ≡ p
⌐(⌐p q) (p q) ≡ p.
Solution
Take ⌐(⌐p q) (p q)
≡ (⌐(⌐p) ⌐q) (p q), (by De Morgan’s laws)
≡ (p ⌐q) (p q), (by double negative law)
≡ p (⌐q q), (by distributive law)
contd…
• Logical Equivalence
• Equivalence Check
• Tautologies and Contradictions
• Laws of Logic
• Simplification of Compound Propositions
Another Example
Prove that ¬[r ∨ (q ∧ (¬r →¬p))] ≡ ¬r ∧ (p∨ ¬q)
DEFINITION
IF P AND Q ARE PROPOSITIONS, THE CONDITIONAL OF Q BY
P IS IF P THEN Q OR P IMPLIES Q AND IS DENOTED BY P→Q.
IT IS FALSE WHEN P IS TRUE AND Q IS FALSE OTHERWISE IT
IS TRUE.
EXAMPLES
IF YOU WORK HARD THEN YOU WILL SUCCEED.
IF SARA LIVES IN ISLAMABAD, THEN SHE LIVES IN
PAKISTAN.
Implication (if - then)
P Q PQ
T T T
T F F
F T T
F F T
Interpreting Conditional Statements
Examples
“The online user is sent a notification of a link error if
the network link is down”.
The statement is equivalent to
“If the network link is down, then the online user is sent a
notification of a link error.”
Using
p : The network link is down,
q : the online user is sent a notification of a link error.
• SHOW THAT
P→Q ≡ ¬P Q
• SHOW THAT
¬(P→Q) ≡ P ¬Q
GREECE.
NEGATION: SARA LIVES IN ATHENS AND SHE DOES NOT LIVE
IN GREECE.
DEFINITION
THE CONTRAPOSITIVE OF A CONDITIONAL PROPOSITION OF THE FORM ‘IF P THEN
Q’ IS ‘IF ¬Q THEN ¬P’. SYMBOLICALLY, THE CONTRAPOSITIVE OF P→Q IS ¬Q→¬P.
EXAMPLE
IF TODAY IS SUNDAY, THEN TOMORROW IS MONDAY.
CONTRAPOSITIVE:
IF TOMORROW IS NOT MONDAY, THEN TODAY IS NOT SUNDAY.
TRAPOSITION
CONVERSE AND INVERSE OF THE
CONDITIONAL
SUPPOSE A CONDITIONAL PROPOSITION OF THE FORM
‘IF P THEN Q’ IS GIVEN.
SYMBOLICALLY,
THE CONVERSE OF P→Q IS Q→P,
AND
THE INVERSE OF P→Q IS ⌐P→⌐Q.
THE BICONDITIONAL
DEFINITION GIVEN PROPOSITION VARIABLES P AND Q, THE
BICONDITIONAL OF P AND Q IS P IF AND ONLY IF Q AND IS
DENOTED P↔Q.
IT IS TRUE IF BOTH P AND Q HAVE THE SAME TRUTH VALUES
AND IS FALSE IF P AND Q HAVE OPPOSITE TRUTH VALUES.
THE WORDS IF AND ONLY IF ARE SOMETIME ABBREVIATED
IFF.
• Logical Equivalence
• Equivalence Check
• Tautologies and Contradictions
• Laws of Logic
• Simplification of Compound Propositions