Professional Documents
Culture Documents
AND COMPUTATION
CSLI
Lecture Notes
No. 7
LOGICS OF TIME
AND COMPUTATION
Second Edition
Revised and Expanded
Robert Goldblatt
CSLI OF LANGUAGE
AND INFORMATION
Copyright © 1992
Center for the Study of Language and Information
Leland Stanford Junior University
Printed in the United States
CIP data and other information appear at the end of the book
To my daughter Hannah
Preface to the First Edition
These notes are based on lectures, given at Stanford in the Spring Quarter
of 1986, on modal logic, emphasising temporal and dynamic logics. The
main aim of the course was to study some systems that have been found
relevant recently to theoretical computer science.
Part One sets out the basic theory of normal modal and temporal
prepositional logics, covering the canonical model construction used for
completeness proofs, and the filtration method of constructing finite models
and proving decidability results and completeness theorems.
Part Two applies this theory to logics of discrete (integer), dense (ra-
tional), and continuous (real) time; to the temporal logic of henceforth,
next, and until, as used in the study of concurrent programs; and to the
prepositional dynamic logic of regular programs.
Part Three is devoted to first-order dynamic logic, and focuses on the
relationship between the computational process of assignment to a variable,
and the syntactic process of substitution for a variable. A completeness
theorem is obtained for a proof theory with an infinitary inference rule.
There is more material here than was covered in the course, partly
because I have taken the opportunity to gather together a number of ob-
servations, new proofs of old theorems etc., that have occurred to me from
time to time. Those familiar with the subject will observe, for instance,
that in Part Two proofs of completeness for various logics of discrete and
continuous time, and for the temporal logic of concurrency, as well as the
discussion of Bull's theorem on normal extensions of S4.3, all differ from
those that appear in the literature.
In order to make the notes effective for classroom use, I have deliber-
ately presented much of the material in the form of exercises (especially in
Part One). These exercises should therefore be treated as an integral part
of the text.
Acknowledgements. My visit to Stanford took place during a period of
sabbatical leave from the Victoria University of Wellington which was sup-
ported by both universities, and the Fulbright programme. I would like
to thank Solomon Feferman and Jon Barwise for the facilities that were
made available to me at that time. The CSLI provided generous access to
its excellent computer-typesetting system, and the Center's Editor, Dikran
Karagueuzian, was particularly helpful with technical advice and assistance
in the preparation of the manuscript.
vu
Preface to the Second Edition
The text for this edition has been increased by more than a third. Major
additions are as follows.
• §7, originally concerned with incompleteness, now discusses a num-
ber of other metatheoretic topics, including first-order definability,
(in)validity in canonical frames, failure of the finite model property,
and the existence of undecidable logics with decidable axiomatisation.
• §9 now includes a study of the " branching time" system of Com-
putational Tree Logic, due to Clarke and Emerson, which introduces
connectives that formalise reasoning about behaviour along different
branches of the tree of possible future states. Completeness and de-
cidability are shown by the method of filtration in an adaptation of
ideas due to Emerson and Halpern.
• In §10 dynamic logic is extended by the concurrency command a fl/3,
interpreted as "a and (3 executed in parallel". This is modelled by
the use of "reachability relations", in which the outcome of a single
execution is a set of terminal states, rather than a single state. This
leads to a semantics for [ a ] and < a > which makes them independent
(i.e. not interdefinable via negation). The resulting logic is shown to
be finitely axiomatisable and decidable, by a new theory of canonical
models and filtrations for reachability relations.
A significant conceptual change involves the definition of a "logic" (p. 16),
which no longer includes the rule of Uniform Substitution. Logics satisfying
this rule are called Uniform, and are discussed in detail on page 23. The
change causes a number of minor adaptations throughout the text.
A notable technical improvement concerns the completeness proof for
S4.3Dum in §8 (pp. 73-75). The original Dwm-Lemma has been replaced
by a direct proof that non-last clusters in the filtration are simple. This has
resulted in some re-arrangement of the material concerning Bull's Theorem,
and a simplification of the completeness theorem for the temporal logic of
concurrency in §9 (pp. 95-96).
Other small changes include additional material about the Diodorean
modality of spacetime (p. 45), and a rewriting of the basic filtration con-
struction for dynamic logic (p. 114) using a uniform method of proving the
first filtration condition that obviates the need to establish any standard-
model conditions for the canonical model.
Reformatting the text has provided the opportunity to make numerous
changes in style and expression, as well as te, correct typos. I will be
thankful for, if not pleased by, information about any further such errors.
rob @math. vuw. ac.nz
Vlll
Contents
Bibliography 169
Index 175
Part One
BNF
The notation of Backus-Naur form (BNF) will be used to define the syntax
of the languages we will study. This involves specifying certain syntactic
categories, and then giving recursive equations to show how the members
of those categories are generated. The method can be illustrated by the
syntax of standard propositional logic, which has one main category, that
of the formulae. These are generated from some set of atomic formulae (or
propositional variables), together with a constant _L (the falsum), by the
connective —> (implication). In BNF, this is expressed in one line as
< formula > ::= < atomic formula > | ± | < formula >->< formula >
The symbol ::= can be read "comprises", or "consists of", or simply "is".
The vertical bar | is read "or". Thus the equation says that a formula
is either an atomic formula, the falsum, or an implication between two
formulae.
The definition becomes even more concise when we use individual let-
ters for members of syntactic categories, in the usual way. Let $ be a
denumerable set of atomic formulae, with typical member denoted p. The
set of all formulae generated from $ will be denoted Fma(<?), and its
members denoted A, AI, A', B,... etc. The presentation of syntax then
becomes
Atomic formulae: p € <2>
Formulae: A € Fma(4>)
A::=p\L\A-+ A
Modal Formulae
The language of propositional modal logic requires one additional symbol,
the "box" D. The BNF definition of the set of modal formulae generated
by <? is
Atomic formulae: p 6 $
Formulae: A € Fma(<I>)
A::=p\±\A1->A2\DA
Possible readings of
It is necessarily true that A.
It will always be true that A.
It ought to be that A.
It is known that A.
It is believed that A.
It is provable in Peano Arithmetic that A.
After the program terminates, A.
Other connectives
These are introduced by the usual abbreviations.
Negation: ->A is A —» _L
Verum: T is -i-L
Disjunction: AI VA2 is (->Ai) —> A?
Conjunction: A\ A AI is ->(Ai —> ->Az)
Equivalence: AI <-» A-i is (.Ai —» A%) A (A2
"Diamond": O is
Notational Convention
In the case that n = 0, the expression
Bo A ... A Bn-i -» B
just denotes the formula B.
§1 Syntax and Semantics 5
Exercises 1.1
(1) Decide what OA means under each of the above readings of D.
(2) Which of the following should be regarded as true under the different
readings of D?
OA-+A
HA -» cm
OT
DA-> OA
HA V D--A
D(A -»£)-> (HA -» OB)
<X4 A <XB -> O(A A B)
Subformulae
The finite set Sf(A) of all subformulae of A 6 Fma($) is defined induc-
tively by
Sf(p) = {p}
Sf(±) = {-L}
Sf(A1 -> Ai) = {Al -* A2} U Sf(A1) U Sf(A2)
Sf(OA) = {DA} U Sf(A)
Schemata
We will often have occasion to refer to a schema, meaning a collection of
formulae all having a common syntactic form. Thus, for example, by the
schema
OA-+A
we mean the collection of formulae
Uniform Substitution
The notion of a schema can be made more precise by considering uniform
substitutions, as follows.
Let A and B be any formulae, and p an atomic formula. By the uniform
substitution of B for p in A we mean the procedure of replacing each and
every occurrence of p in A by B. A formula A' is called a substitution
instance of A if it arises by simultaneous uniform substitution for some of
of the atomic formulae of A, i.e. if there exist some finitely many atomic
formulae pi,...,pn, and formulae Bi,...,Bn, such that A' is the result of
6 Prepositional Modal Logic
M\=,A,
is denned inductively on the formation of A € Fma(<!>) as follows.
M K P iff s € V(p)
M ¥s -L (i.e. not M \=s J-)
M K (Ai -> A 2 ) iff Ai f= s A! implies M \=s A2
M (=„ DA iff for all t € 5, s#i implies M\=tA
Exercises 1.2
(1) A4 |=.-.4 iff A4 £, A
Work out the corresponding truth conditions for A AS, AVB, A <-> B.
(2) X (=s OA iff there exists t €. S with sRt and AI (=« A.
Motivations
1. Necessity. Following the dictum of Leibnitz that a necessary truth is
one that holds in all "possible worlds", S may be thought of as a set
of such worlds, with sRt when t is a conceivable alternative to s, i.e.
a world in which all the necessary truths of s are realised. DA then
means "A is necessarily true", while OA means "A is possible", i.e.
true in some conceivable world.
§1 Syntax and Semantics 7
true if s
false otherwise
8 Prepositional Modal Logic
Exercise 1.3
Any tautology is a substitution instance of a tautology of prepositional
logic (i.e. a D-free tautology).
Exercises 1.4
(1) The following are true in all models, hence valid in all frames.
DT
D(A -> B) -> (HA -> DB)
0(A -+£)-> (DA -» 05)
> OB)
O(AVB)<^(OAV OB)
(2) Show that the following do not have the property of being valid in all
frames.
D4-* A
DA -+ DOA
D(A ->£)-> (DA -» 05)
OT
D(Q4 -» B) V D(DB -» A)
D(4 V 5) -> DA V D5
D(DA ^ A)->DA
(N.B. some instances of these schemata may be valid, e.g. when A is
a tautology. What is required is to find a counterexample to validity
of at least one instance of each schema.)
(3) Show that OT and the schema DA —» OA have exactly the same
models.
(4) Exhibit a frame in which DJ. is valid.
(5) In any model M,
(i) if A is a tautology then M \= A;
(ii) if M \= A and M (= .4 -> B, then At |= B;
(iii) if M h ^ then M \= DA.
(6) Items (i)-(iii) of the previous exercise hold if M is replaced by any
frame f.
Ancestral (Reflexive Transitive Closure)
Let T = (S, R) be a frame. Define on S the relations Rn C S x S, for
n > 0, and R*, as follows.
sR°t iff s = t
sRn+1t iff 3u(sRnu & uRt)
10 Prepositional Modal Logic
Exercises 1.5
(1) R1 = R.
(2) sR*t iS Bn > 0 3s0, • • • , 3sn e 5 with so = s, sn = £, and for all i < n,
SiRsi+1.
(3) R* is reflexive and transitive.
(4) If T is any reflexive and transitive relation on S with R C T, then
.R* C T. That is, .R* is the smallest reflexive and transitive relation
on S that contains R.
(5) If SCI, and .R = {(s, s + 1) : s € 5}, what is fl*?
.R* is often known as the ancestral of .R (from the case that R is the "parent
of relation). In view of exercise (4), it is also known as the reflexive
transitive closure of R. The notion will play an important role in the logic
of programs in Parts Two and Three.
Generated Submodels
If M = (S, R, V) and t £ S, then the submodel of M. generated by t is
Mt = (St,R*,V*),
where
5* - {u e S : tR*u}
Exercises 1.6
(1) If R is transitive, then 5* = {t} U {u : tRu}.
(2) 5* is the smallest subset X of S that contains t and is closed under R,
in the sense that u € X and uRv implies v e X .
Corollary 1.8.
(1) M \= A implies M* \= A.
(2) M \= A iff A is true in all generated submodels of M.
(3) f (= yl iff A is valid in all generated subframes of T.
p-Morphisms
Let Mi = (Si,Ri,Vi) and M2 = (S2,R2,V2) be models, and / : 5i -» S2
a function satisfying
sRit implies f(s)R2f(t);
f(s)R2u implies 3t(sR\t & f ( t ) — u);
s £ Vi(p) iff /(a) e Vb(p).
Then / is called a p-morphism from .Mi to MI- A function satisfying the
first two conditions is a p-morphism from frame (Si,Ri) to frame (S2,R2).
p-Morphism Lemma 1.9. If A € Fma(<I>), then for any s e Si,
Mi\=.A iff M,\=f(.)A.
Proof. Exercise.
Exercise 1.11
Let T\ = ({0,1},R) and F-z = ({0},E), where in each case R is the uni-
versal relation 5x5. Show that
Conditions on R
The following is a list of properties of a binary relation R that are denned
by first-order sentences.
1. Reflexive: Vs(sRs)
2. Symmetric: VsVt(sRt -> tRs)
3. Serial: Vs3t(sRt)
4. Transitive: VsVWu(sRt A tRu -» sRu)
5. Euclidean: VsVtVu(sRt A sRu -»tRu)
6. Partially functional: VsVtVu(sRt A sRu -> t = u)
1. Functional: Vs3\t(sRt)
8. Weakly dense: VsVt(sRt -> 3u(s.Ru A uflt))
9. Weakly connected: VsVtVu(sRt A sfiw ->• tRu Vt = uV uRt)
10. Weakly directed: VsVtVu(sRt A sflu -* 3v(tRv A w/Zw))
Theorem 1.12. Let T = (5, fi) be a frame. Then for each of the proper-
ties 1-10, ifR satisfies the property, then the corresponding schema is valid
inT.
§1 Syntax and Semantics 13
M \= HA -» DDA,
M K HOA,
which means
sRt implies M \=t OA,
or, in other words,
Exercises 1.14
(1) Complete the proofs of Theorems 1.12 and 1.13.
(2) Give a property of R that is necessary and sufficient for F to validate
the schema A —> DA Do the same for D-L.
14 Prepositional Modal Logic
First-Order Definability
Theorems 1.12 and 1.13 go a long way toward explaining the great suc-
cess that the relational semantics enjoyed upon its introduction by Kripke
[1963]. Frames are much easier to deal with than the modelling structures
(Boolean algebras with a unary operator) that had been available hitherto,
and many modal schemata were shown to have their frames characterised
by simple first-order properties of R. For a time it seemed that preposi-
tional modal logic corresponded in strength to first-order logic, but that
proved not to be so. Here are a couple of illustrations.
(1) The schema
W : D(DA -» A) -> HA
is valid in frame (5, R) iff
(i) R is transitive, and
(ii) there are no sequences SQ,...,sn,... in S with snRsn+i for all
ra>0.
(for a proof cf. Boolos [1979], p.82). Now it can be shown by
the Compactness Theorem of first-order logic that there exists
a frame satisfying (i) and (ii) that is elementarily equivalent to
(i.e. satisfies the same first-order sentences as) a frame in which
(ii) fails. Hence there can be no set of first-order sentences that
defines the class of frames of this schema.
(2) The class of frames of the so-called McKinsey schema
M: nOA-*enA
Undefinable conditions
There are some naturally occurring properties of a binary relation R that
do not correspond to the validity of any modal schema. One such is ir-
reQexivity, i.e. Vs~*(sRs). To see this, observe that the class of all frames
validating a given schema is closed under p-morphic images (1.10), but the
class of irreflexive frames is not so closed. For instance, it contains (u>, <),
but not its p-morphic image ({0},{(0,0)}) (cf. Exercise 1.11).
§1 Syntax and Semantics 15
Exercise 1.15
Show that neither of the following conditions correspond to any modal
schema.
Antisymmetry: VsVt(sRt A tRs —> s = t),
Asymmetry: VsVt(sRt —> -<tRs).
Historical Note
The concepts of necessity and possibility have been studied by philoso-
phers throughout history, notably by Aristotle, and in the middle ages.
The contemporary symbolic analysis of modality is generally considered to
have originated in the work of C. I. Lewis early this century (cf. Lewis and
Langford [1932]). Lewis was concerned with a notion of strict implication.
He defined "A strictly implies B" as 1(^4 A -i-B), where I is a primitive
impossibility operator (later he expressed this as -<O(A A ~<B), where O
expresses possibility). He defined a series of systems, which he called SI
to 55, based directly on axioms for strict implication. The standard pro-
cedure nowadays is to adjoin axioms and rules for D, or O, to the usual
presentation of prepositional logic. This approach to modal logic was first
used in a paper by Godel [1933]. The model theory described in this section
is due to Kripke [1959, 1963].
To learn about the history of modal logic, the reader should first con-
sult the interesting Historical Introduction to Lemmon [1977], where fur-
ther references may be found.
2 I Proof Theory
Logics
Given a language based on a countable set $ of atomic formulae, a logic is
denned to be any set A C Fma($) such that
• A includes all tautologies, and
• A is closed under the rule of Detachment, i.e.,
if A, A -> B e A then B e A.
Examples of Logics
(1) PL = {A e Fmct($) :Aisa tautology }.
(2) For any class C of models, or of frames (including the cases C = {M}
and C = {f}),
Ac = {A : C h A}
is a logic.
(3) Fma($) itself is a logic.
(4) If {Ai : i & 1} is a collection of logics, then their intersection
Tautological Consequence
A formula A is a tautological consequence of formulae Ai,...,An if A is
assigned true by every valuation that assigns true to all of AI, . . . , An. In
particular, a tautological consequence of the empty set of formulae is the
same thing as a tautology.
16
§2 Proof Theory 17
Exercise 2.1
Show that any logic A is closed under tautological consequence, i.e. if
AI, . . . , An e A, then any tautological consequence of AI, . . . , An belongs
to A
-.-.4 -» A.
Theorems
The members of a logic are called its theorems. We write \~A A to mean
that A is a ^1-theorem, i.e.,
Ki A iff A£A.
\~A A implies C (= A.
C \= A implies \~A A.
(in the case n = 0, this means that \~A A). We write F \fA A when A is
not ,4-deducible from F.
A set r C Fma(<I>) is vl-consj'stent if F \/A -L. A formula ^4 is ^1-
consistent if the set {.A} is.
18 Prepositional Modal Logic
Exercises 2.2
(1) \-A A iff 0 hi A
(2) If \-A A then r h^ A.
(3) If yl C yl', then F\-AA implies T h^. .4.
(4) If A € T then F \-A A.
(5) If F C A and T (-^ /4, then 2\ hA A.
(6) If T \-A A and {yl} h^ B, then T h^ 5.
(7) Detachment: If T h^ A and r h^ yl -+ B, then T h^ B.
(8) Deduction Theorem: F\J {A} \-A B iff F hA A-> B.
(9) r 1-^ yl iff there exists a finite sequence A0,..., Am = A such that for
all t < m, either Ai € F U A, or else ylfc = (^ —» ylj) for some j, k < i
(i.e. ^4j follows from Aj and ^4^ by Detachment).
(10) {A : F \-A A} is the smallest logic containing F U A.
(11) Soundness: If M \=s T U A and T \-A A, then M \=s A.
(12) If F C yl, then F is yl-consistent if, and only if, yl 7^ Fma($).
(13) r1 is yl-consistent iff there exists a formula A with F \/A A.
(14) F is yl-consistent iff there is no formula A having both F \~A A and
r \-A ^A.
(15) r h^ A iff r U {->A} is not ^-consistent.
(16) r U {A} is yl-consistent iff F \/A ->A.
(17) If F is yl-consistent, then for any formula A, at least one of F U {A}
and P U {~<A} is yl-consistent.
Maximal Sets
Let M. = (S, R, V) be a model of a logic yl, i.e. M \= A. Associate with
each s e S the set
• F is /1-consistent, and
• for any A € Fmo(#), either A € F or ->A e F.
We define
SA = {F : r is /1-maximal}.
Exercises 2.3
Suppose F is .^-maximal.
(1) r \-A A implies A e F.
(2) If A $ r, then T U {4} is not /1-consistent. Hence if F C A and
A is /1-consistent, then F = A (this explains the use of the adjective
"maximal").
(3) For any formula A, exactly one of A and -<A belongs to F, i.e.,
(4) ACT.
(5) l^r.
(6) (A -> B) € T iff (^4 € F implies B € T).
(7) AhBeFiS A,BeF.
(8) A v B e r iff ^ e r or B € r.
(9) (A «•» J5) e r iff (A e r iff B € r).
Existence of Maximal Sets
We have yet to show that SA ^ 0, i.e. that there are any yl-maximal sets.
To see this, let
•Ao> AI, • • • ) vljj,
be an enumeration of the set Fma($) (such an enumeration exists, since
<? is countable). Then if F is any /1-consistent set, define
_}AnU{An}, \tAn\-A A
An U {-i/ln}, otherwise.
Exercises 2.4
(1) An is .A-consistent, for all n.
(2) Exactly one of A and ->A is in A, for all formulae A.
(3) If A \-A B, then B € A.
It follows from these exercises that A is yl-consistent. For, if A \- J_, then
^n H J_ for some n, contrary to the consistency of An. Thus we have
established
Lindenbaum's Lemma 2.5. Every A-consistent set of formulae is con-
tained in a A-maximal set.
Corollary 2.6.
(1) {A : r \-A A} = r\{A e SA : F C A},
i.e. F\~A A iff A belongs to every A-maximal set that includes F.
(2) A = r\{A:AeSA},
i.e. \- A A iff A belongs to every A-maximal set.
Proof. We prove only the deeper part of (1). If F \/A A, then r U {~>A}
is yl-consistent (2.2(15)), so for some A € SA, r U {-.4} C A. Then A
includes F but does not contain A, since it contains ->A and is vl-consistent.
Normal Logics
A logic A is normal if it contains the schema
K : U(A -+ B) -> (DA -+ D5),
and is closed under the rule of Necessitation, i.e.,
if \-A A, then \-A OA.
Examples of Normal Logics
(1) For any class C of models, or of frames,
AC = {A:C\=A}
is a normal logic.
(2) If {Ai : i 6 /} is a collection of normal logics, then
is normal. In particular,
K = {~]{A : A is a normal logic}
is the smallest normal logic. The letter K here is in honour of Kripke.
Example 1 shows that any logic determined by relational models or frames
is normal, and so this is the type of logic we will be dealing with throughout.
§2 Proof Theory 21
Exercises 2.7
(1) If A is a normal logic, show the following.
h^ 0(A A B) -f OA A OB.
OA -> DA,
(6) \~K A iff there is a sequence A0,...,Am = A such that for all i < m,
either A: is a tautology or an instance of K, or A* = (^ -> A:) for
some j, k < i, or Aj = OAj for some j < i.
22 Prepositional Modal Logic
54 = KT4
55 = ATT4B
G = KW
K4.3 =K±L
54.3 =KT±L
Exercises 2.8
(1) A is a theorem of KSi ...En iff there is a sequence AQ, . . . , Am = A
such that for all i < m, either Ai is a tautology, an instance of schema
K, or an instance of some Sit or else Ak = (Aj —> Ai) for some j, fc < i,
or else >lj = OAj for some j; < i.
(2) AT£) is the smallest normal logic containing the formula OT.
(3) KB1 = KB5.
(4) S5 = KDB4: = KDB5 = KT5.
(5) In the definition of 54.3, the schema L can be simplified to
(6) AT4 C G, i.e. 1-*^ CU -> DD>1 (cf. Boolos [1979], p.30).
§2 Proof Theory 23
Uniform Logics
A logic A is uniform if it is closed under Uniform Substitution, i.e.,
if A e A, then A' & A whenever A' is a substitution instance of A
(cf. page 5 for the definition of "substitution instance").
Exercises 2.9
(1) A is uniform iff
A € A implies SA C A,
where SA is the schema defined by A (cf. page 6).
(2) If A is uniform, and A n <? ^ 0, then A is not consistent.
Exercises 2.10
(1) Associate with each atomic formula p a formula Bp. Then if M =
(5, R, V) is a model on a frame f — (5, R), define a new model M' =
(5, R, V) on T by putting
V'(p) = {s e S : M K Bp}.
Prove that for any formula A, and any s & S,
A>
M' \=SA iff M K ,
where A' is the result of uniformly substituting Bp for each atomic
formula p in A.
(2) Deduce from Exercise (1) that for any frame T, the normal logic {A :
f (= A} is uniform.
(3) Associate with each atomic formula p a formula Bp, and, as in Exercise
(1), for each formula A, let A' be the result of uniformly substituting
Bp for each atomic p in A.
Let Si,..., Sn be a list of schemata, and A0,..., Am a sequence of
formulae fulfilling the description given in Exercise 2.8(1). Show that
the sequence A'0,..., A'm also fulfills this description with A!i in place
of At.
(4) Deduce from Exercise (3) that any logic of the form KSi ...Sn is
uniform.
3 I Canonical Models and Completeness
24
§3 Canonical Models and Completeness 25
MA K A iff A e s.
Proof. By induction on the formation of A. The case A = p 6 $ is given
by the definition of VA, while the case A = _L, and the inductive case A =
(5 -> (7), follow from Exercises 2.3(5) and 2.3(6). For the case A = OB,
assume inductively that the result holds for B, and apply Theorem 3.2.
Corollary 3.4. MA determines A, i.e. for all formulae A,
MA |= A iff \-A A.
Note that Corollary 3.4 implies that A is complete with respect to the
frame FA:
FA \= A implies \~A A.
A need not however be sound with respect to FA, i.e. it may be that
J-A ^ A. Indeed there are some logics that are not determined by any
class of frames. §7 will discuss examples.
Theorem 3.5. (Determination of K). \~K A if, and only if, A is valid in
all frames.
Proof.
Soundness: For any frame J:, Af — {B : J- \= B} is a normal logic, so
K C Af, i.e. \-jf A implies F (= A.
Completeness: if \/K A, then by Corollary 3.4, A is false in MK, and so is
not valid in the frame FK.
Completeness Theorems
In order to show that a logic A is complete with respect to some class of
models, or of frames, defined by certain conditions, it suffices to show that
MA, or .P1, satisfies those conditions. The great power of this approach
resides in the fact that the proof-theoretic properties of A have an impact on
the properties of the relation RA. To give some examples of this, recall the
first-order properties 1-10 of R, and their corresponding modal schemata,
listed on page 12.
Theorem 3.6. If a normal logic A contains any one of the schemata 1-10,
then RA satisfies the corresponding first-order condition.
Proof. Generally, the proof for a universal condition, like transitivity, is a
relatively straightforward application of the definitions, while cases which
26 Prepositional Modal Logic
HA -» DDA
Then all members of SA contain all instances of this schema. Hence if sRAt
and tRAu, DA € s implies DDyi e s, so D.4 e t as sRAt, and then A e u
as tRAu. This proves
{A : OA e s} C u,
i.e. sRAu as desired.
Weak density. Suppose A contains the schema
UUA -» DA
Assume sRAt. We want to find some u € SA such that sRAu, i.e. {A :
DA € s} C u, and M.R'1*, which is equivalent to {-<\3B : B £ t} C u (cf.
Exercise 3.1). Therefore it suffices to show that the set
u0 = {A : UA e s} U {-.OB : B $ t}
is yl-consistent. For then by Lindenbaum's Lemma 2.5, there will be some
u € SA with MO C u as desired.
Suppose then that MO is not ^-consistent. Then there is a .A-theorem
\-A A! A . . . A Am -» OB
and so by Exercise 2.7(2),
(DOB -» D5) e 5,
Exercise 3.7
Complete the proof of Theorem 3.6.
The next Theorem and Exercises exemplify the way in which canonical
models are used to prove completeness and determination results. The
particular logics concerned were defined on page 22.
Theorem 3.8. 54 is determined by the class of reflexive and transitive
frames.
Proof.
Soundness. If the relation R of frame f is reflexive and transitive, then
the normal logic
contains the schemata T and 4, and so contains KT4 = 54, i.e. hS4 A
implies f \= A.
Completeness. By the schemata T and 4, the canonical 54-frame is reflex-
ive and transitive (Theorem 3.6). Hence if A is valid in all reflexive and
transitive frames, then .F54 |= A, and so (-54 A.
Exercises 3.9
(1) KD is determined by the class of serial frames.
(2) 55 is determined by the class of equivalence relations (reflexive, tran-
sitive, and symmetric frames).
(3) A"4.3 is determined by the class of transitive weakly-connected frames,
and 54.3 by the class of reflexive, transitive, and weakly-connected
frames.
(4) 54.2 is the name of the smallest normal logic containing 54 and the
schema
OUA-^UOA.
Prove that f84-2 is weakly-directed, and that 54.2 is determined by
the class of reflexive, transitive, and weakly-directed frames.
(5) Axiomatise the logics determined by
(i) the class of partially-functional frames;
(ii) the class of functional frames;
(iii) the class of weakly dense frames.
(6) (Harder). For all n > 0, define the formulae DM inductively by
On+1A = DQM.
28 Prepositional Modal Logic
Show that
(v) Show how (iv) encompasses all the completeness theorems we have
mentioned in the above theorems and exercises, except for K 4.3
and 54.3.
{w 6 5s5 : t(RS5)*u},
where (RS5)* is the reflexive transitive closure of JRS5. Since RS5 is reflexive
and transitive, this set is just
{u : tRS5u},
the equivalence class off under the equivalence relation RS5. But an equiv-
alence relation is universal on each of its equivalence classes.
The system 55 has been the focus of attention in work on the theory of
computation relating to the representation of knowledge and information
possessed by robotic systems and other "agents". Among the theorem-
schemata of 55 are
UA -» DCL4
+ D-.CL4
(the latter being a variant of the schema 5). Reading OB as "the agent
knows B" , the first of these says that if an agent knows something, then
it knows that it knows it, while the second states that if it does not know
something, then it knows that it does not know it. The principles of 55
are relevant to the study of an agent that possesses full introspection as to
the content of its own knowledge. For further details of this application,
cf. Parikh [1984] and Rosenchein [1985]. The paper of Rosenchein and
Kaelbling [1986] presents a system in this context with modal connectives
for time, necessity, and knowledge.
Connectedness
A frame is connected if it satisfies
VsVt(sRt V s = i V tRs).
J-\ W J~i is called a disjoint union, since 5i and 83 are disjoint. It can be
shown that any formula valid in both f\ and fy will be valid in T\ W -F2 (cf.
Ex. 3.11(3) below). But the latter is only weakly connected, not connected.
Nonetheless, by using the generated-submodel construction in the way
that was done for 55 in Theorem 3.10 above, we will be able to produce
the connected frames we need.
Exercises 3.11
(1) Let f be a transitive weakly connected frame. Prove that any gener-
ated subframe of F is connected. Then prove that K4.3 is determined
by the class of transitive connected frames, and 54.3 by the class of
reflexive, transitive, and connected frames.
(2) A frame is directed if it satisfies
VsVtBu(sRu A tRu).
Prove that the logic 54.2 of Exercise 3.9(4) is determined by the class
of reflexive, transitive, and directed frames.
(3) (Disjoint Unions in General.) Let {.F, : i € /} be a collection of
frames f± = (5», Ri) that are pairwise disjoint, i.e. 5, n Sj •. = 0 for all
i^j El. Let
Show that
UjFi (= A iff for all i € /, fi f= A.
The result of this last exercise offers a deeper explanation of why 55
is determined by both the class of universal frames and the class of
equivalence relations: any equivalence relation is the disjoint union of
its equivalence classes, each of which is a universal frame.
4 | Filtrations and Decidability
Filtrations
Fix a model M — (S, R, V) and a set F C Fma(<l>) that is closed under
subformulae, i.e.
B € r implies Sf(B) C T.
For each s e S, define
and put
s ~ r t iff Fs = rt,
so that
s ~r t iff for all B € T, M \=s B iff M \=t B.
31
32 Prepositional Modal Logic
/(M) = r.
gives a well-defined and one-to-one mapping of Sr into the set of subsets
of F. Hence Sr has no more elements than there are subsets of F. But if
F has n elements, then it has 2" subsets.
Exercise 4.2
Sr can be finite even if F is not. Define F to be finitely based over M if
there exists a finite set A of formulae such that
V5 6 r 3-B0 6 A (M |= B «-» 50).
Show that ST is finite if F is finitely based over M.
Now let <?r = ^ H P be the set of atomic formulae that belong to F, and
define
by putting
\s\ € Fr(p) iff s 6 F(p)
whenever p € <?r (since then p g J1, Fjn is well-defined).
We are going to consider $r-models of the form M' = (Sr,R',Vr)
with the property that the truth- values of members of F in M and in M'
are left invariant by the correspondence s i-> \s\. Reflection on what is
required to make this work leads to the following definition.
A binary relation R' on Sr is called a F- filtration of R if it satisfies
(Fl) ifsRt, then \s\R'\t\; and
(F2) if \s\R'\t\, then for all B,
if OB e T and Af f=s DB, then M \=t B.
Any #r-model M' = (Sr, R', Vr) in which R' satisfies Fl and F2 is called
a F- filtration of the model M.
§4 Filtrations and Decidability 33
Exercise 4.4
Let Fb be the Boolean closure of F, i.e. the closure of F under the preposi-
tional connectives. Show that the Filtration Lemma holds for all B € Fb.
Examples of Filtrations
1. The smallest filtration.
Exercises 4.5
(1) R" and Rx are always T-filtrations of R.
(2) If R' is any T-filtration of R, then
R" C R' C Rx
(hence the names smallest and largest).
(3) Rr is transitive and satisfies F2. If R is transitive, then RT is a F-
filtration of R.
(4) Define a symmetric relation on Sp that is a T-filtration of R whenever
R is symmetric.
(5) Show that the following properties are preserved in passing from R to
any /"-filtration of R: reflexive, serial, connected, directed.
34 Prepositional Modal Logic
Decidability
A logic A has the finite frame property if it is determined by its finite
frames, i.e.,
if \/A A, then there is a finite frame F with f f= A and Fty=A.
Theorem 4.6 showed that the smallest normal logic K has the finite frame
property, but it showed more: a computable bound was given on the size
of the invalidating frame for a given non-theorem. This implies that the
property of .K'-theoremhood is decidable, i.e. that there is an algorithm
for determining, for each formula A, whether or not \~K A. If A has n
subformulae, we simply check to see whether or not A is valid in all frames
of size at most 2n. Since a finite set has finitely many binary relations (2m
relations on an ro-element set), there are only finitely many frames of size at
most 2™. Moreover, to determine whether A is valid on a finite frame F, we
need only look at models V :$A^ 2s on F, where $A = $ n Sf(A). But
there are only finitely many such models on f. Thus the whole checking
procedure for validity of A in frames of size at most 2" can be completed
in a finite amount of time.
To consider the case of logics other than K, we will say that A has the
strong finite frame property if there is a computable function g such that
if \/A A, then there is a finite .A-frame that invalidates A and has at
most g(n) elements, where n is the number of subformulae of A.
Now in adapting the above decidability argument to A, there is an extra
feature. In addition to deciding whether or not a given finite frame f
validates A, we also have to decide whether or not F \= A. If A is finitely
axiomatisable, meaning that
A = KSl ...Sn
for some finite number of schemata IT,-, then the property "F (= A" is
decidable: it suffices to determine whether each Sj is valid in f. For all of
§4 Filtrations and Decidability 35
Exercises 4.8
(1) Prove that the logics KD, KT, K4, KB, 54, 55, K4.3, 54.3, 54.2
(Exercises 3.9(4), 3.11(2)), are all decidable.
(2) In fact any finitely axiomatisable logic with the finite frame property
is decidable (i.e. the result holds without invoking the computable
function g). Prove this as follows.
(i) Show that a finitely axiomatisable logic A is effectively enumer-
able, i.e. there is an algorithm for enumerating the members of A
(hint: cf. Exercise 2.8(1)).
(ii) Show that if A has the finite frame property and is finitely ax-
iomatisable, then the complement Fma($) — A of A is effectively
enumerable (hint: enumerate all the finite A-frames and system-
atically test formulae for validity in them).
(iii) Use the fact that A is decidable iff both A and Fma(<l>) — A are
effectively enumerable.
Exercises 4.9
A model M is distinguished if for any two distinct points s and t in M
there is a formula A with M \=a A and M ty=t A.
(1) Show that any filtration is distinguished. Hence show that for any
model M, if F = Fma(<l>), then any .T-filtration of M is a distin-
guished model that is "equivalent" to M in some suitable sense.
(2) If M is finite and distinguished, show that for each s in M there is a
formula Aa such that for any t in M,
M\=tAs iff t = s.
(5) Complete the argument showing that for uniform logics, the finite
model property implies the finite frame property .
Syntax
The whole theory presented so far adapts readily to languages with more
than one modal connective. Given a set ^ of atomic formulae p, and a
new collection of symbols {[i] : i G /}, a set Fma/($) of formulae A is
generated by the BNF definition
so that we now have formulae [ i } A for each A & .Fma/(<5) and each i 6 /.
The connective [i] is to be treated in the way we treated d previously.
The dual connective <i> is defined as -i[i]->, and corresponds to O.
Semantics
A frame for this new language is a structure
Logics
The notion of tautology is defined as previously, taking all formulae of the
form [i]A, along with members of #, in the definition of "quasi-atomic"
formula.
37
38 Prepositional Modal Logic
Canonical Model
For a normal logic A, the model
MA = (SA,{RA:i£l},VA)
has
sRAt iff {B : [ i ] B e s} C t,
with the definitions of SA and VA remaining the same. The proof of the
Truth Lemma for MA, i.e.,
MA K A iff A£ s,
continues to work as previously: we simply treat each connective [ i } in the
way we treated D in §3. It follows that the logic Kj is determined by the
class of all frames for the present language.
Filtrations
In defining a T-filtration M' = (Sr, {#• : i € /}, Vr) of a model M =
(S, {Ri : i £ /}, V), we stipulate, for each i e /, that R^ is a F- filtration of
is as before. This yields a proof that the smallest normal logic Kj has the
strong finite frame property and is decidable.
§5 Multimodal Languages 39
Generated Submodels
Given a model M = (S,{Ri : i £ I},V), and an element t £ S, the
submodel M* = (S*, {R* : i £ I}, V*) generated by t is defined as follows.
A subset X of S is I-closed if it satisfies:
if u £ X, then v £ X whenever there is an i £ I with uRiV.
An intersection of /-closed sets is /-closed, so we can define 5* as the
smallest /-closed subset of S that contains t. R\ and V* are the restrictions
of Ri and V to 5*.
Exercises 5.1
(1) Show that Ml K A iff M \=u A.
(2) Show that for languages with a single modal connective (i.e. when /
is a singleton), the present definition of M* agrees with that given in
§1-
(3) p-Morphisms. Formulate the appropriate notion of p-morphism for
multimodal languages, and prove the analogues of the p-Morphism
Lemmas 1.9 and 1.10.
6 I Temporal Logic
then in MA,
sR$t implies
(4) If a normal logic A contains the schema
then
implies sR$t.
40
§6 Temporal Logic 41
Temporal Logics
The preceding exercises indicate that any temporal logic should at least
contain the two schemata that they discuss. In the frames for such a
logic, RY and Rp are interdefinable, so we may as well take one relation as
primitive, and use frames F = (S, R), where R C S x 5, with the modelling
M\=S[F]A iff sRt implies M K A,
M\=S[P]A iff tRs implies M \=t A.
But it is natural also to require a temporal ordering to be transitive, so
we will now define a time-frame to be any structure T = (S, R) with R
a transitive relation on S, and with the modelling just given. A temporal
logic is defined to be any normal logic in the language of [F] and [P] that
contains the schemata
CP:
CF:
4P:
4F:
Mirror Images
Notice that these schemata come in pairs, related by interchanging past
and future connectives. Members of such pairs are called "mirror images"
of each other.
The smallest temporal logic, which is
DA may be read "always A", i.e. at all times, past, present, and future.
The dual formula OA = -iD-iA is tautologically equivalent to
<P> AV AV <F> A,
meaning "at some time (past, present, or future), A".
42 Prepositional Modal Logic
Exercises 6.3
Let T be any frame.
(1) Show that
Exercises 6.4
Let f be a strict total ordering.
(1) Show that
f\=A/\[P]A-*<F> [P]A
iff every element of f has an immediate successor.
§6 Temporal Logic 43
iff every element except the last one (if it exists) has an immediate
successor. (An element x is last if there is no y with x < y.)
(3) Work out the mirror images of Exercises 1 and 2.
(4) Show that
iff f is continuous.
Exercises 6.5
(1) Let R = R U R-1, where R'1 = {(v, u) : uRv}. Show that
5* = {u € 5 : t(R)*u}.
5* = {u : tRu or t — u or uRt}.
Temporal p-Morphisms
For temporal logic, a p-morphism / : MI —* Mi must satisfy the condi-
tions
sRit implies f(s)R2f(t),
f(s)R2u implies ^(sRrf & f(t) = u),
uR2f(s) implies 3t(tRlS & f(t) = u),
in order for the p-Morphism Lemma
Mi\=.A iS Mt\=f(.)A
to hold for all formulae A in the language of [P] and [F].
Temporal Filtrations
In defining J'-filtrations of models M = (S, R, V) on time-frames, we want
to preserve both the transitivity of R and the fact that R is RF and .R"1
is Rp. A suitable relation for this purpose is RT C Sp x 3r, where
\s\RT\t\ iff [F}B e T &ndM^g[F]B implies M\=t[F]B/\B,
and
[P]B eT and M\=t[P]B implies M K [P]5A5.
The model M = (Sr, RT, Vr) is then transitive, and the Filtration Lemma
T
Minkowski Spacetime
The Diodorean logic of four-dimensional special-relativistic spacetime has
been shown to be the system 54.2 of Exercise 3.9(4) (Goldblatt [1980]).
To explain this further, we first describe the structure of n-dimensional
spacetime.
If x = (#1, . . . , xn) is an n-tuple of real numbers, let
Observe that the future cones of any two points must overlap, so that the
frame is directed and validates the 54.2 axiom schema
46 Prepositional Modal Logic
The work of Goldblatt [1980] involves showing that each of the frames Tn
has 54.2 as its Diodorean modal logic. Noting that there is a natural p-
morphism from T™+1 onto T™ (viz. delete the "first coordinate"), the heart
of the proof is then a demonstration that there is a p-morphism from T2
onto any finite generated frame that is reflexive, transitive, and directed.
The class of such finite frames determines 54.2 (Exercises 3.11(2), 4.5(5)).
Other interesting (strict) temporal orderings can be considered on space-
time, such as
x -< y iff n(y - x) < 0 & xn < yn,
and
xay iff x ^ y & x < y.
Here x -< y holds when a signal can be sent from x to y at slower than
light-speed, while a is the irreflexive version of <.
These orderings can be distinguished in terms of the validity of modal
formulae. There may be two propositions A and B that are true in the
future just at two points that can only be reached by travelling in different
directions at the speed of light. Then O.AA OB will be true now, but never
again in the future. Thus the schema
OA A OB ->• O(OA A OB)
is falsifiable under the ordering a. It is however valid under ~<, since a
slower-than-light journey can always be speeded up, so we could wait some
time and then travel at a greater speed to A and to B. This example is
discussed further in Goldblatt [1980], where it is also shown that under a it
is possible to distinguish the dimension of spacetime, e.g. there is a modal
formula that is valid in (R 2 ,a) but not in (E 3 ,a).
The only known axiomatisation result for the temporal logic of space-
time is the one we have been discussing concerning 54.2. There are several
open problems here that the reader may be interested in thinking about:
• axiomatise the full temporal logic, in the language of [F] and [P], of
the frames (E71, <);
• axiomatise the full temporal logic, and the Diodorean modal logic, of
the frames (E™, -<) and (R n ,a);
• analyse the case of discrete spacetime, in which K is replaced by Z.
The formula AUB is read "A until B", meaning that there is a future point
at which B is true, with A true at all points between now and then.
Notice that
M \=a TUB iff there exists t such that sRt and M f=( B,
so that the formula TUB is equivalent to < F > B. Hence [F]B is equiva-
lent to --(TW-.B).
The formula LUB expresses that B will be true at a future point, with
nothing in between, i.e. B is true at an immediate successor. Hence this
formula is read "next B", and is a natural construct to consider on discrete
orderings, like (Z, <) and (w, <).
Exercise 6.7
Give a semantics for the notion "A since B", and use the notion to define
< P > B and a formula expressing "B was true at the previous moment".
The connectives since and until have been shown (Kamp [1968]) to form a
complete set of connectives for continuous orderings. In a way that can be
made precise, they suffice to define all possible prepositional connectives
that express temporal properties of such orderings. The connective until
has been used extensively in the temporal logic of concurrent programs,
and will be studied in that context in §9.
7 I Some Topics In Metatheory
First-Order Definability
In §1 a number of examples were given of modal schemata whose frames
were characterised by first-order conditions on a binary relation R. All of
these, and many others, can be subsumed under a general class of schemata
devised by Lemmon and Scott (Lemmon [1977]).
A formula y> is positive if it can be constructed using no connectives
other than A, V, D and O. Thus a BNF definition of the class of positive
formulae is
(p ::= p | <?! A ip2 | ^ V <p2 \ Dip \ Oip.
We write y>(pi, . . . ,pk) to indicate that the atomic formulae occurring in y>
are among the list pi, . . . ,pk- ^(Ai, • • • i -^fc) 1S then the formula obtained
by uniformly substituting, for each 1 < i < k, the formula A, for pi in 93.
Exercise 7.1
Let y(pi, . . . , p k ) be positive. If A is any normal logic, and \~A At —> Bi for
1 < i < k, then
48
i
§7 Some Topics In Metatheory 49
A - - - AsRmktk
Exercises 7.2
(1) In any model .M, if Jfy>(s, t, n) and M \=ti D"'^i for 1 < « < fc, then
These exercises show that the frames validating y>JJ* are precisely those
satisfying -Ri/7™! and hence in particular that the logic K(p™ is sound with
respect to these frames. Completeness can be shown by the canonical model
method, with the key result being
Lemma 7.3. If<p(pi, . .. ,pk) is positive, then the canonical frame for any
normal logic A satisfies
Proof.
By induction on the formation of (p. We give the proof for k = 1, and drop
the subscripts. The case <p — p amounts to the claim that
tRns iff {A : DM e t} C s
which was given as Exercise 3.9(6)(iii).
The most complex part of the proof concerns the inductive case of Oip,
under the hypothesis that the Lemma holds for <p. Assuming that
DnA€t}C8, (t)
50 Prepositional Modal Logic
es. (t)
n
Now let 5 = BT. A • • • A Bn. Then it may be shown that D B £ t (cf.
Exercise 3.9(6)(ii)), and so by (t), O<p(B) € s. But \-A ip(B) -»• (p(Bi) for
1 < i < /, by Exercise 7.1, so
whence
h^ 0^(5) -» 0(^(fli) A •
and thus
Exercises 7.4.
(1) Complete the proof of Lemma 7.3.
(2) Let A be a normal logic that contains the schema y™. Prove that TA
satisfies the first-order condition R<f>™.
(3) If A is the smallest normal logic containing a collection {(y\)™' : i € /}
of Lemmon-Scott schemata, show that A is determined by the class of
those frames that satisfy all the conditions {-R(yj)™* : i € I}.
§7 Some Topics In Metatheory 51
Sahlqvist's Schemata
The form of the schema y™ was generalised by Sahlqvist [1975], to consider
formulae of the type
Canonicity
A normal logic A is canonical if it is validated by its canonical frame, i.e. if
FA \= A. The most accessible example of failure of canonicity is the logic
KW, where W is the schema
D(Q4 -» A) -» HA
Exercise 7.5
Let M — (S,R,V) be a model containing a point s such that sRs. If
V(p) = S — {s}, show that D(Dp —» p) —» Dp is false at s in M.
This Exercise shows that W is not valid on any frame possessing a reflexive
point, and so to show that KW is not canonical it suffices to exhibit such
an s e SKW with sRKWs. For this purpose, consider the set
sQ = {-^nA:\fKW A}.
S = S1 U • • • U Sn U {00}
R = Rl U • • • U Rn U {{oo, s) : s € S & oo ^ s}
Exercises 7.6
(1) If s & S\ then for any formula B,
M\=aB iff A f K # .
(2) M (= W
Note: in view of Exercise (1), the heart of the matter is to show that
any instance of W is true in M at oo.
AM = {B:M\=B}
contains KW. But in view of (ii), 7.6(1) and the construction of Ai,
M Hoc -.DAi A - - - A - . D A B .
and so
-.(-.D^! A • • • A -.DA) £ ^W
It follows that (i) must be true, completing the proof that s0 is KW-
consistent, and hence that KW is not canonical.
§7 Some Topics In Metatheory 53
mentioned in §1, where it was pointed out that the class of all frames for
M is not elementary. It was shown further in Goldblatt [1976] that the
logic KM is not determined by any elementary class of frames.
It would appear that the schema M is the simplest example not (equiv-
alent to one) meeting the definition of Sahlqvist's schemata. Until recently
the question of the canonicity of KM was unresolved, leaving open the
possibility that it could be a counter-example to the above conjecture.
However, that possibility has now been removed: a proof is given in Gold-
blatt [1991] that there is a model on fKM that falsifies an instance of
M.
In other respects KM is better behaved. Fine [1975i] shows that it
has the finite frame property and is decidable.
54 Prepositional Modal Logic
Mk : CUi A A2 -» 0(D2Ai A OA 2 ).
Exercise 7.7
Verify that the first-order condition corresponding to Mk is
Now let A» be the logic KTMk. Then from our analysis of Lemmon-Scott
schemata we know that At is determined by the class of all reflexive frames
that satisfy the condition of 7.7. To show that At lacks the finite model
property we prove two things:
(1) If M is a finite A, -model, then the schema 4 is true in M, i.e. for any
formula A, M |= OA -> D 2 A
(2) For some A, \/A, DA -> O2A .
Proof of (1). Let M be a -A»-model that rejects 4. Then we show that
M must be infinite, by showing that it contains a sequence s\, . . . , sn, . . .
of distinct points. To begin with, there is, by hypothesis, some formula A
and some point si such that M ^=Sl DA A ->D2A.
Now make the inductive assumption that sn has been defined and has
(1)
But the formula
DM A -.Dn+1A -» 0(nn+1A A -i
where w is the set {0, 1, 2, . . .} of natural numbers, and mRn iff m < n + 1,
so that each number is .R-related to all numbers big than or equal to its
predecessor. J>, which first appeared in Makinson [1969], has become
known as the recession frame.
Exercises 7.8
(1) Show that FT validates the logic A*.
(2) Show that TT is not transitive, and so carries a model in which an
instance of schema 4 is false. Hence complete the argument showing
that A# lacks the finite model property.
Incompleteness
The canonical model construction shows that any consistent normal logic is
determined by some model. On the other hand, there are consistent logics
that are not determined by any class of frames. The first example of such
an incomplete logic was a temporal one, discovered by Thomason [1972]. It
can be defined as the smallest temporal logic AT containing the schemata
DF: <F>T
WP: <P>A
MF: [F]<F>A-KF>[F]A.
element. But then we can choose a subset Y of Xs such that neither Y nor
XS — Y has a last element. Putting V(A) = Y then gives a model in which
Mp is false at s. However this contradicts the hypothesis that f \= Ax-
To see that AT is nonetheless consistent, it suffices to construct a model
for it (by the argument just given, the frame of this model must carry other
models that falsify AT)- Let M = (u>, <, V), where w = {0, 1,2,.. .}, and
V(p) = 0 for all p € #. The frame (w, <) validates all axioms of AT
except Mp. An inductive argument shows that for any formula A, the set
{n e u> : M. \=n A} is either finite, or cofinite (i.e. has a finite complement).
Thus "as time passes", A eventually becomes either false forever (finite
case), or true forever (cofinite case). In the first case [F] < F > A is false
everywhere, and in the second case <F> [F]A is true everywhere. Hence
M (= Afp.
Exercise 7.9
Fill in all the details of the above argument.
Incomplete D-Logics
After the discovery of AT, a number of incomplete logics in the language of
a single modal connective D were produced (Thomason [1974], Fine [1974],
van Benthem [1978]). The latest, and seemingly simplest, example appears
in a paper by Boolos and Sambin [1985], where its discovery is attributed
to R. Magari. The logic is KH, where H is the schema
D(Q4 «-» A) -» DA
Notice that KH C KW, where W, as above, is
f A) -» DA
We noted in §1 that any frame for W is transitive (Boolos [1979], p.82),
and hence validates
4 : UA -> DQ4.
Boolos and Sambin show that H and W are valid on exactly the same
frames, implying that any KH-frame must validate 4. They then give a
model for H in which 4 is false, showing that 4 is not .K".H-deducible.
To spell out some details, suppose F |= H . To prove f is transitive,
take a point s in order to show that
sRt & tRu implies sRu.
Let M be any model on f in which
V(p) = {t:u-eSt implies sRu}
(recall that 5* = {v : tR*v} is the subframe generated by t).
§7 Some Topics In Metatheory 57
Exercise 7.10
Show that M \=a D(Dp <-> p).
Since T \= H, it follows from this exercise that M \=a Dp. Hence if sRt
and tRu, we have t € V(p) and u e 5*, so sRu as desired.
and then allowing each non-negative integer to also have itself and its
predecessor as ^-alternatives (hence destroying transitivity). Formally, if
m,n € Z, then mRn iff one of the following hold.
n< 0 < m
0<m<n+l
m < n < 0.
Exercises 7.11
(1) Show that Dp —> DDp is false at the point 2 in M.
(2) Show that for all formulae A, the set {m : M \=m A} is either finite
or cofinite. Use this to prove M (= H.
Undecidability
A logic with the finite frame property is decidable, provided that it is
finitely axiomatisable. This last qualification is essential: there exist logics
with the finite frame property that are undecidable. In fact, Urquhart
[1981] showed that for any subset X of a; there exists a logic AX with the
finite frame property, such that AX has the same "degree of unsolvability"
as X. We now discuss this result, using the following definitions.
Exercises 7.12
(1) In any model,
M |=g DJ- iff s is dead;
M \=s OT iff s is live.
(2) For any n e w , Fn+2 f= g 0 iff a = 0. (Note: since 0 contains no
atomic formulae, its truth at any point in Fn+2 is independent of any
particular model on that frame.)
(3) Fn+2 h> An
(4) Fn+2\=Aj i f j / n .
(5) Qn |= -.6, and hence Qn f= A, for all j.
§7 Some Topics In Metatheory 59
\-Ax Aj iff j e X.
Axioms for AX
We now develop an axiomatisation for AX, and strengthen the analysis
to prove Urquhart's result that there is an undecidable AX that has a
decidable set of axioms. We need the following schemata
Pfun: D(OA->DA)
De: 0(D-L A A) -> D(D± -» A)
Li: O ( O T A A ) - > D(OT-> A)
Exercises 7.15
Let A be any normal logic containing Pfun, De, and Li. Work in the
canonical model MA for A.
(1) Use Pfun to show that if sRAt, then t itself is .R^-related to at most
one point in SA.
(2) Use De to show that each s e SA is .R^-related to at most one dead
point.
(3) Use Li to show that each s e SA is .R^-related to at most one live
point.
60 Prepositional Modal Logic
turn can be .R-related to at most one point, and so on, so that M consists
of s_i and an ^-sequence of the form (%) above.
This .R-sequence is then analysed as in Case 1. If some sn+2 is dead,
then the frame of M. is isomorphic to J~n+2, unless we have sn+2 = s_i-
But in the latter case there is an evident p-morphism from Fn+i onto the
frame of M in which m maps to sm for — 1 < ra < n + 2, and n + 2 maps
to the dead point s_i. In either event we are led to a falsifying model for
A on Fn+2- But since OT £ sn+2 and 0 e SQ, it follows that An £ SQ,
hence \/A An, and so n $ X. This implies that fn+2 G Cx, giving Cx \^ A
as desired.
If no sn+2 is dead, then we adapt the sequence (%) by truncation
and/or extension as in Case 1, to again obtain a falsifying model for A on
a frame isomorphic to some Tn+i- Here, finally, we invoke the assumption
that ui — X is infinite, for then we can choose to take n large enough that
n £ X as well as n + 2 > deg(A). Again this gives .Fn+2 € Cx-
This completes the proof of Theorem 7.16.
Corollary 7.17. There exists an undecidable logic that has a decidable
set of axioms.
Proof. Let X be an effectively enumerable but undecidable set of natural
numbers. Then AX is undecidable, and w — X is infinite, so the axioms for
AX are as described in Theorem 7.16. Since X is effectively enumerable,
so too are these axioms. But by a well known metalogical result due to
Craig, a logic with an effectively enumerable set of axioms has a decidable
such set. Indeed, if A = {Ao, AI, ..., An,...} is an effectively enumerable
set of formulae, then the smallest logic containing A is also the smallest
logic containing the decidable set
{Ao, A0 A AI, ..., A0 A • • • A An, }.
Part Two applies the techniques developed in the previous sections to some
standard temporal logics, and to some modal logics that have been em-
ployed in the theory of computation. One of these, examined in §9, involves
the use of temporal logic to express properties of linear state sequences gen-
erated by concurrent programs. To study this logic, it is helpful to first iso-
late its "[F]-fragment", and axiomatise the logic determined by the frame
(u>, <) in the language of a single modal connective. This will be done in
the present section, in the context of a general study of discrete, dense,
and continuous time. §10 introduces the multi- modal language of dynamic
logic, in which the modal connectives are indexed by the commands of a
programming language.
Discrete Future Time
In the D-language of §1, let f2 be the logic K4DLZ, with axioms
4: OA -> DOA
D: HA -> OA
L: H(A A HA -» B) V D(B A OB -> A)
Z: D(D4-»yl)-»(on>4-»n4).
Our first goal hi this section is to prove that
\-nA iff (u,<)]=A.
Each of the axioms of f i embodies a feature of the frame (w, <). 4 corre-
sponds to transitivity, D to seriality ("endless time"), and L to connect-
edness. Z embodies an aspect of the discreteness of (w, <), namely that
between any two points there are only finitely many other points. What
this has to do with Z may be learned from
Exercises 8.1
(1) Show that (w, <) \= Z.
(2) Soundness of J? : Prove that
\-(i A implies (u, <) \= A.
(3) Let T = ((jj U {oo}, R), with mRn i f f m < n e u ; o r n = oo. Show that
65
66 Some Temporal and Computational Logics
Clusters
In order to carry through a completeness theorem for -fi, we need a fine
analysis of the structure of any transitive frame T = (S, R). In such a
frame, define an equivalence relation w on S by
Ordering Clusters
Putting
Cs < Ct iff sRt
gives a well-defined relation between clusters that is transitive and anti-
symmetric. Hence putting
/*** -^ /^ iflT /*** ^* /^ Sr /*"* / /T
L/s %. O( III Og ^ L/t 06 t_/g 7^ O(
Exercises 8.2
(1) Verify that w is an equivalence relation.
(2) Verify that < and < are well-defined relations, and have the asserted
properties.
(3) In a transitive model, if Cs = Ct, show that for any formula B,
If S is finite, then this sequence will have a first and a last cluster.
Balloons
A balloon is a finite transitive and connected frame whose last cluster is
non-degenerate, while all other clusters are degenerate:
(there need not actually be any non-last clusters, so a finite universal frame,
comprising a single non-degenerate cluster, is counted as a balloon).
Exercises 8.3
(1) If f is a balloon, show that f (= fi.
(2) If J- is a transitive frame that has a non-degenerate cluster C that is
not last (i.e. C < C' for some cluster C'), show that T ^ Z.
Theorem 8.4. If T is a balloon, then F is a p-morphic image of (w, <).
Proof. Let S = {s0,..., sn-i,t0,..., tm-i}, where {s0},..., {sre_i} are the
degenerate clusters in Oorder (if there are any), and {to, • • •, ^m-i} is the
non-degenerate last cluster. Define / : w —> S by
f ( i ) = Si (0<i<n)
f(n + q-m + j)=tj (0 < j < m, q 6 w).
As a sequence, / looks like
with the last cluster repeated forever. Since R is universal on this last
cluster, the properties of a p-morphism are satisfied, as the reader should
verify.
68 Some Temporal and Computational Logics
Completeness of K4DLZ
It follows from Theorem 8.4 that if (u, <) (= A, then A is valid in all
balloons. Thus to prove that the logic /? is complete with respect to (u, <),
it suffices to show that it is complete with respect to the class of balloons,
i.e. that any non-theorem of J? is falsified by a model on some balloon. This
will also show that fl has the finite frame property, and so is decidable (cf.
Theorem 4.7 and Exercise 4.8(2)).
Suppose then that \/n A. As just explained, we want to find a balloon
in which A is not valid.
First Model. Since \/n A, A is false at some point SA in the canonical
model Mn'. In virtue of the schemata 4, £), and L, Mn is transitive, serial,
and weakly connected.
Second Model. Let M = (S, R, V) be the submodel of Ma generated by
SA- Then by the Submodel Lemma 1.7, A is false at SA in M, and M (= ft
because Mn \= ft.
Also, R is transitive, serial, and connected (Exercise 3.11(1)).
Third Model. Let F = Sf(A), and let
MT = (Sr,RT,Vr)
be the transitive T-filtration of M. (Exercise 4.5(3)). By the Filtration
Lemma 4.3, A is false at \SA\ in Mr. Also Sr is finite (4.1), while RT is
transitive, serial, and connected (4.5(5)).
Thus the frame of Mr consists of a finite sequence of clusters. More-
over, the last cluster, Cx say, is non-degenerate. For, by seriality, there is
some y with xRTy, and so Cx < Cy. But then Cx = Cy, as Cx is last,
making Cx < Cx.
However, at this point we cannot rule out the possibility that MT has
some non-degenerate cluster that is not last, so that the frame of M7 is
not a balloon. Hence MT may not be the model we are seeking.
Fourth Model. (Balloon Surgery)
If MT does have a non-last cluster C that is non-degenerate, then we
could try to remove it by weakening the relation RT in C to some strict
total ordering, so that C is replaced by a sequence of degenerate clusters.
We would want to do this in such a way that the truth-values of members
of F were left unchanged, so that our non-J?-theorem A is still false at \SA\
in the new model.
The potential problem with this idea is that formulae of the form OB
that are false at certain points in C in MT may cease to be false, because
the /^-alternative at which B is false may no longer be an alternative in
the new model. However this turns out not to be a problem in the presence
of the axiom schema Z, which is true in the second model M.
§8 Logics with Linear Frames 69
MfaO(OB->B),
Final Model
For each non-degenerate non-last cluster C of MT, let <c be a strict total
ordering of the points of C. Define
M' = (Sr,P!,Vr),
where xR'y holds if and only if xRTy and either x and y do not belong
to the same non-degenerate non-last cluster, or else x <c y for some such
cluster C. Then the frame of M1 is a balloon. For each B 6 F and s € 5
we have
M\=8B iff M' |=|. B. (t)
This is proven by induction on the formation of B, using the fact that R'
is contained in Rr and so satisfies the second filtration condition. The only
problematic case in the proof is taken care of by the Z-Lemma.
It follows in particular that M' ^\SA\ A, so we have found our falsifying
model on a balloon for the non-J?-theorem A. Since Sp has at most 2"
elements, where n is the number of subformulae of A, we also get the
strong finite frame property for the logic J?.
Exercise 8.6
Work through the proof of (t).
70 Some Temporal and Computational Logics
Completeness for KW
The schema Z is weaker than the ubiquitous
W : D(DA -> A) -> DA,
Exercises 8.7
(1) Prove that KW is determined by the class of finite strict orderings,
and is decidable (remember that KW = K4W).
(2) (Alternative completeness proof.) If F is a finite set of formulae closed
under subformulae, and M is the canonical model of a normal logic
containing KW, define
M' = (Sr,R',Vr),
where
xR'y iff xRTy and not yRTy.
Prove that R' is a strict ordering, and that
Exercises 8.8
Let P be either R or Q. A right-open interval in P is a subset of P having
one of the forms
for some r and q. In each case, q is the right end-point of the interval. We
allow q — oo here, with, as usual,
[r, oo) = {p 6 P : r < p} and (r, oo) = {p e P : r < p}.
Observe that by the density of < in P, any right-open interval can be
decomposed as the disjoint union of n right-open intervals, for any positive
integer n.
Next, let M. be a generated submodel of the canonical model for K4DLX,
and MT the transitive ^-filtration of M for a suitable finite F, as in the
completeness proof for K^DLZ.
(1) Show that for any right-open interval / in P, the frame (/, <) can be
mapped p-morphically onto any non-degenerate cluster in MT (hint:
choose in the interval a strictly increasing sequence that converges to
the right end-point, and adapt the construction of Theorem 8.4).
(2) Show that MT does not contain any adjacent degenerate clusters, i.e.
any degenerate cluster is immediately followed by a non-degenerate
one (hint: this uses connectedness as well as weak density of R).
(3) Let / be a right-open interval in (P, <) of the form [r, q). Apply
the previous two exercises to show that there is a p-morphism from
(/, <) onto the frame o f M T , by mapping appropriate subintervals onto
non-degenerate clusters, and the right end-points of intervals onto any
degenerate clusters that may be present. Deduce that
(/, <) [= A iff \-KWLX A.
(4) Use the Submodel Lemma 1.7 to show that the determination result
of Exercise 3 can be extended to hold for / = (r, q) for any r, including
r = oo, and in particular for / — R and / = Q.
(5) Adapt the above constructions to show that if 7 is a right-open interval
in P, or any of the sets listed in the previous exercise, then
(/,<)M ^ I-S4.3A.
(6) Having worked through the foregoing, it should be becoming clear just
what properties of a total ordering suffice for it to determine one of
the logics K4DLX and 54.3. Write down a minimal list of properties
that suffice in each case.
The Discrete Diodorean Case
The logic determined by the reflexive frame (w, <) is S4.3Dum, that is to
say KT4LDum, where the schema Dum (named for Michael Dummett),
is
U(U(A -» DA) -» A) -* (OCL4 -» A).
72 Some Temporal and Computational Logics
Exercise 8.9
Show that Dum is valid in (w, <).
Lemma 8.10.
(1) Rc is reflexive, transitive, and connected.
(2) Rc is contained in any F-filtration of R.
Proof.
(1). Reflexivity and transitivity of Rc follow readily from the fact that
R has these properties. For connectivity, suppose that it is not the case
that xRcy. Then there exists s e x such that sRt fails for all t e y. But
then tRs holds for all t e y, since R is connected. This shows that yRcx.
(2). Suppose xR°y. Take any s €. x. Then sRt for some t € y. But if
R' is any T-filtration of R, sRt implies |s|-R'|<|, i.e. xR'y, as desired.
Proof. Let C be the .RT-cluster of \s\, and let z be a member of the head
CH of C. Then \s\Rcz.
Next, let X be the union of all the .Rc-clusters that precede the R°-
cluster CH, i.e.
Then if X = {XQ, • • • , xm}, for each j < m we have not zR°Xj, and so there
exists Sj € z such that not SjRt for all t € Xj.
Now as R is connected, the Sj's are ^-ordered in some fashion, so we
may assume that s0Rsi • • • Rsm. Then if smRt, we cannot have t € Xj for
any j, or else as SjRsm, we get SjRt, contrary to the definition of Sj. Thus
Next observe that M \£Sm OB. For, since M. \fcs DJ3, M\£UB for some
u € 5 with sRu. Then |S|^T|M|. But |sm|J?T|s|, since |sm| and \s\ have the
same .RT-cluster C, so |sm|.RT|u|, ensuring that M \£Sm OB by filtration
condition (F2).
Hence M. fct B for some t such that smRt. But then \t\ £ X, as
above, so the .Rc-cluster of |t| does not precede that of z, implying that
zRc\t\, and hence |s|-Rc|i|.
Finally, if \s\ £ CH, then not zRc\s\, and so not
Proof. Exercise.
Then
M K Bt iff s ~ r t iff \s\ = \t\.
Now Sr is finite, since F is finite. So if
A' = {|t1|,...,|tB|},
we can take 5x to be
Btl V - - - V B t » .
Exercises 8.15
(1) Fill in all the details of the argument just given.
(2) A variant of Dum is the schema
H(O(A -» OA) -f A) -» A
To construct a .A-model that rejects A, we will remove all but the head
from each .RT-cluster.
A point z € Sp is called essential if it belongs to the head of its own
.RT-cluster. Let
E = {x : x is essential}
be the union of all the heads of J?T-clusters. Notice that the relations Rr
and Rc are identical when restricted to E.
Now define a map / : S —» E, as follows. For each .RT-cluster C,
let xc be a fixed, but arbitrarily chosen, member of the head of C. Put
f ( s ) = \s\ if \s\ is essential, and otherwise let f ( s ) = xc, where C is the
#T-cluster of \s\. In both cases, \s\ and f ( s ) are in the same .RT-cluster, so
f(s)Rr\s\ and \s\RT f ( s ) . Moreover, since f ( s ) is in the head, we invariably
have \s\Rcf(s).
Lemma 8.16. / is a p-morphism from (S, R) onto (E, RT).
Proof. First, if sRt, then f(s)RT\s\Rr\t\RTf(t), and so f ( s ) R T f ( t ) as Rr
is transitive.
Second, suppose f(s)RTx, with x € E. Then f(s)Rcx. But \s\Rcf(s),
so |s|.Rc£, implying that there is a t with sRt and t 6 x, hence f ( t ) = x.
This establishes the two p-morphism conditions for /.
Lemma 8.17. For any Y C E, there is a formula By such that for all
ses,
M^SBY iff f(s)£Y.
Proof. By the way / was constructed, using the fixed elements xc, f pre-
serves T-equivalence classes, i.e.
t € |s| implies f ( t ) = f ( s ) .
B. (t)
The case B = p € $ of this result is given by the definition of Bp, and the
inductive cases are straightforward, as / is a p-morphism.
and
The smallest linear temporal logic will be denoted Lin. In view of Exercises
6.3, it follows that Lin is determined by the class of transitive, weakly
future-connected, and weakly past-connected frames. Indeed, the canonical
model MA of any linear temporal logic A has these properties. Hence
any generated submodel M of such a canonical model is transitive and
connected (Exercise 6.5(3)). Consequently, a temporal filtration MT of
such a generated subframe will also be transitive and connected (Mr was
defined just prior to Exercises 6.6).
We will consider the completeness problem for the three standard types
of irreflexive linear time.
Discrete Time
Let LinDisc be the smallest linear temporal logic containing the schemata
DF: <F>T
Dp: <P>T
ZF:
Then LinDisc is determined by the integer frame (Z, <). The proof of this
is a straightforward adaptation of the proof that the modal logic K4DLZ
is determined by the frame (w, <). In LinDisc there is complete symmetry
between the past and future operators. Dp makes the last cluster in a
finite filtration MT be non-degenerate, while DP does the same to the first
cluster. Zp allows all non-last clusters to be modifiable without affecting
the truth- values of formulae of the type [ F ]B from F. Similarly, by the Zp-
analogue of the Z-Lemma 8.5, Zp allows all non-first clusters to be modified
without affecting [P]B-type formulae. So, we replace each cluster except
the first and last by a strict total ordering of its elements, treat the last
cluster in the same manner as in Theorem 8.4, and apply the mirror image
of this treatment to the first cluster, to get a temporal p-morphism from
(Z, <) onto the frame of MT.
§8 Logics with Linear Frames 79
Beginning Time
Let LinDisc" be the logic that results when the schema Zp in the definition
of LinDisc is replaced by
WP: [P]([P]A^A)-*[P]A,
and Dp is deleted.
WP allows any cluster in Mr to be modified without affecting truth of
[P]B-type formulae from F. Hence the K4DLZ construction of Theorem
8.4 applies directly to show that LinDisd^ is determined by the time- frame
(w, <). In fact, by including the formula [P]-L in F, we can obtain this
result using only the special case A = ± of Wp, for then the first cluster is
already in the desired form:
Exercise 8.20
Let M7 be a finite temporal Infiltration of a generated submodel of the
canonical LinDiscu -model. Suppose [P] _L € F. Then if \s\ belongs to
the first cluster of A4T, show that [P] ±€ s. Deduce that this first cluster
is degenerate. (It might be useful here to note that when A =_L, WP is
equivalent to
[P]_L V
Rational Time
Let LinRat be the smallest normal extension of Lin that contains the
schemata Dp, Dp, and
XF: [F][F]A-+[F]A.
in LinRat.
(3) Show that the time- frame (Q, <) determines the smallest normal ex-
tension of Lin containing the schema
§8 Logics with Linear Frames 81
Real Time
LinRe is the smallest normal extension of LinRat that contains the schema
Cont: D([P]A -><F> [P]A) -» ([P]A -» [F]A).
Exercise 6.4(4) asked the reader to show that Cont is valid in the real-
number time-frame (R, <). To prove that LinRe is determined by this
frame, we adapt the argument given in Theorem 8.21 for LinRat, this time
using real open intervals
(r,q) = {x e R : r < x < q},
where again the end-points are either reals, or ±00.
Working now with a finite temporal -T-filtration M.T of a generated
submodel M = (S,R,V) of the canonical LinRe-model, we try to map
(R, <) onto the frame of MT by a temporal p-morphism. A problem comes
up if we strike a non-degenerate cluster C in MT that is immediately
succeeded by a cluster D that is also non-degenerate. Having mapped a
real open interval (r, q) p-morphically onto C, we cannot then treat D
similarly without leaving out the end-point q.
This problem would not arise if in Mr there were no adjacent non-
degenerate clusters (for D would then have to be degenerate, and we could
map q to its unique element). However it does not seem possible to prevent
pairs
...-+O-O----
of adjacent non-degenerate clusters from occurring. Instead we will have
to show that the model MT has a certain property that allows it to be
modified, by inserting a new degenerate cluster between any such pair,
creating the configuration
•••-0---0----
and thereby removing the problem - without altering the truth-values of
members of F at any of the old points of MT. The idea of this construction
comes from Segerberg [1970], although the axiom Cont we use, and the
argument in which it is applied (in Lemma 8.23), are different.
So, let C and D be non-degenerate clusters in MT that are adjacent,
with C < D. An element s of the sub-canonical model M will be called
C-greatest if
\s\ € C, and Vi e S (sRt implies \t\ $ C).
Dually, s is D-least if
\s\ € D, and V* € 5 (tRs implies \t\ £ D).
These notion may be intuitively related to the situation in the real-number
frame (R, <), where the element z that fills a cut (X, Y) (i.e. has x < z < y
for x € X and y € Y) must be either a greatest element of X, or a least
element of Y.
82 Some Temporal and Computational Logics
where C|s|, as usual, is the ET-cluster of \s\. Such a formula exists by the
argument of the Definability Lemma 8.13.
Proof. Suppose Cw < C. Then if tRs, |t|.RT|s|, so C\t\ < C\s\ < C, and
hence M (=« A by definition of A. This shows M \=s [P]A
For the converse, suppose C\B\ ^ C. Then by <-connectedness, C <
C|s|, and so as D is adjacent to C, D < C\a\. Take first the case that
D = C|s|, so that \s\ € D. Since, by assumption, s is not D-least, there
must exist a t with tRs and \t\ e D. But D comes after C, so M ^t A,
by definition of A. Hence M ^=8 [P]A. On the other hand, if D < C\a\ ,
then taking any t with \t\ € D must give tRs by ^-connectedness, and so
the same argument applies to give M \£s [P]A.
M \=[P]A-+<F>[P]A.
Finally, to complete the proof of Lemma 8.23, take any s with |s| e C.
Then M \=s [P]A. Choose any t with |<| 6 D. As in the proofs of the
Sublemmas, we then get sRt and M ^t A, so M \£s [ F ]A. Hence
specifying a label for each process (denoting the point that the process is
currently at), and a current value a, for each variable Vi- Predicates att of
labels will be used, with the semantics
\=s ati(m) iff m = m1.
Each successive state is to be obtained from its predecessor by exactly one
process being chosen to execute one transition in its flow chart. Thus from
an initial state
s0 = (mj, . . . , m o , a i , . . . , a f e ) ,
many different execution sequences SQ,SI, ...... may be generated, depend-
ing on which process gets chosen to act at each step. Some interesting
properties of such sequences can be formulated by reading the connective
D as "at all states from now on" .
Deadlock Freedom
Deadlock occurs when no processor can act. The requirement that deadlock
does not occur at (m1, . . . , m n ) can be expressed by
D(a*i(m1) A • • • A atn(mn) -> EI V • • • V En),
where Ei is the exit condition for node m1 consisting of the disjunction of
the propositions labelling edges out of m' (the truth of such a proposition
being the requirement for the process to be able to proceed along that
edge).
84
§9 Temporal Logic of Concurrency 85
Mutual Exclusion
D->(ati(m) Aafj(m'))
asserts that the program can never simultaneously access m and m'.
Accessibility
D(oti(m) -> Oatj(m!))
expresses that if the program ever reaches m it will eventually proceed from
there to m'.
Correctness
A partial correctness assertion about a program states that if the program
works as was intended, then a certain condition V must be true after ter-
mination, given that some condition (f was true at the start. Illustrating
with a program having a single entry label mo, and exit m e , this can be
formalised as
A (p —» D(a£(m e ) —> \[>).
Total correctness includes the assertion that the program will halt:
Responsiveness
An operating system may receive requests (rj) from various agents, to
whom it will signal (9,) when it grants the request. The formula
A ::= p 1 1 1 A! -» A2 \ HA \ OA \ A! UA2
Axioms
Let © be the smallest logic in the language just described that contains
the schemata
K: O(A -» B) -» (DA -» DB)
#0: O(A -* B)
Fun: O--A <-+ -OA
Mia;: DA -> A A
Jnd: D(A -> OA) -> (A -> OA)
Wl: AWJ3 -» OS
The roles of K, K0, and the Necessitation rules are now familiar. The
axiom Fun expresses the interpretation of O by a total function, while
Mix and Ind together correspond to the interpretation of D by the reflexive
transitive closure of the interpretation of O- The reflexivity schema T :
DA —> A is immediately implied by Mix. For the transitivity schema 4,
see Theorem 9.2 below. Ind by itself expresses the induction principle that
any set which contains <jj and is closed under the taking of successor states
must contain all states fromCTJon.
Exercises 9.1
(1) (Soundness). Prove that T [= 0 for any state sequence T.
(2) Show that he A -> QA implies he A -» DA.
(3) he ODA -» OA.
(4) he DA -» OA.
and hence
he D(ODA -> DA) -» (ODA -» DA).
But this, together with (f ) and schemata 4 and T, yields he Dum.
Deriving Lt
The schema Dum will be used in the completeness theorem for 0, along
with
L i : D(DA -> B) V D(D5 -> A),
which is also 0-derivable. The following exercises give a guided tour of a
proof of this which is due to Martin Abadi.
§9 Temporal Logic of Concurrency 89
Exercises 9.3
Let X be (\3A -» B) and Y be (QB -> .4). Define the following formulae.
LI : me v ny
AI : nx v x v ny v -.y v coy
A2 : ny v y v nx v -iX v onx
A3 : OX V X V DY V Y
A4-. ox v ->x v onx v ny v -.y v
(1) Show that AI and A2 are deducible in any logic that is D-normal.
(2) Show that A3 is deducible in any logic containing the schema T for D.
(3) Use Theorem 9.2(4) and tautological reasoning to show that
Conclude that
\-e A4 -^ LI.
(6) Show that OA^ is deducible in any D-normal logic containing schema
T for D. Conclude that
Exercises 9.4
(1) Show that
he A -» B A OA
implies
he A -» OB.
OA -* OA
O(AVB)-
OQA +
OOA*-
+ OA
DA A OB^ AKB
Induction Models
An induction frame is a structure f — (S,f), with / : 5 —> S, i.e. / is a
function from 5 to 5. The "graph"
{(M) :* = /(*)}
of / is denoted R/. R** is the ancestral of R/ (§1). Thus sR*ft iff there
is an Rf-list linking s to t, i.e. a finite sequence s = s0,..., sn = t, with
f(si) = Sj+i for all i < n. Models on induction frames give a semantics for
0, as follows.
M K OA iff M H/w A
M K OB iff sR*ft implies X \=t A
M \=s AUB iff there exists an .R/-list s = SQ, ..., Sk, with
M \=sk B, and M. f=8i A whenever 0 < i < k.
Exercise 9.5
If M is an induction model, show that M f= 0.
§9 Temporal Logic of Concurrency 91
Completeness of O.
Fix a formula A such that \/e A. We want to find a falsifying model for A
on a state sequence, and for this we adapt the canonical model construction.
The relations R® and Rf on the set Se of ©-maximal subsets of
Fma($) are given by
Now .Rf is reflexive (since Mix implies the schema T for D), transitive
(since schema 4 is ©-derivable), and weakly-connected (since schema LI,
and hence L, is ©-derivable). By Fun, Rf is functional.
Since l/e A, there is some SA € S0 with A £ SA- Let
5 = {u € 5e : sA(flf )*u}.
As h
implies ufi^v,
so 5 is closed under Rf, i.e.
f = (S,RD,R0 ),
Exercises 9.6
(1) Show that (Rf)* C R%.
(2) Show that the set
Filtration
Our nitration set F will have to contain more than just the subformulae of
A. We define
A&F;
F is closed under subformulae;
DBEF implies QOB £ F;
BUD e T implies O(BUD), EhD € F.
The definition of T-filtration is adapted as follows.
s ~r t iff s n r = t n r,
\s\ = {t:s~r t},
Sr = {\s\ :s£S}.
and then if
X = {\t1\,...,\tn\},
§9 Temporal Logic of Concurrency 93
put
BX = Btl V • • • V Btn
(the construction is just as for the Definability Lemma 8.13).
Xa = {x £ Sr : \s\R*x}.
First we prove
€ s, (t)
where Ag is a formula, given by the Definability Lemma 9.7., having
As € u iff \s\R*\u\.
UA8 e s.
Hence if sR®t, then As € t, and so |a|.R*|t|.
94 Some Temporal and Computational Logics
The case n = 0 is immediate, since |s| — |t| implies sC\F — tr\F. Assuming
the result for n, suppose |s|.R™+1|t|. Then |s|.R™|u| and |u|fio|i|, for some
u. Thus if OB € s fl r, we have OB € u by the hypothesis on n, and
so OOB € u fl r by the axiom Mix and the definition of F. But then
OB e t, as RO is a T-filtration of Rf. This completes the inductive proof
of(t).
Finally then, if |s|.R*|£|, we have |s|.R™|i| for some n, so that if OB e
s n r, ($) gives OB e i, and then Mix gives B € t.
This completes the proof of the Ancestral Lemma, a result which substan-
tiates the earlier remark that the axioms Mix and Ind characterise the
interpretation of D as the ancestral of the interpretation of O- This fact
will feature again in the study of dynamic logic in the next section.
Exercise 9.10
Show that the Fun-Lemma holds for any P-filtration of Rf, smallest or
not, provided that
if OB 6 r, then either Q-^B e f, or else B = ->C with OC £ f.
Show that F can be made to satisfy this additional condition and still be
finite.
Another way to explain the main point of the Fun-Lemma is that, under
its hypotheses, if OB £ s, then B $ t for any t with |s|.Ro|£|. The import
of this will be that although \s\ may have a number of /Jo-alternatives, we
can remove all but one of them, in an arbitrary way, without altering the
falsity of P-formulae of the form QB at |s|.
Theorem 9.13. Let M = (Sr, a, Vr). IfBeF, then for any j £ u and
s 6 CTJ,
B € s iff M\=j B.
Proof.
For B = p £ # n T, M \=j p iff aj £ Vr(p) iff p e s. The truth-
functional cases are straightforward as usual.
For the inductive case for O, suppose QB £ s n F, with \s\ = <TJ.
Pick any t € ffj+i- Then as ffjR0aj+^ the second filtration condition gives
B € t, whence the induction hypothesis on B gives M (=j+i B, so that
M K- OB.
§9 Temporal Logic of Concurrency 97
This is done by induction on those i with j < i < k. For the case i = j,
if t 6 0-j, then BUD e t because t ~r « and BUD € s. Now assume
that (f) holds, with i + I < k. By the definition of k as "least", we then
have M ^ D, so if u €CTJ,it follows that D £ u by the hypothesis on
D. But BUD € u, by (f), so applying axiom U2 gives O(BUD) € u.
Since <7j.RoCTj+i and O(BUD) £ F, any t € ai+i then has BUD & t by
the second filtration condition on RQ, establishing (f) for i + I.
Thus (f) holds for all required i. Taking t £ a^ for such an i, the
definition of k and hypothesis on D give D £ t, so (f) and axiom U2 then
yield B £t. Hence M \=i B, as desired, by hypothesis on B.
Conversely, suppose that M. \=j BUD and s e (jj. Then for some
k > j, M |=fe D, with M \=i B whenever j < i < k. We employ the
thus-far unused implication of U2 to show that the above condition (f)
now holds whenever j < i < k. In particular, the case i = j will then give
our desideratum BUD € s.
The proof of (t) will this time go by backward induction on i. l f i = k,
then D € t for any t & (7k, by the hypothesis on D, and this immediately
gives BUD g t by U2. Now assume that (f) holds with j < i < k. Then if
u e <7j_i, (f) and the Fun-Lemma give O(BUD} € u, since O(BUD) e F
98 Some Temporal and Computational Logics
To finish the completeness proof for 0, recall that we began with a non-
0- theorem A, and a point SA €. S with A (£. SA- Taking a j such that
\SA\ = &j, Theorem 9.13 gives M \£j A. Hence 0 is determined by the
class of models on state sequences.
where
/m = / J + l, ifj<r-l;
f(J)
\n, i f j = r-l.
Thus / is simply the successor function on [0, r), except that the "successor"
of the last element r — 1 is n. We may visualise Fn,r, as consisting of the
initial segment 0, . . . , n, followed by the "simple loop" n, n + 1, . . . , r — 1, n.
Now define a ^y-model M on Fn^, by putting
V(p) = {j<r: a, 6 Vr(p)}.
Then by arguing as in the proof of Theorem 9.13, we can show that the
statement of that theorem holds for this new model M., provided j < r,
where now M ^j B means truth at the point j in the induction model,
rather than truth at the state <TJ in a sequence model.
Hence 0 is determined by the class of finite induction frames fn,r-
§9 Temporal Logic of Concurrency 99
Exercises 9.14
(1) Compute an upper bound on r for the induction frame Tn,r invalidat-
ing a prescribed non-©-theorem.
(2) Modify the state-sequence semantics to read
M \=j DA iff for all k > j, M \=k A
M \=j AUB iff for some k > j, M (=* B and
M \=i A whenever j < i < k.
Modify the given ©-axioms to axiomatise the resulting set of valid
formulae. (Do not introduce any essentially different axioms: deduce
as a theorem the appropriate analogue of Dum.) Prove that this new
logic is decidable.
Branching Time
The theory discussed so far has been concerned with logical properties of
a single execution sequence SQ, «i, generated by processes acting in
parallel. As mentioned at the outset, each state will have several possible
successor states, and so there will be many different sequences that have
a given starting state SQ. Thus any particular sequence will be but one
"branch" of the "tree" of all possible future states. If we consider this tree
as a whole, there a number of interesting new modal connectives that can
be used to formalise reasoning about future behaviour:
Completeness of CTL
We use the structure (Sc, RX), where Sc is the set of CTL- maximal sets
of formulae, and
sRxt iff {B: [ V X ] B e s } C f .
If AO is a given non-theorem of CTL, there is some point SAO 6 Sc with
AO $ SAO • Let F be a finite set of formulae that has the following closure
properties:
A0€r-
r is closed under subformulae;
3(AUB) € T implies [3X.]3(AUB) 6 T;
V(AUB) e T implies [VX]V(AWB) e T;
Exercises 9.16
(1) Show that a finite F exists as described.
(2) Fx is well-defined (i.e. does not depend on the choice of s € x).
(3) The relation R is serial on 5r-
Lemma 9.17. Let 1(AUB) € T. Then for any x € ST, 3(^WB) e rx if,
and only if, there exists in Sp an R-path x = XQ,-- -,%k (i-e- XiRxi+i for
alii < k) such that A e FXi for all i < k, and B e FXk .
102 Some Temporal and Computational Logics
Proof.
Suppose first that there is an R-path of the type described. Then we
show that 3(A KB) € FXi for 0 < i < k, by reverse induction on i, giving
the desired conclusion when i = 0. We use the CTL-theorem (derived from
axiom 3U)
» 3(AUB).
For the base case z = k, we have B € FXk by assumption, so this CTL-
theorem gives 3(AUB) € rxk by tautological consequence.
Now make the inductive hypothesis that 3(AUB) € rxi+l. Choose
s € Xi and t e #j+i with sR\t (since R is the least filtration of RX). But
3(AUB) € t, so [3X]3(AW£) e s by the second filtration condition (F2).
Hence our CTL-theorem gives 3(AKB) € s, and so 3(AUB) € rxi as
desired.
For the converse direction, let X be the set of all points x £ Sp for
which there exists an .R-path starting from x of the type described in the
statement of the Lemma. We will show that whenever 3(AUB) € Fx then
x£X.
Now by the Definability Lemma 9.7, there is a formula C that is char-
acteristic for X, i.e.
C € s iff \s\EX.
Let E be the formula
B e s, (i)
or else
AA[3X]C'es. (ii)
Now if (i) holds, then putting fc = 0 and x — XQ = \s\ gives B € FXk and
provides an .R-path that makes \s\ 6 X. Thus C e s, whence S € s by
maximality of s (Ex. 2.3).
If, on the other hand, (ii) holds, then [ 3X ]C e s, so there exists t e Sc
such that sRxt and C € t. Then |s|jR|t| (by the first filtration condition
(Fl)) and \t\ 6 X, so there is an .R-path of the desired type starting from
\t\. But since A € F\a\ from (ii), appending \a\ to the beginning of this path
gives a new .R-path that ensures that \s\ € X, and so again E € s.
§9 Temporal Logic of Concurrency 103
Exercise 9.18
Let V(AUB) e r. Show that if V(AUB) <£ Fx, then there exists an R-
branch x = XQ, ..., Xk, • • • such that for no k do we have B £ FXk simulta-
neously with A € FXi for all i < k.
If the converse of Exercise 9.18 were true, then in combination with Lemma
9.17 we would obtain a Filtration Lemma for the model (Sp, R, Vr) similar
to Theorem 9.13, and completeness for CTL would follow. However it
could be that while V(AUB) € Fx, a branch of the type described in 9.18
nonetheless exists to prevent V(AUB) being "true" at x. We are going to
have to "unravel" R to get around this, and the structure we use for this
unravelling is a special type of tree.
T-Trees
Let (T, p) be a frame with p irreflexive. The members of T will be called
nodes. If npm, then m is a successor of n, while n is a predecessor of
m. The frame will be called a tree if each of its nodes has at most one
predecessor.
A tree is rooted if it has a unique element r, the root, that generates
it, i.e. has T = {m : rp*m}. Note that for each node m, there will be a
unique p-path from the root r to m.
A leaf in a tree is a node that has no successors. Non-leaf nodes are
said to be interior.
For finite trees, the word "branch" will be used in a modified way to
mean a path (i.e. a p-path) whose last node is a leaf.
We will work with trees who nodes are labelled by members of Sp, i.e.
there is a function assigning to each n € T a label n 6 Sr- Then a formula
B is said to be realised at n if B 6 ra, while B fails at n if B <£ F^.
A F-tree is a finite rooted tree who nodes are labelled by member of
Sr in such a way that
(PI) if m is a successor node to n, then nRm;
(F2) if [VX],4 6 r, and [VX]4 fails at an interior noden, then A fails
at some successor node of n.
A F-tree is rooted at x € Sp if x is the label of its root node.
104 Some Temporal and Computational Logics
Exercise 9.19
If [ 3X ] A belongs to F and is realised at an interior node of a T-tree, then
A is realised at a successor of that node.
Lemma 9.20. Let M(A KB) e F. Then if \/(AUB) e Fx, there is a F-tree
T rooted at x such that A is realised at every interior node ofT, and B is
realised at every leaf.
Proof.
Let X be the set of points x e Sp for which there exists a tree rooted
at x with the properties described in the statement of the Lemma. Let C
be a formula that is characteristic for X , i.e.
C £ s iff \s\eX.
Then it is enough to show that
V(AUB) -» C
is a CTL theorem. Hence by rule V-/nd, it is enough to show that the
formula
BV(AA[VX]C)-^C (E)
belongs to every s e Sc.
The reasoning is like that for the proof of Lemma 9.17. First, if the
formula B V (A A [VX]C) is not in s, then E € s follows directly. Thus we
are reduced to the case that either
B € s, (i)
or else
s. (ii)
Now if (i) holds, then putting T = {r} with r = \s\ and r = r gives a
one-node T-tree demonstrating that \s\ G X, so C € s, and hence E E s.
Suppose, on the other hand, that (ii) holds. Let [VX]£>i, . . . , [VXjDfe
be all formulae in JT of the form [VX]I> that do not belong to s. For each
i with 1 < i < k there is some ti € Sc such that sRxti and Di^ti. Then
|s|.R|£»| and Di $. F\t.\. Construct a T-tree consisting of a root r labelled
by |s|, with k successors mi, . . . , m& havingTO*labelled by |i$|. The only
interior node is r, and this has A € FL, i.e. A is realised at r, since A € s
by (ii)-
Now extend this tree as follows. For each i, since (ii) gives [VX](7 6 s,
we have C € ti, and so |fj| £ X. Hence there is a /"-tree TJ rooted at |t<|
that has A realised at all its interior nodes and B realised at all its leaves.
Replace m, by the tree Tj, i.e. identify m* with the root of T».
The effect of this construction is to create a .T-tree rooted at |s| that
makes \s\ £ X, leading to E € s as desired, and completing the proof.
§9 Temporal Logic of Concurrency 105
Fulfilment
Let T be a P-tree.
• A path in T realises AUB if there is a node on the path at which B
is realised, while all earlier nodes on the path realise A.
• The formula 3(AUB) is fulfilled at node n in T if either it fails at n,
i.e. 3(AUB) $ Fn, or else there exists a path in T that starts from n
and realises AUB.
• The formula V(A UB) is fulfilled at node n in T if either it fails at n,
or else every branch in T that starts from n realises AUB.
Formulae of the form 3(AUB) and V(AUB) will be called eventuality for-
mulae.
Fulfilment Lemma 9.21. Let T be a F-tree, and C an eventuality for-
mula in F that is not fulfilled at node n in T.
(1) If C — 3(AUB), then there is a branch in T starting from n with A
and 3(AUB) realised at all nodes of the branch.
(2) IfC = V(AUB), then for every branch in T starting from n, either the
branch realises AUB, or else A and V(AUB) are realised at all nodes
of the branch.
Proof.
(I). Since 3(AUB) is not fulfilled at n, 3(AUB) € A. Moreover, if
B were realised at n, then 3(AUB) would be fulfilled there, contrary to
hypothesis. Hence B $ Fn- But the formula
3(AUB) -» (B V (A A [3X]3(AMB)))
Exercise 9.22
Prove part (2) of Fulfilment Lemma 9.21.
Theorem 9.23. For any x E Sp there exists a F-tree Tx with root r
labelled by x, such that
(I) if [VXL4 6 F and [VX]A fails at r, then A fails at some successor o f r ;
106 Some Temporal and Computational Logics
Final Model
We are now at the final stage of our construction of a finite CTL-model.
This is done by joining together copies of the trees described in Theorem
9.23 (the result need not itself be a tree: it may contain cycles).
Begin with the tree Tx of any x € Sp, as provided by 9.23. Replace
each leaf m of Tx by the tree Tm (i.e. identify m with the root of T^).
Repeat this process for the leaves of the newly adjoined trees, except in
the case of a leaf n for which T,, has already been adjoined. In this case,
delete n and draw an edge from the predecessor of n to the root of T«, i.e.
make the root of Tn a successor of the predecessor of n (this is the part of
the construction that may introduce cycles).
Since each tree Tx is finite, and there are finitely many labels x € Sp,
this process terminates in the construction of a finite frame (T, p) whose
points are all labelled by members of Sp, and whose relation is given by
the successor relation on the trees Tx. Now make this frame into a model
A/" by putting
N\=np iff per a .
Exercise 9.24
Use the fact that [3X]T € F to prove that p is serial.
Theorem 9.25. If A € F, then for any node n&T,
(BV(AA[VX]V04W5)))->V(4W5) (f)
that is part of axiom VU. Since 'i(AUB) ^ Fn, this immediately yields
B £ p^ and hence A/" ^« B by induction hypothesis.
Now if A £ r», then tf fin A, so astf fin B we have A/" £„ V(AUB)
immediately. If, on the other hand, A € Ta, (f) yields [VX]V(AW5) $ /V
But [VK]V(AUB) € r, so by the definition of jT-trees (when n is interior)
and 9.23(1) (when n is a root), there must be a p-successor n\ of n with
V(AUB) t /V
The argument now repeats itself: if A $ f n ,, then A/" ^rei ^4, so
A/" t^Bl \/(AUB) as B 0 T^ and hence AA £ ni B. ITyl e T^, then there is
a successor n^ of n\ with V(^4 UB) £ Fn2, and so on. The argument either
generates a p-path n — no,...,nk with A/" \£nic A and M \£ni B for all
i < k, or else it generates a p-branch n = HQ, ..., n/t,... with A/" ^ ni B for
all i. In either case, it follows that A/" ^n V(AUB).
This completes our discussion of the proof of Theorem 9.25.
Exercise 9.26
Finish the argument showing that CTL has the finite model property and
is decidable.
10 I Prepositional Dynamic Logic
Dynamic logic (Pratt [1976]) is based on the idea of associating with each
command a of a programming language a modal connective [a], with the
formula [ a ] A being read "after a terminates, A", i.e. "after every ter-
minating execution of a, A is true" (allowing that a non-deterministic a
may be executed in more than one way). The dual formula <a>A then
means "there is an execution of a that terminates with A true" (recall the
discussion of motivations in §1).
In this way we obtain a multi-modal language, with a set of modal
connectives indexed by the set of programs. An interesting theory emerges
about the ways in which properties of complex programs can be expressed
by the modal connectives of their constituent programs. The programs
themselves are generated from some set H of "atomic" programs, whose
nature is not examined further, so that we can concentrate on the behaviour
of operations that generate new commands from given ones. Thus U plays
the same role for programs that <£ plays for formulae of prepositional logic.
What happens when we replace II by actual commands will be the subject
of Part Three.
Syntax
Atomic formulae: p€$
Atomic programs: TT e II
Formulae: A € Fma($, 77)
Programs: a € Prog(4>, II)
[a]A after a, A,
ai;a2 do ai and then aj (composition),
ai U 0:2 do either QJ or a^ non-deterministically (alternation),
a* repeat a some finite number (> 0) of times (iteration),
AI test A: continue if A is true, otherwise "fail" .
109
110 Some Temporal and Computational Logics
<a>A is -i[a]-i.A,
if A then a else /? is (At; a) U (->A"i; j3]
while A do a is (A?;a)*;-u4?
repeat a until .A is a; (~<Af; a)*
skip is T?
abort is _L?
a° is skip
an+1 is (a;a n )
Standard Models
According to §5, a model for the language just described should be a struc-
ture of the form
M = (S,{Ra:a€Prog($,II)},V),
We want the binary relations ,RQ to reflect the intended meanings of pro-
grams a. Thus a model M will be defined to be standard if it satisfies the
following conditions:
There are no constraints on the .R^'s. This means that given a structure
Exercises 10.1
(1) In a standard model M, show:
(i) RskiP = {(s,s):seS};
(ii) -Rabort = 0;
§10 Prepositional Dynamic Logic 111
Axioms
Let PDL be the smallest normal logic in Fma($,II) that contains the
schemata
Camp: [a;P]A~ [ a ] [ 0 ] A ,
Alt: [a\Jp]A*->[a]A*[P]A,
Mix: [a*]A-4 A A [ a ] [ a * ] A ,
Ind: ja*](A-»[a]A)->(4-»[a*]4),
Test: [A1]B~(A-+B).
Notice the correspondence between [ a* ] and [ a ] in the present language,
and D and O in temporal logic. The axioms Mix and Ind here correspond
exactly to the axioms with the same names in §9. This is to be expected,
since in each case, one connective is interpreted as the ancestral of the
interpretation of the other.
We will show that PDL is determined by, and has the finite model
property with respect to, the class of standard models.
Exercises 10.2
(1) \-PDL[an]A~[a]nA.
(2)
(3) (Soundness) If \~PDL A, then A is true in all standard models.
Completeness of PDL
Let Mp = (SP,{R% : a € Prog($,n)},Vp) be the canonical PDL-
model, with Sp the set of P£>Z/-maximal sets,
and
Vp(p) = {s£Sp:peS}.
Although Mp verifies all PDL-theorems, and falsifies all non-theorems, it
has the same inadequacy that occurred with the temporal logic of §9: Rp,
is not the ancestral of Rp . However we do have:
Theorem 10.3. Mp satisfies all standard-model conditions except
Rp, C (RPY.
DCU -> HA
Exercise 10.4
Complete the proof of Theorem 10.3.
(The completeness theorem to follow will not depend on 10.3.)
Lemma 10.5. (Fischer and Ladner [1979]). If F is the smallest closed set
containing a given formula A, then F is finite.
Proof. The point is to show that closing Sf(A) under the above rules
produces only finitely many new formulae. Define a formula to be boxed if
it is prefixed by a modal connective, i.e. is of the form [ a }B for some a and
B. Each time we apply a closure rule, new boxed formulae appear on the
right side of the rule, and further rules may apply to these new formulae.
But observe that the programs a indexing prefixes [ a ] on the right side are
in all cases shorter in length than those indexing the prefix on the left of
the rule in question. Hence we will eventually produce only atomic prefixes
on the right, and run out of rules to apply.
To formalise this argument, define a formula Y to be a derivative of
formula X, denoted X >- Y, if one of the following obtains:
X = X0
Exercise 10.6
Show that if B? occurs in F, then B e F, and hence that RB-? is well
defined.
Theorem 10.7. Mr is a F-filtration of Mp.
Proof.
We have to show that Ra is a .T-filtration of Rp whenever a G Progr- The
case of atomic a holds by definition.
Tests. Suppose Bl £ Progr- Let sR^t. Then if D € s, (B -»• D) € s, so
[B?]D e s by axiom Test, hence D e i . Thus s C £, and therefore s = i
as s is maximal (2.3(2)). Moreover, as Test implies \~PDL [B"?]B, we get
B € t = s. Thus we have s = £ and Mp \=s B, implying |S|.RB?|£| by
definition of RBI- Hence (Fl) holds for B!.
For the second filtration condition, suppose that |S|.RB?|<|. Then |s| =
|*| and Mp K B. Thus if [£?]£> e F and Mp \=s [B1}D, we have
Mp \=B(B-*D),asMp\= Test, and so Mp |=. D. But then Mp K ^>.
since s ~r i and D £ F.
This completes the proof that RBI is a T-filtration of Rg?.
The proof of the first filtration condition (Fl) in the inductive cases will
use the following idea (which was used in the Ancestral Lemma 9.8). Given
s e Sp, let Aa be a formula having
As e t iff \t\Ra\t\
As £ t iff s#ajt.
§10 Prepositional Dynamic Logic 115
for Bl € Progr, which was the only standard-model condition not already
guaranteed by the definition of Mr-
The final step in the argument that PDL has the finite model property with
respect to standard models, and is decidable, should by now be familiar to
the reader.
116 Some Temporal and Computational Logics
Exercises 10.10
(1) Extend the syntax to include programs of the form a"1, with the
semantics
flQ-i ={(t,s):sRat}.
(2) Adapt the syntax to take the construction "while A do a" as primitive
instead of a*. Define standard models appropriately, and show that
the resulting logic is axiomatised by replacing Mix and Ind by the
schemata
from \-A/\B-*[a]B
infer h B -» [while A do a](B A ->A)
where
M(A) = {t 6 S : M |=t A}.
If [a] is identified with -i<a>-i, as in Peleg [1987], the condition for truth
of [ a ] A at s becomes
sRaT implies Tr\M(A)?V>.
Nerode and Wijesekera [1990] suggest that in this context a more appropri-
ate modelling of "after every terminating execution of a, A is true", would
be
M\=,[a]A iff sRaT implies T C M(A), (ii)
making [a] and < a > no longer interdefinable via ->.
The extension of PDL with [ a ] and < a > interpreted according to (i)
and (ii) has not been investigated in the literature to date. Here we will
demonstrate finite axiomatisability and decidability for this extension, by
developing a new theory of canonical models and nitrations for reachability
relations.
Notice that if a binary relation Ra is defined by
sR^t iff t € \J{T : sRaT},
then (ii) becomes
M |=s [ a ] A iff sRat implies M \=t A.
This observation will allow us to relate much of the new theory of [ a ] given
by (ii) to our earlier analysis of the binary relation semantics for PDL. At
the same time, a whole new analysis is needed for <a>.
Syntax and Semantics
The formal language of Concurrent Prepositional Dynamic Logic (CPDL)
is as for PDL, with the addition of fl and the independent treatment of
[a] and <a>:
Atomic formulae: p £ $
Atomic programs: TT (E H
Formulae: A € Fma(<I>, II)
Programs: a € Pro</(<£, II)
A ::= p | -L | AI -» A2 \ <a>A \ [a]A
a ::— w\ ai; a2 | «i U 0:2 | oti n 0:3 | <** \ A?
A CPDL-model is a structure
M = (5, {Ra : a £ Prog($, 17)}, V),
with Ra a reachability relation on S for each program a, i.e. Ra C S x 2s,
and the truth relation M (=s A determined by (i) and (ii) above.
118 Some Temporal and Computational Logics
Combination.
Iteration. Let
Id = {(*, {«}):«€£},
and define a sequence of reachability relations R(n) inductively by
Rm = Id
fl<"+1> =Id\JR-R(n\
Then put
: n € w}.
Exercises 10.11
(1) QCQ1 implies R-QCR-Q'.
(2) ( f l U # ) - Q = fl-QU#-Q.
(3) Give a counter-example to the assertion
Standard Models
A CP£>-L-model is standard if it satisfies
Rot\J0 = Ra U R/3',
§10 Prepositional Dynamic Logic 119
where
id= {(s,s) : s € S}.
(Note also that in such standard models, id = RsMp, and A «-> <skip>A
is true.)
Now in fact to have (iii) come out true in a PDL-model, it suffices to
interpret a* by any binary relation Q satisfying
Q = id\JRa°Q. (iv)
it can be shown that F must have a least fixed point, namely the relation
\J{FW : n € u}.
120 Some Temporal and Computational Logics
We applied this theory above in defining .R'*1, using the monotonic operator
F(Q) = Id\JR-Q
on reachability relations Q (cf. Exercise 10.11(1) ). Thus R(*~> is denned as
the least solution of the equation
Q = Id U R • Q,
and so R(*^ in turn is the least reachability relation that interprets a* to
make schema (iii) come out true.
Further insight into the nature of the relation Rm is given in Theorem
10.14(7) below.
Exercises 10.12
Define programs a (n) by
a (0) = skip
(n)
Q (n+D = s kipll(a;a )
Prove the following in any standard model.
(1)fla(n>- R%\
We now investigate the properties of the relation R, and for this purpose
we need the binary relations R , defined as on page 9. These satisfy
R° = id
n+1
R = R0Rn = Rn°R
R* = \J{Rn : n e u}.
§10 Prepositional Dynamic Logic 121
Exercises 10.16
Let M be standard.
(1) Prove by induction on n that
M [= [a*](<a>A -> A) -> [a*}(<aw >A -> A).
Exercises 10.17
(1) (Soundness) If h A, then A is true in all standard CPDL-models.
(2) h- A -> B implies \-[a]A^[a]B.
(3) \- A-+ B implies h <a>A
(4) I- [ a ] A V < a > T .
(5) H [ a ] J 4 ^ ( < a > B
Maximal Sets
Let Sm be the set of all CPDL-maximal subsets of Fma(<£, I I ) . For each
formula A, let
sa = {A : [ a ] A € s}, and
Theorem 10.18.
(1) hAiff||A|| = Sm.
(2) \-A^ Biff \\A\\C \\B\\.
(3) ||AVB|| = ||A||U||B||.
(4) \\A*B\\ = \\A\\H \\B\\.
(5) ||SQ|| C ||A|| implies [ a ] A € s.
(6) If \\sa\\ n ||5|| C || A|| and <a>B € s, then <a>A € s.
(7) I f s , u & Sm and sa C u, then ||u^|| C ||sa^||.
(8) Haau/jINKIIUlla/jH.
(9) Jf<a>T,</3>T e s, then ||san^|| = ||sa|| U ||s/3||.
Proof. (l)-(4) are now familiar properties of maximal sets.
(5) This is essentially as in Theorem 3.2. If ||sa|| C ||jl||, then every
maximal extension of sa contains A, and so by 2.6(1), sa h A. Hence
124 Some Temporal and Computational Logics
for some n, and some formulae Bi with [a]Bj € s. Then using Neces-
sitation (directly if n = 0) and axiom B-K,
* iff sa £ t or s^ C i.
s iff [ a ] A e
Theorem 10.19.
(1) <a>A € s iff there exists T with sRaT and T C \\A\\.
§10 Prepositional Dynamic Logic 125
(4) By Theorem 10.18(5) and the definition of sa, it follows that to have
[ a }A 6 s it is necessary and sufficient that
sa C t implies A £ t,
sRat implies A e t,
Canonical Model
The canonical model for CPDL is the structure
Mm = (Sm,{Ra : a € Prog($,II)},Vm),
Mm(A) = \\A\\,
Execution Relations
If sRat, then intuitively there is an execution of a from s that produces
a set T of terminal states including t. We may regard this execution as
generating a tree of states, with T being the set of leaves of the tree. There
will be a path through this tree from s to t, comprising a sequence of
executions of atomic programs and/or tests (cf. §2.2 of Peleg [1987i] for an
indication of how to formalise this idea).
If further tRpu, then there will be a similar computation tree contain-
ing a path from t to u as a result of executing /3 from t. We then have
sRa o .R^u, but we cannot conclude that sRa-tpt without first showing that
/^-computation trees can be attached to every state in T, and not just t.
Nonetheless one might suggest that u has been arrived at from s by an
instance of "doing a and then /3" .
These observations may provide some motivation for the following
technical definition of relations R* whose chief purpose is to give a rep-
resentation of program composition a; /3 by binary relation composition o,
and which will be used in defining filtrations of CPDL-models.
Given a CPDL-model
and
sR*npt iff for some T, either
(i) sR+t and sRpT, or
(ii) sRaT and sR^t.
Theorem 10.23. In a model that is standard except possibly for tests,
R^CR+.
Proof. By induction on the formation of a. The cases a = TT and a = At
are immediate by definition of R+. For the inductive cases, assume the
result for a and ft.
Composition:
= Ra • Rp standard condition for a; ft
CllgOfy 10.14(3)
C R+ o R+ hypothesis on a and ft
Alternation:
— Ra U Rp standard condition for a U ft
= Rg\JR^ 10.14(1)
C fi+ U Rt hypothesis on a and ft
Iteration:
Rn* — standard condition for a*
10.14(7)
hypothesis on a
(Lemma 10.13), the fact that Ra C R+ implies directly that the statement
of the Theorem holds from right to left. We prove the converse by induction
on the formation of a.
The cases a = -IT and a = A1 are immediate, as then R+ = Ra. For
the inductive cases, assume the result for a and /?.
Composition. Let M ^=8 [a;f3]A and sR^.pt. Then there exists u with
sR+u and uRgt. Since M. is standard for composition, it verifies B-Comp,
and so M. \=s [a][/3]A. The induction hypothesis on a then gives M \=u
[@}A, from which the hypothesis on /3 yields the desired conclusion M \=t
A.
Alternation. If M (=s [a U 0}A and sR^^t, then either sR+t or sR^t, so
as M verifies B-Alt, the hypothesis on a and 13 leads to M \=t A.
Iteration. Let M \=s [ a* ]A. Then we first show that for any n,
Filtrations
To define filtrations of CTDL-models, a set F of formulae is defined to be
closed if
[ a* ]B € r implies [ a ][ a* ]B € F;
<B1>D e P implies B € T;
<a;/?>B e r implies <a><(3>B e T;
< a U / J x B e - T implies < a >£,</?>£ 6 T;
< a n / 9 > B e r implies <a>B,</3>B € T;
< a* >B e r implies < a >< a* >B € T.
By the same method as used in Lemma 10.5, it can be shown for the
language of CPDL that
Lemma 10.25. For any A £ Fma(<l>, II) there is a finite closed set F with
Aer.
Now let r be a finite closed set. Put $r — & H F, and let Progr be
the smallest set of programs that includes all atomic programs and tests
occurring in members of F, and is closed under ; , U, fl, and *. For s, t 6 S"™,
put
s ~r t iff s n r = t n r,
\s\ = {t € Sm : s ~ r t},
5r = {|«| : s e Sm},
as usual, and for T C Sm, and X C Sr, put
Exercises 10.26
(1) T C [7 implies |T| C |C/|.
(2) XCY implies 5X C 5y.
(3) Sx C T implies X C \T\.
(4) X = \SX\.
(5) TC5 m .
(6) |s| = 5{|8|}.
Now let
M = (5r, (pa : a e Progr}, VT),
be a model based on Sp, with Vr the usual $r-valuation. Then the reach-
ability relation pa on Sp is denned to be a F- filtration of the relation Ra
from the canonical model Mm if, and only if, the following four conditions
are satisfied.
§10 Prepositional Dynamic Logic 131
Existence of Filtratious
For a € Progr, define
i = {(\'\,{\*\}):Mm\=.B},
IfsR^ulfyt, then by (Bl) for a and /3, \s\p+\u\p+\t\. Hence |s|p+op+|*|, i.e.
|s|/9+0|t| by definition of p+;/9, and so As € f. This shows that [a][/3]A 8 €
s, and hence by axiom B-Comp, [a;/3]As e s as needed to ensure that
sRa.pt implies |a|pa;/j|<|.
(B2): Let |s|p^|*|, i.e. \s\pa • pp\t\. Then \s\p^o~pj\t\ by 10.14(3), so
for some u, \s\pZ\u\ and \u\p~fj\t\ . Then if [a;/3]B € sOT, [a][/3]S £ sflT
by Comp, so (B2) for a and /3 give [0]B £ u and thence Bet.
(Dl): Let sRa-0T. Then by Theorem 10.22(2), there exists U C Sm
with sRaU, such that for each u 6 U there exists Tu CT with uRpTu. By
(Dl) for a there exists X C Sr with |s|/9«X C |t/|. Then if x & X, we
have x = \u\ for some u € C/, so by (Dl) for /3, there exists Yx C Sr with
xp/j^x C |TU| C |T|. Thus putting
Z - \J{YX :x£X},
Aaet iff |s
Using (Bl) for a and f3 and the definition of P^U;3, we get As € t whenever
sRot or s^t. Hence [ c t ] A s , [P]AS € s, so [a U fi]A3 £ s.by B-Alt.
(B2). If |s|pau^|t|, then either |s|pa"|<| or else |s|pa|t|. Since B-Alt
gives [a U P]B 6 s only if [a]B, [/3]B 6 s, (B2) for a and /3 then readily
yield {B : [ a U / 3 ] B e s n T} C t.
134 Some Temporal and Computational Logics
We show that
\-As^(a]Aa. (t)
m n
For, if t € S and As €. t, then |s|(/o+)*|t|, and so |s|(p+) |<| for some
n > 0. Then if tRau, (Bl) for a implies |<|pj|u|, hence |s|(p+)n+1|u|, so
|s|/9+,|u|, and therefore As € u. This shows [a]^ls 6 t, as required for (f).
By the rule of Necessitation for [ a* ] and axiom B-/nd, we then have
(As -c [o*]4 a ) e s. But As € s as |s|(p+)°|s|, so [a*}As 6 s, yielding
(Bl) for a*.
(B2). Since ~p^ = p(£ = (p^)*, we want to show that
Using (B2) for a and the CPDL-theorem [a* ]B -> [a][a* }B (by B-Mix),
we show, in similar fashion to 9.8 and 10.7, that for all n > 0,
From these we derive (Dl) for a* as follows. If sRa*T, then from (f) we
get <a*>AT € s (10.19(1)). But from ($) by Necessitation for a* and
axiom D-/nd,
h
j for some n». Let n be the maximum of no, . . . , n/fc-i- Then since
the reachability relations p(™} increase monotonically with m (Exercise
10.11(4)), we have Mpg"^ for alii < k. Thus if Y = |J{*i : 0 < t < *},
then \s\(pa • p£})Y, hence \s\pg+1)Y, and so \s\p(*>Y. Therefore we have
|s|pa*y C \T\, which ensures that AT € s as desired.
(D2). If \s\pa* X, then [al/o^X for some n. Hence it suffices to prove
that for all n > 0, and all s e Sm,
if \a\pWX and Sx C ||B||, then <a* >B e T implies <a* >B € s. (f)
(
For the case n = 0, if \s\p ^X, i.e. |s|/dJf, then X = {\s\}, so if Sx C \\B\\,
then as s € Sjr it follows that B £ s, and hence that < a* >B e s by axiom
D-Mix.
Now make the inductive assumption that (f) holds for n, and let
\s\p£+1>X, Sx C ||B||, and <a*>B e F. Then either \s\p^X, whence
the desired result follows as above, or else \s\(pa • p(£})X. In the latter case
there must then be some Y with |s|paF such that X = \J{Xy : y e Y},
with ypg>Xv for all y&Y.
Then if t € Sy, we have |*| € Y, so Sxw C 5X C ||B||, whence as
|<|^n)jL|t|, the hypothesis on n gives <a* >B 6 i. Thus SY C ||<o:* >B||.
But <a><o*xB 6 T, and |s|/9aF, so by (D2) for a, <a><a*>B € s.
Hence by D-Mix we get our desideratum < a* >B € s.
This show that (f) holds for n + 1, completing the inductive proof that
it holds for all n, and hence completing the proof of Theorem 10.29.
From this Corollary it follows in the usual way that any non-theorem of
CPDL is falsifiable in a finite standard CPDL-model Hence CPDL has
the finite model property with respect to standard models, and is decidable.
sRaT implies T ^ 0,
i.e.
not-s.Ra0,
§10 Prepositional Dynamic Logic 137
D-N : -i<a>_L,
which is always true under the binary relation semantics. Indeed it requires
only the schema
to derive D-JV from [a]T, and the latter is a theorem of any logic that is
normal for [ a ] .
Exercises 10.31
(1) Let A be a normal logic containing CPDL.
(i) Show that relative to A, the schema D-N is equivalent to each of
the schemata
i.e. A contains one of these three schemata if, and only if, it con-
tains the others.
(ii) Suppose that \~A -><7r>_L for all atomic programs TT. Prove that
\-A -i<a>± for all programs a.
(Hi) If hyi -i<a>.L, then in the canonical model for A, not-s.RQ0.
(2) Show that in a standard model, if not-sR^® for all atomic TT, then
not-s.Ra0 for all a.
To prove the finite model property for the smallest normal logic obtained by
adding D-JV to CPDL, we modify the closure conditions on F to require
that <TT>± 6 F whenever •K occurs in F. Then in the finite filtration
.Mr it can be shown that not-|s|/9T0 for all atomic TT e Progr- To see
this, observe that if |s|p»0, then since 50 = 0 = ||±||, property (D2) of pv
implies <TT>± e s, which is inconsistent with D-N.
By Exercise 10.31(2) above, it then follows that not-|s|/9Q0 for all a £
Progp, and so Mr is a D-A^-model.
Sequential Atoms
The reachability relation Ra will be called sequential if
Thus
xp*y iff xp^y iff 3s e x 3t e y(sv C t),
from which it follows readily that pv meets filtration conditions (Bl) and
(B2) (indeed the point is that p+ is the smallest filtration of R, in the
sense of binary relation semantics).
To prove (Dl) for p^, let sR^T in the canonical model. Then T ^ 0,
since -><7r>-L is derivable from Seq^. Taking any t 6 T, we get sR^t, and
so \a\p,{\t\} C \T\.
For (D2), let \s\p,X, Sx C \\B\\, and <7r>.B_e T. Then there is some
s' € \a\ and some t such that X = {\t\} and s'R^t. But then t € Sx, so
Bet, and hence by Lemma 10.32, <n>B e s'. Since <w>B € F, we
then get <ir>B € s as desired.
This completes the proof that pv is a P-filtration of R^ whenever
TT G Progr- Thus Mr in this case is a finite sequential model that is a
filtration of the canonical model. The rest of the story is as usual.
§10 Prepositional Dynamic Logic 139
Further Studies
Dynamic logic is an extensive subject, with much to be learned by varying
the class Prog of programs and its properties (cf. Harel [1984] and Kozen
and Tiuryn [1989] for extensive surveys). One natural variation is to require
atomic programs to be deterministic, so that, in terms of binary relation
semantics, R^ becomes a partial function and the schema
<Tr>A —» [ i r ] A
is valid (the quantificational logic of Part Three will have this property).
Now a logic A containing this schema will have a canonical model
in which R% is a partial function, but that feature will generally be lost
in passing to a nitration Mr- The problem of "unwinding" the atomic
relations in Mr into functions, while preserving the standard-model con-
ditions and the Filtration Lemma, is not easily solved. A solution is given
in Ben-Ari, Halpern, and Pnueli [1982].
First-Order
Dynamic Logic
11 Assignments, Substitutions, and
Quantifiers
In Part Three we study the language that results when the formalism of
dynamic logic is added to a first-order language. The atomic programs TT
of PDL are replaced by assignment commands (v := a), where v is an
individual variable, and a a term. Such a command has the meaning "set
v equal to cr", i.e. "assign to v the current value of <r", and is deterministic.
There is an intimate connection between the computational process
of assignment to a variable, and the syntactic process of substitution for
a variable. If Ava is the result of replacing the free occurrences of v in a
first-order formula A by a, then
s ~« t
to mean that states s and t differ only in the value they assign to v, we see
that the Tarskian semantics translates to
(=s 3vA iff for some state t, s ~v t and \=t A;
(=s VvA iff for all states t such that s ~v t, \=t A.
143
144 First-Order Dynamic Logic
This makes 3v and Vu look like modal connectives, and indeed it is well
known that formally they obey the laws of an S5-type O and D. In fact
we could (but won't) pursue this, and replace 3v and Vw altogether by
<v =?> and [«=?], where the command (v :=?) means "assign a random
value to u" (Pratt [1976]).
Exercise 11.1
Explain informally why the following should be valid when v does not occur
in ff.
<v:=(r >A *-> 3v(v = ff A ,4)
[v := ff]A <-> Vv(v = a —> A)
Expressibility
The expressive power of first-order dynamic logic is greater than that of
first-order logic itself. To see this, consider the following formula in the
language of the arithmetic of natural numbers.
This asserts that for all w, the displayed program has a terminating ex-
ecution, i.e. that any w can be obtained by starting at 0 and repeatedly
applying the successor operation £(n) = n + 1. In other words: any set of
numbers that contains 0 and is closed under £ must contain everything. But
this is a version of the Peano Induction Postulate, a postulate which cannot
be expressed in the first-order language of the structure (u, C, 0). There is
a single formula of dynamic logic which characterises this structure up to
isomorphism, and from this it follows by standard arguments that the set of
valid dynamic formulae is not effectively enumerable, unlike the first-order
case (cf. Goldblatt [1982], §3.6, for details). This in turn means that there
can be no adequate proof theory for first-order dynamic logic based on
an enumerable set of axioms and an enumerable set of decidable inference
rules. To develop a proof theory then, we will have to use infinitary rules
of inference. The rule-schema we need is:
Exercises 11.2
(1) Verify that this rule preserves truth in standard PDL-models.
(2) The Archimedean Property of the real-number field R asserts that
Vx 3n G w (x < ri).
§11 Assignments, Substitutions, and Quantifiers 145
=<7 2
Formulae of the type P(cr\ , . . . , crn) andCTI= <T2 are called atomic. Boolean
formulae are truth-functional combinations of atomic formulae. First-order
formulae are those that contain no modal connectives [a]. Programs of the
form (v := <r) are assignments and all other types of program are called
structured.
The restriction of test programs (f>1 to Boolean formulae is realistic,
since in practice a computer could not test the truth- value of a formula in-
volving quantification of variables ranging over infinite sets, or subformulae
of the form [a] A (which may assert that some program has a halting com-
putation, for instance).
146
§12 Syntax and Semantics 147
L-structures
Let 21 = (X, I) be an //-structure in the usual sense, i.e. / is a function
with domain L such that:
V~VV
to mean that V and V are identical except (possibly) in the value they
assign to v. The notation V(v/x) denotes that 2l-valuation V such that
V ~v V and V'(v) = x.
Familiarity is assumed with the definition of the relation
Models
An L-model for dynamic logic is a structure
where
• 21 is an L-structure, as above;
148 First-Order Dynamic Logic
Exercises 12.1
(1) M \= Vv(A -* B) -» (V*M -* VwB).
(2) If X |= ^, then A^ |= Vw^.
(3) If M has enough states, and A is first-order:
(i) M K ^ i f f a M t K ] ;
(ii) 21 ^= A implies M |= A;
(iii) If A is a sentence (no free variables), and M\=s A for some s & S,
then A-l |= A.
§12 Syntax and Semantics 149
Standard Models
An L-model M. is standard if it satisfies the following conditions:
• L includes a constant cx for each x e X, with I(cx) = x;
• RV—V is serial, i.e. for all s £ S there exists t € S with sfl^:=(Ti;
• if sRv—trt, then s(v/a)t, i.e. Vt ~u Vs and Vt(w) = Vs(a);
• for structured programs, the standard-model conditions (as given in
§10) all hold. In particular, for Boolean tests, this requires that
fl,,? = {(*,«): a
By considering assignments of the form (v := cx), the first three of these
conditions collectively imply that
a standard model has enough states,
and so standard models interpret V correctly.
A standard model is, by definition, a model for a language of the form
La (or an extension of such a language), where 21 is its first-order structure.
We may also refer to a standard L-model as being standard for L.
Natural Models
The natural model of an L-structure 21 = (X, I) is the La -model
where
• 5a is the set of all 21- valuations s : Vari, —> X;
• for each s € Sa, V*(v) = s(v);
• sRl=at iff t = s ( v / s ( a ) ) ;
• for structured programs, R* is defined inductively by the standard-
model condition on a.
Since Sa includes all possible 2l-valuations, Mz is a standard model, and
has enough states. Also, since R*.-a is a functional relation,
In fact a standard model will always verify this schema, because of the
standard-model conditions on assignments, even though it need not in gen-
eral interpret (v :— a) as a function. The reason for introducing the more
abstract notion of standard model is that it is convenient to be able to
realise states as entities (such as maximal sets of formulae) other than
valuations. This gives greater freedom in constructing models.
150 First-Order Dynamic Logic
Exercises 12.2
(1) s(v/x)t in M iff Vs(v/x)Vt in M a .
(2) For any L-term <r,
V?» = W,
so s(v/a)t in M iff Va(v/a)Vt in M a .
(3) If A is a BooJean //-formula,
(4) If .M has enough states, the result of Exercise 3 holds for all first-order
A.
For the second condition, suppose VsR*.=au, with u e 5a. Since .R^—cr is
serial, there exists a t 6 5 with sR,,~at, so that
Vt = Vs(v/Vs(v)) = u.
Thus the desired result holds when a is an assignment. The inductive cases
for structured commands use the fact that both models are standard.
Exercise 12.4
Complete the proof of 12.3.
§12 Syntax and Semantics 151
Axioms
We now list some schemata, relating quantifiers to assignments, that will be
used to axiomatise the logic of natural and standard models of a countable
language. For this purpose, we denote by VarA the (finite) set of all
variables v that have an occurrence in A. Likewise, Vara is the set of
variables occurring in program a.
Al: Vv(A -* B) -» (VvA -> VvB)
A2: A -> VvA, for w g Far ,4
A3:
152 First-Order Dynamic Logic
Soundness
All of the schemata Al-All are true in standard models. Al and A2
are familiar from first-order logic, although in the present computational
context, A2 can be regarded as asserting that the truth-value of a formula
A is not affected by an assignment to a variable that does not occur in A.
A3 and A4 together give the equivalence of "for all v, A", and "after every
assignment to v, A". A6 is an instance of the Barcan formula
VwOA -» CNwA
aMaM ^ *TrA[V(v/V(<r))],
for any first-order A (cf. e.g. the Substitution Lemma of Enderton [1972],
p. 127 for details). Hence
showing that A8 is true in natural models M*. But that is enough to make
it true in all standard models, by Theorem 12.5(3).
§12 Syntax and Semantics 153
Exercise 12.8
Suppose s(v/a)t in an 2l-based model M.
(1) Show that Va(T%) = Vt(r), for any L-term T.
(2) If M has enough states, show that for all first-order A,
The intuitive meaning of the remaining axioms is left for the reader to
ponder. Formal proofs of the truth of A1-A11 are tedious (although in-
structive) and will not be repeated here. Full details appear on pp.130-136
of Goldblatt [1982]. These proofs depend on some technical lemmas estab-
lishing that the truth of a formula A is not affected by an assignment to a
variable not in VarA. These lemmas are given as
Exercises 12.9
(1) Suppose that v £ Var(a). Then in A^ a , if s(v/x)t, then
Ma K A iff Ma h* A.
M K A iff M K A.
(4) Use these results to prove that A1-A11 are true in any standard model.
13 Proof Theory
Axioms
The full set Axmi, of axioms for the first-order dynamic logic over an
alphabet L comprises:
• all tautologies in Fmai,;
• the usual Identity Axioms
v = v,
a — T —> (A —* A'), where A is atomic, and A' results by replac-
ing some occurrences of a by r in A]
• the schemata Comp, Alt, Mix, and Test as for PDL in §10;
• the schemata A1-A11 from pages 151 and 152 in §12.
Rules
In addition to Detachment, and the Necessitation rule for each modal con-
nective [a], the inference rule schemata we need are
Generalisation: from A deduce VvA;
Omega-Iteration: from {(A -» [/?; an }B) : n e u} deduce (A -> [/3; a* }B).
Note that we have left out the PDL-axiom
Ind : [a* ](A -» ( a ] A ) -* (A -» [a* ]A).
Its place has been taken by Omega-Iteration (cf. Exercise 13.1(10)) below.
Theorems
Let AL be the smallest normal modal logic in Fma,L that contains AxniL
and is closed under Generalisation and Omega-Iteration, i.e.
A € AL implies VvA 6 AL;
{(A^[P;an]B):n£u}CAL implies (A -» [j9;a*]B) € >1L.
The members of A^, are the L-theorems. If A € .Az,, we write h^ A, or just
h ^4 if the context is understood. The main result of Part Three is that the
theorems are precisely those formulae that are true in all natural models.
154
§13 Proof Theory 155
Exercises 13.1
The following are L-theorems.
(1) a = a.
(2) a = T —> r = a.
(3) a = T -> (r = p -» a = p).
(4) [v :— a]~>A <-» -i[v := <r]A.
(5) [w := <r](^ -ȣ)<-> ([t> := a],4 -+ [w := a]J3).
(6) [w := a]ip «-> <p£, for any Boolean ip.
(7) [ skip; a ]>!«-»[ a ]4.
(8) [a n ]4«-»[a]M.
(9) (4^[/3;a*]5)->(,4^[/3;a n ]S).
(10) Ind. Hint: show that
hB-»[a]5,
where B is ^4 A [a* ](-A —> [a]A). Use Omega-Iteration to obtain
\-B-+[a*]B.
Exercises 13.2
(1) If A e T, then P h A.
(2) If h A, then r I- A.
(3) If T h A and F C 9, then 0 h A.
(4) If T I- A and T h A -+ B, then T h B.
(5) If T h A -» [0; a" ]J3 for all n e w , then r h A -» [/3; a* ]B.
(6) J" is consistent iff there is no A with F \- A and T h -iA.
(7) If M is a standard model, then
h A implies M |= A
156 First-Order Dynamic Logic
{A : M K A}
is a consistent theory.
(9) If P is a theory, then:
(i) T € F;
(ii) (Deductive Closure) if r I- A, then ,4 € T;
(Hi) itr\-A^>BandAer, then B 6 T;
(iv) r is consistent iff J_£ T iff F £ Fma;
(v) [ a * ] . A e r i f f { [ a ] M : n e w } C r .
Lemma 13.3. If {[« := a\(A -* [/3;a n ]B) : n e w} C T, and T is a
theory, then
[w:=(7](,4-»[j8;a']fl)er.
Proof. For all n, by the axiom K for [v := a], and use of axiom Comp, we
get
([w:=(rL4->[(t;:=<r;/3);aB]B)€r.
By closure of F under Omega-Iteration, this gives
A = {D : r h A -» D}.
We want B £ A, so by our hypothesis it will suffice to show that A is a
theory containing F U {A}.
Now since D —> (A —* D) is a tautology, it is deducible from F, and
this leads to r h A -» D, hence £> € 4, in case that D 6 T or h D.
Similarly, using the tautology A —> ^4 we get .A e A
Next, to show that A is closed under Detachment, suppose D and
D —> I? are in /I. Then the tautology
>[/3;a"]£):new}C A
Since Var is infinite, such a function exists. For each formula D, let D'
be the result of replacing each variable y in D by y'. Then the injective
correspondence D i—» D' maps axioms to axioms, and instances of rules
(Detachment, Necessitation, Generalisation, Omega-Iteration) to instances
of the same rules. Thus the set
{D e FmaL : h D'}
A-+[v:=c]B,
implying that
By the hypothesis on c and the definition of the relettering y H-» y', this
means that
h A-* [v:=w]B.
Then by the Generalisation rule, axioms Al and A2, and the fact that
w £ Var A, we get
h A
Axiom A4 then provides the desired conclusion.
Exercise 13.7
If h Vv(A -» [/3; a" ]B), for all n, then h Vw(A -»[/?; a* ]B).
Maximal Theories
An L-maximal theory is one that is //-consistent, and contains one of A
and -<A, for each L-formula A.
Exercises 13.8
If F is a maximal theory:
(1) ^ ^
(2) exactly one of A, -(A belongs to F;
(3) (A -> B) € T iff A € T implies B € T.
Rich Theories
If X Q Coni, is a set of //-constants, then an L-theory is x-rich if it satisfies
if VvB £ r, then for some c £ x, [v\= c}B <£ T .
ma
If this holds, x Y De called a set of "witnesses" for F in L.
§13 Proof Theory 159
Exercise 13.9
If F is a X'rich theory, then
Exercise 13.11
Use a relettering technique, as in the proof of the Generalisation Lemma
13.6, to show that if A € FmaL, then
hL A iff h L x A.
A) C ... C An C
An HLX An,
160 First-Order Dynamic Logic
we put
An+i = An U {An}.
Let
An+l = AnU{^(B - (
for some (say the least) such m.
Case 3: An has the form VvB. Then put
A = \J{An : n € w}.
It is evident that Z\ contains all Lx-theorems, for if \- An, then /in h A n ,
and An £. An+i. Also, the construction ensures that if An £ A, then
->An £ A. To proceed further, it is necessary to show that each An is
consistent. This is done by induction on n. For n = 0, Corollary 13.5(3)
provides the result, since \f A. Assuming that An is consistent, observe
that if A h An, it must follow that An \f ->An (Ex. 13.2(6)), and so
An+i = An U {^4n} is consistent (Corollary 13.5(2)). If however An \f An,
we have the three above cases to consider.
Case 1: Here, invocation of Corollary 13.5(3) again gives the consistency
Case 2: In this case, if An+i were not consistent, then by 13.5(3) and the
Deduction Theorem 13.4 we would have
But
§13 Proof Theory 161
this implies
and hence
where D is the conjunction of the finitely many members of An. From our
choice of c, the Generalisation Lemma 13.6 then gives
I- D -» VvB,
MA = (%A,SA,RA,VA)
that falsifies A. The definition of M.A will take some time to develop.
The Diagram
We define the diagram of the structure $LA to be the set DiagA of all
atomic L*-sentences, and negations of atomic Z/x-sentences, that belong to
SA- Thus DiagA consists of all Lx-formulae that belong to SA of the form
P(<TI, . . . ,<r n ) or <r = r, and the negations of such formulae, where the
terms involved contain no variables (only constants and function letters).
The members of DiagA will all be true in the L*-structure 21 , and give a
complete specification of its algebraic relations.
The Structure
The definition of 21A is the standard one used, as in the Henkin complete-
ness proof for first-order logic, to build a first-order structure out of a
maximal theory.
Define an equivalence relation on x by putting
c ~ d iff (c = d} € SA
c — {d: c ~ d}
162
§14 Canonical Model and Completeness 163
Exercises 14.1
(1) SA e SA.
(2) If B is an atomic L*-sentence, or the negation of such a sentence, then
for any s € SA,
B e s iff B e SA.
The Valuations
VtA(v) = c iff (w = c)e*.
Observe that for any s 6 SA and any variable v, the Witness Lemma 13.10
guarantees that there is a c 6 x with (v = c) € s.
Exercises 14.2
(1) For any Lx-term a, and s € SA,
VA((7) = c iff (a = c) € s.
s^NdVi 4 ] iff v e s .
In order to model assignments, we need a major preliminary result:
164 First-Order Dynamic Logic
so for any formula B, one of B and ->B is in s(v := cr). Hence s(v := a) is
a maximal theory.
To prove DiagA C s(v :— a), observe that if (p E Diag^, then by
axiom A8 (cf. Exercise 13.1(6)),
[w := a][w :— c]B £ s,
§14 Canonical Model and Completeness 165
[v:= d}VwB i s.
Since w does not occur in (v :— d}, the "Barcan formula" A6 then yields
[v := d][w := c]B $ s.
[v := <r][w := c]B ^ s,
Modelling Programs
For assignments, we put
(a = c) e s. Now by A8,
h (a — c) -» [v := a](v — c),
so [v := ff](v = c) € s, whence
(v = c) 6 s(v :— a) — t,
Lemma 14.5 ensures that MA has enough states, and so interprets the
quantifier V correctly. Moreover, from the Quantifier/Assignment Lemma
12.7, it gives
Corollary 14.6.
MA K VVB iff
for all c e X, MA K [» := c]B.
We are heading towards a Truth Lemma for MA, and, as a final prelimi-
nary, we extract a part of its proof for separate consideration. To this end,
a formula B is defined to be correct if for every s € SA,
MA\=SB iff Be s.
which is true in the standard model MA, and a member of every s 6 SA,
since it is an instance of the axiom schema Test.
Now for the case of a program a; /?, under the inductive assumption
that the Lemma holds for a and for /3. Then if B is correct, the hypothesis
on /3 makes [f3]B correct, and so the hypothesis on a applied to
makes [a][/3]5 correct, i.e.
iff [
Correctness of [a;/3]B then follows by using the instance
[a;p]B~[a][l3]B
of axiom Comp, which is true in the standard model MA.
The case of a program of the form a U /3 is similar to that of a; /?, using
the axiom Alt, and is left to the reader.
Finally the case of an iterative program a*, assuming the result for a.
Suppose B is correct. First we show that [a] n S is correct for all n € u. If
n = 0, this is just the assumption on B. Assuming that [a]™S is correct,
the hypothesis on a then gives [a][a] n B, i.e. [a]n+lB, correct. Hence,
by induction on n, we get
MA\=s[a]nB iff [a]"B6«,
for all n and s. But in the standard model MA,
MA^=.[a']B iff for all n e w , MA \=.[a]nB
(Exercise 10.1(1)), while
[ a * ] B € s iff for all n e w , [a]nB €s,
by closure of s under Omega-Iteration etc. (Exercise 13.2(9)(v)). Hence
[a*]J3 is correct.
168 First-Order Dynamic Logic
Truth-Lemma
A
for MA- Every Lx-formula B is correct, i.e. for every
seS ,
MA \=8B iff B e s.
Proof. That Boolean formulae are correct is Exercise 14.2(2). The truth-
functional cases are as usual.
If B is correct, then for any program a, correctness of [ a ]B is given by
the Program Lemma 14.7 (which was treated separately because it requires
an "inner" induction on a).
Finally, consider VvB, assuming B is correct. We have
In addition to the books and papers cited in the text, the following list
includes other items of potential interest to the student of modal and tem-
poral logic.
169
170 Bibliography
Goldblatt, Robert
[1975] First-order definability in modal logic, J. Symbolic Logic, 40, 35-
40.
[19751] Solution to a completeness problem of Lemmon and Scott, Notre
Dame J. of Formal Logic, 16, 405-408.
[1976] Metamathematics of modal logic, Reports on Mathematical Logic,
Polish Scientific Publishers, Warsaw-Cracow, 6, 41-78 (Part I);
and 7, 21-52 (Part II).
[1980] Diodorean modality in Minkowski spacetime, Studia Logica, 39,
219-236.
[1982] Axiomatising the Logic of Computer Programming, Lecture Notes
in Computer Science 130, Springer-Verlag.
[1982i] The semantics of Hoare's iteration rule, Studia Logica, 41, 141-
158.
[1986] Review of Fischer and Ladner [1979], Pratt [1976], Segerberg
[1982], and other papers, J. Symbolic Logic, 51, 225-227.
[1990] On closure under canonical embedding algebras, in Algebraic Log-
ic, H. Andreka, J.D. Monk, and I. Nemeti (eds.), Colloquia Math-
ematica Societatis Janos Bolyai, 54, North-Holland Publishing
Co., 217-229.
[1991] The McKinsey axiom is not canonical, J. Symbolic Logic, 56,
554-562.
Hailpern, Brent T.
[1982] Verifying Concurrent Processes Using Temporal Logic, Lecture
Notes in Computer Science 129, Springer-Verlag.
Harel, David
[1979] First-order Dynamic Logic, Lecture Notes in Computer Science
68, Springer-Verlag.
[1984] Dynamic logic, in Gabbay and Guenthner (eds.), 497-604.
Kamp, J.A.W.
[1968] Tense Logic and the Theory of Order, Ph.D dissertation, UCLA.
Kripke, Saul A.
[1959] A completeness theorem in modal logic, J. Symbolic Logic, 24,
1-14.
[1963] Semantic analysis of modal logic I: normal prepositional calculi,
Zeit. Math. Logik Grand. Math., 9, 67-96.
Lemmon, E.J.
[1977] An Introduction to Modal Logic, in collaboration with Dana Scott,
American Philosophical Quarterly Monograph Series 11, Basil
Blackwell, Oxford.
Lewis, C.I., and Langford, C.H.
[1932] Symbolic Logic, The Century Co.
Makinson, D.
[1969] A normal modal calculus between T and S4 without the finite
model property, J. Symbolic Logic, 34, 35-38.
Manna, Z., and Pnueli, A.
[1981] Verification of concurrent programs: the temporal framework, in
The Correctness Problem in Computer Science, R.S. Boyer and
J.S. Moore (eds), Academic Press, 215-273.
Moszkowski, Ben
[1986] Executing Temporal Logic Programs, Cambridge University Press.
Nerode, A., and Wijesekera, D.
[1990] Constructive concurrent dynamic logic I, Technical Report '90-43,
Mathematical Sciences Institute, Cornell University.
Parikh, R.
[1984] Logics of knowledge, games, and dynamic logic, in Foundations of
Software Technology and Theoretical Computer Science, Lecture
Notes in Computer Science 181, M.Joseph and R.Shyamasundar
(eds.), 202-222.
Peleg, David
[1987] Concurrent dynamic logic, JACM, 34, 450-479.
[1987i] Communication in concurrent dynamic logic, J. Comp. Syst. ScL,
35, 23-58.
Pnueli, A.
[1981] The temporal semantics of concurrent programs, Theoretical Com-
puter Science, 13, 45-60.
Pratt, V.R.
[1976] Semantical considerations on Floyd-Hoare logic, Proc. 17th IEEE
Symp. on Foundations of Computer Science, 109-121.
Bibliography 173
Prior, Arthur
[1957] Time and Modality, Clarendon Press, Oxford.
[1967] Past, Present, and Future, Clarendon Press, Oxford.
Rescher N., and Urquhart, A.
[1971] Temporal Logic, Springer-Verlag.
Rosenchein, Stanley J.
[1985] Formal theories of knowledge in AI and robotics, New Genera-
tion Computing, 3, Oshma Ltd., Tokyo. Also as Technical Note
362, Artificial Intelligence Center, SRI International, Menlo Park,
California.
Rosenchein, Stanley J., and Kaelbling, Leslie Pack
[1986] The synthesis of digital machines with provable epistemic proper-
ties, SRI International and CSLI Stanford.
Sahlqvist, H.,
[1975] Completeness and correspondence in first and second order se-
mantics for modal logic, in Proceedings of the Third Scandinavian
Logic Symposium, ed. Stig Kanger, North-Holland, 110-143.
Sambin, G., and Vaccaro, V.,
[1989] A new proof of Sahlqvist's theorem on modal definability and
completeness, J. Symbolic Logic, 54, 992-999.
Segerberg, Krister
[1970] Modal logics with linear alternative relations, Theoria, 36, 301-
322.
[1971] An Essay in Classical Modal Logic, Philosophical studies pub-
lished by the Philosophical Society and the Department of Phi-
losophy, University of Uppsala, volume 13, Uppsala.
[1982] A completeness theorem in the modal logic of programs, in Uni-
versal Algebra and Applications, T. Traczyk (ed.), Banach Centre
Publications 9, PWN - Polish Scientific Publishers, Warsaw, 31-
46.
Thomason, S.K.
[1972] Semantic analysis of tense logics, J. Symbolic Logic, 37, 150-158.
[1974] An incompleteness theorem in modal logic, Theoria, 40, 30-34.
[1975] Reduction of second-order logic to modal logic, Zeit. Math. Logik
Grund. Math., 21, 107-114.
Urquhart, A.
[1981] Decidability and the finite model property, J. Philosophical Logic,
10, 367-370.
174 Bibliography
175
176 Index
T, 22 truth
0,87 at a point, 6, 37, 90, 100, 110,
determination of, 91-98 116-117, 148
tautological consequence, 17 at a state, 86
tautology, 8 in a model, 8
temporal nitration, 44 Truth Lemma, 25, 126, 168
temporal logic, 7, 41
linear, 79 undecidable logics, 58-61
of (w, <), 78 undefinable conditions, 14
of (Q, <), 79-80 uniform
of (R,<), 81-83 logic, 23
of(Z,<), 78 Substitution, 5, 23
temporal p-morphism, 44 universal relation, 28, 67
term, 146 until, 47, 86, 99
test program, 109, 146 unwinding clusters, 96
theorem, 17, 154
theory, 155 Vr, 32
maximal, 158 valid in frame, 8
rich, 158 valuation, 8, 143, 147
time verum, 4
beginning, 79
branching, 99 W, 14, 22, 51, 56, 57, 70, 79
continuous, 70 implies transitivity, 14, 56
dense, 70 weakly connected, 12, 30
discrete, 65, 71, 78 weakly dense, 12, 70
endless, 65 weakly directed, 12
rational, 79 weakly future-connected, 42
real, 81 witness, 158
time-frame, 41 Witness Lemma, 159
total correctness, 85
total ordering, 42 Z, 7
strict, 42 Z, 65
transitive, 12 Z-Lemma, 69, 78
tree, 103
CSLI Publications
Reports On the Axiomatization of "if-then-
else" Irene Guessarian and Jose
The following titles have been pub- Meseguer CSLI-85-20 ($5.00)
lished in the CSLI Reports series.
The Situation in Logic-II: Condi-
These reports may be obtained from tionals and Conditional Informa-
CSLI Publications, Ventura Hall, Stan- tion Jon Barwise CSLI-84-21 ($5.00)
ford University, Stanford, CA 94305-
Principles of OBJ2 Kokichi Futatsugi,
4115. Joseph A. Goguen, Jean-Pierre Jouan-
Coordination and How to Distin- naud, and Jose Meseguer CSLI-85-22
guish Categories Ivan Sag, Gerald ($2.00)
Gazdar, Thomas Wasow, and Steven Querying Logical Databases Moshe
Weisler CSLI-84-3 ($5.50) Vardi CSLI-85-23 ($/.50)
Belief and Incompleteness Kurt Computationally Relevant Prop-
Konolige CSLI-84-4 ($4-50) erties of Natural Languages and
Equality, Types, Modules and Their Grammar Gerald Gazdar and
Generics for Logic Programming Geoff Pullum CSLI-85-24 ($5.50)
Joseph Goguen and Jose Meseguer An Internal Semantics for Modal
CSLI-84-5 ($2.50) Logic: Preliminary Report Ronald
Lessons from Bolzano Johan van Ben- Fagin and Moshe Vardi CSLI-85-25
them CSLI-84-6 ($/.50) ($2.00)
Self-propagating Search: A Unified The Situation in Logic-Ill: Situ-
Theory of Memory Pentti Kanerva ations, Sets and the Axiom of
CSLI-84-7 ($9.00) Foundation Jon Barwise CSLI-85-26
($2.50)
Reflection and Semantics in LISP
Semantic Automata Johan van Ben-
Brian CantweU Smith CSLI-84-8
them CSLI-85-27 ($2.50)
($2.50)
The Implementation of Procedu- Restrictive and Non-Restrictive
rally Reflective Languages Jim Modification Peter Sells CSLI-85-28
des Rivieres and Brian Cantwell Smith ($5.00)
CSLI-84-9 ($5.00) Institutions: Abstract Model
Theory for Computer Science
Parameterized Programming Joseph J. A. Goguen and R. M. Burstall
Goguen CSLI-84-10 ($5.50) CSLI-85-30 ($4.50)
Shifting Situations and Shaken At- A Formal Theory of Knowledge and
titudes Jon Barwise and John Perry Action Robert C. Moore CSLI-85-31
CSLI-84-13 ($4-50) ($5.50)
Completeness of Many-Sorted Finite State Morphology: A Review
Equational Logic Joseph Goguen of Koskenniemi (1983) Gerald Gaz-
and Jose Meseguer CSLI-84-1S ($2.50) dar CSLI-85-32 ($1.50)
Moving the Semantic Fulcrum Terry The Role of Logic in Artificial Intel-
Winograd CSLI-84-17 ($/.50) ligence Robert C. Moore CSLI-85-33
On the Mathematical Properties of ($2.00)
Linguistic Theories C. Raymond Applicability of Indexed Grammars
Perrault CSLI-84-18 ($5.00) to Natural Languages Gerald Gaz-
A Simple and Efficient Implementa- dar CSLI-85-34 ($2.00)
tion of Higher-order Functions in Commonsense Summer: Final
LISP Michael P. Georgeff and Stephen Report Jerry R. Hobbs, et al
F.Bodnar CSLI-84-19 ($^.50) CSLI-85-35 ($12.00)
Limits of Correctness in Comput- Computer Aids for Compara-
ers Brian Cantwell Smith CSLI-85-36 tive Dictionaries Mark Johnson
($2.50) CSLI-86-58 ($2.00)
The Coherence of Incoherent Dis- A Sheaf-Theoretic Model of Con-
course Jerry R. Hobbs and Michael currency Luis F. Monteiro and
H. Agar CSLI-85-38 ($2.50) Fernando C. N. Pereira CSLI-86-62
A Complete, Type-free "Second- ($5.00)
order" Logic and Its Philosophi- Tarski on Truth and Logical Conse-
cal Foundations Christopher Menzel quence John Etchemendy CSLI-86-64
CSLI-86-40 ($4.50) ($5.50)
Possible-world Semantics for Au- Categorial Unification Grammars
toepistemic Logic Robert C. Moore Hans Uszkoreit CSLI-86-66 ($2.50)
CSLI-85-41 ($2.00)
Deduction with Many-Sorted Generalized Quantifiers and Plurals
Rewrite Jose Meseguer and Joseph Godehard Link CSLI-86-67 ($2.00)
A. Goguen CSLI-85-42 ($1.50) Radical Lexicalism Lauri Karttunen
On Some Formal Properties of CSLI-86-68 ($2.50)
Metarules Hans Uszkoreit and Stan- What is Intention? Michael B. Brat-
ley Peters CSLI-85-43 ($1.50) man CSLI-86-69 ($2.00)
Language, Mind, and Information The Correspondence Continuum
John Perry CSLI-85-44 ($2.00) Brian Cantwell Smith CSLI-87-71
Constraints on Order Hans Uszkoreit ($4.00)
CSLI-86-46 ($5.00) The Role of Prepositional Objects
Linear Precedence in Discontin- of Belief in Action David J. Israel
uous Constituents: Complex CSLI-87-72 ($2.50)
Fronting in German Hans Uszkoreit
CSLI-86-47 ($2.50) Two Replies Jon Barwise CSLI-87-74
($5.00)
A Compilation of Papers on
Unification-Based Grammar For- Semantics of Clocks Brian Cantwell
malisms, Parts I and II Stuart Smith CSLI-87-75 ($2.50)
M. Shieber, Fernando C.N. Pereira, The Parts of Perception Alexander
Lauri Karttunen, and Martin Kay Pentland CSLI-87-77 ($4-00)
CSLI-86-48 ($10.00)
The Situated Processing of Situated
Noun-Phrase Interpretation Mats Language Susan Stucky CSLI-87-80
Rooth CSLI-86-51 ($2.00) ($/.50)
Noun Phrases, Generalized Quan- Muir: A Tool for Language Design
tifiers and Anaphora Jon Barwise Terry Winograd CSLI-87-81 ($2.50)
CSLI-86-52 ($2.50)
Circumstantial Attitudes and Final Algebras, Cosemicomputable
Benevolent Cognition John Perry Algebras, and Degrees of Un-
CSLI-86-53 ($1.50) solvability Lawrence S. Moss, Jose
Meseguer, and Joseph A. Goguen
A Study in the Foundations of Pro- CSLI-87-82 ($5.00)
gramming Methodology: Speci-
fications, Institutions, Charters The Synthesis of Digital Machines
and Parchments Joseph A. Goguen with Provable Epistemic Proper-
and R. M. BurstaU CSLI-86-54 ties Stanley J. Rosenschein and Leslie
($2.50) Pack Kaelbling CSLI-87-83 ($5.50)
Intentionality, Information, and An Architecture for Intelligent Re-
Matter Ivan Blair CSLI-86-56 active Systems Leslie Pack Kaelbling
($5.00) CSLI-87-85 ($2.00)
Modular Algebraic Specifica- Toward an Architecture for
tion of Some Basic Geometrical Resource-bounded Agents Martha
Constructions Joseph A. Goguen E. Pollack, David J. Israel, and
CSLI-87-87 ($2.50) Michael E. Bratman CSLI-87-104
Persistence, Intention and Com- ($2.00)
mitment Phil Cohen and Hector On the Relation Between Default
Levesque CSLI-87-88 ($5.50) and Autoepistemic Logic Kurt
Rational Interaction as the Basis Konolige CSLI-87-105 ($5.00)
for Communication Phil Cohen and Three Responses to Situation The-
Hector Levesque CSLI-87-89 ($4.00) ory Terry Winograd CSLI-87-106
Models and Equality for Logical ($2.50)
Programming Joseph A. Goguen Subjects and Complements in
and Jose Meseguer CSLI-87-91 ($5.00) HPSG Robert Borsley CSLI-87-107
Order-Sorted Algebra Solves the ($2.50)
Constructor-Selector, Mulitple Tools for Morphological Analysis
Representation and Coercion Mary Dalrymple, Ronald M. Kaplan,
Problems Joseph A. Goguen and Lauri Karttunen, Kimmo Kosken-
Jose Meseguer CSLI-87-92 ($2.00) niemi, Sami Shaio, Michael Wescoat
CSLI-87-108 ($/0.00)
Extensions and Foundations for
Object-Oriented Programming Fourth Year Report of the Situ-
Joseph A. Goguen and Jose Meseguer ated Language Research Program
CSLI-87-93 ($5.50) CSLI-87-111 (free)
13 Reference Manual: Version 2.19 Events and "Logical Form" Stephen
William Poser CSLI-87-94 ($2.50) Neale CSLI-88-113 ($2.00)
Change, Process and Events Carol E. Backwards Anaphora and Discourse
Cleland CSLI-88-95 ($4.00) Structure: Some Considerations
One, None, a Hundred Thousand Peter Sells CSLI-87-114 ($2.50)
Specification Languages Joseph A. Toward a Linking Theory of Rela-
Goguen CSLI-87-96 ($2.00) tion Changing Rules in LEG Lori
Constituent Coordination in HPSG Levin CSLI-87-115 ($^.00)
Derek Proudian and David Goddeau Fuzzy Logic L. A. Zadeh CSLI-88-116
CSLI-87-97 ($1.50) ($2.50)
A Language/Action Perspective on Dispositional Logic and Com-
the Design of Cooperative Work monsense Reasoning L. A. Zadeh
Terry Winograd CSLI-87-98 ($2.50) CSLI-88-117 ($2.00)
Implicature and Definite Reference Intention and Personal Policies
Jerry R. Hobbs CSLI-87-99 ($/.50) Michael Bratman CSLI-88-118 ($2.00)
Situation Semantics and Semantic Unification and Agreement Michael
Interpretation in Constraint- Barlow CSLI-88-120 ($2.50)
based Grammars Per-Kristian
Halvorsen CSLI-87-101 ($/.50) Extended Categorial Gram-
mar Suson Yoo and Kiyong Lee
Category Structures Gerald Gaz- CSLI-88-121 ($^.00)
dar, Geoffrey K. Pullum, Robert
Carpenter, Ewan Klein, Thomas E. Unaccusative Verbs in Dutch and
Hukari, Robert D. Levine CSLI-87-102 the Syntax-Semantics Interface
($5.00 ) Annie Zaenen CSLI-88-123 ($5.00)
Cognitive Theories of Emotion Types and Tokens in Linguistics
Ronald Alan Nash CSLI-87-103 Sylvain Bromberger CSLI-88-125
($2.50) ($5.00)
Determination, Uniformity, and Sixth Year Report CSLI-90-141 (free)
Relevance: Normative Crite-
ria for Generalization and Rea- Categorical Grammar Meets
soning by Analogy Todd Davies Unification Johan van Benthem
CSLI-88-126 ($4.50) CSLI-90-142 ($4.50)
Modal Subordination and Pronomi- Point of View Edit Doron CSLI-90-143
nal Anaphora in Discourse Craige ($3.50)
Roberts CSLI-88-127 ($4.50) Modal Logic as a Theory of In-
formation Johan van Benthem
The Prince and the Phone Booth: CSLI-90-144 ($5.50)
Reporting Puzzling Beliefs
Mark Crimmins and John Perry What Is Information? David Israel
CSLI-88-128 ($3.50) and John Perry CSLI-91-145 ($4.50)
Set Values for Unification-Based Fodor and Psychological Explana-
Grammar Formalisms and Logic tions John Perry and David Israel
Programming William Rounds CSLI-91-146 ($^.50)
CSLI~88-129($4.00) Decision Problems for Propositional
Fifth Year Report of the Situated
Linear Logic Patrick Lincoln, John
Language Research Program
Mitchell, Andre Scedrov, and Natara-
CSLI-88-130 (free)
jan Shankar CSLI-91-147 ($10.00)
Annual Report 1989-90 CSLI-91-148
Locative Inversion in Chichewa: A (free)
Case Study of Factorization in
Grammar Joan Bresnan and Jonni Overloading Intentions for Efficient
M. Kanerva CSLI-88-131 ($5.00) Practical Reasoning Martha B. Pol-
lack CSLI-91-149 ($5.50)
An Information-Based Theory of
Agreement Carl Pollard and Ivan Introduction to the Project on Peo-
A. Sag CSLI-88-132 ($4.00) ple, Computers, and Design Terry
Winograd CSLI-91-150 ($5.50)
Relating Models of Polymorphism
Jose Meseguer CSLI-88-133 ($4.50) Ecological Psychology and Dewey's
Theory of Perception Tom Burke
Psychology, Semantics, and Mental CSLI-91-151 ($3.50)
Events under Descriptions Peter
The Language/Action Approach to
Ludlow CSLI-89-135 ($5.50)
the Design of Computer-Support
Mathematical Proofs of Computer for Cooperative Work Finn Kens-
System Correctness Jon Barwise ing and Terry Winograd CSLI-91-152
CSLI-89-136 ($3.50) ($5.50)
The X-bar Theory of Phrase Struc- The Absorption Principle and E-
ture Andras Kornai and Geoffrey K. Type Anaphora Jean Mark Gawron,
Pullum CSLI-89-137 ($4-00) John Nerbonne, and Stanley Peters
Discourse Structure and Perfor- CSLI-91-153($5.00)
mance Efficiency in Interac- Ellipsis and Higher-Order Uni-
tive and Noninteractive Spoken fication Mary Dalrymple, Stu-
Modalities Sharon L. Oviatt and art M. Shieber, and Fernando
Philip R. Cohen CSLI-90-138 ($5.50) C. N. Pereira CSLI-91-154 ($5.50)
The Contributing Influence of Sheaf Semantics for Concurrent In-
Speech and Interaction on Some teracting Objects Joseph A. Goguen
Aspects of Human Discourse CSLI-91-155 ($5.00)
Sharon L. Oviatt and Philip R. Cohen Communication and Strategic In-
CSLI-90-139 ($3.50) ference Prashant Parikh CSLI-91-156
The Connectionist Construc- ($5.00)
tion of Concepts Adrian Cussins Shared Cooperative Activity Michael
CSLI-90-140 ($5.00) E. Bratman CSLI-91-157 ($3.50)
Practical Reasoning and Acceptance Lectures on Contemporary Syntactic
in a Context Michael E. Bratman Theories. Peter Sells. Lecture Notes
CSLI-91-158 ($3.50) No. 3. ISBN 0-937073-14-8 (paper),
0-937073-13-X (cloth)
Planning and the Stability of
Intention Michael E. Bratman An Introduction to Unification-Based
CSLI-91-159 ($£.50) Approaches to Grammar. Stuart M.
Logic and the Flow of Information Shieber. Lecture Notes No. 4. ISBN
Johan van Benthem CSLI-91-160 0-937073-00-8 (paper), 0-937073-01-6
($5.00) (cloth)
Learning HCI Design: Mentoring The Semantics of Destructive Lisp. Ian
Project Groups in a Course on A. Mason. Lecture Notes No. 5. ISBN
Human-Computer Interaction 0-937073-06-7 (paper), 0-937073-05-9
Brad Hartfield, Terry Winograd, and (cloth)
John Bennett CSLI-91-161 ($5.50)
An Essay on Facts. Ken Olson. Lec-
How to Read Winograd's & Flo- ture Notes No. 6. ISBN 0-937073-08-3
res's Understanding Comput- (paper), 0-937073-05-9 (cloth)
ers and Cognitiion Hugh McGuire
CSLI-92-162 ($6.00) Logics of Time and Computation.
Robert Goldblatt, second edition, re-
In Support of a Semantic Account vised and expanded. Lecture Notes
of Resultatives Adele E. Goldberg No. 7. ISBN 0-937073-94-6 (paper),
CSLI-92-163 ($) 0-937073-93-8 (cloth)
Augmenting Informativeness and
Word Order and Constituent Structure
Learnability of Items in Large
in German. Hans Uszkoreit. Lecture
Computer Networks Clarisse S.
Notes No. 8. ISBN 0-937073-10-5 (pa-
de Souza CSLI-92-164 ($)
per), 0-937073-09-1 (cloth)
Terry Winograd CSLI-92-165 ($)
Color and Color Perception: A Study
A Semiotic Approach to User Inter- in Anthropacentric Realism. David
face Language Design Clarisse S. de Russel Hilbert. Lecture Notes No. 9.
Souza CSLI-92-166 ($) ISBN 0-937073-16-4 (paper), 0-937073-
15-6 (cloth)
Prolog and Natural-Language Analysis.
Lecture Notes Fernando C. N. Pereira and Stuart M.
Shieber. Lecture Notes No. 10. ISBN
The titles in this series are distributed 0-937073-18-0 (paper), 0-937073-17-2
by the University of Chicago Press (cloth)
and may be purchased in academic Working Papers in Grammatical The-
or university bookstores or ordered di- ory and Discourse Structure: Inter-
rectly from the distributor: Order De- actions of Morphology, Syntax, and
partment, 11030 S. Langely Avenue, Discourse. M. lida, S. Wechsler, and
Chicago, Illinois 60628. D. Zee (Eds.) with an Introduction by
Joan Bresnan. Lecture Notes No. 11.
A Manual of Intensional Logic. Johan ISBN 0-937073-04-0 (paper), 0-937073-
van Benthem, second edition, revised 25-3 (cloth)
and expanded. Lecture Notes No. 1.
Natural Language Processing in the
ISBN 0-937073-29-6 (paper), 0-937073-
1980s: A Bibliography. Gerald Gaz-
30-X (cloth)
dar, Alex Franz, Karen Osborne, and
Emotion and Focus. Helen Fay Nis- Roger Evans. Lecture Notes No. 12.
senbaum. Lecture Notes No. 2. ISBN ISBN 0-937073-28-8 (paper), 0-937073-
0-937073-20-2 (paper) 26-1 (cloth)
Information-Based Syntax and Seman- Lexical Matters. Ivan A. Sag and Anna
tics. Carl Pollard and Ivan Sag. Szabolcsi, editors. Lecture Notes
Lecture Notes No. 13. ISBN 0-937073- No. 24. ISBN 0-937073-66-0 (paper),
24-5 (paper), 0-937073-23-7 (cloth) 0-937073-65-2 (cloth)
Non-Well-Founded Sett. Peter Aczel. Tanki's World. Jon Barwise and John
Lecture Notes No. 14. ISBN 0-937073- Etchemendy. Lecture Notes No. 25.
22-9 (paper), 0-937073-21-0 (cloth) ISBN 0-937073-67-9 (paper)
Situation Theory and Its Applications,
Partiality, Truth and Persittence. Tore Vol. &. Jon Barwise, J. Mark Gawron,
Langholm. Lecture Notes No. 15. Gordon Plotkin, Syun Tutiya, editors.
ISBN 0-937073-34-2 (paper), 0-937073- Lecture Notes No. 26. ISBN 0-937073-
35-0 (cloth) 70-9 (paper), 0-937073-71-7 (cloth)
Attribute- Value Logic and the Theory of Literate Programming. Donald E.
Grammar. Mark Johnson. Lecture Knuth. Lecture Notes No. 27. ISBN
Notes No. 16. ISBN 0-937073-36-9 0-937073-80-6 (paper), 0-937073-81-4
(paper), 0-937073-37-7 (cloth) (cloth)
The Situation in Logic. Jon Barwise. Normalization, Cut-Elimination and
Lecture Notes No. 17. ISBN 0-937073- the Theory of Proofs. A. M. Ungar.
32-6 (paper), 0-937073-33-4 (cloth) Lecture Notes No. 28. ISBN 0-937073-
82-2 (paper), 0-937073-83-0 (cloth)
The Linguistics of Punctuation. Geoff
Lectures on Linear Logic. A. S. Troel-
Nunberg. Lecture Notes No. 18. ISBN
0-937073-46-6 (paper), 0-937073-47-4 stra. Lecture Notes No. 29. ISBN
0-937073-77-6 (paper), 0-937073-78-4
(cloth)
(cloth)
Anaphora and Quantification in Situa- A Short Introduction to Modal Logic.
tion Semantics. Jean Mark Gawron Grigori Mints. Lecture Notes No. 30.
and Stanley Peters. Lecture Notes ISBN 0-937073-75-X (paper), 0-937073-
No. 19. ISBN 0-937073-48-4 (paper), 76-8 (cloth)
0-937073-49-0 (cloth)
Prepositional Attitudes: The Role of
Content in Logic, Language, and
Mind. C. Anthony Anderson and
Other CSLI Titles
Joseph Owens. Lecture Notes No. 20.
ISBN 0-937073-50-4 (paper), 0-937073-
Distributed by UCP
51-2 (cloth) Agreement in Natural Language: Ap-
proaches, Theories, Descriptions.
Literature and Cognition. Jerry R. Michael Barlow and Charles A. Fergu-
Hobbs. Lecture Notes No. 21. ISBN son (Eds.). ISBN 0-937073-02-4 (cloth)
0-937073-52-0 (paper), 0-937073-53-9
Papers from the Second International
(cloth)
Workshop on Japanese Syntax.
Situation Theory and Its Applications, William J. Poser (Ed.). ISBN 0-
Vol. I. Robin Cooper, Kuniaki Mukai, 937073-38-5 (paper), 0-937073-39-3
and John Perry (Eds.). Lecture Notes (cloth)
No. 22. ISBN 0-937073-54-7 (paper), The Proceedings of the Seventh West
0-937073-55-5 (cloth) Coast Conference on Formal Linguis-
The Language of First-Order Logic tics (WCCFL 7). ISBN 0-937073-40-7
(including the Macintosh program, (paper)
Tarski's World). Jon Barwise and The Proceedings of the Eighth West
John Etchemendy, second edition, re- Coast Conference on Formal Linguis-
vised and expanded. Lecture Notes tics (WCCFL 8). ISBN 0-937073-45-8
No. 23. ISBN 0-937073-74-1 (paper) (paper)
The Phonology-Syntax Connection. The Proceedings of the Sixth West Coast
Sharon Inkelas and Draga Zee (Eds.) Conference on Formal Linguistics
(co-published with The University of (WCCFL 6). ($1S.9S) ISBN 0-937073-
Chicago Press). ISBN 0-226-38100-5 45-8 (paper)
(paper), 0-226-38101-3 (cloth) Hausar Yau Da Kullum: Intermediate
The Proceedings of the Ninth West Coast and Advanced Lessons in Ha.-a.su Lan-
Conference on Formal Linguistics guage and Culture. William R. Leben,
(WCCFL 9). ISBN 0-937073-64-4 Ahmadu Bello Zaria, Shekarau B.
(paper) Maikafi, and Lawan Danladi Yalwa.
Japanese/Korean Linguistics. Hajime ($19.95) ISBN 0-937073-68-7 (paper)
Hoji (Ed.). ISBN 0-937073-57-1 (pa- Hausar Yau Da Kullum Workbook.
per), 0-937073-56-3 (cloth) William R. Leben, Ahmadu Bello
Experiencer Subjects in South Asian Zaria, Shekarau B. Maikan, and
Languages. Manindra K. Verma Lawan Danladi Yalwa. ($7.50) ISBN
and K. P. Mohanan (Eds.). ISBN 0- 0-93703-69-5 (paper)
937073-60-1 (paper), 0-937073-61-X
(cloth)
Grammatical Relations: A Cross- Ordering Titles
Theoretical Perspective. Katarzyna
Dziwirek, Patrick Farrell, Errapel Distributed by CSLI
Mejias Bikandi (Eds.). ISBN 0-937073-
63-6 (paper), 0-937073-62-8 (cloth) Titles distributed by CSLI may be
ordered directly from CSLI Publica-
The Proceedings of the Tenth West Coast
Conference on Formal Linguistics tions, Ventura Hall, Stanford Univer-
(WCCFL 10). ISBN 0-937073-79-2 sity, Stanford, California 94305-4115 or
(paper) by phone (415)723-1712 or (415)723-
1839. Orders can also be placed by e-
mail (pubs@csli.stanford.edu) or FAX
(415)723-0758.
Books Distributed
All orders must be prepaid by
by CSLI check, VISA, or MasterCard (include
The Proceedings of the Third West Coast card name, number, expiration date).
Conference on Formal Linguistics For shipping and handling add $2.50
(WCCFL 3). ($10.95) ISBN 0-937073- for first book and $0.75 for each addi-
45-8 (paper) tional book; $1.75 for the first report
The Proceedings of the Fourth West and $0.25 for each additional report.
Coast Conference on Formal Lin- California residents add 7% sales tax.
guistics (WCCFL 4). ($11.95) ISBN For overseas shipping, add $4.50
0-937073-45-8 (paper) for first book and $2.25 for each addi-
The Proceedings of the Fifth West Coast tional book; $2.25 for first report and
Conference on Formal Linguistics $0.75 for each additional report. All
(WCCFL 5). ($10.95) ISBN 0-937073- payments must be made in US cur-
45-8 (paper)
rency.
CSLI was founded early in 1983 by researchers from Stanford University, SRI
International, and Xerox PARC to further research and development of integrated
theories of language, information, and computation. CSLI headquarters and the
publication offices are located at the Stanford site.
CSLI/SRI International CSLI/Stanford CSLI/Xerox PARC
333 Ravenswood Avenue Ventura Hall 3333 Coyote Hill Road
Menlo Park, CA 94025 Stanford, CA 94305 Palo Alto, CA 94304
99 98 97 96 95 94 93 92 54321
Library of Congress Cataloging-in-Publication Data
Goldblatt, Robert.
Logics of time and computation / Robert Goldblatt. — 2nd ed., rev. and
expanded.
p. cm. — (CSLI lecture notes ; no. 7)
Includes bibliographical references and indexes.
ISBN 0-937073-93-8 — ISBN 0-937073-94-6 (pbk.)
1. Modality (Logic). I. Title. II. Series.
QA9.46.G65 1992
160-dc20 92-12978
CIP
CSLI Lecture Notes report new developments in the study of language, informa-
tion, and computation. In addition to lecture notes, the series includes mono-
graphs, working papers, and conference proceedings. Our aim is to make new
results, ideas, and approaches available as quickly as possible.