Modal Logic

Modal logic is the logic of necessity and possibility, extended to obligation, permission, time, belief and knowledge, each with its own axioms.

Status
Published, version 1.0.1
Last reviewed
22 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Modal Logic in Knowledge Representation

Modal logic adds operators to classical logic that qualify how a statement holds, such as necessarily, possibly, obligatorily or always, each with its own rules. Health economists meet such qualifiers, because regulations say what a body must or may do, analysts ask whether a conclusion holds in every scenario of a model or only some, and a state-transition model says that an absorbing state, once entered, is never left. Software that stores rules and scenarios needs these distinctions written formally, or it can treat an obligation as a fact and a possibility as a certainty.

Who uses the term and how

The term is standard in logic, and the wiki's label matches it. Garson, in the Stanford Encyclopedia of Philosophy, says that modal logic in the narrow sense studies reasoning with "necessarily" and "possibly", and that the name also covers a family of logics with similar rules, among them deontic logic (obligation and permission), temporal logic and the logics of belief and knowledge. John F. Sowa's paper Semantic Foundations of Contexts rereads modal logic through laws and facts, and his book Knowledge Representation has a section on modal reasoning in contexts. The live Conditional Logic page means the if-then rules inside a health economic model, a different sense from the modal family's conditional logics of counterfactuals.

Necessity, possibility and the standard systems

A modal language takes propositional logic and adds a box for "it is necessary that" and a diamond for "it is possible that", each qualifying the proposition that follows it. Either operator can be taken as primitive and the other defined from it.

◊A≡¬□¬A\Diamond A \equiv \lnot \Box \lnot A

where AA is any formula, □\Box reads "it is necessary that", ◊\Diamond reads "it is possible that" and ¬\lnot is negation, so a statement is possible exactly when its negation is not necessary.

Garson describes the weak base system, K, as propositional logic plus two principles. The necessitation rule says that every theorem is necessary, and the distribution axiom says that if it is necessary that A implies B, then if A is necessary, B is necessary. System M, which some authors call T, adds the axiom that whatever is necessary is the case. S4 adds the axiom that what is necessary is necessarily necessary, and S5 adds the axiom that what is possible is necessarily possible. Garson stresses that there is no single modal logic, since the right axioms depend on the sense of "necessarily" meant. In K the box behaves much like the universal quantifier and the diamond like the existential one, a parallel with predicate logic that possible world semantics makes explicit.

Possible worlds and the accessibility relation

Truth tables cannot settle modal formulas, because the truth value of A does not fix that of necessarily A. Modal semantics therefore evaluates formulas at possible worlds, the device Sowa traces to Leibniz and Kripke made precise. A frame is a non-empty set of worlds with a binary accessibility relation, and the box is true at a world when its formula is true at every accessible world.

