Class Lecture PDF
Class Lecture PDF
02/17/2024 MINHAJUL@CSE.UIU.AC.BD
PROPOSITIONAL LOGIC
Logic from a proposition
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 2
PROPOSITION
A proposition is a declarative sentence
It can be either true or false
It cannot be neither
It cannot be both
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 3
WHAT IS NOT A PROPOSITION?
What is your name?
A question – hence not a declarative sentence
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 4
WHAT IS NOT A PROPOSITION?
I am lying.
If this sentence is true, then since I am saying this, it must be false!!!
Both true and false
Not a proposition
We call such a sentence a paradox
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 5
COMPOUND PROPOSITION
Two (or more) propositions combined or modified with logical connectives
Not – Negation
And – Conjunction
Or – Disjunction
If … then – Conditional statement
If and only if – Biconditional statement
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 6
NEGATION
Taskin Ahmed is not a batsman.
T F
True if the actual proposition is false. F T
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 7
CONJUNCTION
Truth table of
Tamim Iqbal is a batsman, and
Mustafizur Rahman is a bowler
T T T
T F F
True if both propositions are true
F T F
F F F
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 8
DISJUNCTION
Tamim Iqbal is a batsman or
Mustafizur Rahman is a batsman
T T T
T F T
True if any proposition is true
F T T
F F F
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 9
A SPECIAL TYPE OF
DISJUNCTION –
EXCLUSIVE-OR
Quinton de Kock or Heinrich Klassen
will play in today’s match.
Both will not play together. T T F
T F T
F T T
True if exactly one proposition is true
F F F
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 10
TRUTH TABLES OF
COMPOUND PROPOSITIONS
A truth table is used to observe the
behavior of a compound proposition at a
glance T T T ?
The different possible truth values of the T T F ?
simple propositions are compiled in the T F T ?
table, and for each combination, the T F F ?
truth value of the compound one is
F T T ?
found out
F T F ?
F F T ?
F F F ?
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 11
PROBLEM
Construct the truth table of the proposition .
02/17/2024 MINHAJUL@CSE.UIU.AC.BD 12