Modal operators and frame conditions #
This file defines the relational necessity and possibility of Kripke semantics over an
accessibility relation R : SetRel W' W, as operators on propositions W → Prop: □[R] p w
holds when p holds at every R-successor of w, ◇[R] p w when it holds at some. They are
mathlib's SetRel.core and SetRel.preimage read on predicates (box_iff_mem_core,
diamond_iff_mem_preimage), in the way Filter.Eventually reads a filter on predicates, so
propositions stated as sets use the mathlib operators directly. Of the frame conditions of
correspondence theory, reflexivity, symmetry and transitivity are mathlib's SetRel.IsRefl,
SetRel.IsSymm and SetRel.IsTrans; this file adds seriality and the Euclidean property and
proves the axioms K, T, D, B, 4, 5 and Alt₁ over their frames, each axiom defining its frame
condition. Along a composite relation necessity nests in necessity (box_comp). Negation Swap,
□¬p ↔ ¬□p for every p, defines functionality (box_not_iff_not_box_at_iff): a modal that
commutes with negation is necessity along the graph of a function, which is precomposition
(box_compl_eq_iff, box_graph).
Main definitions #
ModalLogic.Box,ModalLogic.Diamond, with notation□[R]and◇[R].ModalLogic.IsSerial,ModalLogic.IsEuclidean: the frame conditions of D and 5.
References #
Box and diamond #
Necessity along R holds of p at w when p holds at every R-successor of w.
Equations
- ModalLogic.Box R p w = ∀ (v : W), (w, v) ∈ R → p v
Instances For
Possibility along R holds of p at w when p holds at some R-successor of w.
Equations
- ModalLogic.Diamond R p w = ∃ (v : W), (w, v) ∈ R ∧ p v
Instances For
Necessity along R holds of p at w when p holds at every R-successor of w.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Possibility along R holds of p at w when p holds at some R-successor of w.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Frame conditions #
R is serial if every world accesses at least one world.
- serial (w : W) : ∃ (v : W), (w, v) ∈ R
Instances
R is Euclidean if any two R-successors of a world access each other.
- eucl (w v u : W) : (w, v) ∈ R → (w, u) ∈ R → (v, u) ∈ R
Instances
Reflexive relations are serial.
Reflexive and Euclidean implies symmetric.
Reflexive and Euclidean implies transitive.
Symmetric and transitive implies Euclidean.
Axiom correspondence #
Axiom T, □p → p, holds over a reflexive relation.
Necessity along R gives possibility along a relation sharing an R-successor of the
world, and box_D is the case S = R.
Axiom 5, ◇p → □◇p, holds over a Euclidean relation.
Over a Euclidean relation what is possibly necessary is necessary, ◇□p → □p.
Frame definability #
Each axiom, read as an inequality between operators on W → Prop, characterizes its frame
condition.
T defines reflexivity.
Axiom T for the diamond, that what holds is possible, defines reflexivity.
B defines symmetry.
5 defines the Euclidean property.
Seriality and functionality at a world #
Excluded middle and non-contradiction for necessity at a world, read for every prejacent, each
define a condition on the successors of the world, and Negation Swap defines their conjunction:
□p ∨ □¬p holds for every p iff the world sees at most one world (Alt₁), ¬(□p ∧ □¬p) iff it
sees at least one (D), and □¬p ↔ ¬□p iff it sees exactly one. For possibility the two
conditions trade places. A relation satisfying Negation
Swap at every world is the graph of a function, and necessity along a graph is precomposition
with the function.
The excluded middle for every p at w, □p ∨ □¬p, holds iff w sees at most one
world.
The neg-raising inference for every p at w, ¬□p → □¬p, holds iff w sees at most
one world.
Non-contradiction for possibility, ¬(◇p ∧ ◇¬p) for every p at w, holds iff w sees
at most one world.