Canonical Model
Canonical Model
Welcome to Part 2!
We will cover: 7. Logics, soundness, completeness. Canonical model for K . 8. Soundness and completeness for more frame classes. 9. Finite model property, via ltrations. Decidability. 10. Modal -calculus. Thanks to Nick Bezhanishvili and Clemens Kupke (who taught part 2 in 2009 and 2010) for major contributions to the slides, exercises, and solutions.
115
C comes straight from the application, so is too close to it. C is probably too big/abstract (to automate etc). We want the underlying rules controlling the form of Log(C ). We want to reason about formulas directly.
Reasoning via standard translation is possible especially with modern rst-order theorem provers but clumsy, unnatural, and doesnt take advantage of modal nature of formulas.
116
Hilbert systems
We will use Hilbert systems to capture the logics of classes of frames. A Hilbert system consists of 1. axioms 2. rules of inference. The axioms are given truths. They should be valid in some given class C of frames. The inference rules allow us to derive new truths from old. If the formulas above the line in a rule are already derived, the rule allows us to derive the formula underneath the line. (See next slide.) Rules should be chosen so as not to lead us from truth into falsehood. Formulas derived from C -valid formulas should also be valid in C . Hilbert systems are simple, powerful, exible, and in common use. (But not suited for practical reasoning.)
117
118
Denition 50
Let H be a Hilbert system. We write H A, and say that A is a theorem of H , if there are formulas A1 , . . . , An such that
An = A each Ai (1 i n) is either
119
Example of a proof
Example 51
Let A, B be any modal formulas. Then K (A B ) A. For, 1. p q p 2. A B A axiom (tautology) Sub(1) UG(2) axiom (normality) Sub(4) MP(3,5)
4. (p q ) (p q ) 6. (A B ) A
3. (A B A)
In practice we often omit lines 1 and 4, and justify lines 2 and 5 by instance of tautology, instance of normality.
120
Useful properties of K
Lemma 52 (essentially MP)
Let A, B be formulas. If K A and K A B then K B .
Proof.
Suppose that X1 , . . . , Xn1 , A is a proof of A (in K ), and Y1 , . . . , Ym1 , A B is a proof of A B . Then by MP, X1 , . . . , Xn1 , A, Y1 , . . . , Ym1 , A B, B is a proof of B . We will use this later, justied by MP.
Exercise 53
So as far as K is concerned, we can write (A B C ) without worrying whether we mean ((A B ) C ) or (A (B C )), etc.
Exercise 54 (important)
Show that K A B (A B ) for any formulas A, B .
121
Denition 55
1. The logic generated by a Hilbert system H is the set of all theorems of H : {A : A a modal formula, H A}. We denote this set by Thm(H ), or simply by H . 2. A modal logic is a set of the form Thm(H ), for some Hilbert system H . (Strictly, it is called a normal modal logic.) The denition is entirely syntactic. Aim: nd classes C of frames and Hilbert systems H such that Log(C ) = Thm(H ). Then we get a syntactic handle on validity. Many people nd this very impressive.
122
C is the class of all frames. So Log(C ) is the set of all valid formulas.
We are going to show that Log(C ) = Thm(K ) that is, the logic of the class of all frames is just K . And here it is:
Theorem 56
A formula is a theorem of K i it is valid.
is called soundness. Proofs are sound: they do not prove false things. is called completeness. The proof system can prove all valid formulas.
123
Soundness of K
Soundness is easy. Its really just an exercise!
An easy induction on the length of a proof now shows that every K -theorem is valid in F . Try it yourself; details in theorem 75 later.
Completeness is harder. . .
126
127
128
First, try to dene an assignment hd into W d . Let p be an atom. The description t of some t knows whether p is true at t: M, t |= p p t .
d
t Here, we know M, t |= p and M, t |= q , because p, q t . So why not let hd (p) = { W d : p }, for each atom p L. Then p is true at i its in !
129
Accessibility relation on W d ?
In M, we know that if R(t, u) and M, t |= A then M, u |= A. That is, if R(t, u) and A t then A u .
d A B A B
So R(t, u) leaves traces in t , u ! So why not try: for , W d ( gamma), let Rd (, ) i for every A, if A then A . This all makes sense, thinking of the as full descriptions of worlds. Anyway, we have dened a model Md = (W d , Rd , hd ).
130
Md is well-behaved
Lemma 58 Proof.
It turns out that the full descriptions making up Md describe themselves in Md (so (Md )d = Md ): For every formula A and W d , we have Md , |= A i A . An easy induction, using that for all , W d and formulas A, B : 2. A i A / 1.
3. A and B i A B
4. if A and Rd (, ) then A
5. if A / then there is with Rd (, ) and A / . These properties are easily seen to be true, if you remember that every W d is of the form t for some t W . See lemma 70 for a similar proof done in full.
131
Still, this Md gives us a clue: why not build a model MK (say) whose worlds are sets of formulas!
Dene hd , Rd as above. Establish the 5 properties in lemma 58 (dry but necessary). Then we can prove MK , |= A i A , for all A and all sets included in MK . Show A0 is contained in some set in MK .
Then A0 will be true at ! We will have our model. But which sets of formulas do we include in MK , for this to work? Answer: maximal consistent sets of formulas.
132
Consistency preliminaries
Let (Gamma) be a set of formulas (maybe innite!). The following denitions are good for any Hilbert system H .
Denition 59
If A is a formula, we write H A if there are formulas B1 , . . . , Bn (for some n) such that H B1 . . . Bn A. Possibly, n = 0. So if H A then H A for any . Idea: H A says that A follows (is provable) from formulas in . These formulas need not be valid.
Example 60
{p, p q } K q , because (p (p q )) q is a propositional tautology, so K (p (p q )) q . Of course, p, p q are not valid!
133
Consistency
Denition 61 (consistency)
is said to be H -consistent if H . is said to be consistent (with no H stated) if it is K -consistent.
Exercise 62
Show that a set of modal formulas is H -consistent i H (A1 . . . An ) whenever A1 , . . . , An . This may be a nicer characterisation of consistency.
Example 63
{p, q, r} is consistent, because otherwise, K (p q r), so by proposition 57, (p q r) is valid which it isnt.
134
Exercise 65
Let M = (W, R, h) be any Kripke model. Let t W . Show that t = {A : M, t |= A} is a maximal consistent set. This suggests we should choose maximal consistent sets to put in our model.
135
Canonical model
Denition 66 (Canonical model for K )
1. Let WK = {all maximal (K -)consistent sets}. 2. For , WK , dene RK (, ) if for every formula A, if A then A . 3. For each atom p L, dene hK (p) = { WK : p }.
Let MK be the Kripke model (WK , RK , hK ). We call MK the canonical model for K . We call FK = (WK , RK ) the canonical frame for K . In the following, we show that the canonical model works. It gets a bit technical. But essentially we are establishing that 1. the ve properties of lemma 58 hold 2. A0 is a member of some MCS Look out for these points as we go along.
136
Lemma 67
If is consistent and A is a formula, then at least one of {A}, {A} is also consistent.
Proof.
Otherwise, there are B1 , . . . , Bn , C1 , . . . , Cm with K A B1 . . . Bn and K A C1 . . . Cm .
B, say C, say
As K A B , MP gives K (A C ) (B C ).
137
Proof.
If A then as K A A, we obviously have K A. Conversely, suppose K A. So K B1 . . . Bn A, for some B1 , . . . , Bn . Claim. {A} is inconsistent. Proof of claim. We have B1 , . . . , Bn , A {A}. Now the following is an instance of a tautology, so a theorem of K : ( B 1 . . . B n A) ( B 1 . . . B n A ) . By MP, K B1 . . . Bn A . Claim By lemma 67, {A} must be consistent. And {A} . But is maximal consistent. So {A} = . So A .
138
3. If B1 , . . . , Bn then (B1 . . . Bn ) as well. Proof. 1. If A B , then as K (A B A), we have K A. By lemma 68, A . Similarly, B . If A, B then as K A B (A B ) (!), we have K A B , so by lemma 68, A B . 2. Suppose A, A . Now K A A . So K . That is, is inconsistent. So at most one of A, A is in .
139
Lemma ctd.
By lemma 67, {A} or {A} is consistent. By maximality, = {A} or = {A}. So A or A . Weve shown that exactly one of A, A is in . This is equivalent to what is required.
3. We show B1 , . . . , Bn (B1 . . . Bn ) , by induction on n. The case n = 1 is trivial. Let n 2. Inductively assume the statement for n 1. We prove it for n. So assume that B1 , . . . , Bn . By exercise 54, K B1 B2 (B1 B2 ). So K (B1 B2 ). By lemma 68, (B1 B2 ) . By inductive hypothesis, (B1 . . . Bn ) .
140
Conversely, assume A / . We want to nd a MCS containing A and with RK (, ). That is, should contain 0 = {A} {B : B }.
142
Now B1 , . . . , Bn . By lemma 69(3), (B1 . . . Bn ) . So K A. By lemma 68, A . Contradiction. Claim By proposition 71 (next slide), there is a MCS with 0 . For every B , we have B B 0 . So RK (, ). Also, A 0 . By lemma 69(2), A / . So by the induction hypothesis, MK , |= A. It follows by semantics of that MK |= A, as required.
143
Lindenbaums lemma
Proposition 71 (Lindenbaum)
Any consistent set 0 extends to (is contained in) a MCS. Proof. Enumerate all modal formulas, as A0 , A1 , . . .. We dene a chain 0 1 of consistent sets. 0 is given, and is consistent. Inductively, dene n {An }, if this is consistent, n+1 = n , otherwise. Each n is consistent. Let = n n . Then: is consistent too (for a proof of from would be a proof from some n ). is maximal consistent. For, let A be a formula with A / . We know A = An for some n. By construction, n {A} is inconsistent (else n+1 = n {A} ). So {A} is inconsistent. So no set bigger than is consistent. And contains 0 .
144
Completeness is proved
Were done now! Relax.
Proof.
Suppose that A0 is not a theorem of K . Claim. {A0 } is consistent. Proof of claim. If not, then by exercise 62, K A0 . But K A0 A0 (instance of tautology). By MP, K A0 , contradicting our assumption. Claim Extend {A0 } to a MCS (proposition 71). By the truth lemma (lemma 70), MK , |= A for every A . But A0 . So MK , |= A0 . We found a model (MK ) satisfying A0 . So A0 is not valid.
145
The canonical model construction was introduced (independently) by Lemmon & Scott (1966), Makinson (1966), Cresswell (1967), and Sch utte (1968). It remains important today.
146