Ch1 Introductiontomathematicallogic
Ch1 Introductiontomathematicallogic
Definition:
A proposition or an assertion is a statement that is true or false, but never both at the
same time.
Examples:
“3 is a divisor of 27” is a true proposition.
“− ” is a false proposition.
Remark:
A proposition can be simple (which contains a single statement) or compound which
is constructed from several simple propositions.
Examples:
“2 + 2 = 4 and 16 is the square of 4” ----> Compound proposition.
“The heating is off or it’s cold” ---> Compound proposition.
Notation:
We denote ('T','F') or ('1','0') to designate a proposition 'True' or 'False', respectively.
logical connectors.
are true.
Examples:
Let P = “ ” and Q = “lim ”:
Remark:
The notations '˄' and '˅' are similar to those of intersection and union (,) in set
theory. Indeed :
means that And .
means that Or .
of P . We say "non P " or " P bar" and we write " P ". If proposition P is
Remark:
The implication proposition P Q is equivalent to P Q .
Example:
“ xy 0 x 0 or y 0 ” is a true proposition.
All the previous definitions can be summarized in the following table called 'truth
table':
1 1 0 0 1 1 1 1
1 0 0 1 0 1 0 0
0 1 1 0 0 1 1 0
0 0 1 1 0 0 1 1
Properties:
1.
2.
3.
4. ( ) (contrapositive)
5. [ t ] (transitivity)
6. (association )
7.
8. (distribution)
I.2. Logical quantifiers:
a) Quantifier “For all”: it is the universal quantifier which means “for all”, “for
any”, “for each” and denoted “ ”.
Examples:
t true assertion which means that for any natural number
we have t .
false statement because a square cannot be negative. We
must write x , x 2 .
Negations of quantifiers:
The negation of the proposition “ ” is “ ”.
Example:
The negation of the proposition “ x ] ,1] : x 2 1 “ is: “ x ] ,1] : x 1 “.
1. Mathematically translate the proposition “if a and b are two natural numbers,
then there exists a multiple of a which is greater than b ”.
2. Give the negation of the proposition − .
3. Give the negation of the proposition “ t ”.
t t
4. Translate the statement “ ” into informal language.
5. Let P and Q be two propositions such that P is true and Q is false. Is
proposition “ P Q P ” true?
6. Using the truth table, prove that the following statement is true:
PQ PQ
Exercise 2:
Consider n a natural number and two real numbers. Write the contrapositives of
the following implications:
1. is prime or n is odd.
2. xy 0 x 0 and y 0 .
3. .
We use the proof by induction when we want to prove that a property of type
h is true. To show that h ” is true it is enough to:
Check that is true i.e. for n=0, the property is true.
Assume that is true for and show that t is true.
Example:
Show by induction that
t
.
Let's show that is true: We have:
t
for n =0, . So is true.
We have:
t t
t t t t ( because is supposed true )
t t t t t
= ,
Exercise 3:
t
Show that for every natural number n we have − .
It consists of assuming the opposite of the stated proposition and showing that we
then end up with a contradiction.
Example:
Let a, b 0 , show by contradiction that
a b
if then a b .
1 b 1 a
Remember that the negation of P Q is P Q . We then assume that
a b
and a b .
1 b 1 a
So we have t t tt t ttt
−t − −t
−t tt − −t
Since a b then a b 0 . So we can divide both sides of the equality by a b ,
hence
tt − .
Contradiction because a, b 0 hence a b 0 . Therefore, for any a, b 0 , if if
a b
then a b .
1 b 1 a
Exercise 4:
“If n is the square of a non-zero integer then 2n is not the square of any integer”.
n 2 (2k 1) 2 4k 2 4k 1 2(2k 2 2k ) 1
p , p 2 k 2 2 k : n 2 2 p 1
n 2 is odd.
Exercise 5:
a
“if a squared is not an integer multiple of 16, then is not an even integer”.
2
II.4. Reasoning by counter example:
Example:
Consider h − '' and show that it is false.
We just need to find a counter example. For example for x=1, x − , therefore
Exercise 6:
“For any real number x such that its square is positive, we have x itself is
positive”.