DM All Unit
DM All Unit
UNIT 1:
• Propositional Logic
• Methods of
Proof UNIT 2:
• Sets, Relations and Functions
• Size of a Set
SEMANTICS
Semantics provides the “meaning” of propositional logic formulae. It is defined very
precisely in a mathematical way. The semantics allows us to identify correct inference rules.
Example: Intuitively, the meaning of “A ∧ B” is that “this is only true if both A and B are true”.
Slide 15
Other Laws of Logic
NOTE:
Dual of proposition p:
If the proposition p,
contains only the logical
connectives
only, AND
and OR, and no other
connectives are there, then
the dual of p is obtained
by replacing AND by OR
and OR by AND, then it is
dual.
De Morgan’s Rule
Let P AND Q are two compound propositions. And the connectives are the logical
connectives between the primitive propositions. So, logical connectives are the
conjunction, disjunction and negation.
• Now, the De Morgan’s rules tell that the negation of compound proposition P can be
obtained by replacing, AND by OR, the OR by AND, and making each primitive
statements as the negation of that.
Theorem: The conditional proposition (p → q) and its
contrapositive (¬q → ¬p) are equivalent
PREDICATES AND QUANTIFIERS
In the above image, Set containing elements {1, 13, 27} is a finite set, and a set of natural numbers and a
set of whole numbers are infinite sets. There are multiple finite sets that can be created from an infinite set.
The image given above is showing one example of it where a finite set is lying inside infinite sets
SET
Empty Non-empty
“There are infinite sets which cannot be put into one-to-one correspondence with the
infinite set of the natural numbers” — Georg Cantor, 1891
Cantor’s diagonal argument is a technique to show that integers and real numbers can
not be put in to one to one correspondence. i.e. uncountable infinite set of real number
is larger then countable infinite set of integers.
R= [0,1]
UNIT 3
Algebraic Structures
& Morphisms
AS AS AS
N: Natural Numbers
Z: Integers
R: Real Numbers
e: Even Numbers
O: Odd Numbers
M: Matrix
AS SG AS SG AS SG
N+ Yes Yes No NO Z/ No NO NO NO O+ NO NO NO NO
N+ Yes Yes No NO NO Z/ No NO NO NO NO O+ NO NO NO NO NO
X 1 -1 Closure ok
Associative ok
1 1 -1
Identity 1
-1 -1 1
Inverse 1=1, -1= -1
A = { 0,1,2,3} check ( A, + ) is a group or not
Addition 0 1 2 3
modulo 5
0 0 1 2 3
1 1 2 3 0
2 2 3 1 1
3 3 0 1 2
A = { 1,2,3,4} check ( A, X ) is a group or not
Multiplication 1 2 3 4
modulo 5
1 1 2 3 4
2 2 4 1 3
3 3 1 4 2
4 4 3 2 1
UNIT 4
Graphs and Trees