Lecture 07
Lecture 07
29-09
201/227
Overview
Rehash
202/227
Rehash
I Our proof system is the method of tableaux.
¬¬φ φ ∧ ψ ¬(φ ∧ ψ) φ∨ψ ¬(φ ∨ ψ)
φ φ ¬φ ¬ψ φ ψ ¬φ
ψ ¬ψ
φ ¬φ ψ φ ¬φ φ ¬φ
¬ψ ψ ¬ψ ¬ψ ψ
204/227
Proof Idea
I (7.1.6) Remember:
205/227
7.2 The Soundness Theorem Proof Idea
I (7.2.1) We're actually going to prove the contrapositive:
I If Γ 2 φ, then Γ 0 φ.
I If Γ 2 φ, then there's a valuation v that makes all the
members of Γ ∪ {¬φ} true.
206/227
The Soundness Lemma
I Let B be a branch of a possibly incomplete tableau and v a
valuation:
I (7.2.2) We say that v is faithful to B i JφKv = 1, for all φ ∈ B
p → q, q 0 p
p→q
q
¬p
¬p q
207/227
Example
I v1 with v1 (p) = 1 and v1 (q) = 0
I v2 with v2 (p) = 0 and v2 (q) = 1
p∨q
¬p ∨ ¬q
p q
¬p ¬q ¬p ¬q
7 7
208/227
(7.2.4) Proof of the Soundness Lemma
The proof consists in a one-by-one inspection of the rules.
There are 9 cases. We do: (a) φ→ψ and (b) ¬(φ → ψ).
(a) Let v be faithful to B and φ → ψ ∈ B.
φ→ψ
¬φ ψ
We get two new branches extending B , B1 and B2 .
I We have B1 = B ∪ {¬φ} and B2 = B ∪ {ψ}.
I Since v is faithful to B , we get Jφ → ψKv = 1.
I Since Jφ → ψKv = max(1 − JφKv , JψKv ), we get either
JφKv = 0 or JψKv = 1.
I If JφKv = 0, then J¬φKv = 1 − JφKv = 1. So v is faithful to
B = B ∪ {¬φ}.
1
¬ψ
We get one new branch B
0 = B ∪ {φ, ¬ψ}.
I Since v is faithful to B , we get J¬(φ → ψ)Kv = 1.
I Since J¬(φ → ψ)Kv = 1 − max(1 − JφKv , JψKv ), we get that
max(1 − JφKv , JψKv ) = 0.
I So JφKv = 1 and JψKv = 0.
I Since J¬ψKv = 1 − JψKv , we can conclude J¬ψKv = 1.
I So v is faithful to B 0 .
210/227
The Soundness Theorem
(7.2.5) Theorem (Soundness). If Γ ` φ, then Γ φ.
Proof:
I Suppose that Γ 2 φ.
I So, there's a v that makes all the members of Γ ∪ {¬φ} true.
I So B is open, meaning Γ 0 φ.
211/227
Tableau Verication 1
(7.2.6) Theorem. If the tableau algorithm gives the answer that a
set is unsatisable, then the set is unsatisable.
Proof:
I So Γ is unsatisable.
212/227
7.3 The Completeness Theorem Proof Idea
I (7.3.1) We'll prove once more, the contrapositive:
I If Γ 0 φ, then Γ 2 φ.
I The proof idea is simple:
I If Γ 0 φ, then the complete tableau for Γ ∪ {¬φ} is open via
open branch B .
I We get the associated valuation vB for B :
1 if p ∈ B
(
vB (p) =
0 if p ∈/ B
I Using Up Preservation, we can inductively argue that vB
makes all B 's true.
I But then vB satises Γ ∪ {¬φ}.
I Which gives us Γ 2 φ.
I The devil is in the detail.
213/227
The Completeness Lemma
(7.3.2) Lemma (Completeness Lemma). Let B be an open branch
of a complete tableau. Then vB is faithful to B.
Proof: The proof is a (rather complicated) induction.
I We note that vB is faithful to B i for all φ ∈ L:
1. if φ ∈ B , then JφKvB = 1, and
2. if ¬φ ∈ B , then JφKvB = 0.
I This we prove by induction.
(i) Base case. We need to show that for all p ∈ P :
1. If p ∈ B , then JpKvB = 1
2. If ¬p ∈ B , then JpKvB = 0.
I 1. is immediate from the denition of vB .
I For 2. note that if ¬p ∈ B , then p ∈
/ B since B is open. So, by
denition, vB (p) = 0. Since JpKvB = vB (p), we get our desired
claim.
214/227
The Completeness Lemma (Cont'd)
(ii) Induction steps.
(a) We need to prove that if φ enjoys the property, then ¬φ enjoys
the property. From the induction hypothesis
1. If φ ∈ B , then JφKvB = 1.
2. If ¬φ ∈ B , then JφKvB = 0.
We derive:
1'. If ¬φ ∈ B , then J¬φKvB = 1.
2'. If ¬¬φ ∈ B , then J¬φKvB = 0.
I For 1', suppose that ¬φ ∈ B . By 2., we have JφKvB = 0. But
J¬φKvB = 1 − JφKvB and so J¬φKvB = 1.
I For 2', assume ¬¬φ ∈ B . Since B is an open branch of a
complete tableau, every rule that can be applied has been:
¬¬φ
φ
So, φ ∈ B . But then, by 1., we get JφKvB = 1. And since
J¬φKvB = 1 − JφKvB , we get J¬φKvB = 0, as desired.
215/227
The Completeness Lemma (Cont'd)
(ii) Induction steps.
(b) We do the case for φ ∧ ψ .
We have two pairs of induction hypotheses:
1φ . if φ ∈ B , then JφKvB = 1, and
2φ . if ¬φ ∈ B , then JφKvB = 0.
And
1ψ . if ψ ∈ B , then JψKvB = 1, and
2ψ . if ¬ψ ∈ B , then JψKvB = 0.
What we need to prove are:
1φ∧ψ . if φ ∧ ψ ∈ B , then Jφ ∧ ψKvB = 1, and
2φ∧ψ . if ¬(φ ∧ ψ) ∈ B , then Jφ ∧ ψKvB = 0.
216/227
The Completeness Lemma (Cont'd)
I Suppose that φ ∧ ψ ∈ B. Since B is an open branch of a
complete tableau, every rule that can be applied has been
applied:
φ∧ψ
ψ
I So, we can conclude that both φ, ψ ∈ B .
I But by 1φ . and 1ψ ., this means that JφKvB = 1 and JψKvB = 1.
I Since Jφ ∧ ψKvB = min(JφKvB , JψKvB ), we get Jφ ∧ ψKvB = 1,
as desired.
217/227
The Completeness Lemma (Cont'd)
I Next, suppose that ¬(φ ∧ ψ) ∈ B . Again, all rules that can be
applied have been applied:
¬(φ ∧ ψ)
¬φ ¬ψ
I So, we can conclude that either (∗) ¬φ ∈ B or (∗∗) ¬ψ ∈ B .
(∗) I If ¬φ ∈ B , from 2φ ., we get JφK = 0.
I Since Jφ ∧ ψKvB = min(JφKvB , JψKvB ), this means we get
Jφ ∧ ψKvB = 0.
(∗∗) I If ¬ψ ∈ B , from 2ψ ., we get JφK = 0.
I So, we get Jφ ∧ ψKvB = 0.
I So either way, Jφ ∧ ψKvB = 0, as desired.
218/227
The Completeness Theorem
(7.3.3) Theorem (Completeness). If Γ φ, then Γ ` φ.
Proof:
I Assume that Γ 0 φ.
I By denition, this means that there's an open branch, B, in
the complete tableau for Γ ∪ {¬φ}.
I Consider the associated valuation vB .
I By the completeness lemma vB makes all the members of B
true.
219/227
Tableau Verication 2
(7.3.4) Theorem. If the tableau algorithm gives the answer that a
set is satisable, then the set is satisable.
Proof:
220/227
7.4 Innite Premiss Sets and Compactness
I (7.4.1) For the formal treatment of mathematics, we
sometimes need innite premise sets:
I The theory of natural numbers cannot be reduced to nitely
many axioms.
I (7.4.2) We'll go innite, but we assume there is a way of
writing Γ as the set {φi : i ∈ I }, where I ⊆ N+ .
I (7.4.3) Examples:
(a) {p, ¬p, ¬¬p, . . .} (or more precisely the smallest set X such
that p ∈ X and if φ ∈ X then ¬φ ∈ X ).
(b) P = {pi : i ∈ N}
(c) {¬p2i , p2i+1 : i ∈ N} which contains ¬pi for each even i and pi
for each odd i ∈ N.
(d) Let v be any valuation. Then the set Tv = {φ : JφKv = 1} is
always innite!
I (7.4.4) Γφ works just like before.
221/227
Truth-Tables Don't Work
φ1 , . . . , φn ψ i (φ1 ∧ . . . ∧ φn ) → ψ
φ1 , φ2 , . . . ψ i (φ1 ∧ φ2 ∧ . . .) → ψ
| {z }
???
222/227
(7.4.6) Innite Tableaux
I Tableaux, however, work.
I Then, add φ1 to the initial list, and extend the tableau for ¬ψ
to the tableau for {φ1 , ¬φ}.
I Then add φ2 , and extend the tableau to the one for
{φ1 , φ2 , ¬φ}.
I And so on.
223/227
Example
p, ¬¬p, ¬¬¬¬p, . . . 0 q
.
.
.
¬¬¬¬p
¬¬p
p
¬q
¬¬p
.
.
.
224/227
Compactness
But if a tableau closes, it closes after nitely many steps (at some
point):
Theorem (Compactness). Let Γ be an innite set of formulas. If
Γ ` φ, then there exists a nite set Σ⊆Γ such that Σ ` φ.
Proof:
225/227
Core Ideas (Lecture Version)
I Soundness and completeness reduce validity to syntax.
I Truth tables don't work for innitary premise sets but tableaux
do.
226/227
Thanks!
227/227