Professional Documents
Culture Documents
01 Logic 2020-2021
01 Logic 2020-2021
1
GET READY !
For each of these statements, list the students for which the statement is true:
2
Logic refers to the validity of given statements (other name as propositions). In mathematics we
use many of these in proofs, so it is necessary to be able to decide when propositions are true or
false.
A proposition is a statement that makes some declaration and is either true (T) or false (F). A
proposition cannot be both true and false at the same time.
PROPOSITIONS
Comments or opinions that are subjective, for example, ‘Green is a nice color’ are also not
propositions since they are not definitely true or false.
Propositions may be indeterminate. For example, ‘your father is 177 cm tall’ would not have the
same answer (true or false) for all people.
Exercise 1 ________________________________________________________________
Which of the following statements are propositions? If they are propositions, are they true, false,
or indeterminate?
a) 20 4 = 80
b) 25 . 8 = 200
c) Where is my pen?
3
Exercise 2 ___________________________________________________________
Which of the following statements are propositions? If they are propositions, are they true, false
or indeterminate?
Statement Validity
12 7
İstanbul is in the southern hemisphere.
37 is a prime number.
A square has two diagonals.
What is your name?
Put your bicycle away after using it.
(2 + 3) × 5 25
x = 6 is the solution of the equation 2x – 5 = 7
Joan sings loudly.
The longest side in a right triangle is called hypotenuse.
The negation of a proposition p is “not p”, and is written as p. The truth
value of p is the opposite of the truth value of p.
Proposition: Negation:
p: The capital of Turkey is Ankara. p :The capital of Turkey is not Ankara.
4
r: I will visit my relatives tomorrow. r: I will not visit my relatives tomorrow.
Exercise 3 _________________________________________________________________
Write down the negation for each of the following propositions. Use the table:
a) p: √5 is an irrational number.
p:
b) r: 7 is a rational number.
r:
c) q: 23 – 14 = 12
q:
m:
e) n: x < 7
n:
5
f) s: x 4
s:
g) t: a > 9
t:
h) v: 10
v:
EQUIVALENT PROPOSITIONS
If the truth values of any two propositions p and q are the same they are
called equivalent propositions denoted by the symbol p ≡ q.
Example _________________________________________________________________
COMPOUND PROPOSITIONS
CONJUNCTION
When two propositions are joined using the word AND, the new proposition is
the conjunction of the original propositions.
6
We see that p q is only true if Ali had both soup and a pie for lunch, which means that both p
and q are true.
Exercise 4 _________________________________________________________________
Exercise 5 _________________________________________________________________
Decide which of the following are propositions and which are true (T), which are false (F).
7
A triangle has three sides or a square has five sides.
23 – 10 < 7 and 60 10 20
52 = 35 and √𝟒𝟗 = 𝟖
HOMEWORK ____________________________________________________________
Decide which of the following compound propositions are true and which are false.
Statement Validity
a) A whale is a mammal and an eagle is a bird.
8
DISJUNCTION
When two propositions are joined by the word OR, the new proposition is the
disjunction of the original propositions.
Exercise 6 _________________________________________________________________
b) r: x is a multiple of 3, s: x is a multiple of 5.
9
Exercise 7 _________________________________________________________________
8 > 10 12 < 14
EXCLUSIVE DISJUNCTION
The exclusive disjunction is true when only one of the propositions is true. The
exclusive disjunction of p and q is written p q.
10
Exercise 8 _________________________________________________________________
Write the exclusive disjunction p q in words for the following pairs of propositions:
a) p: Meryn will visit Japan next year, q: Meryn will visit Singapore next year.
b) p: Ann will invite Kate to her party, q: Ann will invite Tracy to her party.
Exercise 9 _________________________________________________________________
Exercise 10 _________________________________________________________________
Consider r: Kelly is a good driver, and s: Kelly has a good car. Write in symbolic form:
a) Kelly is not a good driver ………………….
b) Kelly is a good driver and has a good car ………………….
c) Kelly does not have a good car and is not a good driver ………………….
d) Kelly has a good car or Kelly is a good driver ………………….
Exercise 11 _________________________________________________________________
11
Exercise 12 _________________________________________________________________
a) p b) p
c) q u d) p w
e) r s f) r s
g) r s h) t v
Example ___________________________________________________________________
12
Suppose, we don’t know whether p and q are true and want to explore all the possible
combinations of p and q being true or false. We then must use these truth tables:
There are 2 x 2 = 4 possible situations (4 rows in the truth table) when
there are 2 different truth values for each statement.
Exercise 13 _________________________________________________________________
p ∨ q:
13
2) p: I will study math today.
q: I will study chemistry today.
Construct a truth table showing p ∧ q and p ∨ q. (Note that the table must include all 4
combination since we don’t know the truth value of both propositions.)
A compound proposition is a tautology if all the values in its truth table column are
true (all values in the column are 1).
A compound proposition is a logical contradiction if all the values in its truth table
column are false (all values in the column are 0).
Exercise 14 _________________________________________________________________
14
b) Show that p p is a contradiction.
LOGICAL EQUIVALENCE
Two propositions are logically equivalent if they have the same truth table column.
Logical equivalence is denoted by the equivalency symbol “”.
Example _________________________________________________________________
Show that (p q) and p q are logically equivalent. (De Morgan’s Law)
After comparing their truth table columns, we can conclude that: ………….. …………..
Example _________________________________________________________________
The same logical equivalency can be demonstrated by using the same truth value table for both
propositions.
15
This means that (p ∧ q) and p ∨ q are equivalent statements:
Exercise 15 _________________________________________________________________
a) Complete the following truth table to show that (p ∨ q) p ∧ q (De Morgan’s Law)
b) p: I have a cat.
q: I live in a İstanbul.
Translate each of the highlighted statements to show equivalence.
HOMEWORK ______________________________________________________________
16
2) c: It never rains in Trabzon. d: The sun shines in Antalya.
b) Complete the following truth table to decide which of the propositions in (a) are true.
3) Complete this truth table using all the possible combinations of p and q
A BRIEF SUMMARY: The truth tables for negation, conjunction, disjunction, and exclusive
disjunction can be summarised in one table.
17
HOMEWORK ______________________________________________________________
1) Construct truth tables for the following propositions. And then determine whether the
proposition is a tautology, a logical contradiction, or neither.
a) p q
b) (p q) p
c) p (p q)
a) (p) p b) p p p
18
c) p (p q) p q d) p (p q) p q
e) (p q) p q f) (q p) q (p q)
g) (p′ ∨ q) ∧ p ≡ q ∧ p
19
TRUTH TABLES FOR THREE PROPOSITIONS
When three propositions are under consideration, we usually denote them p, q
and r.
The possible combinations of the truth values for p, q and r are listed
systematically in the table alongside.
Note that; there must be 2n number of rows in the truth table when the
number of propositions is “n”.
If there were 4 propositions, then there would be 16 rows in the truth table.
INVESTIGATION
_____________________________________________________________
Complete the truth tables showing outcomes for all possible combinations (2number of propositions).
20
Are there any similarities between these results and those in other branches of
mathematics? Consider, for example, the following statements:
Associative property:
(5 × 3) × 4 = 5 × (3 × 4) (5 + 3) + 4 = 5 + (3 + 4)
(p q) r =
(p q) r =
Distribution property:
5.(x + y) = 5.x + 5.y 5.(x – y) = 5.x – 5.y
p (q r) =
p (q r) =
21
IMPLICATION AND EQUIVALENCE
If two propositions can be linked with “If ...., then ....”, then we have an implication.
The implicative statement “if p then q” is written p q and reads “p implies q”.
IMPLICATION
An example of a conditional statement would be:
Suppose p: I pass my exams.
q: My father will buy me a new watch.
The original statement: If I pass my exams then my father will buy me a new watch.
antecedent consequent
22
The truth table for a conditional statement is:
Exercise 16 _________________________________________________________________
Exercise 17 _________________________________________________________________
23
c) Complete the truth table below for this conditional statement.
Exercise 18 _________________________________________________________________
24
Exercise 19 _________________________________________________________________
Find the truth value of the propositions by using the given logical equivalency:
a) p ∧ (p′ ∨ q) ≡ 1
b) Given 𝑝 ∨ (q ⇒ r) ≡ 0
EQUIVALENCE
If two propositions are linked with “.... if and only if ....”, then we have an equivalence.
The equivalence “p if and only if q” is written “p q”.
25
We have p q: If I pass the exam, then the exam is easy.
q p: If the exam is easy, then I will pass it.
p q: I will pass the exam if and only if the exam is easy.
p q (p q) (q p)
The equivalence p q is true when p and q have the same truth value.
Example _________________________________________________________________
b) p: 2x +3 = 10 is an expression q: 2x +3 is an expression
26
Exercise 20 _________________________________________________________________
a) p q
b) (p q) p
Exercise 21 _________________________________________________________________
b) (𝑝 ⇔ 𝑞)′ ≡ 𝑝′ ⇔ 𝑞
27
CONVERSE, INVERSE AND CONTRAPOSITIVE
THE CONVERSE
Exercise 22 _________________________________________________________________
p: All sides of the triangle are equal.
q: The triangle is equilateral.
a) Write the statement p q in words.
Equilateral Triangle
THE INVERSE
Exercise 23 _________________________________________________________________
28
THE CONTRAPOSITIVE
Exercise 24 _________________________________________________________________
SUMMARY
29
Complete the truth table to examine the equivalency relationship above.
p q p q pq qp p q q p
Mathematical Modeling
Bank Robbery
A bank was robbed by unidentified people when the electricity went off. Policemen came to scene of
crime in time but didn’t catch the thieves. After investigation; they put Ahmet K.(35), Burak M.(24)
and Cem T.(34) under surveillance. The prosecutor makes three inferences about the robbery:
Help the prosecutor to find a way to decide who the guilty is.
(Hint: You may use truth value of guilty as 1, the truth value of not guilty as 0.)
30
MATHEMATICAL QUANTIFIERS (, )
OPEN PROPOSITION
An expression which contains at least one variable and which for each values of the
variable is either true or false, is called open proposition.
If an open proposition is true for a given number, then this number has a truth value 1.
If an open proposition is false for a given number, then this number has a truth value 0.
Exercise 25 _________________________________________________________________
p(x): x2 < x is an open proposition. Examine the proposition for -1 and 1/2. Discuss the
truth values of p(x) for these numbers.
Solution:
For x = -1 (-1)2 < (-1) 1 < -1 which is a false statement.
Then the proposition has truth value 0 for the number -1. p( -1 ) = 0
1
For x = 2 ………
In our daily conversations, we use some words such as some, all, every, each, at least
etc. These are named as quantifiers because each indicates quantity.
Exercise 26 _________________________________________________________________
Write the statement in words:
a) x R, x–1 < 0
b) x Z, x2 + 3 > 0
Exercise 27 _________________________________________________________________
NEGATION OF QUANTIFIERS
Exercise 28 _________________________________________________________________
Negate each of the followings given below.
a) xZ, 2x – 3 < 5
b) x, y ∈ N, x.y = 6
32
AXIOMS AND THEOREMS
To determine the truth values of some propositions, we need to know some definitions of terms,
need to assume the truth of some propositions at the beginning. Those propositions which are
assumed to be true are called “axiom” and “postulate”. We prove some other propositions using
axioms. Those propositions which are proved are called “theorem”.
Example _________________________________________________________________
“Only one line passes through certain two points on a plane” is an axiom
“If two lines are perpendicular, then they form congruent adjacent angles” is a theorem.
Here, the first part of the theorem is known as “hypothesis” and the second part is known as
“assertion” which must be proved.
Exercise 29 _________________________________________________________________
33
HOMEWORK ______________________________________________________________
3. Express the following each sentence in p, q, r,..etc and identify its truth value.
b) 5 is an odd number or “ 3 2 4 2 5 2 ”
p q
34
6. Construct a truth table for the given proposition p p q
35
10. If (p ∨ 𝑞) r q 0 then find the truth value of ( p r ) q
36
14. If p ∨ ( p' ⇒ q ) ≡ 0 then find the truth value of (𝑞 ′ ⇔ 𝑝)
17. Write the statements and find the truth value of followings:
p(x): ∃𝑥 ∈ 𝑅, 𝑥 2 + 𝑥 − 2 = 0
q(x): ∀𝑥 ∈ 𝑍, 𝑥 + 3 > 0
37