Professional Documents
Culture Documents
11-10
305/346
Overview
Rehash
306/346
Rehash
307/346
© https://xkcd.com/447/ , CC BY-NC 2.5
308/346
10.1 Overview
I (10.1.1) Things work very similar to how they work in
propositional logic:
φ φ ¬φ ¬ψ φ ψ ¬φ
ψ ¬ψ
φ ¬φ ψ φ ¬φ φ ¬φ
¬ψ ψ ¬ψ ¬ψ ψ
310/346
(10.2.2) Parameters
I We need to talk about arbitrary objects. For this purpose, we
introduce parameters:
Par = {p, q, r , p1 , p2 , . . .}
I Don't confuse them with sentence letters!
pM ∈ D M
M, α P(p) i pM ∈ P M
311/346
(10.2.4) Quantier Rules
¬∀xϕ ¬∃xϕ
∃x¬ϕ ∀x¬ϕ
∃xϕ ∀xϕ
312/346
(10.2.5) The ∃ Rule
∃yR(p, y )
R(p, q)
I Idea: If ∃xφ is true, all we know is that some object satises φ.
Since we don't know which one, we pick a new parameter.
313/346
(10.2.6) The ∀ Rule
I The rule needs to be applied to every term on the branch:
∀xP(x)
Q(a)
R(q, b)
P(a)
P(q)
P(b)
I Even if they pop up later:
∀xP(x)
∃yR(a, y )
P(a)
R(a, p)
P(p)
314/346
(10.2.7) Fresh Parameters
I Idea: Each term on the branch denotes something, so if ∀xφ is
true, then also that thing is φ.
I If there are no constants or parameters around, we need to
introduce them:
∀xP(x)
∀x(P(x) → Q(x))
P(p)
P(p) → Q(p)
¬P(p) Q(p)
I This is because domains are non-empty.
315/346
(10.2.9) Remaining Denitions
316/346
(10.2.10.i) Example
∀xP(x) ` ∃xP(x)
∀xP(x)
¬∃xP(x)
∀x¬P(x)
¬P(p)
P(p)
7
317/346
(10.2.10.ii) Example
∃x(P(x) ∧ Q(x)) ` ∃xP(x) ∧ ∃xQ(x)
∃x(P(x) ∧ Q(x))
¬(∃xP(x) ∧ ∃xQ(x))
P(p) ∧ Q(p)
P(p)
Q(p)
¬∃xP(x) ¬∃xQ(x)
∀x¬P(x) ∀x¬Q(x)
¬P(p) ¬Q(p)
7 7
318/346
(10.2.10.iv) Example
∀xP(x) ∨ ∀xQ(x) ` ∀x(P(x) ∨ Q(x))
∀xP(x) ∨ ∀xQ(x)
¬∀x(P(x) ∨ Q(x))
∃x¬(P(x) ∨ Q(x))
¬(P(p) ∨ Q(p))
¬P(p)
¬Q(p)
∀xP(x) ∀xQ(x)
P(p) Q(p)
7 7
319/346
(10.2.10.v) Example
∃x∀yR(x, y ) ` ∀y ∃xR(x, y )
∃x∀yR(x, y )
¬∀y ∃xR(x, y )
∀yR(p1 , y )
∃y ¬∃xR(x, y )
¬∃xR(x, p2 )
∀x¬R(x, p2 )
R(p1 , p2 )
¬R(p1 , p2 )
7
320/346
(10.2.10.vii) Example
` ¬∃x(K (x) ∧ ∀y (¬S(y , y ) ↔ S(x, y )))
¬¬∃x(K (x) ∧ ∀y (¬S(y , y ) ↔ S(x, y )))
K (p)
¬S(p, p) ↔ S(p, p)
¬S(p, p) S(p, p)
S(p, p) ¬S(p, p)
7 7
321/346
(10.2.11) Underivaibility
Γ0φ i the tableau for Γ ∪ {¬φ} contains an open branch.
¬∀xP(x)
¬∀xQ(x)
∃x¬P(x)
∃x¬Q(x)
¬P(p)
¬Q(q)
P(p) ∨ Q(p)
P(q) ∨ Q(q)
P(p) Q(p)
7 P(q) Q(q)
7
322/346
(10.2.12) Associated Models
323/346
(10.2.13.i) Example
∀x(P(x) ∨ Q(x)) 0 ∀xP(x) ∨ ∀xQ(x)
∀x(P(x) ∨ Q(x))
¬(∀xP(x) ∨ ∀xQ(x))
¬∀xP(x)
¬∀xQ(x)
∃x¬P(x)
D MB = {p, q}
∃x¬Q(x)
p MB = p
¬P(p) q MB = q
¬Q(q) P MB = {q}
P(p) ∨ Q(p) Q MB = {p}
P(q) ∨ Q(q)
P(p) Q(p)
7 P(q) Q(q)
7
324/346
(10.2.13.ii) Example
∃x¬R(x, x)
¬R(p, p)
D MB = {p}
p MB = p
∀y (R(p, y ) → R(y , p))
R MB = ∅
R(p, p) → R(p, p)
¬R(p, p) R(p, p)
7
325/346
(10.2.13.iii) Example
P(c)
¬∀xP(x)
D MB = {c, p}
p MB = p
∃x¬P(x)
c MB = c
¬P(p)
P MB = {c}
P(c) → P(p)
¬P(c) P(p)
7
326/346
(10.2.13.iv) Example
¬R(p, q) R(q, p)
327/346
10.3 Tableaux with Identity
.
.
. a=b
σ ‡ [x := a]
a = a†
σ[x := b]
†: a any parameter or constant already on the branch, or an
arbitrary fresh one.
‡: σ here is any atomic formula, i.e. a formula of the form
R(t1 , . . . , tn ) or t1 = t2 .
328/346
The a = a Rule
¬∀x(x = x)
∃x¬x = x
¬p = p
p=p
7
329/346
The Substitution Rule
` ∀x∀y (P(x) ∧ x = y → P(y ))
¬∀x∀y (P(x) ∧ x = y → P(y ))
∃y ¬(P(p) ∧ p = y → P(y ))
¬(P(p) ∧ p = q → P(q))
P(p) ∧ p = q
¬P(q)
P(p)
p=q
P(q)
7
330/346
The Substitution Rule
I Proper uses are not super easy to gure out formally:
P(p) = (P(x))[x := p]
P(q) = (P(x))[x := q]
I But intuitively they are: if you have a = b, then replace a with
b in every atomic formula.
a = b, b = c ` a = c
a=b
b=c
a 6= c
a=c
7
331/346
(10.3.4.ii) Example
a = b 0 ∀x∃y (P(y ) ∧ x = y )
a=b
¬∀x∃y (P(y ) ∧ x = y )
∃x¬∃y (P(y ) ∧ x = y )
¬∃y (P(y ) ∧ p = y )
∀y ¬(P(y ) ∧ p = y )
¬(P(p) ∧ p = p)
¬(P(a) ∧ p = a)
¬(P(b) ∧ p = b)
¬P(p) p 6= p
¬P(a) p 6= a
¬P(b) p 6= b ¬P(b) p 6= b
p=p
7
332/346
Associated Models
333/346
(10.3.4.ii) Example
a = b 0 ∀x∃y (P(y ) ∧ x = y )
a=b
¬∀x∃y (P(y ) ∧ x = y )
∃x¬∃y (P(y ) ∧ x = y )
¬∃y (P(y ) ∧ p = y )
D MB =
∀y ¬(P(y ) ∧ p = y )
{[a]∼B , [b]∼B , [p]∼B } =
¬(P(p) ∧ p = p) {{a, b}, {p}}
¬(P(a) ∧ p = a) aMB = [a]∼B = {a, b}
¬(P(b) ∧ p = b) b MB = [b]∼B = {a, b}
¬P(p) p 6= p
p MB = [p]∼B = {p}
P MB = ∅
¬P(a) p 6= a
¬P(b) p 6= b ¬P(b) p 6= b
p=p
7
334/346
Lemma 10.3.9
Proof:
I Assume that a = b ∈ B.
I W.t.s. [a]∼B = {c : a = c} = [b]∼B = {c : b = c}.
I So, suppose that c ∈ [a]∼B .
I It follows that a = c ∈ B.
I Since a = b, a = c ∈ B , by substitution, b = c ∈ B.
I So, b ∈ [b]∼B
I The other direction is analogous.
335/346
10.4 Tableaux with Functions
336/346
(10.4.2) Term Models with Functions
(
{u : t = u ∈ B} if t occurs in B
[t]∼B =
{t} otherwise
I Then, we say:
I MB
D = {[t]∼B : t ∈ T }
I aMB = [a]∼B , for a ∈ C ∪ Par
I R MB = {([t1 ]∼B , . . . , [tn ]∼B ) : R(t1 , . . . , tn ) ∈ B}
I And, crucially, we set:
337/346
(10.4.3) Example
¬∀x∀y (f (x) = f (y ) → x = y )
∃x¬∀y (f (x) = f (y ) → x = y )
f (p) = f (q)
p 6= q
338/346
10.5.1 Innite Tableaux and Decidability
So far, we have avoided innite tableaux, but they exist:
¬∃x∀yR(x, y )
∀x¬∀yR(x, y )
¬∀yR(p1 , y )
∃y ¬R(p1 , y )
¬R(p1 , p2 )
¬∀yR(p2 , y )
∃y ¬R(p2 , y )
¬R(p2 , p3 )
.
.
.
339/346
Quantier Feedback Loops
340/346
(10.5.4) Example
∀x∃yR(x, y ) 0 ∃y ∀xR(x, y )
∀x∃yR(x, y )
¬∃y ∀xR(x, y )
∀y ¬∀xR(x, y )
∃yR(p1 , y )
¬∀xR(x, p1 )
¬∀xR(x, p3 )
∃yR(p3 , y )
¬∀xR(x, p2 )
341/346
.
.
(10.5.5) Models for Innite Tableaux
¬∃x∀yR(x, y )
∀x¬∀yR(x, y )
¬∀yR(p1 , y )
∃y ¬R(p1 , y )
I D MB = {pi : i ∈ N}
¬R(p1 , p2 )
I piMB = pi
¬∀yR(p2 , y )
I R MB = ∅
∃y ¬R(p2 , y )
¬R(p2 , p3 )
.
.
.
342/346
(10.5.5) Models for Innite Tableaux
∀x∃yR(x, y ) 0 ∃y ∀xR(x, y )
∀x∃yR(x, y )
¬∃y ∀xR(x, y )
∀y ¬∀xR(x, y )
∃yR(p1 , y )
¬∀xR(x, p1 )
∃x¬R(x, p1 )
D MB = {pi : i ∈ N}
R(p1 , p2 )
piMB = pi
¬R(p3 , p1 )
R MB = {(pi , p2i ) : i ∈ N}
∃yR(p2 , y )
¬∀xR(x, p3 )
∃yR(p3 , y )
¬∀xR(x, p2 )
343/346
.
.
(10.5.6) Innite Tableaux and Decidability
344/346
Core Ideas (Lecture Version)
I Tableaux for rst-order logic work in similar way as
propositional tableaux. Underlying is always the idea that an
inference is valid i the premises and negation of conclusion
are jointly unsatisable.
345/346
Thanks!
346/346