Академический Документы
Профессиональный Документы
Культура Документы
Modules 1 and 2
Mathematical Logic, Statement and Predicate Calculus
Department of Mathematics
School of Advanced Sciences
MAT1014DMGT
1 / 66
Contents
Chapter 1: Propositions
Chapter 2: Rules of inference
Chapter 3: Predicate calculus
MAT1014DMGT
2 / 66
Chapter 1
Chapter 1
Propositions
Definition 1. (Proposition)
A statement or proposition is a declarative sentence that is either true or
false (but not both).
For instance, the following are propositions:
1. 3 > 1 (true).
2. 2 < 4 (true).
3. 4 = 7 (false)
However the following are a not propositions:
1. what is your name?.
2. x is an even number.
MathematicsSAS (VIT University)
MAT1014DMGT
3 / 66
Chapter 1
MAT1014DMGT
4 / 66
Chapter 1
MAT1014DMGT
5 / 66
Chapter 1
Definition 6. (Connectives)
Connectives are used for making compound propositions. The main ones
are the following (p and q represent given two propositions):
MAT1014DMGT
6 / 66
Chapter 1
Represented
p
p q
p q
p q
p q
MAT1014DMGT
Meaning
not in p
p and q
p or q (or both)
if p then q
p if and only if q
7 / 66
Chapter 1
q
T
F
T
F
p
F
F
T
T
p q
T
F
F
F
p q
T
T
T
F
MAT1014DMGT
p q
T
F
T
T
p q
T
F
F
T
8 / 66
Chapter 1
Definition 7. (Tautology)
A proposition is said to be a tautology if its truth value is T for any
assignment of truth values to its components.
Example: The proposition p p is a tautology.
Definition 8. (Contradiction)
A proposition is said to be a contradiction if its truth value is F for any
assignment of truth values to its components.
Example: The proposition p p is a contradiction.
Definition 9.(Contingency)
A proposition that is neither a tautology nor a contradiction is called a
contingency.
MAT1014DMGT
9 / 66
Chapter 1
p
T
T
p
F
F
p p
F
F
MAT1014DMGT
p p
T
T
10 / 66
Chapter 1
(i)
(p q) (p q)
(ii) p (p q)
(iii) (p q) p
(iv) (p q) ( p q)
(v)
(p q) q
MAT1014DMGT
11 / 66
Chapter 1
Solution:
(i) Let S = (p q) (p q)
p
T
T
F
F
q
T
F
T
F
p
F
F
T
T
p q
T
F
T
T
MAT1014DMGT
p q
T
F
T
T
S
T
T
T
T
12 / 66
Chapter 1
(ii) Let S = p (p q)
p
T
T
F
F
q
T
F
T
F
p q
T
T
T
F
MAT1014DMGT
S
T
T
F
F
13 / 66
Chapter 1
(iii) Let S = (p q) p
p
T
T
F
F
q
T
F
T
F
p q
T
F
T
T
MAT1014DMGT
S
T
T
F
F
14 / 66
Chapter 1
(iv) Let S = (p q) p q
p
T
T
F
F
q
T
F
T
F
p q
T
F
F
F
(p q)
F
T
T
T
p
F
F
T
T
MAT1014DMGT
q
F
T
F
T
p q
F
T
T
T
S
T
T
T
T
15 / 66
Chapter 1
(v) Let S = (p q) q
p
T
T
F
F
q
T
F
T
F
q
F
T
F
T
p q
T
T
F
T
MAT1014DMGT
S
T
F
T
F
16 / 66
Chapter 1
Logical Equivalence
q
T
F
T
F
p
F
F
T
T
p q
T
F
T
T
MAT1014DMGT
p q
T
F
T
T
17 / 66
Chapter 1
When two compound propositions have the same truth value they are called
logically equivalent.
For instance p q and p q are logically equivalent, and it is denoted
by
p q p q
MAT1014DMGT
18 / 66
Chapter 1
q
T
F
T
F
p q
T
F
F
T
p q
T
F
T
T
q p
T
T
F
T
MAT1014DMGT
(p q) (q p)
T
F
F
T
S
T
T
T
T
19 / 66
Chapter 1
Name
Identity law
Dominent law
Idempotent law
p
p
(q r )
(q r )
MAT1014DMGT
Commutative law
Associative law
20 / 66
Chapter 1
MAT1014DMGT
Name
Distributive law
Absorbtion law
De morgans law
Negation law
21 / 66
Chapter 1
(p
(p
(p
(p
Implications
p q p q
p q q p
(p q) p q
p q p q
p q (p q)
q) (p r ) p (q r )
q) (p r ) p (q r )
r ) (q r ) (p q) r )
r ) (q r ) (p q) r )
MAT1014DMGT
22 / 66
Chapter 1
MAT1014DMGT
23 / 66
Chapter 1
MAT1014DMGT
24 / 66
Chapter 1
For example
MAT1014DMGT
25 / 66
Chapter 1
MAT1014DMGT
26 / 66
Chapter 1
Solution:
(i)
S (p q) p
(p q) p
(pp)(qp)
F (pq)
pq
Reasons
Given
Distributive law
Negation law,Commutative law
Identity law
MAT1014DMGT
27 / 66
Chapter 1
(ii)
S (p q)(p q)
(p q)(p q)
(p q)(p q)
(p q)(p q)
p(qq)
pF
p
Reasons
Given
De Morgans law
Negation law
Distributive law
Negation law
Identity law
MAT1014DMGT
28 / 66
Chapter 1
(iii)
S (p (p q))
(p (p q))
p (p q))
p (p q))
(p p)(pq)
F (pq)
pq
Reasons
Given
De Morgans law
De Morgans law
Distributive law
Negation law
Identity law
MAT1014DMGT
29 / 66
Chapter 1
(iv)
S (((p q) r )q) q r
(((p q)r )q)
((p q)r )q
(p q)(r q)
(p (r q)) (q (r q))
(p (r q)) (r q)
r q
MAT1014DMGT
Reasons
Given
De Morgans law
Associative law
Distributive law
Idempotent law
Absorption law
30 / 66
Chapter 1
MAT1014DMGT
31 / 66
Chapter 1
MAT1014DMGT
32 / 66
Chapter 1
MAT1014DMGT
33 / 66
Chapter 2
Chapter 2
Inference Theory
An argument is a sequence of propositions H1 , H2 , . . . , Hn called premises
(or hypotheses) followed by a proposition C called conclusion. An argument
is usually written:
H1
H2
..
.
Hn
implies C
or
H1 H2 . . . Hn C
The argument is valid if C is true whenever H1 , H2 , ..., Hn are true; otherwise
it is invalid.
MathematicsSAS (VIT University)
MAT1014DMGT
34 / 66
Chapter 2
q
T
F
T
F
pq
T
F
T
T
p (p q)
T
F
F
F
(p (p q)) q
T
T
T
T
MAT1014DMGT
35 / 66
Chapter 2
q
T
F
T
F
pq
T
F
T
T
q (p q)
T
F
T
F
(q (p q)) p
T
T
F
T
MAT1014DMGT
36 / 66
Chapter 2
Implication Table:
S.No
1
2
3
4
5
6
7
Formula
pq p
pq q
p pq
q pq
p, q p q
p, p q q
p, p q q
q, p q p
p q,q r p r
MAT1014DMGT
Name
simplification
addition
modus ponens
disjunctive syllogism
modus tollens
37 / 66
Chapter 2
Rules of inference:
Rule P: A premises can be introduced at any step of derivation.
Rule T: A formula can be introduced provided it is Tautologically implied
by previously introduced formulas in the derivation.
Rule CP: If the conclusion is of the form r s then we include r as an
additional premises and derive s.
Indirect method: We use negation of the conclusion as an additional premise
and try to arrive a contradiction.
Inconsistent: A set of premises are inconsistent provided their conjunction
implies a contradiction.
MAT1014DMGT
38 / 66
Chapter 2
Rule P
Rule T
Rule P
Combined {2, 3} and apply Modus Ponens
MAT1014DMGT
39 / 66
Chapter 2
Derivation
p
pq
q
qr
r
Rule
P
P
{1, 2}, I4
P
{3, 4}, I4
MAT1014DMGT
40 / 66
Chapter 2
Derivation
pq
p q
qs
p s
s p
pr
s r
s r
Rule
P
T
P
{2, 3}, I7
T
P
{5, 6}, I7
T
MAT1014DMGT
41 / 66
Chapter 2
Derivation
pr
r p
r
p
pq
q
q
q q
Rule
P
T
P(additional premise)
{2, 3}, I4
P
{4, 5}, I4
P
{6, 7}, I3
The new premise together with the given premises, leads to a contradiction.
Thus p q, p r , q implies r .
MAT1014DMGT
42 / 66
Chapter 2
Derivation
p
pq
q
q r
r
pr
p
F
Rule
P
P
{1, 2}, I4
P
{3, 4}, I4
P
{5, 6}, I6
{1, 7},I3
MAT1014DMGT
43 / 66
Chapter 2
III. Problems:
MAT1014DMGT
44 / 66
Chapter 2
MAT1014DMGT
45 / 66
Chapter 2
statement
W J
J
W
B W
B
reason
P
P
{1, 2}, Modus Tollens
P
{3, 4}, Disjunctive Syllogism
MAT1014DMGT
46 / 66
Chapter 2
MAT1014DMGT
47 / 66
Chapter 2
Let us consider,
E : Jack misses many classes through illness
S : Jack fails high school
A : Jack reads a lot of books
H : Jack is uneducated.
The premises are,
MAT1014DMGT
48 / 66
Chapter 2
Let us consider,
E : Jack misses many classes through illness
S : Jack fails high school
A : Jack reads a lot of books
H : Jack is uneducated.
The premises are,
E S
MAT1014DMGT
48 / 66
Chapter 2
Let us consider,
E : Jack misses many classes through illness
S : Jack fails high school
A : Jack reads a lot of books
H : Jack is uneducated.
The premises are,
E S
S H
MAT1014DMGT
48 / 66
Chapter 2
Let us consider,
E : Jack misses many classes through illness
S : Jack fails high school
A : Jack reads a lot of books
H : Jack is uneducated.
The premises are,
E S
S H
A H and
MAT1014DMGT
48 / 66
Chapter 2
Let us consider,
E : Jack misses many classes through illness
S : Jack fails high school
A : Jack reads a lot of books
H : Jack is uneducated.
The premises are,
E S
S H
A H and
E A
MAT1014DMGT
48 / 66
Chapter 2
Step
1
2
3
4
5
6
7
8
9
10
Derivation
E A
E
A
E S
S
S H
H
A H
H
H H
Rule
P
T
T
P
{2, 4}, I4
P
{5, 6}, I4
P
{3, 8}, I4
{7, 9}, I3
MAT1014DMGT
49 / 66
Chapter 2
II. Problems:
MAT1014DMGT
50 / 66
Chapter 3
Predicate Calculus
MAT1014DMGT
51 / 66
Chapter 3
Definition 1. (predicates).
A predicate refers to a property that the subject of the statement can have.
A predicate is a sentence that contains a finite number of specific values
are substituted for the variables.
That is, let P(x) be a statement involving variable x and a set D. We call
P as a propositional function if for each x in D, P(x) is a proposition.
MAT1014DMGT
52 / 66
Chapter 3
MAT1014DMGT
53 / 66
Chapter 3
MAT1014DMGT
54 / 66
Chapter 3
MAT1014DMGT
55 / 66
Chapter 3
Example :
(a) Let A = {x : x is a natural number less than 9}
Here P(x) is the sentence x is a natural number less than 9. The common
property is a natural number less than 9. P(1) is true, therefore, 1 A and
P(12) is not true, therefore 12
/ A.
(b) The proposition (N) (n + 4 > 3) is true.
Since {n|n + 4 > 3} = {1, 2, 3, . . . } = N.
(c) The proposition (N) (n + 2 > 8) is false.
Since {n|n + 2 > 8} = {7, 8, 9, . . . } 6= N.
MAT1014DMGT
56 / 66
Chapter 3
MAT1014DMGT
57 / 66
Chapter 3
MAT1014DMGT
58 / 66
Chapter 3
Example :
(a) The proposition there is an integer between 1 and 3 may be written as
( an integer) (the integer is between 1 and 3)
(b) The proposition (N) (n + 4 < 7) is true.
Since {n|n + 4 < 7} = {1, 2} 6= .
(c) The proposition (N) (n + 6 < 4) is false.
Since {n|n + 6 < 4} = .
MAT1014DMGT
59 / 66
Chapter 3
IV. Problems:
(x)(H(x) M(x))
Rule P
Step 2
H(a) M(a)
Rule US
Step 3
H(a)
Rule P
Step 4
M(a)
MAT1014DMGT
60 / 66
Chapter 3
(ii)
Show
that
(x)(P(x) Q(x)) (x)(Q(x) R(x)) = (x)(P(x) R(x)).
Solution:
Step 1
(x)(P(x) Q(x))
Rule P
Step 2
P(a) Q(a)
Rule US
Step 3
(x)(Q(x) R(x))
Rule P
Step 4
Q(a) R(a)
Rule US
Step 5
P(a) R(a)
{2,4},I7
Step 6
(x)P(x) R(x)
Rule UG
MAT1014DMGT
61 / 66
Chapter 3
(x)(P(x) Q(x))
Rule P
Step 2
P(a) Q(a)
Rule ES
Step 3
P(a)
I1
Step 4
Q(a)
I1
Step 5
(x)P(x)
{3},EG
Step 6
(x)Q(x)
{4},EG
Step 7
MAT1014DMGT
62 / 66
Chapter 3
((x)(P(x) Q(x)))
Rule P
Step 2
(x)P(x) (x)Q(x)
Rule T
Step 3
(x)P(x)
I1
Step 4
(x)Q(x)
I1
Step 5
(x)P(x)
3,Rule T
Step 6
(x)Q(x)
4,Rule T
Step 7
P(a)
5,ES
Step 8
Q(a)
6,US
MAT1014DMGT
63 / 66
Chapter 3
Step 9
P(a) Q(a)
{7,8},I3
Rule T
Rule P
US
Rule T
MAT1014DMGT
64 / 66
Chapter 3
(y )(M(y ) W (y ))
Rule P
Step 2
(M(a) W (a))
ES
Step 3
(M(a) W (a))
Rule T
Step 4
(y )(M(y ) W (y )) EG
Step 5
(y )(M(y ) W (y ))
Rule T
MAT1014DMGT
65 / 66
Chapter 3
Step 6
Rule P
Step 7
{5,6}, I6
Step 8
Rule T
Step 9
(F (a) S(a))
US
Rule T
UG
MAT1014DMGT
66 / 66