.
CHAPTER ONE
ELEMENTARY MATHEMATICAL LOGIC
Introduction:- In this chapter we study what we call Elementary Mathematical Logic. Elementary Mathematical Logic mainly deals with
sentences that are either true or false but not both, the main operations used on propositions and some properties of these operations. Finally,
we discuss about the rules of inference, how to judge the correctness of a given chain of reasoning in a given discussion and how to draw a
valid conclusion from the given chain of arguments.
Objectives: At the end of this chapter you will be able to:
Revise what you have studied about proposition and open propositions.
Acquire basic knowledge on the five fundamental connectives.
Apply the five fundamental connectives in solving related problems.
Determine whether an argument is valid or not.
State which rule of inference is used in a given argument.
1.1 Propositional Logic
Introduction: Propositional Logic is the study of the logic of sentences. But first, we must limit the kind of sentences we are going to deal
with. In Propositional Logic we deal with sentences that are as assertorial or declarative, that is to say, sentences to which we can meaningfully
apply the word „true‟ or „false‟.
Objectives: At the end of this section you will be able to:
Define a proposition.
Identify propositions.
Find truth values of propositions.
Definition 1.1.1 (Proposition)
A sentence is said to be a proposition (or a statement) if and only if it is either true or false but not both.
Definition 1.1.2 A proposition is a sentence which has a truth value.
Note: Truth values are True and False, denoted by T and F, respectively.
Example 1.1.1 a) Addis Ababa is the capital city of Uganda.(proposition; False)
b) A rhombus is a rectangle. (proposition; False) c) 7 is a prime number. (proposition; True)
d) Bishoftu is a city in Africa. (proposition; ?) e)
(proposition; False)
f) There is life on the moon. (proposition; ?) g)
for each real numbers (proposition; False)
h) Nyalas are found only in Ethiopia. (proposition; True)
In example (d), before we say either true or false, we need to clearly understand the difference between the meanings of the words
„city‟ and „town‟. Based on these definitions we can say either true or false but not both. Similarly, in example
(f), we need to get a scientific written evidence (document) about the existence of life on moon or not . But at once we can see that
both can never hold true. In both cases, the only thing we need to check is that it is either true or false but not both.
Remark: Sentences that express i)one‟s wish ii)one‟s feeling iii) command iv) interrogation, etc. cannot be propositions.
Example 1.1.2 The following sentences are not propositions: a)God bless our people. b)Abeba is more beautiful than Aster.
c) Get out! d)How old are you?
Example 1.1.3 The following sentences are propositions: a) is a factor of
b) is both a prime and an even integer
c) Bishoftu is in Oromia
Exercise 1.1: In exercises 1-20, identify whether each of the following are propositions or not. Determine the truth value
whenever possible. 1. Addis Ababa is in Africa. 2A parallelogram is a quadrilateral. 3. The sum of two odd integers is an odd
integer. 4. I wish I lived in London. 5. I will go to China at the end of the coming year. 6. 0 is an integer.
7. Shakespeare broke his ankle at the age of nine. 8. Meles is more handsome than Haileselassie. 9. Ras Ali died in 1980.
10. Congratulations! 11. Isaac Newton was an American business man. 12. Alas! 13. 5 is a perfect square. 13. The sun rises in
the east. 14. Please get me a glass of water. 15. Sin
16. Do not disturb! 17. √
. 18. 1.2Propositional
Connectives
The operations used with propositions are called propositional connectives.The principal ones are:
Name
Negation
Conjunction
Disjunction
Exclusive Or
Implication
Bi-implication
1.1 Compound Propositions
Meaning
Symbolic expression
Not
And
Or
….or …(not both)
If…., then…
…if and only if…
1
Introduction :- So far what we have done is that we simply defined the logical connectives. Now we shall learn how to form
propositions involving more than one connective, and how to determine the truth values of such propositions.
Objectives :- At the end of this section you will be able to:
Define negation, conjunction, disjunction ,exclusive or, implication and bi-complication
Define a compound proposition.
Construct a truth table for a compound proposition and Determine the truth value of compound propositions.
Express compound propositions in good English and determine their truth values.
Definition 1.3.1 (Complex propositions or Compound propositions)
Propositions that involve propositional connectives are called complex propositions (or compound propositions).
The individual statements in a complex proposition are called component propositions.
Note: Propositions are usually denoted by small letter of the alphabets ( , , ,…).
Definition 1.3.2 (Truth Tables)
Tables presenting rules of the assignments of the truth values of a compound proposition are called truth tables.
Note: If a compound proposition has component propositions, then there are different possible ways of combining their truth values.
Now, we need to develop a method to construct a truth table for a given compound propositions that has component
propositions. The method is to use the following steps:
Step1: Count the maximum number of possible component propositions that appears in the given compound proposition, say .
Step 2: Construct a table that has
rows and
columns.
Step 3: On the first row write the component propositions and then these possible compound propositions in which the given
compound proposition appears at the end.
Step 4: On the first column, starting from the second row write T one fourth of
times and then F one fourth of
times and
copy these
and F‟S on this column according to their appearance on the next rows until the end of the last row.
Step 5: Continue in this fashion up to the end of the
column.
Finally fill the remaining parts of the table row by row either by T or F based on the combination of the truth values on the
component proposition on that row and the following rules.
Rules of assigning truth-values for complex propositions
Rule 1: Negation ( If a given proposition has truth value T, then its negation, denoted by
has truth value F.
Note: Negation modifies one proposition (or one complex proposition as a unit) while the remaining four connectives join two or
more propositions each being simple or complex. Let be a proposition. The truth table for
is:
T
F
F
T
Rule 2: Conjunction ( ):- The conjunction of two propositions is true when both propositions are true and it is false in all
remaining three cases. The truth table for the conjunction of two propositions and is:
T
T
T
T
F
F
F
F
F
F
F
F
Rule 3: Disjunction ( :- The disjunction of two propositions is false when both propositions are false and it is true in all the
remaining cases. The truth table for the disjunction of two propositions and is:
T
T
T
T
F
T
F
T
T
F
F
F
Rule 4:Exclusive Or ( ): Let and be propositions. The exclusive or of and , denoted by
true when exactly one of and is true and false otherwise. Using a truth table:
T
T
F
F
T
F
T
F
, is the proposition that is
F
T
T
F
2
Rule 5: Implication
:- An implication or a conditional statement written in the form
is false when is true and
false, in all the remaining three cases it is assigned a truth value T. The truth table for the conditional statement
is:
q
T
T
T
T
F
F
F
T
T
F
F
T
is
, is called the hypothesis or premise or antecedent, while is called the conclusion or the consequent.
Remark: The following have the same meaning as “ implies ” 1) If then
2) If
3) only if 4) is a sufficient
condition for 5) is a necessary condition for 6)
if
7) when 8) provided that 9) whenever
10) unless
11) Whenever , then also . 12) follows from
Rule 6: Bi- implication
:- A bi-implication (or a bi-conditional) statement written in the form
is assigned a truth value T
when both and have the same truth values. The truth table for the bi-conditional statement
( if and only if ) is:
For the conditional statement
T
T
T
T
F
F
F
T
F
F
F
T
Remark: The following have the same meaning as “ if and only if ”
is a necessary and sufficient condition for
is a necessary and sufficient condition for .
We use the so called truth tables to find the truth value of a compound proposition by applying the six rules stated above. The
truth value of a compound proposition depends on the component (elementary) propositions.
Example: 1.3.1 For the elementary propositions and , the following are some of the compound propositions:
Example 1.3.2 Construct a truth table for
T
T
T
T
T
F
T
F
F
T
F
T
F
F
F
F
Example 1.3.4 Let
a)
b)
Solution: a)
T
T
F
T
F
F
T
F
T
F
F
F
T
F
F
F
have truth values
c)
c)
is false (F)
e)
T
T
F
T
F
F
T
T
F
F
F
F
F
F
F
F
, respectively. Then, determine the truth values of each of the following:
d)
e)
f)
is false (F)
b)
is false (F)
d)
Solution:
is false (F)
f)
F
is false (F)
is true (T)
Precedence of Logical Operators
We can construct a compound proposition using the Negation operator and the Logical operators defined so far. We will generally
use parenthesis to specify the order in which logical operators in a compound propositions are to be applied. For instance,
is the conjunction of and . However, to reduce the number of parenthesis, we specify that the negation
operator is applied before all other logical operators. Another general rule of precedence is that the conjunction operator takes
3
precedence over the disjunction operator so that p q r means p q r rather than p q r . Finally it is an acceptable
rule that the conditional and bi conditional operators and have lower precedence than the conjunction and
disjunction operators and . Consequently, is the same as p q r . The following table displays the
precedence levels of the logical operators.
Operator
Precedence
1
2
3
4
5
Example 1.3.4
means
means
means
means
Example 1.3.5 Given some men are more intelligent than apes.
All American are white men.
Determine the truth value of the following: a)
b)
Solution: The truth values of
and
and , respectively.
a)
b)
is greater than 3.
is false (F)
is true (T)
Example 1.3.6 Let Kebede is rich.
Kebede is happy.
Write each of the following in symbolic form: a) Kebede is poor but happy. b) Kebede is neither rich nor happy. c) Kebede is either
rich or unhappy. d) Kebede is poor or else he is both rich and unhappy.
Solution: (a)
b)
c)
d)
Example 1.3.7 Let There is a blue bird in Ethiopia. : Nyala is endemic to Ethiopia.
Write each of the following in an acceptable English form: a)The disjunction of and . b)
Solution: a)
Either there is a blue bird in Ethiopian or Nyala is endemic to Ethiopia. b)
Either there is no blue bird
in Ethiopian or Nyala is endemic to Ethiopian
Example 1.3.9 If girls are happy, : girls are playing, express the following sentences in symbolic form:
a) Either the girls are happy or they are not playing. b) Girls are unhappy but they are playing. c) It is not true that the girls are not
playing but they are happy. Solution: a)
b)
c)
Exercise 1.3
In exercise 1-5, assuming that , and are propositions, construct a truth table for each of the following compound propositions:
1.
2.
3.
4.
5.
6. If
is and
then what is the truth value of ?
7. Determine the truth value (s) of the compound proposition: a)
if the truth value of
b)
if the truth value of
c)
if the truth value of
d)
8.. Express the following statements in symbolic form: a)Mango is a fruit but potato is a vegetable. b)In spite of his physical
disability, Abebe stood first in the class c) Aster stays at home while Abebe and Kebede go for a movie.
9. Write the truth values of the following propositions: a) √ is a rational number or
is a complex number.
b) Jupiter is a planet and Mars is a star.
c) Neither
is a prime number nor it is divisible by .
| |.
10.Write negation of each of the following statements: a) John is good in river rafting. b) The sun sets in the east. c)
11. Change each of the following propositions to the form “If,…, then…” a) I shall come provided that I finish my work.
b)
only if
. c) Getting bonus is a necessary condition for me to purchase a car.
In exercise 12-15, find the converse, the inverse and the contrapositive of each of the given conditional propositions:
12. If there is going to be a quiz, then I will come to class. 13.If it showers today, I will ski tomorrow.
14.If a dog is barking, then it will not bite. 15. If a quadrilateral is a rectangle, then it has two pairs of parallel sides.
1.4 Equivalent Propositions
Introduction:- In this section we will define equivalent compound propositions and see how to show whether two compound
propositions are equivalent or not. We will also find the converse, inverse and contrapostive of a compound proposition.
Objectives:- At the end of this section you will be able to:
Define equivalent compound propositions.
4
Construct a truth tabel for equivalent compound propositions.
Find the converse, the inverse and the contrapositive of
State De Morgan‟s Laws.
Definition 1.4.1(Equivalent Compound Propositions) :-Two compound propositions and are said to be equivalent if they
have the same truth value for all possible combinations of truth values for the elementary propositions occurring in both and .
Notation: If and are equivalent compound propositions, then we denote this by
Example 1.3.1 Show that
Solution:
p
T
T
F
T
T
T
F
F
F
F
F
T
T
T
T
F
F
T
T
T
Hence,
since columns 4 and 5 of the above table are identical.
Example 1.4.2 Show that
Solution:
p
T
T
F
F
T
T
T
F
F
T
F
T
F
T
T
F
T
F
F
F
T
T
T
T
Looking at columns 5 and 6 of the table, we see that they are not identical. Hence,
The Converse, the Inverse and the Contrapositive of a conditional statement
Definition 1.4.2: For any two propositions and
1.
is called the converse of
2.
is called the inverse of
and 3.
is called the contrapositive of
Example 1.4.3 Let : Almaz is intelligent.
: Almaz will join computer science.
Write the converse, the inverse and the contra positive of
in acceptable English form.
Solution: 1) Converse: If Almaz joins computer science, then she is intelligent.
2) Inverse: If Almaz is not intelligent, then she will not join computer science.
3) Contra positive: If Almaz does not join computer science, then she is not intelligent.
Example 1.4.4 Let : Ethiopia is in Africa.
: 9 is a prime number.
Write the meaning of the following symbolic forms in acceptable English form. a)
b)
Solution: a) If Ethiopia is in Africa, then 9 is not a prime number. b) If Ethiopia is not in Africa, then 9 is not a prime number.
Example 1.4.5 State the converse, inverse and contrapositive of the following conditional statements:
a) If it rains, then the match will be cancelled. b) If the surface area decreases, then the pressure increases.
Solution: a) Let : It rains. : The match will be cancelled. The symbolic form of the given statement is
Converse:
, i.e., If the match is cancelled, then it rains. Inverse:
, i.e., If it does not rain, then the match will not
be cancelled. Contra positive:
, i.e., If the match is not cancelled, then it does not rain.
b) Let :The surface area decreases. : The pressure increases. The symbolic form of the given statement is
Converse:
, i.e., If the pressure increases, then the surface area decreases. Inverse:
,i.e., If the surface area does not decrease,
then the pressure does not increase. Contrapositive:
If the pressure does not increase, then the surface area does not decrease.
Notes: a)The original statement and it‟s contrapositive are equivalent statements. b)The converse and the inverse are equivalent
statements. c)The original statement and its equivalent contra positive are not equivalent to the equivalent inverse and converse.
d)The inverse is the contra positive of the converse. e)The converse is the contrapositive of the inverse.
Some of the most important properties of the logical connectives
1. Commutative properties: a)
b)
2. Associative properties a)
b)
3. Distributive properties: a)
b)
4. De Morgan‟s Laws: a)
b)
5.Law of contrapositive:
6.a)
q b)
7.a)
b)
] [
] b) [
] [(
8.a) [
)
] 9.
5
Remark: We can use truth tables to prove the above properties.
[
] [(
Example 1.4.6 Prove that
Proof:
)]
[
]
Example 1.4.7 Prove that
[
]
] [
]
[
]
Proof:
) [
Exercise 1.4 In exercise 1-4, find the converse the inverse and the contra positive of each of the given conditional propositions:
1. If there is going to be a quiz, then I will come to class. 2. If it showers today, I will ski tomorrow.
3. If a dog is barking, then it will not bite. 4. If a quadrilateral is a rectangle, then it has two pairs of parallel sides.
In exercise 5-13, assuming that
and are propositions, determine whether each of the following pair of compound
propositions are equivalent or not.
5.
6.
7.
8.
,9.
[
]
10.
11.
12.
, 13.
1.5 Tautology and Contradiction
Introduction:-In this section, we will determine the truth value of a given compound proposition. If it is always true, we call it a
tautology and if it is always false, we call it a contradiction. We will also see the properties of tautology and contradiction and
statements which are neither of the two.
Objectives At the end of this section you will be able to:
Define a tautology, a contradiction and a congruency.
Identify a compound proposition which is neither a tautology nor a contradiction.
Determine whether a given compound proposition is tautology, contradiction or neither.
Definition 1.5.1(Tautology):- A compound proposition is said to be a tautology if and only if it attains a truth value T for every
possible combination of assignments of the truth values for the component propositions.
Example 1.5.1 Show that
where is any proposition is a tautology. Solution:
T
T
T
F
F
T
In the above truth table all the entries in the last column are T. Hence
is a tautology.
Example 1.5.2 Show that
is a tautology.
Solution: Let us make a truth table and study the situation.
q
T
T
T
T
T
T
F
F
F
T
F
F
F
F
T
F
F
T
T
T
In the above truth table, all the entries in the last column are T. Hence
is a tautology.
Definition 1.5.2 (Contradiction) A compound proposition is said to be a contradiction if and only if it attains a truth value F for
every possible combination of assignments of the truth values for the component propositions.
Example 1.5.3 Show that
is a contradiction. Solution:
T
F
F
F
T
F
In the above truth table, all the entries in the last column are F. Hence
Example 1.5.4 Show that
is a contradiction.
Solution:
T
T
F
T
F
T
F
T
F
F
T
F
is a contradiction.
T
F
T
F
F
F
F
F
T
F
T
F
In the above truth table, all the entries in the last column are F. Hence
is a contradiction.
Definition 1.4.3 A compound proposition which is neither a tautology nor a contradiction is called a contingency.
6
Example 1.5.5 Show that
is a contingency. Solution:
T
T
T
F
F
T
F
F
F
T
F
T
F
T
T
F
F
F
T
T
In the above truth table, the entries in the last column are combinations of T and F. Hence
is a contingency.
Note: The negation of a tautology is a contradiction. Conversely, the negation of a contradiction is a tautology.
Exercise 1.5
Decide which of the following compound propositions are tautologies, which are contradictions, and which are contingencies.
]
1.
2.
3. [
4.
5. (
6.
)
(
)
[
] 8.
7.
9.
10.
1.6 Predicate Logic
Introduction:-A predicate is a declarative sentence whose true /false value depends on one or more variables.
The statement “ is greater than has two parts:
The subject: is the subject of the statement
The predicate: ” is greater than “ (a property that the subject can have) .
We denote the statement “ is greater than 7” by
where is the predicate “is greater than 7” and is the variable. The
statement
is called the value of propositional function at Assign a value say to . So ( ) becomes a false
proposition.
is the statement “ is greater than ” and so,
is false.
is the statement “ is greater than ”and so,
is true. (Ethiopia) is the statement “Ethiopia is greater than 7”. Some people might refuse to pass judgment on the ground
that it is nonsensical, because the predicate” greater than 7” applies only to numbers. However we take it that any predicate can
be attributed to any individual. Hence “Ethiopia is greater than 7” is perfectly a good proposition, which is false.
Objectives:- At the end of this section you will be able to:
Define a predicate.
Define an open proposition.
Definition 1.6.1 (Predicate) A predicate is a property that a variable or a finite collection of variables can have. A predicate
becomes a proposition when specific values are assigned to the variables.
is called a predicate of variables or
arguments.
Example 1.6.1 Consider the following propositions: 1.Kebede is a “whole number”. 2.Bishoftu is a “white cow”. 3. 3 is “a square
root of 9”. Propositions (1) and (2) are false. Proposition (3) is true.
Definition1.6.2 (Open Proposition)
A sentence that contains one or more variable (s) and becomes a proposition when individual or individuals or entity (ies) is /are
substituted for the variable (s) is called an open proposition.
Examples 1.6.2 The following are open propositions: a) is the day before Monday. b) is the father of y. c) He is a teacher.
Notation: An open proposition such as:
is the day before Monday.” is symbolized by writing
where the letter (usually in capital letters) stands for the property
being “the day before Monday”.
Similarly
may be used to symbolize the open proposition “ is the father of ”.
The property denoted by being “ is the father of”.
Note: If an open proposition is symbolized by
and the property
is not specified, then it may be read “ satisfies the property ”
Definition 1.6.3 The domain or universe for a predicate variable is the set of values that may be assigned to the variable.
Definition 1.6.4 If
is a predicate and has domain , the truth set of
is the set of all elements of such that
is
{
}.
true, i.e.,
{
}
} Predicate
Examples 1.6.3 Let
The truth set is {
is odd
Proposition
is odd is true, etc.
Examples 1.6.4 Predicate
is greater than
Proposition:
is greater than 4 is false.
Examples 1.6.5 Predicate:
is the capital city of . Proposition: (Nairobi, Kenya): Nairobi is the capital city of
Kenya is true.
Note: If we have open propositions
and
, we can form compound open propositions by using connectives:
1.
logical negation 2.
logical conjunction 3.
logical disjunction
4.
logical implication 5.
logical equivalence.
7
If we want to construct more complicated once, we have to simply follow the same method as we used in the case of the propositions.
Example 1.6.6 Let
is greater than .
is an even number. Determine which of the following are true and which are false:
[
] e)
[
] Solution: Exercise
a.
b)
c)
d)
Definition1.6.5 Two open propositions involving the same variables are said to be equivalent if and only if they have the same
truth value whenever the same individuals are substituted for the variables in both open propositions.
{
} Is
| |
Example 1.6.7 Let
,
,
| |
| |
Solution:
,
,
| |
, Hence,
Definition 1.6.6 Let
be the universal set. An open proposition
is a tautology if and only if
is always true for all values of
Example 1.5.8 Which of the following are tautologies?
{
} b)
a)
is divisible by
Solution: a) Tautology as ( ), ( ), ( ) and ( ) are all true. b) Not a tautology as for example, (1) is false.
Exercise 1.6 1. Let
is odd.
is even.
is prime. Determine which of the following are true and which are false:
]
]
[
]
a.
b. [
c.
Q(1) d. [
e.
|
|
2. If
, which of the following pairs of open propositions are equivalent? a.
b.
c.
{
}
3. Which of the following are tautologies? a.
is divisible by ;
b.
c.
where
1.7 Quantified Propositions
Introduction:- There are two ways of changing an open proposition to a proposition without substituting individuals for the variables. This
is done by attaching one or both of the two symbols, known as quantifiers, before the open proposition. In this section we will see these two
symbols and they are: i) called the Existential Quantifier. ii) , called the Universal Quantifier.
Objectives: At the end of this section you will be able to:
Identify quantifiers.
Apply quantifiers on an open proposition to make it a proposition.
Use quantifiers on compound open propositions.
Find the truth value of quantified open propositions.
The Existential Quantifier: Let
be an open proposition. Now we need to look for the existence of an that satisfies
property .
is read as “There exists an individual that satisfies property ”
Example 1.7.1 Let
is a true proposition.
Example 1.7.2
is a false proposition.
The Universal Quantifier: Let
be an open proposition. Now we need to look whether every individual satisfies property
or there exists some individual that does not satisfy the property .
is read as “ all individuals satisfy the property ”
Example 1.7.3 Let
is a false proposition.
Example 1.7.4 Let
is a true proposition.
{
} then determine the truth value of each of the following:
Example 1.7.5 If
a)
such that
. b)
c)
such that is odd.
Solution: a) Since
satisfies
the give statement is true. Hence, its truth value is T.
b) Since
the given statement is false. Hence its truth value is F.
c) Since
satisfies the given statement, the given statement is true. Hence its truth value is T.
Example 1.7.6 If
then what is the truth value of
for each of the following domains:
{
}
[
] Solution: Exercise.
a.
b)
c)
Note: For any open proposition
the two quantifiers have the following relations:
Example 1.7.7 Let
such that
. Then, a.
for each
means there is an such that
b)
means for each
,
.
means there is no
means for some
Notes: i) We may use one or more of the propositional connectives to combine propositions containing quantifiers.
ii) We may also use quantifiers on compound open propositions. iii) The two quantifiers may be used in combination when two
or more variables are involved.
1.8 Quantifiers occurring in combination
Introduction: In this section we will see quantifies occurring in combination such as
8
and others on an open proposition
.
Objectives:-At the end of this section you will be able to:
Identity quantifiers occurring in combination.
Compare two quantified open propositions.
Find the truth value of quantified propositions.
Apply quantifiers on an open proposition of two variables.
Let
be an open proposition. Then, i)
For every and every
satisfies property .
ii)
There exists some and such that
satisfies property .
iii)
For all there exists some
satisfies property .
iv)
There exists some such that property is satisfied by
for every
Example 1.8.1 Let
Then, 1.
For every
is false.
2.
There exists some
such that
is true.
3.
For all there exists some such that
is true.
4.
There exists some such that
for every is false.
Example 1.8.2 Compare these two sentences :
b)
Solution a) The first is valid because given any we can set equal to the cube root of . (That is every real number has a
cube root). So as varies also varies, that is, depends up on . The second is valid because there is a single fixed value
which makes the equation
valid, regardless of the value of
Example 1.8.3 Let
The set of integers.
a)
is true when
is true. b)
is false. Since there is an integer
such that for every
is false as no fixed value of will make this true for all in the universe.
c)
is true since for every which is an integer, there is an integer such that
.
Then,
will always be an integer. d)
is false since for every integer and for every integer
is false, for if
we get
Example1.8.4: Let Qx, y, z be the statement " x y z" .What are the truth values of the following statements?
i) xyz Qx, y, z
ii) zxy Qx, y, z
Solution: Suppose x and y are assigned values. Then, there exists a real number z such that x y z . Consequently, the
quantification, i) xyz Qx, y, z which is the statement ”For all real numbers x and for all real numbers y , there exists a
real number z such that x y z ” is true.
ii) The order of the quantification here is important. The quantification zxy Qx, y, z is the statement ”There is a real
number z such that for all real numbers x and for all real numbers y , it is true that x y z ”. This is false, since there is no
value of z that satisfies the equation x y z for all values of x and y .
Exercise 1.8 1. Determine the truth value of each of the following quantified propositions: a)
b)
c)
d)
e)
(√
) f)
g)
h)
i)
j)
[
]
k)
2. Let
the set of positive integers.
is prime,
is even,
is odd. Then find the truth value of each of
[
] b.
[
]
[
] d.
[
]
the following: a.
3. Let
is a child of . Symbolize each of the following by using the appropriate quantifiers and assign a truth value to
each. a. Somebody is a child of some body. b. Somebody is a child of everybody. c. Everybody is a child of somebody.
d. Everybody is a child of everybody.
{
}. Then, find the truth value of a.
4. Let
is odd ) b.
[
] d.
[
] e.
c.
5. Find the negation and the truth value of the negation of each of the following. The universal set for and y is the set of real
numbers. a.
b.
c.
d.
e.
f.
9
1.9 Translation of ordinary statements containing “all” and “some” into symbolic form
Introduction:- In this section we will discuss how to translate an ordinary statements to symbolic form and vise versa.
Objectives:-At the end of this section you will be able to:
Translate ordinary statement to symbolic form.
Translate the statements given in symbolic form to ordinary statements.
Example 1.9.1 Translate each of the following statements into symbolic form:
a) Every natural number is a rational number. b) Some odd numbers are even.
Solution: a) Let
is a natural number.
is a rational number. Then the symbolic form is
b) Let
is odd.
is even. Then symbolic form is
Example 1.9.2 Translate the following into symbolic form:
a) Everybody loves somebody.
b) There is somebody who is loved by everybody
Solution: Let
loves . a)
b)
Example 1.9.3 Let
is beautiful.
is intelligent.
is ugly. Then translate the following into symbolic form:
a) Everybody is beautiful. b) Everyone is intelligent. c) There are intelligent people. d) There is a person who is intelligent.
Solution: a)
b)
c)
Example 1.9.4 Let
goes to hell.
goes to heaven. Then, translate the following into English form:
a.
b.
c.
d.
e.
Solution: a) If somebody goes to hell, then everybody will go to heaven. b) Either everybody will go to heaven or everybody
will go to hell. c) Somebody will go to heaven and somebody will go to hell. d) Everybody will go to hell if and only if
everybody will go to heaven.
e) If somebody goes to hell, then not everybody goes to heaven.
1.10 Arguments and Validity
In this section we discuss about how to apply the concept of mathematical logic to draw a conclusion from a given chain of
arguments that may involve propositional connectives.
Example 1.10.1 What can be concluded about the truth value of , assuming that the truth values of both
and
are true?
Solution: If the truth value of
is T, hence the truth value of is F. Now the truth value of and
are F and T, respectively.
Hence we can conclude from the rule of implication that the truth value of is F. Therefore, the truth value of is F.
Definition 1.10.1 An argument is an assertion that a given finite set of statements
called premises yield
another statement called the conclusion. Such a logical deduction is denoted by
or
.
Example 1.10.2 What can we conclude from the following argument:
He is not reasonable and if he is successful, then he is reasonable.
Solution: Let
He is reasonable ,
he is successful. Now,
are the premises.
Hence, both
have truth value T. Thus we can deduce from the rule of implication that both and have truth
value F. Therefore we can deduce that he is not successful.
Definition 1.10.2 An argument of the form
is said to be valid if is true whenever all the premises
are true, otherwise it is said to be invalid.
Example 1.10.3 Investigate the validity of the following argument form:
Solution: First construct a truth table for the statements appearing in the argument form.
T
T
F
F
T
F
T
F
F
F
T
T
F
T
F
T
T
T
F
T
10
Notice that the premises
are true simultaneously in row 1 only. Since in this case
is valid.
Remark: An argument form with premises
and conclusion is valid if and only if
is a tautology You can check the above example using this remark.
is also true, the argument
[
T
T
F
F
T
F
T
F
F
F
T
T
F
T
F
T
T
T
F
T
T
F
F
F
]
T
T
T
T
]
Now, [
is a tautology Hence the argument is valid.
Example 1.10.4 Are the following arguments valid? a)
b)
Solution: Exercise.
Example 1.10.5 Determine whether the following argument is valid or not. If he studies Law, he will get a good job.
If he gets a good job, he will buy a good car. He did not buy a good car. Therefore he did not study Law.
Solution: Let
He studies Law.
He gets a good job.
He will buy a good car.
This argument can be expressed symbolically as follows:
Now,
Premises
Conclusion
and
Premises
Conclusion
Therefore the argument is valid.
1.11 Rules of Inference
There are some basic rules of inferences for checking the validity of a given chain of arguments. These rules are presented
below. Rule 1: Modes Ponens
Example 1.11.1 Let
It is Sunday.
I will go to gymnasium. Premises: It is Sunday. If it is Sunday, then I will go to
gymnasium. Conclusion: I will go to gymnasium.
Rule 2: Modes Tollens
Example 1.11.2 Let
Demand is high.
Price is low. Premises: Price is high. If demand is high, then price is low.
Conclusion: Demand is low.
Rule 3: Principle of Syllogism
Example 1.11.3 Let
The sky is dark.
It rains.
It is cold. Premises: If the sky is dark, then it rains. If it rains,
then it is cold. Conclusion: If the sky is dark, then it is cold.
Rule 4: Principle of Adjunction
b)
Example 1.11.4 Let
Abebe is rich.
Abebe is happy. Premises: Abebe is rich. Abebe is happy.
Conclusion: (a) Abebe is both rich and happy. (b) Abebe is either rich or happy.
Rule 5: Principle of Detachment
Example 1.11.5 Let
The sky is dark.
It rains. Premises: The sky is dark and it rains.
Conclusion: i) The sky is dark. ii)It rains.
Rule 6: Modes Tollendo Ponens
Example 1.11.6 Let
It rains.
Crops are good. Premises: It does not rain. Either it rains or crops are good.
Conclusion: Crops are good.
Rule 7: Modes Ponendo Tollens
Example 1.11.7 Let
I wake up early.
It is Sunday. Premises: Either I did not wake up early or it is not Sunday.
As
, Conclusion: It is not Sunday.
Rule 8: Principle of Equivalence
11
Example 1.11.8 Let P It works.
Use it. Premises: If it works, then use it. It works. Conclusion: Use it.
Rule 9: Principle of Substitution
Example 1.11.9 Let
It rains.
The sky is dark. Premises: It rains. Conclusion: If the sky is dark, then it rains.
Example 1.11.10 Show that the premises “ If you send me an e-mail message, then I will finish writing the program“, “ If you
do not send me an e-mail message, then I will go to sleep early” and “If I go to sleep early, then I will wake up feeling
refreshed” lead to the conclusion “ If I do not finish writing the program, then I will wake up feeling refreshed.”
Solution: Let : You send me an e-mail message. : I will finish writing the program . : I will go to sleep early.
: I will wake up feeling refreshed. Then the premises are
The desired conclusion is
We
need to give a valid argument with premises
conclusion
This argument form shows
that the premises lead to the desired conclusion.
Step
Reason
1.
------------------------- Premise
2.
-------------------- Contrapositive of (1)
3.
----------------------- Premise
4.
---------------------- Hypothetical Syllogism using (2) and (3)
5.
------------------------- Premise
6.
---------------------- Hypothetical Syllogism using (4) and (5)
Exercises 1.11 In exercises 1-3, use logical equivalences to rewrite the given premises more simply.
1.It is not true that both I am Julius Caesar and you are fool.
2. Either it‟s raining and I have forgotten my umbrella, or it‟s raining and I have forgotten my hat.
3. I forgot my hat or my umbrella, and I forgot my hat or my glasses.
In exercises 4-13, determine whether the following arguments are valid or not.
1. Lions are dangerous animals. I saw a lion. I saw a dangerous animal.
2. If it rains, I will stay at home. I do not stay at home. Therefore it rains
3.If he is honest, then he will pay his debts. He is honest. Therefore he paid his debts
4. If an animal has wings, then it can fly. Cats cannot fly. Therefore cats have wings.
5. If he studies, he will pass. If he passes he will be awarded. Therefore if he studies, he will be awarded.
6. All red meats contains cholesterol. No expensive food contains cholesterol. Therefore red meat is not expensive.
7. All gold jewelries are expensive. No earrings are expensive. Therefore earrings are not made of gold.
8. All my friends are teachers. John is my friend. None of my neighbors is a teacher. Therefore John is not my neighbor.
9. Now York is a big city. Zeleke lives in a city with trolley cars. No big city has trolley cars. Therefore Zeleke does not live
in New York.
10. All wool clothes are warm. None of my clothes is warm. Kebede only sells wool clothes. Therefore,
i) None of my clothes is made of wool. ii) All of Kebede‟s clothes are warm.
12
1.12 Mathematical Proofs
Methods of proofs: 1. Trivial proofs 2.Vacuous proofs 3. Direct proofs 4. Indirect proofs or proof by contradiction
5. Proof by contrapositive 6. Proof by cases 7. Proof by mathematical induction
Example 1.12.1 Prove the proposition: If there are 400 students enrolled in this course this semester, then 62 = 36.
Proof :The assertion is trivially true since the conclusion is true, independent of the hypothesis(which may or may not be
true depending on the enrollment)
Example 1.12.2 Prove the statement: If is a prime number, then
Proof :The hypothesis is false, therefore the statement is vacuously true (even though the conclusion is also false).
Example 1.12.3 Prove the statement: If is odd ,then
is odd.
Proof : Suppose is odd. Then,
for some
by definition of an odd number. Thus,
=
+ 4a+1 =
+1 So,
where
Thus,
.
Therefore, is odd by definition of an odd number .
Note : The above proof is a direct proof.
Example 1.12.4 Prove that √ is irrational.
Proof : Suppose √ = ,
,that is, it is rational. We may assume that
is reduced to its lowest terms.
Then, 1.
7.
2.
8.
3.
9. As in
terms, a contradiction! Thus, √
is even 4.
,
5.
is even Thus both
for some integral . 6. By
and
are even, and hence
is not reduced to lowest
is irrational.
Example 1.12.5 Use a direct proof to show that the sum of two odd integers is even.
Proof: Exercise.
Example 1.12.6 Prove that if
are real numbers, then
max
. (Hint: use a proof by cases).
Proof: Exersise.
Example 1.12.7 Prove or disprove that there is a rational numbers and an irrational number
Proof: Exercise
Example 1.12.8 For every integer
such that
is irrational.
prove that
Proof: We will prove this by mathematical induction.
1. If
, the statement is
, which is true.
2. Now assume the statement is true for some integer
that is,
assume
We will show that this implies the statement is true for
[
]
(
)
[
]
Thus, the statement is true for
. This completes the proof by mathematical induction.
Mistakes in Proofs
There are many common errors made in constructing mathematical proofs. We will briefly describe some of these here.
Among the most common errors are mistakes in arithmetic and basic algebra. Even professional mathematicians make such
errors, especially when working with complicated formulae. Whenever you use such computations you should check them as
carefully as possible. Each step of mathematical proof needs to be correct and the conclusion needs to follow logically from
the steps that precede it. Many mistakes result from the introduction of steps that do not logically follow from those that
precede it. This is illustrated in the following examples.
13
Example 1.11.12: What is wrong with this famous supposed „‟proof‟‟ that 1 2 ?
„’Proof’’: We use these steps, where a and b are two equal positive
integers.
STEP
REASON
1. a b
Given
2. a 2 ab
3. a b ab b
2
2
Multiply both sides of (1) by a
2
4. a ba b ba b
Subtract b 2 from both sides (2)
Factorize both sides of (3)
5. a b b
Divide both sides of (4) by a b
6. 2b b
Replacing a by b in (5) because a b
7. 2 1
Divide both sides of (6) by b
Solution: Every step is valid except for one, step 5 where we divided both sides
by a b . The error is that a b equals zero; division of both sides of
an equation by by the same quantity is valid as long as this quantity is
not zero.
Example 1.11.13: What is wrong with this‟‟proof‟‟?
„‟Theorem‟‟: If n 2 is positive, then n is positive.
„‟Proof‟‟: Suppose n 2 is positive. Because the conditional statement
‟‟If n is positive, then n 2 is positive‟‟ is true, we conclude that n is
positive.
Solution: Let Pn be „‟ n is positive‟‟ and Qn be ‟‟ n 2 is positive‟‟. The our
hypothesis is Qn . The statement „‟If n is positive, then n 2 is positive‟‟
is the statement n Pn Qn . From the hypothesis Qn and the
statement n Pn Qn we cannot conclude Pn , because we are not
using a valid rule of inference. Instead, this is an example of the fallacy of
affirming the conclusion. A counterexample is supplied by n 1 for
which n 2 1 is positive, but n is negative.
14
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )