Chap2A Discrete Mathematics
Chap2A Discrete Mathematics
Chap2A Discrete Mathematics
Logic
➢ Deals with the methods of reasoning. It provides rules
and techniques for determining whether a given
argument is valid.
Statements
➢ A declarative sentence that is either true or false but not
both.
➢ The truthfulness or falsity of a statement is called its
truth value.
➢ True represented by T or 1.
➢ False represented by F or 0.
23
AAMS3653 Discrete Mathematics
Truth Table
Types of Connectives
1) Conjunction ( and, )
Let P and Q be two simple statements, the conjunction
of P and Q is the compound statement P and Q
(P Q). It is true when both P and Q are true.
24
AAMS3653 Discrete Mathematics
P Q PQ
T T
T F
F T
F F
2) Disjunction ( or, )
The compound statement is true if a t least one of P or
Q is true.
3) Negation ( not, , )
P is true when P is false.
25
AAMS3653 Discrete Mathematics
4) Implication ( if…then…, →)
The implication p→q is the proposition that is false
when p is true and q is false. In this implication p is
called the hypothesis (premise) and q is called the
conclusions (consequence).
P Q P→Q
T T
T F
F T
F F
26
AAMS3653 Discrete Mathematics
P Q PQ (P→Q)(Q→P)
T T
T F
F T
F F
Tautology
➢ A proposition that is always true whatever the truth
values of the component statements.
➢ The last column of the truth table consists of T only.
Eg 8: P P
P P P
T
F
Contradiction
➢ A proposition that is always false whatever the truth
values of the component statements.
➢ The last column of the truth table consists of F only.
Eg 9: P P
P P P
T
F
27
AAMS3653 Discrete Mathematics
Contingency
➢ A proposition that can be either true (T) or false (F),
depending on the truth values of its component
statements.
P Q (P Q)
T T
T F
F T
F F
28
AAMS3653 Discrete Mathematics
Eg 14: p = I am hardworking.
q = I am successful.
p → q:
q → p:
29
AAMS3653 Discrete Mathematics
p → q:
q → p:
(p → q):
Logical Equivalence ( or )
➢ Two statements are considered to be equivalent if they
have the same truth value for any combination of truth
values of their component statements.
➢ The last column of their truth table is identical. This
means the biconditional statement of two logically
equivalent.
30
AAMS3653 Discrete Mathematics
1) P T P Identity laws
PFP
2) P T T Domination laws
PFF
3) P P P Idempotent laws
PPP
4) (P) P Double negation
5) P Q Q P Commutative laws
PQQP
6) P (Q R) (P Q) R Associative laws
P (Q R) (P Q) R
7) P (Q R) (P Q) (P R) Distributive laws
P (Q R) (P Q) (P R)
9) P → Q P Q
P P F
P P T
31
AAMS3653 Discrete Mathematics
32
AAMS3653 Discrete Mathematics
33