Modal Logic #
Modal logic is a logic for reasoning about relational structures, studying statements about
necessity (□φ) and possibility (◇φ).
References #
- P. Blackburn, M. de Rijke, Y. Venema, Modal Logic
- The definitions of theory equivalence and the denotational semantics of worlds are inspired by
the development of
Cslib.Logic.HML.
Propositions.
- atom
{Atom : Type u}
(p : Atom)
: Proposition Atom
Atomic proposition.
- not
{Atom : Type u}
(φ : Proposition Atom)
: Proposition Atom
Negation.
- and
{Atom : Type u}
(φ₁ φ₂ : Proposition Atom)
: Proposition Atom
Conjunction.
- diamond
{Atom : Type u}
(φ : Proposition Atom)
: Proposition Atom
Possibility.
Instances For
Utility to coerce atoms into atomic propositions.
Equations
Equations
Equations
Equations
Disjunction.
Equations
- φ₁.or φ₂ = Cslib.Logic.HasNot.not (Cslib.Logic.HasAnd.and (Cslib.Logic.HasNot.not φ₁) (Cslib.Logic.HasNot.not φ₂))
Instances For
Equations
Implication.
Equations
- φ₁.imp φ₂ = Cslib.Logic.HasOr.or (Cslib.Logic.HasNot.not φ₁) φ₂
Instances For
Equations
Bi-implication.
Equations
- φ₁.iff φ₂ = Cslib.Logic.HasAnd.and (Cslib.Logic.HasImp.imp φ₁ φ₂) (Cslib.Logic.HasImp.imp φ₂ φ₁)
Instances For
Equations
Necessity.
Equations
Instances For
Equations
Satisfaction relation. Satisfies m w φ means that, in the model m, the world w satisfies
the proposition φ.
Equations
- Cslib.Logic.Modal.Satisfies m w (Cslib.Logic.Modal.Proposition.atom p) = m.v w p
- Cslib.Logic.Modal.Satisfies m w φ.not = ¬Cslib.Logic.Modal.Satisfies m w φ
- Cslib.Logic.Modal.Satisfies m w (φ₁.and φ₂) = (Cslib.Logic.Modal.Satisfies m w φ₁ ∧ Cslib.Logic.Modal.Satisfies m w φ₂)
- Cslib.Logic.Modal.Satisfies m w φ.diamond = ∃ (w' : World), m.r w w' ∧ Cslib.Logic.Modal.Satisfies m w' φ
Instances For
Judgement, representing the conclusions one reaches in modal logic.
- m : Model World Atom
Model.
- w : World
The world satisfying the proposition
φ. - φ : Proposition Atom
The proposition satisfied by the world
w.
Instances For
Constructs a judgement.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Satisfaction for judgements. This just refers to the unbundled Satisfies.
Equations
Instances For
Equations
A world satisfies a proposition iff it does not satisfy the negation of the proposition.
Characterisation of the ∨ connective.
Disjunction is defined in terms of the more primitive connectives given in Proposition.
This result proves that the definition is correct.
Characterisation of the → connective.
Implication is defined in terms of the more primitive connectives given in Proposition.
This result proves that the definition is correct.
Characterisation of the ↔ connective.
Bi-implication is defined in terms of the more primitive connectives given in Proposition.
This result proves that the definition is correct.
Characterisation of the □ modality.
Necessity is defined in terms of the more primitive connectives given in Proposition.
This result proves that the definition is correct.
The theory of a world in a model is the set of all propositions that it satisfies.
Equations
- Cslib.Logic.Modal.theory m w = {φ : Cslib.Logic.Modal.Proposition Atom | ⇓{ m := m, w := w, φ := φ }}
Instances For
Two worlds are theory-equivalent under a model if they have the same theory.
Equations
- Cslib.Logic.Modal.TheoryEq m w₁ w₂ = (Cslib.Logic.Modal.theory m w₁ = Cslib.Logic.Modal.theory m w₂)
Instances For
Any proposition satisfied by a world is in the theory of that world.
If two worlds are theory equivalent and the former satisfies a proposition, the latter does as well.
Every accessibility relation induces an inference system tag for proving valid axioms under the relation.
Instances For
A proposition φ is an axiom under the relation r (the 'frame') if it holds for all
valuations and worlds.
Equations
- One or more equations did not get rendered due to their size.
If a proposition is an axiom under the relation of a model, it is satisfied by every world.
The K axiom, valid for all models.
The dual axiom, valid for all models.
Possibility preserves conjunction in all models.
Possibility can be combined with necessity.
If φ₁ is necessary and some successor exists, then some successor satisfies φ₁.
The T axiom, valid for all reflexive models.
Any model that admits the axiom T is reflexive.
The B axiom, valid for all symmetric models.
Any model that admits the axiom B is symmetric.
The 4 axiom, valid for all transitive models.
Any model that admits 4 is transitive.
The 5 axiom, valid for all Euclidean models.
Any model that admits 5 is Euclidean.
The D axiom, valid for all serial models.
Any model that admits D is serial.
The L axiom, or Löb's theorem, valid for all transitive and converse well-founded models.
Löb induction, via the L axiom.
Axiom .2, valid for all frames with the diamond property.
Any model that admits axiom .2 has the diamond property.
A proposition is valid in a class of models S (modelled as a set) if it is satisfied under
all models in S for all worlds.
Equations
- Cslib.Logic.Modal.Proposition.valid S φ = ∀ m ∈ S, ∀ (w : World), ⇓{ m := m, w := w, φ := φ }
Instances For
The modal logic of a class of models S is the set of all propositions valid in S.
Equations
Instances For
The class of all models generated by a frame (relation).
Equations
- Cslib.Logic.Modal.modelsOfRelation r = {m : Cslib.Logic.Modal.Model World Atom | m.r = r}
Instances For
A proposition is an axiom of a frame exactly when it belongs to the logic of all models over that frame.