0% found this document useful (0 votes)
8 views25 pages

(MH1812) - Topic 2.1 Propositional Logic I (Lesson Handout)

The document covers the fundamentals of propositional logic, including definitions of propositions, paradoxes, and logical operators. It explains key concepts such as De Morgan's Laws, contradictions, tautologies, and equivalent expressions. By the end of the lesson, students should be able to apply these concepts in logical reasoning and problem-solving.

Uploaded by

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

(MH1812) - Topic 2.1 Propositional Logic I (Lesson Handout)

The document covers the fundamentals of propositional logic, including definitions of propositions, paradoxes, and logical operators. It explains key concepts such as De Morgan's Laws, contradictions, tautologies, and equivalent expressions. By the end of the lesson, students should be able to apply these concepts in logical reasoning and problem-solving.

Uploaded by

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

Discrete Mathematics

MH1812
Topic 2.1 - Propositional Logic I
Dr. Gary Greaves

MH1812: Discrete Mathematics 1


Topic Overview

MH1812: Discrete Mathematics 2


What’s in store…

P roposition and Paradox

L ogical Operators

D e Morgan’s Laws

C ontradiction and Tautology

E quivalent Expressions

MH1812: Discrete Mathematics 3


By the end of this lesson, you should be able to…
• Explain what is a proposition and a paradox.

• Use logical operators to combine statements.

• Apply De Morgan’s Laws.

• Explain what is a contradiction and a tautology.

• Identify equivalent expressions.

• Demonstrate that two expressions are equivalent.

MH1812: Discrete Mathematics 4


Proposition and Paradox

MH1812: Discrete Mathematics 5


Proposition and Paradox: Logic
• Accepted rules for making precise statements

• Logic for computer science:


– Programming
– Artificial intelligence
– Logic circuits
– Database

• Logic:
– Represents knowledge precisely
– Helps to extract information (inference)

MH1812: Discrete Mathematics 6


Proposition and Paradox: Proposition

A proposition is a declarative statement


that is either true or false.

Examples of propositions
• “1 + 1 = 2”. . . True

• “1 + 1 > 3”. . . False


• “Singapore is in Europe.”. . . False

MH1812: Discrete Mathematics 7


Proposition and Paradox: Proposition

A proposition is a declarative statement


that is either true or false.

Examples that are not propositions


• “1 + 1 > x”. . . X

• “What a great book!”. . . X


• “Is Singapore in Asia?”. . . X

MH1812: Discrete Mathematics 8


Proposition and Paradox: Paradox

A declarative statement that


cannot be assigned a truth value
is called a paradox.

• A paradox is not a proposition.

• E.g., the liar paradox:


“This statement is false”.

Relativity Lattice (M.C. Escher)

Retrieved Feb 19, 2018 from https://www.wikiart.org/en/m-c-escher/relativity-lattice


MH1812: Discrete Mathematics 9
Logical Operators

MH1812: Discrete Mathematics 10


Logical Operators: Symbolic Logic
• Use symbols to represent statements (both have the same truth values)

• Use logical operators to combine statements:

Compound
Propositions = Propositions Combined
with Logical Operator(s)

MH1812: Discrete Mathematics 11


Logical Operators: Three Basic Operators

∧ Conjunction (and)

Disjunction (or) ∨
¬ Negation (not, alternatively ∼)

MH1812: Discrete Mathematics 12


Logical Operators: Negation
• Negation (not) of p: ¬p (∼ p is also used) ¬
p ¬p
T F
F T
Truth Table

p: You may enter ¬p: You may not enter


MH1812: Discrete Mathematics 13
Logical Operators: Disjunction
• Disjunction (or) of p with q: p ∨ q ∨
p q p∨q q∨p
True when “at least one”
T T T T of them is true
T F T T
F T T T
F F F F
Truth Table

p∨q≡q∨p i.e., operator ∨ commutes

Means “equivalent”
MH1812: Discrete Mathematics 14
Logical Operators: Conjunction
• Conjunction (and) of p with q: p ∧ q ∧
p q p∧q q∧p
True only when “both” of
T T T T them are true
T F F F
F T F F
F F F F
Truth Table

∧ is also commutative: p∧q≡q∧p

MH1812: Discrete Mathematics 15


De Morgan’s Laws

MH1812: Discrete Mathematics 16


De Morgan’s Laws: Definition

¬ (p ∧ q) ≡ ¬ p ∨ ¬ q
¬ (p ∨ q) ≡ ¬ p ∧ ¬ q

p q ¬p ¬q p ∧ q ¬(p ∧ q) ¬p ∨ ¬q
TT F F T F F
TF F T F T T
FT T F F T T
Augustus De Morgan
FF T T F T T (1806 - 1871)

Augustus De Morgan by Sophia Elizabeth De Morgan under WikiCommons (PD-US)

MH1812: Discrete Mathematics 17


Contradiction and Tautology

MH1812: Discrete Mathematics 18


Contradiction and Tautology: Definition

A compound proposition that is always


false is called a contradiction.

Example
This course is easy “and” this
p ¬p p ∧ ¬p
course is not easy.
T F F
p ∧ (¬p) ≡ F F T F

MH1812: Discrete Mathematics 19


Contradiction and Tautology: Definition

A compound proposition that always


gives a true value is called a tautology.

Example

p ∨ (¬p) ≡ T p ¬p p ∨ ¬p
T F T Always
F T T true!

MH1812: Discrete Mathematics 20


Equivalent Expressions

MH1812: Discrete Mathematics 21


Equivalent Expressions: Bob and Alice
1. Alice is not married but Bob is not single.

¬h ∧ ¬b

2. Bob is not single and Alice is not married.

¬b ∧ ¬h
Bob

3. Neither Bob is single nor Alice is married.

¬(b ∨ h)
These three statements are equivalent.

¬h ∧ ¬b ≡ ¬b ∧ ¬h ≡ ¬(b ∨ h) Alice

MH1812: Discrete Mathematics 22


Equivalent Expressions: The Statements

These three statements are equivalent:


¬h ∧ ¬b ≡ ¬b ∧ ¬h ≡ ¬(b ∨ h)

bh ¬b ¬h b ∨ h ¬h ∧ ¬b ¬b ∧ ¬h ¬(b ∨ h)
TT F F T F F F
TF F T T F F F
FT T F T F F F
FF T T F T T T

MH1812: Discrete Mathematics 23


Topic Summary

MH1812: Discrete Mathematics 24


Let’s recap…
• We have covered:
– Proposition (Compound Propositions)
– Paradox
– Contradiction
– Tautology
– Equivalent Expressions

• Basic logical operators (and De Morgan’s laws):


– Negation
– Conjunction
– Disjunction

MH1812: Discrete Mathematics 25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy