Discrete Structure and Graph Theory
Discrete Structure and Graph Theory
Logic
1
DISCRETE STRUCTURES AND GRAPH THEORY
1.4] Symbolising Compound Statement
1) Negation
Definition: A negation is a compound statement obtained by
negating a simple statement.
P ~P
T F
F T
2) Conjunction
Definition: A conjunction is a compound statement obtained by
combining two simple statements by ‘and’.
p q p˄q
T T T
T F F
F T F
F F F
3) Disjunction
Definition: A disjunction is a compound statement obtained by
combining two simple statements by ‘or’.
p q p˅q
T T T
T F T
F T T
F F F
4) Implication
Definition: An Implication is a compound statement obtained by
combining two simple statement by ‘if….. then…..’.
2
DISCRETE STRUCTURES AND GRAPH THEORY
p q pϽq
T T T
T F F
F T T
F F T
b) Inverse
Definition: If both the premise and the conclusion of an
implication are negated, we get inverse of the implication.
The inverse of p Ͻ q is ~p Ͻ ~q.
p q ~p ~q pϽq ~p Ͻ ~q
T T F F T T
T F F T F T
F T T F T F
F F T T T T
c) Contrapositive
3
DISCRETE STRUCTURES AND GRAPH THEORY
Definition: If the both the premise and the conclusion of the
implication are first negated and then interchanged, we get the
contrapositive statement of that implication.
The contrapositive of p Ͻ q is ~q Ͻ ~p.
p q ~p ~q pϽq ~q Ͻ ~p
T T F F T T
T F F T F F
F T T F T T
F F T T T T
4
DISCRETE STRUCTURES AND GRAPH THEORY
~ (p ˄ q) ≡ ~p ˅ ~q
II. Negation of Disjunction
~ (p ˅ q) ≡ ~p ˄ ~q
~ (Conjunction Disjunction) ≡ (Disjunction Conjunction) ~
III. Negation of Negation
~~p ≡ p
IV. Implication as Disjunction
(p Ͻ q) ≡ ~p ˅ q
V. Biconditional in terms of Conjunction, Disjunction and
Negation
(p ≡ q) ≡ (~p ˅ q) ˄ (~q ˅ p)
VI. Biconditional in terms Implication and Conjunction
(p ≡ q) ≡ (p Ͻ q) ˄ (q Ͻ p)
VII. Negation of an Implication
~ (p Ͻ q) ≡ p ˄ ~q
VIII. Negation of a Biconditional
~ (p ≡ q) ≡ (p ˄ ~q) ˅ (q ˄ ~p)
1.9] Some More Compound Statement
a) ‘Either…or…’ and ‘Neither …nor…’
A ˅ B – Either…or…
~ (A ˅ B) ≡ ~A ˄ ~B
~A ˄ ~B – Neither…nor…
b) Unless
~H Ͻ F – Unless
~H Ͻ F ≡ H ˅ F
H ˅ F – Either…or…
c) ‘Not Both’ and ‘both not’
Not both – Negation of conjunction - ~ (A ˄ B)
Both not – Conjunction of negation - ~A ˄ ~B
1.10] Tautologies, Contradiction and Contingencies
a) Tautologies
5
DISCRETE STRUCTURES AND GRAPH THEORY
Definition: A statement form which is always true for all
substitution instances is called tautologies.
b) Contradiction
Definition: A statement form which is always false for all
substitution instances is called contradiction.
c) Contingencies
Definition: A statement form which is neither a tautologies nor
contradiction.
1.11] Duality
Duals
Definition: Two formulae A and A* are called duals of each other if
either can be obtained by interchanging ˄ by ˅ and ˅ by ˄. The
connectives ˄ and ˅ are also called duals each other. If contains
true(t) or false(f) then while obtaining A*, t is replaced by f and f is
replaced by t.
1.12] Laws of Logic
A. Idempotent Laws:
p˅p≡p
p˄p≡p
B. Commutative Laws:
p˅q≡q˅p
p˄q≡q˄p
C. Associative Laws:
(p ˅ q) ˅ r ≡ p ˅ (q ˅ r)
(p ˄ q) ˄ r ≡ p ˄ (q ˄ r)
D. Identity Laws:
p˄t≡p
p˅f≡p
E. Domination Laws:
p˅t≡t
p˅f≡f
6
DISCRETE STRUCTURES AND GRAPH THEORY
F. Distributive Laws:
p ˅ (q ˄ r) ≡ (p ˅ q) ˄ (q ˅ r)
p ˄ (q ˅ r) ≡ (p ˄ q) ˅ (q ˄ r)
G. Compliment Laws (Inverse Laws):
p ˅ ~p ≡ t
p ˄ ~p ≡ f
H. De Morgans Laws:
~ (p ˅ q) ≡ ~p ˄ ~q
~ (p ˄ q) ≡ ~p ˅ ~q
I. Absorption Laws:
p ˅ (p ˄ q) ≡ p
p ˄ (p ˅ q) ≡ p
J. Contrapositive Laws:
p Ͻ q ≡ ~q Ͻ ~p
K. Exportation Laws:
p Ͻ (q Ͻ r) ≡ (p ˄ q) Ͻ r
1.13] Quantifiers
A. Universal Quantifiers
Definition: The universal quantifiers tell us that all (every, each)
object possesses the property. The universal quantifiers is
denoted by Ɐ an inverted A. the symbol Ɐ is read as “for all”,
“for each”, “for every”.
B. Existential Quantifiers
Definition: The existential quantifiers tell us that some (at least
one) object possess the property. The existential quantifiers is
denoted by Ǝ, a backward E. The symbol Ǝ is read as “for some”,
“there exists a”, “for at least one”.
1.14] Negation of quantifiers
If P (x) is any property, the negation of (Ɐx) P(x) is (Ǝx) ~ P(x).
If P (x) is any property, the negation of (Ǝx) P(x) is (Ɐx) ~ P(x).
7
DISCRETE STRUCTURES AND GRAPH THEORY
While negating a qualified proposition, note that a (Ɐ) becomes an
(Ǝ) and (Ǝ) becomes a (Ɐ).
Statement Negation
All true (Ɐx) [~ P(x)] (Ǝx) P(x) [at least one false]
For example, x and y are such that x 2+ y 2=1 is the property between
two variables x and y. If a property exists between n variables x1, x2,
x3, ..., xn, it is called n-ary predicate.
8
DISCRETE STRUCTURES AND GRAPH THEORY
II. Replace negation of negation before conjunction or
disjunction by using De Morgan’s laws and by using
~~p≡p.
III. Apply distributive laws and simplify the expression.
2) Conjunctive Normal Form (CNF)
A disjunction of statement and / or the negation of disjunctions
of the statement is called a fundamental disjunction. A
statement form which is a conjunction of fundamental
disjunctions is called conjunctive normal form (CNF).
Procedure to obtain Conjunctive Normal Form is same as
Disjunctive Normal Form.
Finite set – Finite element, Infinite set – Infinite element, Null set –
No element
• De – Morgans Laws
• Duality
9
DISCRETE STRUCTURES AND GRAPH THEORY
If E is an equation in a set operation, then equation obtained by
replacing ꓴ by ꓵ, ꓵ by ꓴ, U by Ф, Ф by U is called the dual of E.
• Class of Set
• Power Set
Set of all subsets of ‘S’ is called power set of ‘S’. If ‘S’ has ‘N’ element
then P(S) = 2 N .
• Partition of Set
• Cartesian Product
10