Predicate Logic
Predicate Logic
1.1. Introduction
Exemple. Every man has a brain; Socrate is a man; therefore Socrate has a
brain.
What is missing ?
Définition. Quantiers:
• For all
• For every
• There exists
• For at least one
• For each
• For any
• For some
1.1.2. Predicates:
Définition. Predicate : a statement that describes a property of a variable
As in propositional logic, we can build well formed formulas from predicates and
logic connectives.
1
2 1. PREDICATE LOGIC (SECTIONS 1.3, 1.4)
P (x): x is a man
Q(x): x has a brain
(∀x) P (x) → Q(x)
Exercice 1. Write a formula for the following sentence:
What is the truth value of the following ws for this interpretation:
?
Exercice 2. [ , Exercise 3 p. 41]
M is "Monday"; T is "Tuesday".
1.1.7. Validity.
Résumé 1.1.2. Where are we?
Définition. Argument : P1 ∧ P2 ∧ · · · ∧ Pk → Q
• In propositional logic, an argument is valid if it's a tautology.
I.e. if it's true whatever truth value are assigned to each basic propo-
sition.
• In predicate logic, an argument is valid if it's intrinsically true.
I.e. if it's true for ANY interpretation.
?
Exercice 4. [ , Exercise 16 p. 35]
Give interpretations to prove that the following ws are not valid:
H(x): is a human
L(x): is a living being
M (x) is mortal
(∀x) [H(x) → L(x)] ∧ (∀x) [L(x) → M (x)] → (∀x) [H(x) → M (x)]
This is clearly something we want to be able to prove, but we cannot use hypothet-
ical syllogism directly!
From: P (s)
Can derive: (∀x) P (x)
s must be an arbitrary element of the domain.
Exemple. (∀x) [H(x) → L(x)] ∧ (∀x) [L(x) → M (x)] → (∀x) [H(x) → M (x)]
1. M (s) (hyp)
2. H(s)0 ∨ M (s) (add 1)
3. H(s) → M (s) (imp 2)
4. (∀x) [H(x) → M (x)] (ug 3)
Socrate is a mortal, therefore every man is a mortal.
F (x): x is a fruit
(∃x) F (x) → F (s)
6 1. PREDICATE LOGIC (SECTIONS 1.3, 1.4)
From: F (s)
Can derive:(∃x) F (x)
1.3. Conclusion
Goal: formalization of arguments and proofs.
Propositional logic::
propositions A, B , ...
connectives, well formed formula
truth table
argument valid i w is a tautology
proofs:
• compute the truth table (algorithm)
• formal logic, deduction rules
Ex 24, 37
Predicate logic:
variables, predicates
domain of interpretation
connectives, w
interpretation
truth table: all possible interpretations (innite)
argument valid i w is true for all possible interpretations
proofs:
• no algorithm
• formal logic, deduction rules
They are still not powerful enough to represent all real life argument.
For this we would need of more powerful logics (2nd order), that allows for quan-
tifying other sets.
Problem: it's often dicult, if not impossible to prove that those logics are complete
and correct!
We have seen enough low-level logic to help us write safely less formal proofs.