Logic and Set Theory
Logic and Set Theory
q= Ifthe weather is windy then it is raining out
side.
p> q= The weather is windy if and only if it is
raining out side.We call =p. p Aq, PYG P=? Gand p< q Comp
propositions with p and q as component propositions i a
or more propositions are combined by one or i
propositional connectives, the resulting statement is calle
compound or complex proposition while the individus
statements are called the component propositons.
Note: Eventhough ~p is formed fiom one simple proposition
p, it is generally considered as a compound proposition
Translation of Compound Propositions
By using simple propositions and the connectives with their
corresponding equivalent symbols, it is possible to translate or
change symbolic compound propositions into verbal
statements and vice-versa. This is called a translation of
compound propositions.
Example3 Let p= Today is Friday
q= Ihave a test
jing into verbal statements.
d) (Pp)
e)-q=>-P
(P49)
Translate each of the follow!
a) -qv —P
b)-p4q
o)p>-4
Solution
a) I don't have a test or today is not Friday,
b) Today is not Friday if and only if I have a test.
c) If today is Friday, then I don't have a test.
d) It is not true that today is not Friday, or simply,
Today is Friday. (> (ap) = P) :
¢) If I don't have a test then today is not Friday.
£) It is false that, today is Friday ‘and I have a test
6Because of their equivalent meaning with the basic
propositional connectives, some words are used to connect
statements. We will consider here the most common
connecting words, by letting p and q to be any two component
propositions.
(a) p but q=pandq=prq
(b) neither p nor q= not p and not q =p 0-4
(o) either p or q=porq=pva
Note: Either p or q is used in the sense of or / and. That means
either p or q, or, both p and q
Ifit had been considered only for "or", then
either p or q=(pv.q)\7(Pq)
to mean p or q, but not both p and q
(4) ponly ifq=ifp thenq=p>4
(©) pifq=ifgthenp=q>pP
(© p whenever q= if q then p=4=> P
(g) p when q=ifq then p=q=>p
The compound proposition p => q, which is if p then g, may be
read in one of the following equivalent forms.
p implies q, ot
pis sufficient for g, or
qis necessary for p.
Let us consider the following for a better understanding of the
translation involving the connectives:
only if, if, whenever and when.
ponly if q = q is necessary for p = p is sufficient for q= p= 4
Pifq=q implies p = q is sufficient for p=q=> P. —
P whenever q = p is necessary for q = q is sufficient for p
=q>pP.P when q=q implies p =q is sufficient for p= q_—> p
For example, let p = It rains
q=Itis cold
Then, p only if q = It rains only ifit is cold
Pifq = It rains if it is cold
p whenever q = Itt rains whenever it is cold.
p when q = It rains when it is cold.
Whenever p, q = q whenever p = if'p then q = p => q
When p, q = q when p = if p then q= pq
p if q =p whenever q = p when q=4=>P
he sun is shining,
q= The plants grow.
Write the symbolic form of the following.
Example 4 Let p
a) The plants grow if the sun is shining
b) The sun is shining but the plants do not grow
c) Whenever the plants grow the sun is shining.
d) The plants do not grow only if the sun is not shining.
¢) The plants grow when the sun is not shining
f) It is not true that, neither the plants grow nor the sun
is shining.
Solution
a)p>q d)-q=> -P
b)pr-4 e)-p>4
c)q=>P f) (44 4 =P)1.3 PROPOSITIONAL
CONNECTIVES and
TRUTH VALUES
Truth Value
The truth or falsity of a proposition is called its truth value. If
we are given a proposition p, we know that p must be either
true or false, but not both. If p is a true statement, then we say
the truth value of p is true and assign the letter T. If p is false,
then its truth value is false and we assign the letter F
Truth Tables
For a situation where two propositions p and q are involved,
there are four possible true-false combinations.
(1) both p and q are true
(2) pis true and q is false.
T
: ' (3) pis false and q is true
ale (4) both p and q are false
Tables which show how the truth values for a particular
compound proposition depend on the truth values of the
component propositions and the connectives used are called
truth tables. Let us now consider the truth tables involving the
basic propositional connectives.
Negation
Ifa given proposition p has a fruth value T, then its negation,
(Gp), has a truth value F. The truth value of the negation of
9any statement is always the opposite of the try,
original statement, This can be illustrated on q
follows.
H Value
truth pa the
Ifp is true, then -p is false, oy
if p is false, then p is true
Example 1 Show that =(-p)= Pp
Solution
There are two logical possibilities, namely, p is true
pis false.
When p is true, pis false and thus +(—p) is true
Ifp is false, then —p is true, and so ~(—p) is false
Therefore p and —(-—p) has the same truth values.
Note: Given a proposition p, the negation of its negation is
Pitself, ie, —(-p) =p
Conjunction
When two statements are connected by the connective “and
the resulting compound proposition is called a conjunction.
The conjunction of two
propositions p and q,
Aq, is true only if both
Propositions are true
and it is false for all the
remaining cases.
10Disjunction
‘When two statements are connected by the connective “or”, the
resulting compound proposition is called a disjunction.
| The disjunction of two
T| T/T propositions p and q, that is,
T|F | T PV q.is false only if both
Fi t|t propositions are false and
F F | F it is true for all the remaining
cases
Implication
A statement in the form "If p then q” where p and q are
propositions is called an implication or conditional
proposition and it is denoted by p => q. The proposition p is
called the hypothesis or the antecedent of the conditional
statement p => q while q is called the conclusion or the
consequent
An implication of two propositions
pandq, p=> 4, is true in all cases
except when the antecedent (p) is true
and the consequent (q) is false
In mathematics, the implication p => q is common and it is
used when p and q have some relations to each other and p is
true. For example,
let p= Sets A and B have the same number of elements.
q= Sets A and B are equivalent sets.
Then, p=>q=If sets A and B have the same number of
elements, then they are equivalent setsree plus one is four
‘than eight, then three plu
rt
false, the conditional proposii
sion here is caused by th.
‘a statement of the form "Ifp
is usually true and the statemen.,
ob
ae
an implication causes confusion
ample for better understanding
@ certain football matc!
en it will win the match(3) pis(F) and qis(T)
(4) pis(F) and qis(F)
For the first possibility, we assume that the team gets a new
trainer and subsequently win the match, Since the captain told
the truth, we assign the truth value (T) for p => q in the first
row of the implication truth table
For the next possibility, assume that the team gets a new
trainer, but didn't win the match, Has the captain told the
truth? No, the original statement is not true and therefore we
place (F) in the second row of the implication truth table
The statement p => qis
false when p is true and q
is false
aes
aan-i
In the third situation, we assume that the team doesn't get a
new trainer, but subsequently win the match. This is the case
where p is false and q is true. Examine the original statement
"YY the team gets a new trainer, then it will win the match." Did
the captain lie? No, the captain said only what would happen if
the team gets a new trainer, not what would happen if the
team doesn't get a new trainer. The captain did not lie since he
made no claim about what would happen if the team doesn't
get anew trainer. Since we can not say that the captain lied,
the statement p => q is true, (T), when p is false and q is true
The last case to consider is when p and q are false. That is, the
team did not get a new trainer and did not win the match. If
the team didn't get a new trainer and didn't win the match, we
can not blame the captain since he only, said that the team
1Bwould win the match if it would have got a new trainer. Hence
the statement p => q is true, (T), when both p and q are false
We note that an implication proposition p => q is true in all
cases except when p is true and q is false
Bi-implication
Given two propositions p and q, the statement "p if and only if
q" is called a bi-implication or a bi-conditional statement and
it is denoted by p <= q. A bi-implication proposition p > q
may be read in one of the following equivalent forms
pif and only ifg, or
pis necessary and sufficient for q, or
q is necessary and sufficient for p
‘Acommon short form of writing" if and only if " is "iff" . So
pif and only ifq=piffq=p 4
The bi-implication of two propositions p
and q, p q) and (+p v q) are equivalent, and we
write, p=>q = —PY4
Logical equivalence of two propositions is denoted by the
symbol "=" 4
Example 1 Using truth tables show that the following
propositions are eqiiivalent
a) “(p> 9) = PA
b) (pq) 79 = 74 ¥ —P
Solution
a) We construct the truth table for —(p => 4) and
(p 479) as shown below
pa |—a| p=q | -@>q | prnd
T|/T|F T F F
T| FIT F a a
F|T|F T F F
F F T iT F | F _}
From the last two columns, we note that “(P= ”
and p A-q have the same truth value. So they are
equivalent. Hence, -(p => 4) = P\—4
b) The truth table for (p04) => “4 and —q v —p is
shown below.
a | (@Ag= —a | —a¥—P
aan
ads
Pam fo
eee
ae
rey oy oot 3]
4 ta |
23ans, it follows tha
—(q= p) and -;
rom their truth table
the following pair of
ly equivalent, or not
th beautiful and intelli
she is not intelligent
then she isWe construct the truth table for —(p » 4) and p > —q
pla]
T/T
T\F
F
v
F i T
FiFI TO
By comparing the last two columns, we observe that
A(PAq)
Thus, the statements are logically equivalent.
(pag) _p=>-
¥
T
T
T
b) Let p = It rains.
q= Itis cold.
= If't rains then itis cold
= It is cold whenever it rains
ap => =q = Ifit doesn't rain, then it is not cold
= It is hot if it doesn't rain.
Then, p =>
From the truth table for p => q and sp > —4,
=
p>qa| -p>-4 |
|
EP.
om ho
ama
sama
anand
samalll
aoa
‘We found that the two statements are not logically equivalent.Converse, Inverse and Contrapositive Propositions
Consider the conditional statement p => q and the following
three related conditional statements F
(1) q=2p called the converse of p=4
(2) sp => =q called the inverse of p=4q
(3) +q=> =p called the contrapositive ofp => q
We construct the corresponding truth table.
pla] -p [=a | p=a | a>p | -p2-a] -a>-P |
T|T|F|[F| T T T T |
T|F/F{T] F T T F
F/T) T|F] T F F T
Fl[F|t|T| T T T T
‘A conditional statement and its converse or inverse are not
logically equivalent. But, on the other hand, we note that a
conditional statement and its contrapositive are logically
equivalent. Thus,
p=>q=-q=>-P
or q=>p=-P>-4
Example 3 Write the converse, inverse and contrapositive of
the statement:
"Ifx= 1, then x”
Which of the derived implications is true?
0”
Solution Let p=x=l1
=x’-1=0
Then, p => q represents the given conditional statement.
260, the converse q=> px If x? 0, then x = 1
the inverse sp => —q=Ifx #1, thenx?- 140
the contrapositive -q => sp =Ifx?- 1 #0, thenx 41
‘The converse is not true since for x # | or x= -1, x-1=0.
‘The inverse is also false as -1 + 1 but (-1y-1=0.
We note that the contrapositive is a true statement since
x# 1 whenever 7-140, (p> q=~q=> >P)
Important Equivalent Propositions
By letting p, q and r to be any given propositions, we list
below important laws of propositions which involve logical
equivalence
1. Commutative Law
PAG =aAP
pyq=avp
2. Associative Law
pagan =(pPagarr
pv(qvr) =(pvayr
3. Distributive Law
pyar
patavy)
py grey’)
(Prgy Pry
4, De Morgan's Law
A(p 4) =-PY 74
(pv q) = =P A749
5. Idempotent Law
PAP=P
PYP=Pee (Pv) 5,
ppropriate truth table
BsPCT = po identity baw
Tho ys (ep
Dy ae (ey ene eee ah
Ve Menyain's bin
BoC. ag) deiteabsutive five
4 t.complement lave
p. identity law
This, Copy a) vaQDn =P
oO (PAC Pv aly lan ral
elroy @ar@ly laa Gry Oh,
distributive law, Demorgan's law
= [FV (AD va a—P) v4 ~9)]
complement law, distributive law
= (p av (qr -P) Fl,
identity law, complement law.
= (pag v (@A-p), identity law.
= (QA p)v (qA=9), commutative law
= q A (pv =p), distributive law
= qT, complement law.
=q, identity law.
Thus, (PA CPY A] vlan “PA DI=4
1.6 TAUTOLOGY and
CONTRADICTION
Tautology
Letus consider the truth table for ((p=> 0“ > ~P=pT=p, identity law
Thus, p v (p,q) =P
b) ap v9) v.(p 44) = (PA.a) v (PA =),
De Morgan's law.
A (qv 79) , distributive law
PAT, complement law
=p, identity law
Thus, —(—p v =q) v (p Aa) = P
©) (PAGPY Aly fan -@ 09)
=(pa-p)v Prd] v [aA Cry —a),
distributive law, Demorgan's law.
=[Fy@arglyl@s—-p)v @r—a)
complement law, distributive law.
=(prq)v (4 -p)v FI).
identity law, complement law.
=(p Aq) v (qA-p), identity law.
=(qAp) Vv (qA—p), commutative law.
=q A (pV —p), distributive law
= qT, complement law.
=4q, identity law
Thus, [(pA pv a] vlan-@ Ag] =4
1.6 TAUTOLOGY and
CONTRADICTION
Tautology
Let us consider the truth table for [(p => 4) >a] =P.
29true, no matter Whar
onent Propositions, 18 cal
test in logic fo;
StatenContradiction
ifthe truth value of a compound proposition is always false, no
matter what truth values are assigned to its component
then the compound proposition is called a
We found that the compound proposition -(p v a) (Pp a)
is false for all possible truth values of the component
propositions p and q. Thus, itis a contradiction
Example 2 Show that (p 9.4) (p> =q) is
‘a contradiction
‘Solution We construct its truth table,
| erage p>
saat
Hence, the proposition (p A q) <> (p> —4) is # contradiction
Note: Given a proposition p,
Pv —pis a tautology.
PA =p is a contradiction.
31Which of the followin,
VIN is a tay,
contradiction or neith
‘ol
er, ver fy BY, a
a) (9. =p) 0 “(p v q)
b) (p> 9) & (=q A sp)
Mle>9.G>))>~>1)
i ing the truth table for
Solution By constructing u €2ch po
we determine and verify whether the stem
involve a tautology, a Contradiction o,
eithe,
a)
] tr
Pla |=p | =9 | -qe>—p =pv 4 | pv a)
TITTFIFL + T ae
TIFIF} T| Ff
egy | F F
Pret | + T°)
Thus, the compound proposition is a tautology
1.7 ARGUMENTS
An argument is the assertion that a statement, called the
conclusion, follows from othér statements, called the
premises. The study of logic enables us to distinguish valid
‘arguments from those that are not valid
Valid Arguments
‘An argument is valid if and only if,-whenever the conjunction
of the premises is true, the conclusion is also true
Ifwe let ps, po, ps, be the premises and ps the conclusion, then
Corresponding argument is valid if and only if ps is true
Whenever pA pz. ps is true. In other words the argument is
Valid if and only if:
(PiA po ps) => pa isa tautology.
‘An argument is invalid if the conclusion is false but all the
Premises are true.
33
IP swag ™|
tip=alq=t| por] @agaqon 1)
Tl T/T] rT T r
jF) T] Fle F T
Jt] FF] tle F T
Fl F T | © “FE | T
glu jel T r
F) T | RF] F T
tT) T] Tt] T iy
Fit|r|tr Tt | iExample 1 Is the following argument valid?
If! study, then I will pass mathematics.
I didn't pass mathematics.
Therefore, I didn't study.
Solution The above three statements taken together co
an argument in which the first two statement:
premises and the last statement is the conclusior
Let p=Istudy.
q=I pass mathematics,
Then, the premises are: p>q
=a
and the conclusion is =p
The argument is valid if and only if [(p => q) Aq] => —p
tautology. To determine the validit
idity, we construct the
table for this argument as shown below.
eta | =p |-a [pal @aga
TIT] FL FL, rp ea
TIF/ Fi T| F F
FIT| TIF] + F
Firi|t|T| tT T
It follows from the last column that
tautology and hence the argument ig ee DA-~q] > pis:
Note: An argument is valid if and only ig .
statement, whose antecedent is he “onditional
the premises ofthe argument and whosn%00 of all
the conclusion of the argument, is a tae o™Sequent
is
Otherwise the argument is invalid or vey,
coyExample 1 Is the following argument valid
If study, then I will pass mathematics
I didn't pass mathematics.
Therefore, I didn't study.
Solution The above three statements taken togethe:
an argument in which the first two statemey,
premises and the last statement is the concj.,
Let p=I study.
q =I pass mathematics.
Then, the premises are: p>q
—_
and the conclusion is =p
The argument is valid if and only if [(p > 4) 4-9] >»
tautology. To determine the validity, we construct the.
table for this argument as shown below.
@=94-a| (o> ond
FE
Pi1qi-p|-qjp=>q
T/T/ F/F/ T T
T|F/ F/T] F F T
FIT|/T/|F T F T
Flei[t|T{ 7 T =
It follows from the last column that [(p => 4) ©~) = ""
tautology and hence the argument is valid
ional
dition!
ction of
wet!
Note: An argument is valid if and only if the ©
statement, whose antecedent is the conju"
the premises of the argument and whose cons
the conclusion of the argument, is @ tautology
Otherwise the argument is invalid oF 20" V3"
34Example? Test the validity of the following arguments.
a) Whenever, it rains, the plants grow. It didn't rain
Therefore, the plants didn't grow.
b) Only if the car is new, it is worth buying, The car is
old, but cheap. Therefore it is worth buying if and
only if the car is expensive
Solution
a) Let, p= It rains.
q = The plants grow.
Then, the premises are: p>q
a
and the conclusion is =4
The argument is valid if and only if [(p => q) -p] => =qis a
tautology. So we construct a truth table to determine the
validly.
Pig {=p | =| p=q | (p=>q)a-p | (p> 4) a-p] > -q
rn pti geal Peele F T
TEE te) F ic
FIT) T]F| T T F
te [ra eT aT T Tr
The last column shows that the conditional statement is not a
tautology. Therefore, the argument is not valid.
b) Let p= The car is new.
q= Itis worth buying.
r= The car is cheap
35TT
Then, the premises are: q=>p
—=pAr
and the conclusion is qo@-r
‘The argument is valid if and only if [(q => p) (sp » r))
=> (q.¢9 a1) is a tautology. So we construct the truth table
as shown below to determine the validity of the argumen,
| [@=p] las;
pia) + |apiorlg=p|-pariqe-| (span nj=4
TT tee | F | F F ;
TTF) FIT ree: Tr. a.
T|FIT| FF F T F | T
TF|F|F|T rl F F ;
FIT|T| TIF |. F. el. 7
FIT/F/T|T oT ee
FIF/T|T|F a mi (t
FIF|F| TIT Paes: Fe 2 ;
LOGIC ITIONS and
IFIERS
Open Proposition 4 %
Consider the following
a) x-3=2x+5
All of the sentences involve
truth value to each of them
The first sentence may be true or
36number that replaces x, whereas the truth values for the other
two sentences can be assigned after individuals or numbers are
substituted for the variables x and y. Such sentences are called
pen propositions.
‘An open proposition is a sentence that contains one or more
variables and becomes a proposition when the variable(s) are
replaced by specific number(s), name(s) or individual(s)
according to the context of the given sentence.
Note that an open proposition is a sentence that is neither true
nor false until we replace the value(s) of the unknown(s)
The open propositions considered may be symbolized and
represented as follows:
P(x) =x-3=2x+5
Q(x, y) = y is the father of x
RG, y=x-y'<0
Usually, an open proposition is symbolized by using.a capital
letter to stand for the property and by using small letters such
as x, y and z for each variable involved in the sentence. For
example,
P(x, y) may be read " x and y satisfy the property P "
Equations and Inequalities
An open proposition which contains the equal sign, =, to
denote the equality of two expressions is called an equation. If
‘4 open proposition involves the inequality signs, (> or < or >
tS), then it is called an inequality.
7Note: In mathematics, we are interested in finding all po...
values that make an open proposition a true stateme,,,
Je 1 Find all values of the real number x so that the
ae ‘open propositions become true statemen,,
a) PQx)extl-x =1
3.04 2
b) Q(x) #6 <2x-4<6
o) Rx) ax’ +3x7-x-3=0
a) We solve the equation to make P(x) a true statement.
Btl- XK =1> 4c+1)-3x =1
3 Ae 12 2
4x+4-3K = 1 > R445 1>2%x+4)=12
12 2 2 2
2+ 812 > 2x84, of x= 2.
Thus, forx = 2, Px) isa true statement
b) We solve the inequality to make
So we add 4 tall erm ofthe inean tr amen
to get SHAKRK644 mw QerReig ‘
Dividing by 2 or multiplying by i” jy.
exes Thus, Qe ee wha ni
©) We solve x’ + 3x” -x-3 = 0 as follows:
38(x +3)- 1x +3)=0
(x +3) (= 1)=0
(x+ 3) (K+ I) &-1I=0
x=-3orx=-lorx=1
Thus, R(x) is true, for x = -3,x=-1and x= 1
Logical Quantifiers
‘An open proposition can be changed in to a proposition with
out specifying a value for the variables. This is done by using
the following two logical quantifiers
3, which is known as the existential quantifier,
and V, which is called the universal quantifier
The Existential Quantifier
Suppose we have the open proposition P(x). We can use the
existential quantifier to express the existence of an individual x
which satisfies the property P. So we write:
(Ax) P(x) which may be read as
"There exists an individual x which satisfies the property P"
We note that a sentence in the form (x) P(x) is no more an
open proposition, since there are, or there are not, individuals
that satisfy the property P. So (4x) P(x) is true, if there is at
least one individual that satisfies the property P. Otherwise it
is false, and thus the sentence is a proposition in any case. For
example, let
39P(x) #x?- 1 =0 and
Q(x) = x?+1=0 , where x isa Teal AU
is ition because x? - |
3x) P(x) is a true proposition \
Ten OOP for x=-landx=1
But, (3x) Q(x) is a false statement since there is no rea)
solution for x? + 1 = 0.
The Universal Quantifier
Given an open proposition P(x), we may use the univers,
quantifier to express that every individual x, which may b.
restricted by some conditions, satisfies the property P ani
write
(Vx) P(x) which is read as
" Every individual x satisfies the property P"
“All individuals satisfy the property P ",
The Sentence ('Vx) P(x) is a true statement, if every individual
x satisfies the property P. And it is
s perty I s a false statement, if there
exists at least one individual which does not Satisfy the
property P.
For example, let
P(x) = v= x
Then, (Vx) P(x) is a true statement, if x is restrt
non-negative number. On the other hand, ue tobea
number, (Vx) P(x) will bea false proposition, sinew¢
true for negative numbers. is not
40. The two quantifiers have the following relations.
x) P(x
(Vx) 4P(x) = (Bx) P(x)
‘To make the above relations understandable, let us consider the
following example.
suppose, P(x) = x is a rational number
Q(x) = x is the square root of a negative number
‘Then, (3x) —P(x) = There are some real numbers, which are
not rational numbers
(Vx) P(x) = Not every real number is a rational number
(Wx) Q(x) = Every real number is not the square root of
a negative number.
(2x) Q(x) = There is no real number, which is the
square root of a negative number.
‘We observe that:
(Bx) AP(x) = A(x) PC)
and (Vx) =Q() = =Gx) AX)
Quantifiers Involving Two Variables
The two logical quantifiers may be used in combination when
two or more variables are involved. We consider here the
following four cases, where only two variables are involved.
1. Bx) Gy) P(x, y) = There exists some x, and some y such
that (x, y) satisfies the property P.
41= There exists some x, such that the
{ 2 Gx) (Wy) - Eb vi atisfied by 9) forevey
For all x, there exists some y, such tha
TMA Mtl eistisser tie property P
= For every x, and every y,
+ (9) (Wy) POs 9) (x, y) satisfies the property P.
Not i i 1) and in (4) can be
Note: The variables of the quantifiers in (1) and
| : interchanged with out changing the meanin,
1g of the
sentences, But, the order of the quantifiers is essential
in (2) and (3).
For example, if P(x, y) =x? > y, then.
(3x) Gy) P(x, y)= Gy) (Bx) P(x, y), and, both are true
But, (3x) (vy) P(x, y) is false, while (Wx) y) P(x, y) is true,
thus, they are not equivalent
Example 2 Assuming that the vari,
: lables are real
assign a truth value fc
!
numbers,
for each,
DOG eet,
OCR) (9) eye SY,
DIYS e tes yay /
Obviously, there is no real ny :
ally atthe same time: Thus cy ttich is equal to
false, (F). DY- mmx y ig
\ 42
xsy,
‘ 8) Gx) (Vy) yen,PE -F =F Ve Vian a Ee y
ifand only if q is the same as
q.€ p and it can be expressed as (p = q) 0 (q > P)
The following table shows that
peoq=(p>ar@=>p)
4Example2 Let p= The square of a number is never
negative
q= Y2 isa rational number
Assign each proposition its truth value.
a) paq dq -p
b) =qv ap e) 79 => =p
°)-=p>q f) (p< =)
Solution Since p is true, (T), and q is false, (F), it follows
that
a) F, (F AF) d)T, (Fe F)
b) T. (Tv F) e) F, (T= F)
o)T, (F>F) ) F, (1 <> T) or (1) =F
Example 3 Determine the truth value of each of the following
statements.
a) Number one is neither prime nor a composite
number.
b) 3 is less than 7 only if 4 is greater than 6.
©) Berlin is in Germany if Paris is in England
d)0 +5 #0 whenever 5-045
€) 1.5 is a decimal number iff 3 is not a real number.
a) T, number one is not a prime number and it is not a
composite number
(faT=T)
b) F, if 3 is less than 7, then 4 is greater than 6
(T=>F=F)
©) T, if Paris is in England, then Berlin is in Germany
>T=T)of the following,
d pis false
ae irrespective of
aplication is always
Gi©) pis false, so p A -q is false, =p is true, so sp vqis
true. Asa bi-implication is false for different truth
values, (p Aq) <> (=p vq) is false, (F)
£) The antecedent p is false, so p => q is true. As
disjunction is true when one component is true,
(> 49) v (p <> 7g) is true, (T),
irrespective of p <> —q
8) d= —pistrue as —p is true. Since p is false,
P=>—qis true. Thus (q => =p) » (p => =) is true,
but its negation is false, (F),
h) =p is true, so qv =p is true. Because p is false,
PA-qis false. Thus (q v +p) > (p 4 =q) is false
Since a conjunction is false when one component is
false, the given complex proposition is false, (F)
Example § Find the truth values of the following
a) q, if (p 4.4) <> (p vq) and —p are true
b) =p, if (4 => =p) v (p <> q) and q are false
©) 3(qA =p), if “(p= q) is true.
d) +g = =p, if (p A =q) => =p is false
€) 9q < p, if (=p v q) A (p & q) is false.
a) When —p is true, pis false so p \qis false. Since
(p.4q) < (pv q) is true and p » qis false, p v qis
false, thus q is false, (F).
|We place in columns 1 and 2 the four possible true-false
combinations for the two component propositions p and q. In
columns 3 and 4 the truth values are determined using the rule
of negation for p and q, respectively. The fifth column is
determined by applying the rule for bi-implication on columns
4and 1. Column six comes from implication of columns 3 and
4, The last column represents the truth values of the given
proposition, and it is determined by the conjunction of columns
Sand 6
Example 2 The truth values for compound propositions r, s, t,
u, and v (formed from simple propositions p and q)
are shown in the table.
T
T
|
|
ma ie |
ae
Samal
anne
t
iT
F
F
iT:
s44ale
mans
a) What is the truth value for r and t, when p and q are
true?
) What is the truth value of v, if p and q are false?
©) For which truth values of p and q, do rand v have
the same truth values.
4) Ifp is true and q is false, what is the truth value for
sand u?
Solution
) pand q are true in the first row. We observe from
the table that the corresponding truth value for r, and
tis true. Hence both r, and t are true, (T)
b) pand q are false in the fourth row. Thus, the
corresponding truth value of v is false, (F).
19
4
ts truth value, (true
responding truth val. ie ‘
pis true and q is false >,
se, (F), whereas w i,
ions
three component Prope
ination of truth
e nm simple propositions
mn, then there are 2°
T
T
F
T
F
iW
F
LNote: In constructing the truth table of a three component
compound proposition, itis convenient to place the
truth values of the components in the manner, as shown
in the first three columns, (p, q, and r) of the above
table.
In the construction of the truth table, columns 1, 2 and 3 show
the possible combinations of the truth values for the three
component propositions p, q and r, while the corresponding
negations are placed in columns 4, 5 and 6. Column 7 is found
by conjunction of columns 2 and 4. The negation of column 7
gives column 8. The ninth column is determined by applying
the rule for implication on columns 5 and 6.
Finally, the truth values of the given complex proposition are
found from columns 8 and 9 by applying the rule for bi-
implication as shown on the last column,
Example 4 — Assume p is true, q is false and r is true.
Find the truth value of each of the following.
a) (-pv (qn)
b) a(p 4) v “(A =)
c) (sp > q) > (ara = 9)
Solution If p is true, qiis false, and r is true, then sp is,
false, —q is true, and =r is false. Thus,
a) Fv T)
You might also like