Professional Documents
Culture Documents
Maps
Maps
Mathematics
Week 1 - The logic of compound
statements
Statements
Definition
A statement (or proposition) is a sentence that is
true or false but not both.
Propositions Not Propositions
3 + 2 = 32 Bring me coffee!
5–2=3 x+y>0
Every cow has 4 legs. 3+2
There is other life in the Do you like Cake?
universe.
Definition
If p is a statement variable, the negation of p is
"not p" or "It is not the case that p" and is denoted
~p.
p p
T F
F T
Definition
If p and q are statement variables, the conjunction of p
p q.
and q is "p and q" denoted
p q pq
Definition
If p and q are statement variables, the disjunction
of p and q is "p or q," denoted p v q.
p q pq
Definition
T T T T T T T T
T T F F T T T T
T F T F T T T T
T F F F T T T T
F T T T T T T T
F T F F F T F F
F F T F F F T F
F F F F F F F F
Bina Nusantara University 9
Tautology and
Contradiction
Definition
A tautology is a statement
form that is always true.
A statement whose form is
a tautology is a tautological
statement.
Definition
p q pq
If p and q are statement
variables, the conditional of q T T T
by p is "If p then q" or "p T F F
implies q" and is denoted p → F T T
q. It is false when p is true and q F F T
is false; otherwise it is true.
Definition
Suppose a conditional statement of the form “If p then
q” is given.
1.The contrapositive is “If ~q then ~p” (~q → ~p)
2.The converse is “If q then p“ (q → p)
3.The inverse is "If ~p then ~q" (~p → ~q)
Definition
p q p ↔q
Given statement variables p and q,
the biconditional of p and q is "p if
and only if q" and is denoted p ↔ q. T T T
It is true if both p and q have the T F F
same truth values and is false if p F T F
and q have opposite truth values. F F T
13
Bina Nusantara University
Valid and Invalid Arguments
Definition
1. MC Given
2. D C Given
3. DS Given
4. M Given
5. C Elimination (1,4)
6. CD Contrapositive of 2
7. CS Transitivity (6,3)
8. S Modus Ponens (5,7)
p p
T F
F T
Example
E1 = X Z’ + X’ Y Z’ + X Y’ Z is DNF
25
Full DNF
Definition
A boolean expression E (X1, X2, ...) is full DNF if each
fundamental product of expression consisting of all the
variables.
Example:
E = X Y 'Z + X' Y Z + X Y Z ‘
Example
1.Let P1 = xy’zp and P2 = xyt, then consensus of P1
and P2 is Q = xzpt
2.Let P1 = xy’z and P2 = x’yzp, then P1 and P2 don’t
have consensus because P1 and P2 have two
complement variable, they are x and y
27
Theorem of F
undamental Product
Theorem
If fundamental product P2 including fundamental
product P1, then
P1+P2=P1
Example
xz xyz xz
Example:
The left picture is the K-map corresponding to the
(x,y) = xy + x’y + x’y’
The left picture is the K-map corresponding to the
(x,y) = x’y + xy’
1. Pairs
or
2. Horizontal Quads
3. Vertical Quads
4. Octets (1/2)
4. Octets (2/2)
Karnaugh map in slide before same as following Karnaugh Map
5. Overlapping
isolated
6. Redundant
redudant