v(□A,w)=T  ⟺  v(A,w′)=T for every w′ with wRw′v(\Box A, w) = T \iff v(A, w') = T \text{ for every } w' \text{ with } wRw'

where vv is the valuation that gives each formula a truth value at each world, ww and w′w' are worlds, RR is the accessibility relation, wRw′wRw' means that w′w' is accessible from ww, and TT is true. The diamond is true at ww when the formula is true at some accessible world.

Sowa summarises Kripke's main result as showing how the axioms constrain the accessibility relation. System T requires every world to be accessible from itself, so the relation is reflexive. S4 adds transitivity, and S5 adds symmetry as well, which makes the relation an equivalence relation. Garson's table pairs axiom 5 alone with the Euclidean condition, and symmetry with axiom B. In deontic logic, Garson adds, the relation must be serial, so that every world has at least one acceptable variant.

Laws, facts and Sowa's reading of accessibility

Sowa argues that Kripke leaves the accessibility relation as an undefined primitive and prefers a construction from Michael Dunn. Each world is a set of facts with a subset singled out as laws, and one world is accessible from another when the laws of the first are among the facts of the second.

R(w1,w2)  ⟺  L1⊆M2R(w_1, w_2) \iff L_1 \subseteq M_2

where w1w_1 and w2w_2 are worlds, L1L_1 is the set of laws of w1w_1 and M2M_2 is the set of facts of w2w_2. Modality then depends on the choice of laws, which Sowa notes may be human rules and regulations. The possible world page follows his mapping of these laws to database constraints and business rules. In an illustrative application that is not Sowa's own, the laws of a health economic model could be its invariants, such as each row of a transition matrix summing to one, and a scenario is accessible from the base case only if it keeps them.

Obligation and permission in a funding rule

Deontic logic reads the box as "it is obligatory that", written O, and defines "permitted" (P) as not obligatory that not, and "forbidden" (F) as obligatory that not. Garson notes that the axiom taking necessity to truth fails here, since obligations are not always met, and that most deontic logicians accept axiom D instead, under which whatever is obligatory is permitted.

Regulation 7 of the 2013 NICE regulations (SI 2013/259) contains all three modes. NICE may make a technology appraisal recommendation that relevant health bodies fund a technology within a specified period, a permission. NICE must specify that period, 3 months from publication unless listed circumstances call for longer, and a relevant health body must comply, both obligations. When directing an appraisal, the Secretary of State must not direct the substance of the recommendation, a prohibition. Written as O, P and F, such a rule can be checked for consistency under axiom D, and without the truth axiom a knowledge base cannot infer that funding happened because it was required. The Real Health Economics Ontology (RHEO), release 0.5.1, records such rules as funding rule (RHEO_0000109), a directive information entity defined from the same regulation.

Time and absorbing states in state-transition models

Temporal logic uses G for "it will always be the case that" and H for "it has always been the case that". The inference that what always will be is true now fails for G read strictly, Garson notes, and holds when G is read "it is and always will be". Under that reading an absorbing state of a Markov model is a temporal law, Dead→G Dead\text{Dead} \rightarrow G\,\text{Dead}, saying that a cohort member dead at one cycle is dead at every later cycle (an illustrative use).

Worked example with three illustrative scenarios

In this illustrative case a model compares drug A with standard care at a threshold of GBP 30,000 per quality-adjusted life year (QALY). Three worlds stand for three runs, base case bb, price discount pp and older population uu. Let cc say that the ICER of A is at most GBP 30,000 per QALY.

  • In bb the incremental cost is GBP 7,000 and the QALY gain 0.25, so the ICER is 7,000 / 0.25 = 28,000 and cc is true.
  • In pp the incremental cost is GBP 5,000 and the QALY gain 0.25, so the ICER is 5,000 / 0.25 = 20,000 and cc is true.
  • In uu the incremental cost is GBP 7,000 and the QALY gain 0.20, so the ICER is 7,000 / 0.20 = 35,000 and cc is false.

If all three worlds are accessible from bb, then ◊c\Diamond c is true at bb, because cc holds in an accessible world, and □c\Box c is false, because cc fails in uu. Now suppose, following Dunn's construction, that the decision problem fixes the population as a law. World uu changes the population, so the law of bb is not among the facts of uu and uu is not accessible. The accessible worlds are then bb and pp, cc is true in both, and □c\Box c becomes true at bb. The conclusion turned on the choice of laws, so a scenario analysis needs to state which assumptions are held fixed.

Boundaries and common misreadings

Modal possibility is not probability. The diamond says that a statement holds in at least one accessible world, not how likely that world is, so the probability that a technology is cost-effective needs a probabilistic analysis. Scope is a second trap. Garson observes that English "if A then necessarily B" can mean that the whole conditional is necessary or that B is necessary given A, and an illustrative rule such as "if the ICER is below the threshold the technology must be funded" carries the same ambiguity until it is formalised.

Sources

  • Garson J. Modal Logic. In: Stanford Encyclopedia of Philosophy. Substantive revision 23 January 2023. https://plato.stanford.edu/entries/logic-modal/ (accessed 22 November 2026)
  • Sowa JF. Semantic Foundations of Contexts. Web paper. No date. Sections 1, 3 and 4. http://www.jfsowa.com/ontology/contexts.htm (accessed 22 November 2026)
  • Sowa JF. Knowledge Representation: Logical, Philosophical, and Computational Foundations. Brooks/Cole; 2000. Table of contents, section 5.5 Modal Reasoning in Contexts. http://www.jfsowa.com/krbook/krtoc.htm
  • The National Institute for Health and Care Excellence (Constitution and Functions) and NHS England (Information Functions) Regulations 2013, SI 2013/259, regulation 7. Revised version. https://www.legislation.gov.uk/uksi/2013/259/regulation/7 (accessed 22 November 2026)
  • Baines D, Ashley M. Real Health Economics Ontology (RHEO), version 0.5.1, release of 21 November 2026, class RHEO_0000109 funding rule. Intelligent Parameters Ltd; 2026.

Frequently Asked Questions (6)

  • What is Modal Logic?

    Modal logic is the logic of necessity and possibility, extended to obligation, permission, time, belief and knowledge, each with its own axioms.

    Source: Garson 2023

  • How do possible worlds give meaning to modal logic?

    Truth tables cannot give the meaning of modal logic, because the truth value of a sentence does not settle whether that sentence is necessary. In Garson's account the semantics instead introduces a set of possible worlds and gives each sentence a truth value at each world. A frame pairs that set with an accessibility relation, and a sentence of the form necessarily A is true at a world when A is true at every world accessible from it. Possibly A is true when A holds at some accessible world. In a health economic setting the worlds could stand for the scenarios of a decision model, an illustrative use that Garson does not discuss.

    Source: Garson 2023

  • What are the systems K, T, S4 and S5 in modal logic?

    The weak base system of modal logic, called K after Saul Kripke, adds to propositional logic a necessitation rule, under which every theorem is necessary, and an axiom distributing necessity over implication. Adding the axiom that whatever is necessary is true gives the system M, which some authors call T. S4 adds the axiom that what is necessary is necessarily necessary, and S5 adds the axiom that what is possible is necessarily possible. Garson shows that each axiom matches a condition on the accessibility relation between worlds, such as transitivity for the S4 axiom. He stresses that there is no single modal logic, since the right axioms depend on the sense of necessity intended.

    Source: Garson 2023

  • How does deontic modal logic treat obligation and permission?

    Deontic logic is the branch of modal logic for obligation, with O read as 'it is obligatory that' and permission and prohibition defined from it. Something is permitted when its negation is not obligatory, and forbidden when its negation is obligatory. Garson notes that the modal axiom taking necessity to truth does not suit obligation, because obligations are not always met. Most deontic logicians accept axiom D instead, under which whatever is obligatory is permitted, and this keeps a system of obligations consistent. In possible worlds terms the accessibility relation must be serial, so that every world has at least one acceptable variant.

    Source: Garson 2023

  • How can modal logic describe the funding duties in regulation 7 of the 2013 NICE regulations?

    Regulation 7 of the 2013 regulations on NICE's constitution and functions (SI 2013/259) uses the three deontic modes that modal logic keeps apart. NICE may make a technology appraisal recommendation that relevant health bodies fund a technology within a specified period, which reads as a permission. NICE must specify that period, ending 3 months after publication unless listed circumstances call for longer, and a relevant health body must comply with the recommendation, which both read as obligations. When directing an appraisal, the Secretary of State must not direct the substance of the recommendation, a prohibition. Written in deontic modal logic, the rule can be checked for consistency, and an obligation to fund stays separate from evidence that funding happened.

    Source: UK, NICE and NHS England Regulations 2013 (SI 2013/259)

  • How did John Sowa reinterpret accessibility in modal logic through laws and facts?

    John Sowa, in his paper Semantic Foundations of Contexts, argues that Kripke's semantics for modal logic treats the accessibility relation between worlds as an undefined primitive. He prefers Michael Dunn's construction, in which each world is a set of facts with a subset chosen as laws, and one world is accessible from another when the laws of the first are facts in the second. Necessity and possibility then depend on the choice of laws, which Sowa says could be laws of nature or human rules and regulations. He notes that an ontology or conceptual schema determines those laws, which databases call constraints or business rules. A permissible database update, on this reading, is one that keeps every law true.

    Source: Sowa n.d.

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 22 Nov 2026

Content version: 1.0.1

Canonical Identity

Term code
HS-HP-DH-190

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/modal-logic