What Modal Logic Adds
Propositional logic and predicate logic say what is true. Modal logic says what is necessarily or possibly true.
The two new operators:
- : "necessarily ." Read in different application domains as: it must be that , it is known that , it is obligatory that , holds at every future time.
- : "possibly ." Read as: it might be that , it is consistent with what is known that , is permissible, holds at some future time.
The two are interdefinable: , and . So the language with one of them as primitive can express the other.
Once and are in the language, modal logic becomes the natural framework for several distinct philosophical and technical tasks: metaphysics of modality, epistemic and deontic reasoning, temporal logic in formal verification, dynamic logic for program semantics. Kripke's possible-worlds semantics (1959, 1963) made all of this technically tractable in one common framework.1
This page assumes What Is Logic?, Validity vs Soundness, Syntax vs Semantics in Formal Systems, Propositional Logic, and What Is a Symbolic System?.
Four Readings of the Same Operators
The same modal operators are reused across very different application domains. Choosing which reading to apply commits the user to different formal axioms.
| Reading | means | means | Standard system |
|---|---|---|---|
| Alethic | Necessarily (true in all possible worlds) | Possibly | S5 (typical) |
| Epistemic | The agent knows | is consistent with what the agent knows | S5 (idealized), S4 (more realistic), KD45 (belief) |
| Deontic | is obligatory | is permitted | KD (typical) |
| Temporal | holds at every future time (or always) | holds at some future time | S4 (linear future) |
The pluralism is structural, not philosophical confusion. Different domains have different formal commitments about how behaves, captured in different axiom systems below.
Kripke Semantics: Frames and Models
The conceptual move that made modal logic technically tractable is Kripke's possible-worlds semantics.
A Kripke frame is a pair :
- is a non-empty set of worlds.
- is the accessibility relation. means "world is accessible from world ."
A Kripke model is a triple where is a frame and is a valuation: is the set of worlds where is true.
The recursive truth definition:
- iff , for atomic .
- iff .
- iff and .
- (likewise for the other propositional connectives)
- iff for every with , .
- iff for some with , .
The clauses for and are the heart of Kripke semantics. at says holds at every world accessible from . The accessibility relation encodes which worlds are "reachable" from a given world, and the modality is interpreted relative to the worlds reachable.
Different readings of the modal operators correspond to different intuitive readings of accessibility:
- Alethic: means is a way the world might have been, given .
- Epistemic: means is consistent with what the agent at knows.
- Deontic: means is one of the deontic alternatives to , the worlds where everything obligatory is the case.
- Temporal: means is a moment after (with various refinements for branching versus linear time).
A Worked Kripke Model
Take a small Kripke model with three worlds.
, with accessibility relation
Visualization: accesses and ; accesses ; accesses itself.
Atomic valuations: (so is true at and , false at ). ( is true only at ).
Evaluate at each world:
- : accesses and . is true at both. So .
- : accesses . is true at . So .
- : accesses . is true at . So .
So is true at every world.
Evaluate at each world:
- : accesses and . is true at but false at . So (one accessible world fails).
- : accesses . is true at . So .
- : accesses . is true at . So .
So is true at and , false at .
Evaluate at each world:
- : accesses and . is true at . So .
- : accesses . is true at . So .
- : accesses . is true at . So .
So is true everywhere.
The general procedure: to evaluate a modal formula at a world, look at all worlds accessible from it and recursively evaluate the formula's interior.
The Standard Systems: K, T, S4, S5
Different axiom systems correspond to different classes of Kripke frames. The classical hierarchy:
| System | Axioms (added to propositional logic + modus ponens + necessitation) | Frame condition |
|---|---|---|
| K | None (any frame) | |
| T | K + | Reflexive: |
| S4 | T + | Reflexive and transitive |
| S5 | S4 + | Equivalence relation (reflexive, transitive, symmetric) |
The two inference rules of any normal modal system:
- Modus ponens: from and , infer .
- Necessitation: from (i.e., is a theorem), infer .
Necessitation says: anything provable in pure logic must hold in every world (since the proof goes through regardless of which world we are at).
The axiom labeled K above (sometimes called the distribution axiom) is the modal analog of modus ponens: necessity distributes over conditional. Every normal modal logic includes K. The other axioms add stronger commitments.
Correspondence Between Frame Properties and Axioms
The most striking technical fact about modal logic: each standard modal axiom corresponds to a specific algebraic property of the accessibility relation.2
| Axiom | Read as | Corresponds to | Reason |
|---|---|---|---|
| (T) | If necessarily , then | is reflexive | If accesses itself, anything true at all accessible worlds is true at |
| (4) | If necessarily , then necessarily necessarily | is transitive | If and , then |
| (5) | If possibly , then necessarily possibly | is Euclidean: | Combined with reflexivity, this gives equivalence |
| (B) | If , then necessarily possibly | is symmetric: | at should be possible from any accessing back |
| (D) | If obligatory, then permitted | is serial: | At least one obligatory alternative must exist |
The correspondence theorem makes the choice of modal system non-arbitrary. If the application domain demands that behaves factively (, "what is known is true"), the accessibility relation must be reflexive. If it demands positive introspection (, "if you know it, you know that you know it"), the relation must be transitive. The axioms and the relation are not two independent choices.
Worked Application: Epistemic Logic for AI Agents
Modal logic is the standard substrate for epistemic logic: reasoning about what agents know.3 In a multi-agent system with agents, we use modal operators , where reads "agent knows that ."
The standard epistemic axioms:
- (T): knowledge is factive. Agents know only true things.
- (4): positive introspection. Agents know what they know.
- (5): negative introspection. Agents know what they do not know.
A logically idealized agent satisfies S5 epistemic logic. Real human agents do not: humans regularly believe false things (failure of T), are mistaken about the contents of their knowledge (failure of 4), and lack awareness of their ignorance (failure of 5). Whether an AI agent's representations satisfy these axioms depends on the architecture, the training, and the deployment regime.
Common variants:
- Belief logic drops the factivity axiom T (agents can believe false things). The standard system is KD45: (consistency), positive introspection, negative introspection.
- Common knowledge uses an additional operator : "everyone knows that everyone knows that ... , ad infinitum." Common knowledge is needed for coordinated action and is famously hard to establish via finite communication (Fagin, Halpern, Moses, Vardi 1995).
This is one of the cleanest places where modal logic is not a philosophy detour but a working tool for reasoning about distributed AI systems.
Common Confusions
Confusion 1: as logical truth. does not mean " is logically valid." It means " holds at every world accessible from the current one." Whether the modality coincides with logical validity depends on the accessibility relation. In S5 with a single equivalence class of worlds, the two notions can collapse; in K with arbitrary accessibility, they cannot.
Confusion 2: is "obvious." Positive introspection is intuitive in some readings but not always true. For factive knowledge, S4 (positive introspection) is plausible. For objective necessity, the axiom is much more contestable. For belief, agents often believe propositions without higher-order beliefs about those beliefs. The choice is empirical and varies by application.
Confusion 3: alethic and epistemic readings are interchangeable. They share notation but make different commitments. Alethic necessity ("must be") and epistemic necessity ("known") are different modalities. A statement can be epistemically possible (consistent with what is known) but alethically impossible (false in every metaphysically possible world), or vice versa.
Confusion 4: and are the same. They are related (both are universal-style operators) but they quantify over different things. quantifies over objects in the domain. quantifies over accessible worlds. Combining them gives quantified modal logic (QML), which has additional technical complications: should constants denote the same object across worlds (rigid designation, Kripke 1972)? what is the domain at each world? QML is well-developed but more involved than either propositional modal logic or standard first-order logic alone.
Three Exercises
Exercise 1. Consider the Kripke model from "A Worked Kripke Model" above. Evaluate each formula at each world:
(a) . (b) . (c) .
Exercise 2. Decide whether each formula is valid in K (true at every world of every Kripke model), and separately whether it is valid in S5 (true at every world of every Kripke model whose accessibility is an equivalence relation):
(a) . (b) . (c) .
Exercise 3. Construct a Kripke model with at least two worlds where the K axiom holds at every world but fails at some world. (Such a model demonstrates that 4 is strictly stronger than K.)
Answers
Answer 1:
(a) :
- : accesses . At : is true, is false, so is false. Therefore is false at .
- : accesses . At : is true, is true, so is true. Therefore is true at .
- : accesses . Same check, true. Therefore is true at .
(b) :
- : accesses . At : is true, is true (since is false at ). So is true at . Therefore is true at .
- : accesses . At : is true, is false. So is false. Therefore is false at .
- : accesses . Same as above, false. Therefore is false at .
(c) :
- We computed earlier that is true at every world. So holds at every world (regardless of where the world accesses).
Answer 2:
(a) . Valid in K, valid in S5. This is the K axiom itself, valid in every normal modal logic.
(b) . Not valid in K (counterexample: a frame where does not access itself; let at , then holds vacuously at but does not hold at ). Valid in S5 (since S5 includes T as an axiom; reflexivity guarantees the formula).
(c) . Not valid in K. Valid in S5. Reasoning for S5: in an equivalence-relation frame, if holds at , there is some accessible with at . Since is symmetric, , so is among the worlds accessible from at which guarantees . Hence at . The argument fails without symmetry.
Answer 3. Take three worlds with accessibility . The relation is not transitive (we have and but not ).
Set (so is true at , false at and ).
Check the K axiom holds at for arbitrary : K is valid in every Kripke model regardless of frame conditions, so we can move on.
Check at :
- at : accesses only. is true at . So holds at .
- at : should hold at every world accessible from . The only accessible world is . at : accesses only. is false at . So does not hold at . Therefore does not hold at .
So at , holds but does not. The implication fails at . The frame is non-transitive, which is why the 4-axiom does not hold.
The model demonstrates that 4 is a strictly stronger axiom than K alone: there are K-models in which 4 fails.
Where Modal Logic Lives in Practice
Three concrete uses.
Formal verification of programs and protocols. Linear temporal logic (LTL) and computation tree logic (CTL) are temporal modal logics used to specify properties of concurrent and reactive systems. Statements like "every request is eventually granted" or "on every branch, the system never deadlocks" are formal-modal sentences over a transition system. Model checkers (SPIN, NuSMV, TLA+) verify them automatically. Modal logic is the substrate of working software-correctness verification.
Knowledge representation in multi-agent AI. Multi-agent epistemic logic (the Fagin-Halpern-Moses-Vardi framework) is the theoretical foundation of game-theoretic AI and distributed-systems verification. Common-knowledge reasoning is essential for analyzing protocols where coordination is required but communication channels can fail.
Metaphysics and counterfactuals. David Lewis's Counterfactuals (1973) develops a possible-worlds semantics for counterfactual conditionals that has shaped Anglophone metaphysics for fifty years. The modal logic of necessity, possibility, and actuality is the formal toolkit for these debates. The pages in PhilosophyPath that touch on possibility and counterfactual reasoning trace back here.
The general lesson: modal logic is one of the few formal systems that crosses cleanly from technical computer science to working metaphysics, and the bridge runs through Kripke's 1959-63 papers.
Prerequisites and Next Pages
- Prerequisites: What Is Logic?, Validity vs Soundness, Syntax vs Semantics in Formal Systems, Propositional Logic, What Is a Symbolic System?.
- Next: Predicate Logic, the natural extension that adds quantifiers; combining it with modal logic gives quantified modal logic.
- Forward link: epistemic logic in particular connects directly to questions about machine knowledge and understanding raised in The Chinese Room Argument.
References
Primary texts:
- Kripke, Saul A. "A Completeness Theorem in Modal Logic." Journal of Symbolic Logic 24 (1959): 1-14.
- Kripke, Saul A. "Semantical Considerations on Modal Logic." Acta Philosophica Fennica 16 (1963): 83-94. The two papers that introduced possible-worlds semantics.
- Lewis, C. I., and C. H. Langford. Symbolic Logic. New York: Dover, 1932. The early modern source for modal axiomatizations.
- Lewis, David. Counterfactuals. Harvard University Press, 1973. The standard possible-worlds semantics for counterfactual conditionals.
Modern reference:
- Hughes, G. E., and M. J. Cresswell. A New Introduction to Modal Logic. Routledge, 1996. The standard textbook covering all of K, T, S4, S5 and the correspondence theory.
- Blackburn, Patrick, Maarten de Rijke, and Yde Venema. Modal Logic. Cambridge, 2001. The advanced reference; full mathematical depth on Kripke semantics.
- Fagin, Ronald, Joseph Y. Halpern, Yoram Moses, and Moshe Y. Vardi. Reasoning About Knowledge. MIT Press, 1995. Multi-agent epistemic logic for AI and distributed systems.
- van Benthem, Johan. Modal Logic for Open Minds. CSLI Publications, 2010. The contemporary view of modal logic across applications.
Stanford Encyclopedia entries (link, do not paraphrase):
- "Modal Logic."
- "Possible Worlds."
- "Epistemic Logic."
- "Deontic Logic."
- "Temporal Logic."
Footnotes
-
Kripke, Saul A. "A Completeness Theorem in Modal Logic." Journal of Symbolic Logic 24 (1959): 1-14. Kripke 1963: "Semantical Considerations on Modal Logic," Acta Philosophica Fennica 16: 83-94. The two papers establish what is now called Kripke semantics. ↩
-
This correspondence theory was systematized by Johan van Benthem, Modal Logic and Classical Logic, Bibliopolis, 1985, and by Henrik Sahlqvist's earlier theorem on a wide class of modal axioms. The basic correspondences below are due to Kripke 1963 and the Lemmon-Scott school. ↩
-
Fagin, Ronald, Joseph Y. Halpern, Yoram Moses, and Moshe Y. Vardi. Reasoning About Knowledge. MIT Press, 1995. The standard textbook treatment of epistemic logic for multi-agent systems. ↩