Lecture 9
Lecture 9
WFF.
PREDICATE LOGIC
Quick review of QL grammar:
If ϕ is a WFF, χ is a variable, and ϕ contains no χ-
quantifiers, then ∀χϕ is a WFF.
If ϕ is a WFF, χ is a variable, and ϕ contains no χ-
quantifiers, then ∃χϕ is a WFF.
Nothing else is a WFF.
PREDICATE LOGIC
Quick review of scope and bound/free
variables:
The scope of a quantifier is the string of symbols
it ‘attaches to’. Quantifiers ‘attach’ like negation.
Thus, the scope of the universal quantifier in
∀xFx&Gx is Fx – the scope of the quantifier in
∀x(Fx&Gx) is (Fx&Gx).
A variable is bound if it is inside the scope of a
quantifier with a matching variable (e.g. ∀x binds
x’s). Otherwise it is free.
WFFs containing free variables do not have a
truth value.
PREDICATE LOGIC
Quick review of truth-conditions for QL:
QL interpretations consist of a domain, an
assignment of names to entities in the domain,
and an assignment of extensions to predicates.
An existentially quantified sentence is true if and
only if there is at least one entity in the UD such
that, if its name is substituted for occurrences of
the relevant variable in the quantifier’s scope,
the result is a true sentence.
A universally quantified sentence is true if and
only if every entity in the UD is such that, if its
name is substituted for occurrences of the
relevant variable in the quantifier’s scope, the
result is a true sentence.
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
None of these are equivalent. Let’s construct
interpretations to show this.
Our UD for each will be: {Alice, Bill, Carl}.
c.
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves
everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
An interpretation where only the first
sentence is true:
Extension(L)= {<Alice,Bill>, <Bill,Carl>,
<Carl,Carl>}
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves
everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
This shows us that 1 is not equivalent to 2, 3,
or 4 – remember to be equivalent the first
must entail the second and the second the
first. 1 doesn’t entail any of the rest.
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves
everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
An interpretation where only the third
sentence is true:
Extension(L) = {<Alice,Alice>, <Bill,Bill>,
<Bill,Carl>}
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
Sentence 2 entails sentence 3, but not 1 or 4:
Extension(L) = {<Alice,Alice>, <Alice,Bill>,
<Alice,Carl>}
(this wouldn’t have changed if we had made Bill
love everyone, or Carl)
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves
everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
But since 3 does not entail 2, they are not
equivalent.
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
Sentence 4 entails sentence 1 but not 2 or 3:
Extension(L) = {<Alice,Alice>, <Bill,Alice>,
<Carl,Alice>}
(this wouldn’t have changed if we had made Bill
loved by everyone, or Carl)
PREDICATE LOGIC
Let’s get in a little more practice with nested
quantifiers.
∀x∃yLxy – For everyone, there is someone that
person loves.
∃x∀yLxy – There is someone who loves
everyone.
∀x∃yLyx – Everyone is loved by someone.
∃x∀yLyx – There is someone who is loved by
everyone.
But 1 does not entail 4. So no equivalence in
any pair.
PREDICATE LOGIC
Our main goal for today will be to begin to
extend our natural deduction system to QL.
PREDICATE LOGIC
The same rules that applied for SL still apply
for QL. So the following is a successful proof:
1. ∀xFx & Ga
2. ∀xFx → ∃yGy
3. ∀xFx &E 1
4. ∃yGy →E 2,3
5. ∃yGy v Rb vI 4
PREDICATE LOGIC
All we need to add are intro/elim rules for our
two quantifiers.
(Actually, we will also add a further logical
symbol to QL next time, plus intro/elim rules for
it – identity, or =).
Two of the quantifier rules are easy. The
other two are hard.
PREDICATE LOGIC
First we need a new bit of terminology:
SUBSTITUTION INSTANCE: The result of
substituting a constant for each instance of a
variable in a WFF, and removing the variable’s
quantifier.
So, e.g., Fa is a substitution instance of ∀xFx. So
is Fb.
Fa v Ga is a substitution instance of ∀x(Fx v Gx).
Fa v Gb is a substitution instance of ∀x(Fx v Gb).
∃yGby is a substitution instance of ∀x∃yGxy.
1. ∀x∃yLxy
2. ∃yLay ∀E 1
PREDICATE LOGIC
You can NOT use the rule like this:
1. ∃xFx
2. Fa ∀E 1
1. ∀x∃yLxy
2. Laa ∀E 1
PREDICATE LOGIC
You can use any name to substitute. In some
cases, you’ll use one that’s already in the
proof:
1. Fa → Ga
2. ∀xFx
3. Fa ∀E 2
4. Ga →E 1,3
1. Fa & Ga
2. ∃x(Fx & Gx) ∃I 1
1. Fa & Ga
2. ∃x(Fx & Ga) ∃I 1 (I do NOT need to
replace every instance of the name – no free
variable problem)
PREDICATE LOGIC
I can NOT do this:
1. Fa
2. ∀xFx ∃I 1
1. Fa & Gb
2. ∃x(Fx & Gx) ∃I 1
PREDICATE LOGIC
Let’s do a practice proof with these two new
rules.
From Gb&Fa and ∀x(Fx → Gx), show ∃x(Fx &
Gx).
PREDICATE LOGIC
1. Gb&Fa (∃x(Fx & Gx))
2. ∀x(Fx → Gx)
3. Fa &E 1
4. Fa → Ga ∀E 2
5. Ga →E 3,4
6. Fa & Ga &I 3,5
7. ∃x(Fx & Gx)∃I 6
PREDICATE LOGIC
Let’s do one more, a bit more complex: From
∀x∀y(Gxy → Fy), show that Gab→∃xFx.
1. ∀x∀y(Gxy → Fy)
2. Gab want ∃xFx
3. ∀y(Gay → Fy) ∀E 1
4. Gab → Fb ∀E 3
5. Fb →E 2,4
6. ∃xFx ∃I 5
7. Gab→∃xFx →I 2-6
PREDICATE LOGIC
We’ll introduce one more rule today, and
then leave the final quantifier rule for next
time.
UNIVERSAL INTRODUCTION:
m. Φ
n. ∀χΦ [c / χ]* *: where c does not occur in
an undischarged
assumption (including
premises)
In English: You may form a universally
quantified sentence from any sentence,
PROVIDED the constant you are replacing is
arbitrary.
PREDICATE LOGIC
A constant is arbitrary if it is not part of the
premises, or part of an assumption of an
open subproof.
For instance, this is not an acceptable move:
1. Fa
2. ∀xFx ∀I 1
information about a.
(Compare with a case where the premises told
us something about a)
PREDICATE LOGIC
But suppose I had this:
1. ∀x(Fx&Gx)
2. Fa&Ga ∀E 1
3. Fa &E 2
4. ∀xFx ∀I 3
5. ∀x~(Fx&~Fx) ∀I 4
5. ∀x~(Fx&~Fx) ∀I 4
5. ∀x~(Fx&~Fx) ∀I 4
5. ∀x~(Fx&~Fx) ∀I 4
1. ∀x(Fx→Gx)
2. ∀xFx
3. Fa→Ga ∀E 1
4. Fa ∀E 2
5. Ga → 3,4
6. ∀xGx ∀I 5
PREDICATE LOGIC
Practice proofs if time:
From Fa, prove ∀x(Fa v Fx).
1. Fa
2. Fa v Fb vI 1 (can’t use a!)
3. ∀x(Fa v Fx) ∀I 2
PREDICATE LOGIC
Practice proofs if time:
From ~∃xFx, prove ∀x~Fx.
1. ~∃xFx
2. Fa (for reductio)
3. ∃xFx ∃I 2
4. ~∃xFx R1
5. ~Fa ~I 2-4
6. ∀x~Fx ∀I 5