formal logic
Modal Logic
You should know: propositional logic
Overview
Modal logic extends propositional (or predicate) logic with operators expressing modes of truth beyond plain true/false — most commonly necessity (□, 'it is necessarily the case that') and possibility (◇, 'it is possibly the case that'), which are interdefinable via ◇φ ≡ ¬□¬φ. Its standard semantics, due to Saul Kripke, interprets formulas relative to a set of 'possible worlds' connected by an accessibility relation R, where □φ is true at a world w if φ is true at every world accessible from w, and ◇φ is true at w if φ is true at some accessible world. Different constraints on the accessibility relation (reflexive, transitive, symmetric, etc.) yield different modal systems — K (no constraints), T (reflexive), S4 (reflexive + transitive), and S5 (equivalence relation) — each validating different additional axioms. Beyond necessity/possibility, the same Kripke-world framework underlies temporal logic (□ = 'always,' ◇ = 'eventually'), epistemic logic (□ = 'it is known that'), and deontic logic (□ = 'it is obligatory that').
Intuition
Modal logic formalizes the difference between 'true' and 'true no matter what' by imagining a whole landscape of alternative possible worlds, connected to each other by an accessibility relation representing which worlds are 'reachable' or 'relevant' from any given one — □φ says φ holds in every world you can reach, while ◇φ says φ holds in at least one reachable world. The genius of this framework is its flexibility: swap in a different reading of 'accessible world' and the exact same machinery models entirely different notions — 'accessible' can mean 'a moment in time still to come' (temporal logic, □ = always in the future), 'a scenario consistent with what an agent knows' (epistemic logic, □ = known), or 'a scenario satisfying all obligations' (deontic logic, □ = obligatory) — with the choice of accessibility relation's properties (reflexive? transitive? symmetric?) determining which extra axioms, like □φ→φ, become valid.
Formal Definition
Modal logic adds □ and ◇ to propositional logic, with Kripke semantics over worlds W and accessibility relation R ⊆ W×W:
Worked Examples
By definition, ◇φ is true at w iff φ holds at some accessible world.
□¬φ is true at w iff ¬φ holds at every accessible world, i.e. φ fails everywhere accessible.
Negating: ¬□¬φ holds iff it's not the case that φ fails everywhere accessible, i.e. φ holds somewhere accessible — exactly the condition for ◇φ.
Answer: Both conditions coincide exactly, confirming ◇φ ≡ ¬□¬φ.
Practice Problems
In epistemic logic, if □ is read as 'agent knows that,' how would you read ◇φ?
What extra structural property does the accessibility relation need for the axiom φ → □◇φ to be valid, and which modal system typically includes this?
Explain why system S5 (accessibility relation is an equivalence relation) makes □ and ◇ behave like universal/existential quantifiers over a single fixed set of worlds, collapsing iterated modalities like □◇φ to ◇φ.
Quiz
Summary
- Modal logic adds necessity (□) and possibility (◇) to propositional logic, interdefinable via ◇φ ≡ ¬□¬φ.
- Kripke semantics interprets □φ as truth in every world accessible from the current one, with different constraints on the accessibility relation (reflexive, transitive, symmetric) yielding systems K, T, S4, S5.
- The same framework underlies temporal, epistemic, and deontic logic by reinterpreting what 'accessible world' means.
References
- WebsiteWikipedia — Modal logic
Mathematics