(draft) … (up)
Superficially, modal logic adds to the propositional connectives (and), (or), (not) two new connectives that allow us to take any formula and form two new formulas
One of the reasons modal logic has been so important is that there are so many possible interpretations for these connectives. For example,
(Temporal and Epistemic Logic) Each of these interpretations created their own field of research. The first one dominated modal logic in the first half of the 20th century. The second one is known as temporal logic and has been playing an important role in computer science (verificiation, model checking) since the 1980ies. The third one is known as epistemic logic and continues to be cutting edge in philosophy, economics, software engineering, AI and other areas.
Besides temporal logic and epistemic logic there is also … (insert more examples) …
(Fragments of First-Order Logic) Another reason modal logic has been important is as a fragment of first-order logic. As we can see from the examples above, is a universal quantifier (eg always) and is an existential quantifier (eg sometimes). Consequently, modal logic is a fragment of first-order logic. In fact, modal logic is a fragment of first-order logic in at least two different but interesting ways:
The first point has given rise to various generalisations of modal logic, in particular in the area of automated theorem proving. Search for guarded fragment for references.
In the second point bisimulation refers to a relation of observational or behavioural equivalence of dynamic systems, which are themselves considered as "black boxes". In fact, bisimulation is the natural notion of behavioural equivalence for non-determinstic transition systems in which the states themselves are not observable but choices are. This leads us to the next item.
(Possible Worlds Semantics) The idea that something is necessarily true if it is true in all possible worlds is an old one. The turning point for modal logic was the mathematical formalisation of possible world semantics by Kripke:
There is a lot to say here, but to present the main ideas as quickly as possible I would proceed as follows (see Chapters 3.1 and 3.2 of the book referenced below).
Definition: Let be a set of 'propositional variables'. The language of modal logic is the smallest set of 'formulas' containing and closed under , , , , .
Definition: Let be a set of 'worlds' and . Let be a function assigning sets of worlds to each atomic proposition. Define
and
iff for all choices of .
It is convenient to write
The following exercise is a straightforward unvraveling of definitions:
Exercise: If is reflexive, then .
A crucial observation that lets us glimpse the power of Kripke's approach is that the converse is also true.
Prop: If , then is reflexive.
The proof is short once you know the trick. Try to find it for yourself before looking at the footnote.[1]
The proof can be generalised to a method applying to all so-called Sahlqvist formulas and the area of modal logic is known as correspondence theory. We just look at one other basic example:
Exercise: iff is transitive.
Remark: In the early 20th century modal logics where developed by philosophers from a syntactic and proof theoretic point of view. Axioms such as and where discovered by reading them as "necessarily p implies p" and "necessarily p implies necessarily necessarily p" and modal logics where characterised by axioms and proof rules. As far as I know the history, it came as a surprise that these axioms had such a neat semantic characterisation.
Exercise: Interpret and from the point of view of temporal and epistemic logic.
The paper
illustrates many of the themes that make modal logic so important for computer science applications.
We have seen that modal logic comprises several independent areas (temporal logic, epistemic logic, etc) and has important overlaps with others (concurrency, multi-agent systems, automated reasoning, game theory, etc). My intention here is only to sketch out the basic theory that is important in all these fields.
Actually, instead of writing this out myself, I refer to the book "Modal Logic" by Blackburn, de Rijke, Venema.(The book treats also -ary relations (the "general case", as opposed to binary relations). This generalisation is interesting for some applications but should be skipped on a first reading.)
Here is what I would consider essential for a first run through the basics of modal logic.
Blackburn, de Rijke, Venema: "Modal Logic".
Proof: Let . Let . We know by definition of and by assumption. It follows , which implies by definition of . ↩︎