Introduction To Mathematical Logic
Introduction To Mathematical Logic
Introduction To Mathematical Logic
Sections A, B, C, D
September 23, 2023
1 Propositional Calculus
1.1 Definition
Definition: A proposition is a declarative sentence (or statement) that can be true (T) or false
(F) but not both at the same time.
Examples
1
Definition: Disjunction of P and Q, denoted P ∨ Q, is a proposition which has the
following truth table:
P Q P ∨Q
T T T
T F T
F T T
F F F
P ∨ Q is read P or Q.
P ∧ Q is read P and Q.
P Q P =⇒ Q
T T T
T F F
F T T
F F T
Remark
1. P =⇒ Q is read "if P then Q ".
2. P is called assumption ; Q is called conclusion.
Definition:
2
1.2.5 Logical equivalence
P Q P ⇐⇒ Q
T T T
T F F
F T F
F F T
1.3 Tautology
Definition: Tautology is a compound proposition which is true for every truth value of the
individual propositions.
1. (P ⇐⇒ Q) ⇐⇒ ((P =⇒ Q) ∧ (Q =⇒ P ))
Denote this proposition α; then construct its truth table.
P Q P =⇒ Q Q =⇒ P (P =⇒ Q) ∧ (Q =⇒ P ) P ⇐⇒ Q α
T T T T T T T
T F F T F F T
F T T F F F T
F F T T T T T
2. (P =⇒ Q) ⇐⇒ (Q =⇒ P )
Denote this proposition β; construct its truth table.
P Q P =⇒ Q Q =⇒ P β
T T T T T
T F F F T
F T T T T
F F T T T
1.4 Exercice
Prove that these propositions are tautologies:
1. P ⇐⇒ P
3
2. (P =⇒ Q) ⇐⇒ (Q =⇒ P )
3. (P =⇒ Q) ⇐⇒ P ∨Q .
4. P =⇒ Q ⇐⇒ P ∧Q .
5. P ∧ Q ⇐⇒ P ∨Q . De Morgan’s laws
6. P ∨ Q ⇐⇒ P ∧Q . De Morgan’s laws
7. (P ⇐⇒ Q) ⇐⇒ ((P =⇒ Q) ∧ (Q =⇒ P ))
8. (P ∧ Q) ⇐⇒ (Q ∧ P ), ∧ is commutative
9. (P ∨ Q) ⇐⇒ (Q ∨ P ) , ∨ is commutative
Remark
1. Warning : ≡ is not a connective.
2. We can see that P ≡ Q if and only if P ⇐⇒ Q is a tautology.
2 Quantified expression
2.1 Introduction to Predicate calculus
Definition: In literature, a predicate is the part of sentence that tells us something about
the subject. It contains the verb.
Exemple
1. The lighthouse was damaged in the storm.
"was damaged in the storm" is the prédicat".
2. Birds are chirping outside the windows .
"are chirping outside the windows" is the predicat.
4
Examples
2.2 Quantifiers
2.2.1 Universal quantifier
The universal quantifier is denoted ∀ , it is read "for all" or "for every" or "for each" .
Let E be a non empty set, and a predicate P (x)
∀x ∈ D P (x)
is a proposition which is true if and only if P (x) is true for all values of x in E.
∀x ∈ D P (x) means every x in E has property P .
Example
D=R.
Remark
1. (∀x ∈ D P (x)) is false if and only if we find a value of x in E that P (x) is false.
Existential quantifier is denoted ∃ , it is read "there exists" or "there is" or "for at least
one" .
Let E be a non empty set, and a predicate P (x)
∃x ∈ D P (x)
is a proposition which is true if and only if there is an x for which P (x) is true .
Example
5
1. D = R.
P (x) :" x > 0".
∃x ∈ R P (x) is true proposition.
2. E = N
Q(x, y) :" x divides y".
∃x ∈ N∗ ∀y ∈ N∗ Q(x, y) is a true proposition.
Remark
∃x ∈ D P (x) is false if and only if P (x) is false for every x in E.
1. ∀x ∈ R x2 + x + 1 > 0.
2. ∀x ∈ Q ∀y ∈ Q (x + y) ∈ Q.
assume P is false.
√
Exemple Prove that 2 is irrational.