Unit 1
Unit 1
DEPARTMENT OF MATHEMATICS
• "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.
Connectives
In propositional logic generally we use five connectives which are − OR (˅), AND (˄),
Negation/ NOT (¬), If-then/Conditional (→), If and only if/ Biconditional (↔).
OR (˅) : The OR operation of two propositions A and B (written as A ˅ B) is true if at least any
of the propositional variable A or B is true.
The truth table is as follows −
A B A˅B
2
AND (˄) : The AND operation of two propositions A and B (written as A ˄ B) is true if both
the propositional variable A and B is true.
The truth table is as follows −
A B A˄B
True True True
e False False
Fals
Negatione (¬) :The negation of a proposition A (written as ¬A) is false when A is true and is true
when A is false.
A ¬A
True False
False True
If-then /Conditional (→): An implication A→ B is False if A is true and B is false. The rest of the
cases are true.Here A is called Hypothesis or antecedent and q is called consequent or conclusion.
The truth table is as follows −
A B A→ B
3
If and only if (↔) : A↔B is bi-conditional logical connective which is true when p and q are
both false or both are true.
The truth table is as follows −
A B A↔B
True True
True
True False
False
False True
False
False False
True
Tautologies
A Tautology is a formula which is always true for every value of its propositional variables.
Example − Prove [(A → B) ˄ A] → B is a tautology
A B A→B (A → B) ˄ A [(A → B) ˄ A] → B
Contradictions
A Contradiction is a formula which is always false for every value of its propositional variables.
4
The truth table is as follows −
A B A˅ ¬A ¬B (¬A) ˄ (A ˅ B) ˄ [(¬A) ˄
B (¬B) (¬B)]
contradiction
Contingency
A Contingency is a formula which has both some true and some false values for every value of
its propositional variables.
A B A˅B ¬A (A ˅ B) ∧ (¬A)
As we can see every value of (A ˅ B) ˄ (¬A) has both “True” and “False”, it
is a contingency.
Propositional Equivalences
Two statements X and Y are logically equivalent if any of the following two conditions −
• The truth tables of each statement have the same truth values.
5
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS – SMTA1302
Here, we can see the truth values of ¬ (A ˅ B) and [(¬˄ A(¬) B)] are same, hence the statements
are equivalent.
6
EQUIVALENT LAWS
7
A conditional statement has two parts − Hypothesis and Conclusion.
Example of Conditional Statement − “If you do your homework, you will not be punished.”
Here, "you do your homework" is the hypothesis and "you will not be punished" is the
conclusion.
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.
8
9
SATHYABAMA UNIVERSITY, DISCRETE MATHEMATICS & NUMERICAL METHODS, SMT1203, UNIT1
10
11
12
Elementary Product: A product of the variables and their negations in
called an elementary product. If P and Q are any two atomic variables, then p, ¬ p q ,
¬ q p ¬ p are some examples of elementary products.
Elementary Sum: A sum of the variables and their negations in a form
elementary sum. If P and Q are any two atomic variables, then p, ¬ p q, ¬ q p are some
examples of elementary sums.
Normal Forms
We can convert any proposition in two normal forms −
• (P ∪ Q) ∩ (Q ∪ R)
13
• (¬P ∪ Q ∪S ∪¬T)
Disjunctive Normal Form
A compound statement is in disjunctive normal form if it is obtained by operating OR among
variables (negation of variables included) connected with ANDs.
Examples
• (P ∩ Q) ∪ (Q ∩
• R) (¬P ∩ Q ∩ S
Predicate
∩¬T)Logic deals with predicates, which are propositions containing variables.
Minterms: For two variables p and q there are 4 possible formulas which consist of
conjunctions of p,q or its negation given by p q, p ¬q, ¬ p q and ¬ p ¬ ¬ q
Maxterms: For two variables p and q there are 4 possible formulas which consist of
disjunctions of p,q or its negation given by p q, p ¬ q, ¬ p q and ¬ p ¬ q
Principal Disjunctive Normal Form: For a given formula an equivalent formula
consisting of disjunctions of minterms only is known as principal disjunctive normal
form(PDNF)
Principal Conjunctive Normal Form: For a given formula an equivalent formula consisting of
conjunctions of maxterms only is known as principal conjunctive normal form(PCNF)
14
Consistency and Inconsistency of Premises
15
Rule of inference to build arguments
Example:
16
17
18
SATHYABAMA UNIVERSITY, DISCRETE MATHEMATICS & NUMERICAL METHODS, SMT1203, UNIT1
Quantifiers
The variable of predicates is quantified by quantifiers. There are two types of quantifier in
predicate logic − Universal Quantifier and Existential Quantifier.
Universal Quantifier
Universal quantifier states that the statements within its scope are true for every value of the
specific variable. It is denoted by the symbol ∀.
∀x P(x) is read as for every value of x, P(x) is true.
Example − "Man is mortal" can be transformed into the propositional form ∀x P(x) where P(x)
is the predicate which denotes x is mortal and the universe of discourse is all men.
19
SATHYABAMA UNIVERSITY, DISCRETE MATHEMATICS & NUMERICAL METHODS, SMT1203, UNIT1
Existential Quantifier
Existential quantifier states that the statements within its scope are true for some
values of the specific variable. It is denoted by the symbol ∃.∃x P(x) is read as for
some values of x, P(x) is true.
Example − "Some people are dishonest" can be transformed into the propositional form ∃x P(x)
where P(x) is the predicate which denotes x is dishonest and the universe of discourse is some
people.
Nested Quantifiers
If we use a quantifier that appears within the scope of another quantifier, it is called nested
quantifier.
20
Inference theory for Predicate calculus
Problem : 2
Symbolize the following statements:
(a) All men are mortal
(b) All the world loves a lover
(c) X is the father of mother of Y
(d)No cats has a tail
(e) Some people who trust others are rewarded
Solution:
21
Problem: 3
22
Problem: 4
23
24