DM - Mathematical Logic
DM - Mathematical Logic
DM - Mathematical Logic
Propositional Logic is concerned with statements to which the truth values, "true" and
"false", can be assigned. The purpose is to analyze these statements either individually or in
a composite manner.
"A is less than 2". It is because unless we give a specific value of A, we cannot say
whether the statement is true or false.
Propositional Calculus:
Page 1 of 12
Therefore, “A proposition is a declarative sentence that is either true or false,
but not both”
Example 1:
1. Dhaka is in Bangladesh.
2. 1+1=2
3. 2+2=3
4. Prof. Farzana Islam is a VC of DU.
5. 9<6
6. X = 2 is a solution of X2 =4
Above all are propositions, 1, 2 and 6 are TRUE, whereas 3, 4 and 5 are
FALSE. But all are declarative.
Example 2:
These are not propositions because they are not declarative sentence.
3. X + 1 = 2
4. X + Y = Z
These are also not propositions because, they are neither true nor false, as
the value of X, Y, Z are not assigned.
1. Negation:“not” → Symbol: ¬ , ¬p
2. Conjunction: “and” → Symbol: ^ , p ^ q
3. Disjunction: “or” → Symbol: v, p∨p
1. Negation:
Let p be any proposition, then negation of p is defined as –p, as the false
of p. If p is true then –p is false. And if p is false, then –p is true.
Page 2 of 12
Truth table for Negation proposition:
P ¬p
T F
F T
Example 3:
Today is Friday: negation is,“Today is not Friday” (It is not Friday today).
2. Conjunction: p ^ q
p q p^q
T T T
T F F
F T F
F F F
Example 4:
3. Disjunction: p∨q
Page 3 of 12
Any two propositions can be combined by the word “or” to form a
compound proposition called the disjunction of the original propositions.
P q p∨q
T T T
T F T
F T T
F F F
*In Example 4; only the last statement (4) is false. All other statements
are true, since at least one of its sub statements is true.
Other Operations
4. Exclusive OR: p⊕ q
P q p⊕q
T T F
T F T
F T T
F F F
Example 5:
Page 4 of 12
3. Paris is in England and 2 + 2 = 4. (True)
4. Paris is in England and 2 + 2 = 5. (False)
P q P→q
T T T
T F F
F T T
F F T
Example 6:
P q p↔q
T T T
T F F
F T F
F F T
Page 5 of 12
In Example 4; statement 1, 4 is satisfied by biconditional.
p Q p →q q→p
T T T T
T F F T
F T T F
F F T T
False when q is true p is false
p q Q ¬q p ¬p
→q (¬q) → (¬p)
T T T
T F F
F T T
F F T
p
T T F F T
T F T F F
F T F T T
F F T T T
Page 6 of 12
7. Compound propositions
Many propositions are composite, that is composed of sub
propositions and various connectives discussed subsequently. Such
composite propositions are called compound postpositions.
Example 7:
1. Dhaka is in Bangladesh.
2. 1+1=2
3. 2+2=3
4. Prof. Farzana Islam is a VC of DU.
5. 9<6
6. X = 2 is a solution of X2 = 4
7. Where are you going?
8. Do your homework.
The above proposition (1) through (6) are all primitive propositions; They
cannot be broken down into simpler propositions. (7) and (8) are not primitive
because they are not propositions because they are not declarative statements.
8. Contradiction:
p ¬p p ^ (¬p)
T F F
F T F
9. Tautology:
P ¬p p∨(¬p)
T F T
Page 7 of 12
F T T
10. Contingency:
p q p→q
T T T
T F F
F T T
F F T
Here the result values are neither True or False consistently.
1 p→q ¬p∨q
2 p→q ¬q → ¬p
3 p∨q ¬p → q
4 p^q ¬(p → ¬q)
5 ¬(p → q) p ^ ¬q
6 (p → q) ^ (p → r) p → (q ^ r)
7 (p → r) ^ (q → r) (p∨q) → r
8 (p → q)∨(p → r) p → (q∨r)
9 (p → r)∨(q → r) (p ^ q) → r
Page 8 of 12
T F F T F T T
F T T F F T T
F T F T F T T
Page 9 of 12
So, [(p → q) ^ (q → r)] → (p → r) is a tautology.
Propositional Function:
Let A be a given set. A propositional function (or an open sentence or
conditional) defined on A is an expression P(x), which has the property that P(a)
is true of false for each of a∈A .
That is P(x) becomes a statement (with a truth value) whenever any element
a ∈A is substituted for the variable x.
The set A is called the domain of P(x) and the set Tp of all elements of A for
which P(a) is true is called the Truth set of P(x).
Mathematical notation:
Tp = {x: x∈ A, P(x) is true}
or
Tp = {x: P(x)}
That is the truth set is the empty set. Or P(x) is not true for any positive
integer in N.
Page 10 of 12
(c) Let P(x) be x + 5 >1.
It’s truth set is {x:x∈N, x + 5 >1} = N. That is P(x) is true for all positive
integer in N.
Duality Principle
Duality principle set states that for any true statement, the dual statement obtained by
interchanging unions into intersections (and vice versa) and interchanging Universal set into
Null set (and vice versa) is also true. If dual of any statement is the statement itself, it is
said self-dual statement.
Normal Forms
We can convert any proposition in two normal forms −
Examples
Page 11 of 12
operations, it is a compound statement obtained by Union among variables connected with
Intersections.
Examples
Page 12 of 12