Modal logic is a collection of formal systems developed to represent statements about necessity and possibility. It plays a major role in philosophy of language, epistemology, metaphysics, and natural language semantics. Modal logics extend other systems by adding unary operators ${\displaystyle \Diamond }$ and ${\displaystyle \Box }$, representing possibility and necessity respectively. For instance the modal formula ${\displaystyle \Diamond P}$ can be read as "possibly ${\displaystyle P}$" while ${\displaystyle \Box P}$ can be read as "necessarily ${\displaystyle P}$". Modal logics can be used to represent different phenomena depending on what kind of necessity and possibility is under consideration. When ${\displaystyle \Box }$ is used to represent epistemic necessity, ${\displaystyle \Box P}$ states that ${\displaystyle P}$ is epistemically necessary, or in other words that it is known. When ${\displaystyle \Box }$ is used to represent deontic necessity, ${\displaystyle \Box P}$ states that ${\displaystyle P}$ is a moral or legal obligation.[1]

In the standard relational semantics for modal logic, formulas are assigned truth values relative to a possible world. A formula's truth value at one possible world can depend on the truth values of other formulas at other accessible possible worlds. In particular, ${\displaystyle \Diamond P}$ is true at a world if ${\displaystyle P}$ is true at some accessible possible world, while ${\displaystyle \Box P}$ is true at a world if ${\displaystyle P}$ is true at every accessible possible world. A variety of proof systems exist which are sound and complete with respect to the semantics one gets by restricting the accessibility relation. For instance, the deontic modal logic D is sound and complete if one requires the accessibility relation to be serial.

While the intuition behind modal logic dates back to antiquity, the first modal axiomatic systems were developed by C. I. Lewis in 1912. The now-standard relational semantics emerged in the mid twentieth century from work by Arthur Prior, Jaakko Hintikka, and Saul Kripke. Recent developments include alternative topological semantics such as neighborhood semantics as well as applications of the relational semantics beyond its original philosophical motivation.[2] Such applications include game theory,[3] moral and legal theory,[3] web design,[3] multiverse-based set theory,[4] and social epistemology.[5]

## Syntax of modal operators

Modal logic differs from other kinds of logic in that it uses modal operators such as ${\displaystyle \Box }$ and ${\displaystyle \Diamond }$. The former is conventionally read aloud as "necessarily", and can be used to represent notions such as moral or legal obligation, knowledge, historical inevitability, among others. The latter is typically read as "possibly" and can be used to represent notions including permission, ability, compatibility with evidence. While well formed formulas of modal logic include non-modal formulas such as ${\displaystyle P\land Q}$, it also contains modal ones such as ${\displaystyle \Box (P\land Q)}$, ${\displaystyle P\land \Box Q}$, ${\displaystyle \Box (\Diamond P\land \Diamond Q)}$, and so on.

Thus, the language ${\displaystyle {\mathcal {L))}$ of basic propositional logic can be defined recursively as follows.

1. If ${\displaystyle \phi }$ is an atomic formula, then ${\displaystyle \phi }$ is a formula of ${\displaystyle {\mathcal {L))}$.
2. If ${\displaystyle \phi }$ is a formula of ${\displaystyle {\mathcal {L))}$, then ${\displaystyle \neg \phi }$ is too.
3. If ${\displaystyle \phi }$ and ${\displaystyle \psi }$ are formulas of ${\displaystyle {\mathcal {L))}$, then ${\displaystyle \phi \land \psi }$ is too.
4. If ${\displaystyle \phi }$ is a formula of ${\displaystyle {\mathcal {L))}$, then ${\displaystyle \Diamond \phi }$ is too.
5. If ${\displaystyle \phi }$ is a formula of ${\displaystyle {\mathcal {L))}$, then ${\displaystyle \Box \phi }$ is too.

Modal operators can be added to other kinds of logic by introducing rules analogous to #4 and #5 above. Modal predicate logic is one widely used variant which includes formulas such as ${\displaystyle \forall x\Diamond P(x)}$. In systems of modal logic where ${\displaystyle \Box }$ and ${\displaystyle \Diamond }$ are duals, ${\displaystyle \Box \phi }$ can be taken as an abbreviation for ${\displaystyle \neg \Diamond \neg \phi }$, thus eliminating the need for a separate syntactic rule to introduce it. However, separate syntactic rules are necessary in systems where the two operators are not interdefinable.

Common notational variants include symbols such as ${\displaystyle [K]}$ and ${\displaystyle \langle K\rangle }$ in systems of modal logic used to represent knowledge and ${\displaystyle [B]}$ and ${\displaystyle \langle B\rangle }$ in those used to represent belief. These notations are particularly common in systems which use multiple modal operators simultaneously. For instance, a combined epistemic-deontic logic could use the formula ${\displaystyle [K]\langle D\rangle P}$ read as "I know P is permitted". Systems of modal logic can include infinitely many modal operators distinguished by indices, i.e. ${\displaystyle \Box _{1))$, ${\displaystyle \Box _{2))$, ${\displaystyle \Box _{3))$, and so on.

## Semantics

### Relational semantics

#### Basic notions

The standard semantics for modal logic is called the relational semantics. In this approach, the truth of a formula is determined relative to a point which is often called a possible world. For a formula that contains a modal operator, its truth value can depend on what is true at other accessible worlds. Thus, the relational semantics interprets formulas of modal logic using models defined as follows.[6]

• A relational model is a tuple ${\displaystyle {\mathfrak {M))=\langle W,R,V\rangle }$ where:
1. ${\displaystyle W}$ is a set of possible worlds
2. ${\displaystyle R}$ is a binary relation on ${\displaystyle W}$
3. ${\displaystyle V}$ is a valuation function which assigns a truth value to each pair of an atomic formula and a world, (i.e. ${\displaystyle V:W\times F\to \{0,1\))$ where ${\displaystyle F}$ is the set of atomic formulae)

The set ${\displaystyle W}$ is often called the universe. The binary relation ${\displaystyle R}$ is called an accessibility relation, and it controls which worlds can "see" each other for the sake of determining what is true. For example, ${\displaystyle wRu}$ means that the world ${\displaystyle u}$ is accessible from world ${\displaystyle w}$. That is to say, the state of affairs known as ${\displaystyle u}$ is a live possibility for ${\displaystyle w}$. Finally, the function ${\displaystyle V}$ is known as a valuation function. It determines which atomic formulas are true at which worlds.

Then we recursively define the truth of a formula at a world ${\displaystyle w}$ in a model ${\displaystyle {\mathfrak {M))}$:

• ${\displaystyle {\mathfrak {M)),w\models P}$ iff ${\displaystyle V(w,P)=1}$
• ${\displaystyle {\mathfrak {M)),w\models \neg P}$ iff ${\displaystyle w\not \models P}$
• ${\displaystyle {\mathfrak {M)),w\models (P\wedge Q)}$ iff ${\displaystyle w\models P}$ and ${\displaystyle w\models Q}$
• ${\displaystyle {\mathfrak {M)),w\models \Box P}$ iff for every element ${\displaystyle u}$ of ${\displaystyle W}$, if ${\displaystyle wRu}$ then ${\displaystyle u\models P}$
• ${\displaystyle {\mathfrak {M)),w\models \Diamond P}$ iff for some element ${\displaystyle u}$ of ${\displaystyle W}$, it holds that ${\displaystyle wRu}$ and ${\displaystyle u\models P}$

According to this semantics, a formula is necessary with respect to a world ${\displaystyle w}$ if it holds at every world that is accessible from ${\displaystyle w}$. It is possible if it holds at some world that is accessible from ${\displaystyle w}$. Possibility thereby depends upon the accessibility relation ${\displaystyle R}$, which allows us to express the relative nature of possibility. For example, we might say that given our laws of physics it is not possible for humans to travel faster than the speed of light, but that given other circumstances it could have been possible to do so. Using the accessibility relation we can translate this scenario as follows: At all of the worlds accessible to our own world, it is not the case that humans can travel faster than the speed of light, but at one of these accessible worlds there is another world accessible from those worlds but not accessible from our own at which humans can travel faster than the speed of light.

#### Frames and completeness

The choice of accessibility relation alone can sometimes be sufficient to guarantee the truth or falsity of a formula. For instance, consider a model ${\displaystyle {\mathfrak {M))}$ whose accessibility relation is reflexive. Because the relation is reflexive, we will have that ${\displaystyle {\mathfrak {M)),w\models P\rightarrow \Diamond P}$ for any ${\displaystyle w\in G}$ regardless of which valuation function is used. For this reason, modal logicians sometimes talk about frames, which are the portion of a relational model excluding the valuation function.

• A relational frame is a pair ${\displaystyle {\mathfrak {M))=\langle G,R\rangle }$ where ${\displaystyle G}$ is a set of possible worlds, ${\displaystyle R}$ is a binary relation on ${\displaystyle G}$.

The different systems of modal logic are defined using frame conditions. A frame is called:

• reflexive if w R w, for every w in G
• symmetric if w R u implies u R w, for all w and u in G
• transitive if w R u and u R q together imply w R q, for all w, u, q in G.
• serial if, for every w in G there is some u in G such that w R u.
• Euclidean if, for every u, t, and w, w R u and w R t implies u R t (by symmetry, it also implies t R u, as well as t R t and u R u)

The logics that stem from these frame conditions are:

The Euclidean property along with reflexivity yields symmetry and transitivity. (The Euclidean property can be obtained, as well, from symmetry and transitivity.) Hence if the accessibility relation R is reflexive and Euclidean, R is provably symmetric and transitive as well. Hence for models of S5, R is an equivalence relation, because R is reflexive, symmetric and transitive.

We can prove that these frames produce the same set of valid sentences as do the frames where all worlds can see all other worlds of W (i.e., where R is a "total" relation). This gives the corresponding modal graph which is total complete (i.e., no more edges (relations) can be added). For example, in any modal logic based on frame conditions:

${\displaystyle w\models \Diamond P}$ if and only if for some element u of G, it holds that ${\displaystyle u\models P}$ and w R u.

If we consider frames based on the total relation we can just say that

${\displaystyle w\models \Diamond P}$ if and only if for some element u of G, it holds that ${\displaystyle u\models P}$.

We can drop the accessibility clause from the latter stipulation because in such total frames it is trivially true of all w and u that w R u. But note that this does not have to be the case in all S5 frames, which can still consist of multiple parts that are fully connected among themselves but still disconnected from each other.

All of these logical systems can also be defined axiomatically, as is shown in the next section. For example, in S5, the axioms ${\displaystyle P\implies \Box \Diamond P}$, ${\displaystyle \Box P\implies \Box \Box P}$ and ${\displaystyle \Box P\implies P}$ (corresponding to symmetry, transitivity and reflexivity, respectively) hold, whereas at least one of these axioms does not hold in each of the other, weaker logics.

### Topological semantics

Modal logic has also been interpreted using topological structures. For instance, the Interior Semantics interprets formulas of modal logic as follows.

A topological model is a tuple ${\displaystyle \mathrm {X} =\langle X,\tau ,V\rangle }$ where ${\displaystyle \langle X,\tau \rangle }$ is a topological space and ${\displaystyle V}$ is a valuation function which maps each atomic formula to some subset of ${\displaystyle X}$. The basic interior semantics interprets formulas of modal logic as follows:

• ${\displaystyle \mathrm {X} ,x\models P}$ iff ${\displaystyle x\in V(P)}$
• ${\displaystyle \mathrm {X} ,x\models \neg \phi }$ iff ${\displaystyle \mathrm {X} ,x\not \models \phi }$
• ${\displaystyle \mathrm {X} ,x\models \phi \land \chi }$ iff ${\displaystyle \mathrm {X} ,x\models \phi }$ and ${\displaystyle \mathrm {X} ,x\models \chi }$
• ${\displaystyle \mathrm {X} ,x\models \Box \phi }$ iff for some ${\displaystyle U\in \tau }$ we have both that ${\displaystyle x\in U}$ and also that ${\displaystyle \mathrm {X} ,y\models \phi }$ for all ${\displaystyle y\in U}$

Topological approaches subsume relational ones, allowing non-normal modal logics. The extra structure they provide also allows a transparent way of modeling certain concepts such as the evidence or justification one has for one's beliefs. Topological semantics is widely used in recent work in formal epistemology and has antecedents in earlier work such as David Lewis and Angelika Kratzer's logics for counterfactuals.

## Axiomatic systems

Diagram of common modal logics; K4W stands for Provability logic, and B on the top corner stands for Brouwer's system of KTB

The first formalizations of modal logic were axiomatic. Numerous variations with very different properties have been proposed since C. I. Lewis began working in the area in 1912. Hughes and Cresswell (1996), for example, describe 42 normal and 25 non-normal modal logics. Zeman (1973) describes some systems Hughes and Cresswell omit.

Modern treatments of modal logic begin by augmenting the propositional calculus with two unary operations, one denoting "necessity" and the other "possibility". The notation of C. I. Lewis, much employed since, denotes "necessarily p" by a prefixed "box" (□p) whose scope is established by parentheses. Likewise, a prefixed "diamond" (◇p) denotes "possibly p". Similar to the quantifiers in first-order logic, "necessarily p" (□p) does not assume the range of quantification (the set of accessible possible worlds in Kripke semantics) to be non-empty, whereas "possibly p" (◇p) often implicitly assumes ${\displaystyle \Diamond \top }$ (viz. the set of accessible possible worlds is non-empty). Regardless of notation, each of these operators is definable in terms of the other in classical modal logic:

• p (necessarily p) is equivalent to ¬◇¬p ("not possible that not-p")
• p (possibly p) is equivalent to ¬□¬p ("not necessarily not-p")

Hence □ and ◇ form a dual pair of operators.

In many modal logics, the necessity and possibility operators satisfy the following analogues of de Morgan's laws from Boolean algebra:

"It is not necessary that X" is logically equivalent to "It is possible that not X".
"It is not possible that X" is logically equivalent to "It is necessary that not X".

Precisely what axioms and rules must be added to the propositional calculus to create a usable system of modal logic is a matter of philosophical opinion, often driven by the theorems one wishes to prove; or, in computer science, it is a matter of what sort of computational or deductive system one wishes to model. Many modal logics, known collectively as normal modal logics, include the following rule and axiom:

• N, Necessitation Rule: If p is a theorem/tautology (of any system/model invoking N), then □p is likewise a theorem (i.e. ${\displaystyle (\models p)\implies (\models \Box p)}$).
• K, Distribution Axiom: □(pq) → (□p → □q).

The weakest normal modal logic, named "K" in honor of Saul Kripke, is simply the propositional calculus augmented by □, the rule N, and the axiom K. K is weak in that it fails to determine whether a proposition can be necessary but only contingently necessary. That is, it is not a theorem of K that if □p is true then □□p is true, i.e., that necessary truths are "necessarily necessary". If such perplexities are deemed forced and artificial, this defect of K is not a great one. In any case, different answers to such questions yield different systems of modal logic.

Adding axioms to K gives rise to other well-known modal systems. One cannot prove in K that if "p is necessary" then p is true. The axiom T remedies this defect:

• T, Reflexivity Axiom: pp (If p is necessary, then p is the case.)

T holds in most but not all modal logics. Zeman (1973) describes a few exceptions, such as S10.

Other well-known elementary axioms are:

• 4: ${\displaystyle \Box p\to \Box \Box p}$
• B: ${\displaystyle p\to \Box \Diamond p}$
• D: ${\displaystyle \Box p\to \Diamond p}$
• 5: ${\displaystyle \Diamond p\to \Box \Diamond p}$

These yield the systems (axioms in bold, systems in italics):

• K := K + N
• T := K + T
• S4 := T + 4
• S5 := T + 5
• D := K + D.

K through S5 form a nested hierarchy of systems, making up the core of normal modal logic. But specific rules or sets of rules may be appropriate for specific systems. For example, in deontic logic, ${\displaystyle \Box p\to \Diamond p}$ (If it ought to be that p, then it is permitted that p) seems appropriate, but we should probably not include that ${\displaystyle p\to \Box \Diamond p}$. In fact, to do so is to commit the naturalistic fallacy (i.e. to state that what is natural is also good, by saying that if p is the case, p ought to be permitted).

The commonly employed system S5 simply makes all modal truths necessary. For example, if p is possible, then it is "necessary" that p is possible. Also, if p is necessary, then it is necessary that p is necessary. Other systems of modal logic have been formulated, in part because S5 does not describe every kind of modality of interest.

### Structural proof theory

Sequent calculi and systems of natural deduction have been developed for several modal logics, but it has proven hard to combine generality with other features expected of good structural proof theories, such as purity (the proof theory does not introduce extra-logical notions such as labels) and analyticity (the logical rules support a clean notion of analytic proof). More complex calculi have been applied to modal logic to achieve generality.

### Decision methods

Analytic tableaux provide the most popular decision method for modal logics.[citation needed]

## Modal logics in philosophy

### Alethic logic

 Main article: Subjunctive possibility

Modalities of necessity and possibility are called alethic modalities. They are also sometimes called special modalities, from the Latin species. Modal logic was first developed to deal with these concepts, and only afterward was extended to others. For this reason, or perhaps for their familiarity and simplicity, necessity and possibility are often casually treated as the subject matter of modal logic. Moreover, it is easier to make sense of relativizing necessity, e.g. to legal, physical, nomological, epistemic, and so on, than it is to make sense of relativizing other notions.

In classical modal logic, a proposition is said to be

• possible if it is not necessarily false (regardless of whether it is actually true or actually false);
• necessary if it is not possibly false (i.e. true and necessarily true);
• contingent if it is not necessarily false and not necessarily true (i.e. possible but not necessarily true);
• impossible if it is not possibly true (i.e. false and necessarily false).

In classical modal logic, therefore, the notion of either possibility or necessity may be taken to be basic, where these other notions are defined in terms of it in the manner of De Morgan duality. Intuitionistic modal logic treats possibility and necessity as not perfectly symmetric.

For example, suppose that while walking to the convenience store we pass Friedrich's house, and observe that the lights are off. On the way back, we observe that they have been turned on.

• "Somebody or something turned the lights on" is necessary.
• "Friedrich turned the lights on", "Friedrich's roommate Max turned the lights on" and "A burglar named Adolf broke into Friedrich's house and turned the lights on" are contingent.
• All of the above statements are possible.
• It is impossible that Socrates (who has been dead for over two thousand years) turned the lights on.

(Of course, this analogy does not apply alethic modality in a truly rigorous fashion; for it to do so, it would have to axiomatically make such statements as "human beings cannot rise from the dead", "Socrates was a human being and not an immortal vampire", and "we did not take hallucinogenic drugs which caused us to falsely believe the lights were on", ad infinitum. Absolute certainty of truth or falsehood exists only in the sense of logically constructed abstract concepts such as "it is impossible to draw a triangle with four sides" and "all bachelors are unmarried".)

For those having difficulty with the concept of something being possible but not true, the meaning of these terms may be made more comprehensible by thinking of multiple "possible worlds" (in the sense of Leibniz) or "alternate universes"; something "necessary" is true in all possible worlds, something "possible" is true in at least one possible world. These "possible world semantics" are formalized with Kripke semantics.

#### Physical possibility

Something is physically, or nomically, possible if it is permitted by the laws of physics.[citation needed] For example, current theory is thought to allow for there to be an atom with an atomic number of 126,[7] even if there are no such atoms in existence. In contrast, while it is logically possible to accelerate beyond the speed of light,[8] modern science stipulates that it is not physically possible for material particles or information.[9]

#### Metaphysical possibility

 Main article: Modal metaphysics

Philosophers[who?] debate if objects have properties independent of those dictated by scientific laws. For example, it might be metaphysically necessary, as some who advocate physicalism have thought, that all thinking beings have bodies[10] and can experience the passage of time. Saul Kripke has argued that every person necessarily has the parents they do have: anyone with different parents would not be the same person.[11]

Metaphysical possibility has been thought to be more restricting than bare logical possibility[12] (i.e., fewer things are metaphysically possible than are logically possible). However, its exact relation (if any) to logical possibility or to physical possibility is a matter of dispute. Philosophers[who?] also disagree over whether metaphysical truths are necessary merely "by definition", or whether they reflect some underlying deep facts about the world, or something else entirely.

### Epistemic logic

 Main article: Epistemic logic

Epistemic modalities (from the Greek episteme, knowledge), deal with the certainty of sentences. The □ operator is translated as "x knows that…", and the ◇ operator is translated as "For all x knows, it may be true that…" In ordinary speech both metaphysical and epistemic modalities are often expressed in similar words; the following contrasts may help:

A person, Jones, might reasonably say both: (1) "No, it is not possible that Bigfoot exists; I am quite certain of that"; and, (2) "Sure, it's possible that Bigfoots could exist". What Jones means by (1) is that, given all the available information, there is no question remaining as to whether Bigfoot exists. This is an epistemic claim. By (2) he makes the metaphysical claim that it is possible for Bigfoot to exist, even though he does not: there is no physical or biological reason that large, featherless, bipedal creatures with thick hair could not exist in the forests of North America (regardless of whether or not they do). Similarly, "it is possible for the person reading this sentence to be fourteen feet tall and named Chad" is metaphysically true (such a person would not somehow be prevented from doing so on account of their height and name), but not alethically true unless you match that description, and not epistemically true if it's known that fourteen-foot-tall human beings have never existed.

From the other direction, Jones might say, (3) "It is possible that Goldbach's conjecture is true; but also possible that it is false", and also (4) "if it is true, then it is necessarily true, and not possibly false". Here Jones means that it is epistemically possible that it is true or false, for all he knows (Goldbach's conjecture has not been proven either true or false), but if there is a proof (heretofore undiscovered), then it would show that it is not logically possible for Goldbach's conjecture to be false—there could be no set of numbers that violated it. Logical possibility is a form of alethic possibility; (4) makes a claim about whether it is possible (i.e., logically speaking) that a mathematical truth to have been false, but (3) only makes a claim about whether it is possible, for all Jones knows, (i.e., speaking of certitude) that the mathematical claim is specifically either true or false, and so again Jones does not contradict himself. It is worthwhile to observe that Jones is not necessarily correct: It is possible (epistemically) that Goldbach's conjecture is both true and unprovable.

Epistemic possibilities also bear on the actual world in a way that metaphysical possibilities do not. Metaphysical possibilities bear on ways the world might have been, but epistemic possibilities bear on the way the world may be (for all we know). Suppose, for example, that I want to know whether or not to take an umbrella before I leave. If you tell me "it is possible that it is raining outside" – in the sense of epistemic possibility – then that would weigh on whether or not I take the umbrella. But if you just tell me that "it is possible for it to rain outside" – in the sense of metaphysical possibility – then I am no better off for this bit of modal enlightenment.

Some features of epistemic modal logic are in debate. For example, if x knows that p, does x know that it knows that p? That is to say, should □P → □□P be an axiom in these systems? While the answer to this question is unclear,[13] there is at least one axiom that is generally included in epistemic modal logic, because it is minimally true of all normal modal logics (see the section on axiomatic systems):

• K, Distribution Axiom: ${\displaystyle \Box (p\to q)\to (\Box p\to \Box q)}$.

It has been questioned whether the epistemic and alethic modalities should be considered distinct from each other. The criticism states that there is no real difference between "the truth in the world" (alethic) and "the truth in an individual's mind" (epistemic).[14] An investigation has not found a single language in which alethic and epistemic modalities are formally distinguished, as by the means of a grammatical mood.[15]

### Temporal logic

 Main article: Temporal logic

Temporal logic is an approach to the semantics of expressions with tense, that is, expressions with qualifications of when. Some expressions, such as '2 + 2 = 4', are true at all times, while tensed expressions such as 'John is happy' are only true sometimes.

In temporal logic, tense constructions are treated in terms of modalities, where a standard method for formalizing talk of time is to use two pairs of operators, one for the past and one for the future (P will just mean 'it is presently the case that P'). For example:

FP : It will sometimes be the case that P
GP : It will always be the case that P
PP : It was sometime the case that P
HP : It has always been the case that P

There are then at least three modal logics that we can develop. For example, we can stipulate that,

${\displaystyle \Diamond P}$ = P is the case at some time t
${\displaystyle \Box P}$ = P is the case at every time t

Or we can trade these operators to deal only with the future (or past). For example,

${\displaystyle \Diamond _{1}P}$ = FP
${\displaystyle \Box _{1}P}$ = GP

or,

${\displaystyle \Diamond _{2}P}$ = P and/or FP
${\displaystyle \Box _{2}P}$ = P and GP

The operators F and G may seem initially foreign, but they create normal modal systems. Note that FP is the same as ¬G¬P. We can combine the above operators to form complex statements. For example, PP → □PP says (effectively), Everything that is past and true is necessary.

It seems reasonable to say that possibly it will rain tomorrow, and possibly it won't; on the other hand, since we can't change the past, if it is true that it rained yesterday, it cannot be true that it may not have rained yesterday. It seems the past is "fixed", or necessary, in a way the future is not. This is sometimes referred to as accidental necessity. But if the past is "fixed", and everything that is in the future will eventually be in the past, then it seems plausible to say that future events are necessary too.

Similarly, the problem of future contingents considers the semantics of assertions about the future: is either of the propositions 'There will be a sea battle tomorrow', or 'There will not be a sea battle tomorrow' now true? Considering this thesis led Aristotle to reject the principle of bivalence for assertions concerning the future.

Additional binary operators are also relevant to temporal logics (see Linear temporal logic).

Versions of temporal logic can be used in computer science to model computer operations and prove theorems about them. In one version, ◇P means "at a future time in the computation it is possible that the computer state will be such that P is true"; □P means "at all future times in the computation P will be true". In another version, ◇P means "at the immediate next state of the computation, P might be true"; □P means "at the immediate next state of the computation, P will be true". These differ in the choice of Accessibility relation. (P always means "P is true at the current computer state".) These two examples involve nondeterministic or not-fully-understood computations; there are many other modal logics specialized to different types of program analysis. Each one naturally leads to slightly different axioms.

### Deontic logic

 Main article: Deontic logic

Likewise talk of morality, or of obligation and norms generally, seems to have a modal structure. The difference between "You must do this" and "You may do this" looks a lot like the difference between "This is necessary" and "This is possible". Such logics are called deontic, from the Greek for "duty".

Deontic logics commonly lack the axiom T semantically corresponding to the reflexivity of the accessibility relation in Kripke semantics: in symbols, ${\displaystyle \Box \phi \to \phi }$. Interpreting □ as "it is obligatory that", T informally says that every obligation is true. For example, if it is obligatory not to kill others (i.e. killing is morally forbidden), then T implies that people actually do not kill others. The consequent is obviously false.

Instead, using Kripke semantics, we say that though our own world does not realize all obligations, the worlds accessible to it do (i.e., T holds at these worlds). These worlds are called idealized worlds. P is obligatory with respect to our own world if at all idealized worlds accessible to our world, P holds. Though this was one of the first interpretations of the formal semantics, it has recently come under criticism.[16]

One other principle that is often (at least traditionally) accepted as a deontic principle is D, ${\displaystyle \Box \phi \to \Diamond \phi }$, which corresponds to the seriality (or extendability or unboundedness) of the accessibility relation. It is an embodiment of the Kantian idea that "ought implies can". (Clearly the "can" can be interpreted in various senses, e.g. in a moral or alethic sense.)

#### Intuitive problems with deontic logic

When we try to formalize ethics with standard modal logic, we run into some problems. Suppose that we have a proposition K: you have stolen some money, and another, Q: you have stolen a small amount of money. Now suppose we want to express the thought that "if you have stolen some money, it ought to be a small amount of money". There are two likely candidates,

(1) ${\displaystyle (K\to \Box Q)}$
(2) ${\displaystyle \Box (K\to Q)}$

But (1) and K together entail □Q, which says that it ought to be the case that you have stolen a small amount of money. This surely isn't right, because you ought not to have stolen anything at all. And (2) doesn't work either: If the right representation of "if you have stolen some money it ought to be a small amount" is (2), then the right representation of (3) "if you have stolen some money then it ought to be a large amount" is ${\displaystyle \Box (K\to (K\land \lnot Q))}$. Now suppose (as seems reasonable) that you ought not to steal anything, or ${\displaystyle \Box \lnot K}$. But then we can deduce ${\displaystyle \Box (K\to (K\land \lnot Q))}$ via ${\displaystyle \Box (\lnot K)\to \Box (K\to K\land \lnot K)}$ and ${\displaystyle \Box (K\land \lnot K\to (K\land \lnot Q))}$ (the contrapositive of ${\displaystyle Q\to K}$); so sentence (3) follows from our hypothesis (of course the same logic shows sentence (2)). But that can't be right, and is not right when we use natural language. Telling someone they should not steal certainly does not imply that they should steal large amounts of money if they do engage in theft.[17]

### Doxastic logic

 Main article: Doxastic logic

Doxastic logic concerns the logic of belief (of some set of agents). The term doxastic is derived from the ancient Greek doxa which means "belief". Typically, a doxastic logic uses □, often written "B", to mean "It is believed that", or when relativized to a particular agent s, "It is believed by s that".

## Metaphysical questions

 Further information: Accessibility relation and Possible worlds

In the most common interpretation of modal logic, one considers "logically possible worlds". If a statement is true in all possible worlds, then it is a necessary truth. If a statement happens to be true in our world, but is not true in all possible worlds, then it is a contingent truth. A statement that is true in some possible world (not necessarily our own) is called a possible truth.

Under this "possible worlds idiom," to maintain that Bigfoot's existence is possible but not actual, one says, "There is some possible world in which Bigfoot exists; but in the actual world, Bigfoot does not exist". However, it is unclear what this claim commits us to. Are we really alleging the existence of possible worlds, every bit as real as our actual world, just not actual? Saul Kripke believes that 'possible world' is something of a misnomer – that the term 'possible world' is just a useful way of visualizing the concept of possibility.[18] For him, the sentences "you could have rolled a 4 instead of a 6" and "there is a possible world where you rolled a 4, but you rolled a 6 in the actual world" are not significantly different statements, and neither commit us to the existence of a possible world.[19] David Lewis, on the other hand, made himself notorious by biting the bullet, asserting that all merely possible worlds are as real as our own, and that what distinguishes our world as actual is simply that it is indeed our world – this world.[20] That position is a major tenet of "modal realism". Some philosophers decline to endorse any version of modal realism, considering it ontologically extravagant, and prefer to seek various ways to paraphrase away these ontological commitments. Robert Adams holds that 'possible worlds' are better thought of as 'world-stories', or consistent sets of propositions. Thus, it is possible that you rolled a 4 if such a state of affairs can be described coherently.[21]

Computer scientists will generally pick a highly specific interpretation of the modal operators specialized to the particular sort of computation being analysed. In place of "all worlds", you may have "all possible next states of the computer", or "all possible future states of the computer".

## Further applications

Modal logics have begun to be used in areas of the humanities such as literature, poetry, art and history.[22][23]

## History

The basic ideas of modal logic date back to antiquity. Aristotle developed a modal syllogistic in Book I of his Prior Analytics (ch. 8–22), which Theophrastus attempted to improve.[24] There are also passages in Aristotle's work, such as the famous sea-battle argument in De Interpretatione §9, that are now seen as anticipations of the connection of modal logic with potentiality and time. In the Hellenistic period, the logicians Diodorus Cronus, Philo the Dialectician and the Stoic Chrysippus each developed a modal system that accounted for the interdefinability of possibility and necessity, accepted axiom T (see below), and combined elements of modal logic and temporal logic in attempts to solve the notorious Master Argument.[25] The earliest formal system of modal logic was developed by Avicenna, who ultimately developed a theory of "temporally modal" syllogistic.[26] Modal logic as a self-aware subject owes much to the writings of the Scholastics, in particular William of Ockham and John Duns Scotus, who reasoned informally in a modal manner, mainly to analyze statements about essence and accident.

In the 19th century, Hugh MacColl made innovative contributions to modal logic, but did not find much acknowledgment.[27] C. I. Lewis founded modern modal logic in a series of scholarly articles beginning in 1912 with "Implication and the Algebra of Logic".[28][29] Lewis was led to invent modal logic, and specifically strict implication, on the grounds that classical logic grants paradoxes of material implication such as the principle that a falsehood implies any proposition.[30] This work culminated in his 1932 book Symbolic Logic (with C. H. Langford),[31] which introduced the five systems S1 through S5.

After Lewis, modal logic received little attention for several decades. Nicholas Rescher has argued that this was because Bertrand Russell rejected it.[32] However, Jan Dejnozka has argued against this view, stating that a modal system which Dejnozka calls "MDL" is described in Russell's works, although Russell did believe the concept of modality to "come from confusing propositions with propositional functions," as he wrote in The Analysis of Matter.[33]

Arthur Norman Prior warned Ruth Barcan Marcus to prepare well in the debates concerning quantified modal logic with Willard Van Orman Quine, due to the biases against modal logic.[34]

Ruth C. Barcan (later Ruth Barcan Marcus) developed the first axiomatic systems of quantified modal logic — first and second order extensions of Lewis' S2, S4, and S5.[35][36][37]

The contemporary era in modal semantics began in 1959, when Saul Kripke (then only a 18-year-old Harvard University undergraduate) introduced the now-standard Kripke semantics for modal logics. These are commonly referred to as "possible worlds" semantics. Kripke and A. N. Prior had previously corresponded at some length. Kripke semantics is basically simple, but proofs are eased using semantic-tableaux or analytic tableaux, as explained by E. W. Beth.

A. N. Prior created modern temporal logic, closely related to modal logic, in 1957 by adding modal operators [F] and [P] meaning "eventually" and "previously". Vaughan Pratt introduced dynamic logic in 1976. In 1977, Amir Pnueli proposed using temporal logic to formalise the behaviour of continually operating concurrent programs. Flavors of temporal logic include propositional dynamic logic (PDL), (propositional) linear temporal logic (LTL), computation tree logic (CTL), Hennessy–Milner logic, and T.[clarification needed]

The mathematical structure of modal logic, namely Boolean algebras augmented with unary operations (often called modal algebras), began to emerge with J. C. C. McKinsey's 1941 proof that S2 and S4 are decidable,[38] and reached full flower in the work of Alfred Tarski and his student Bjarni Jónsson (Jónsson and Tarski 1951–52). This work revealed that S4 and S5 are models of interior algebra, a proper extension of Boolean algebra originally designed to capture the properties of the interior and closure operators of topology. Texts on modal logic typically do little more than mention its connections with the study of Boolean algebras and topology. For a thorough survey of the history of formal modal logic and of the associated mathematics, see Robert Goldblatt (2006).[39]

## Notes

1. ^ Sider, Theodor (2010). Logic for philosophy. Oxford University Press. pp. 171–173. ISBN 9780199575589.
2. ^ Blackburn, Patrick; de Rijke, Maarten; Venema, Yde (2001). Modal Logic. Cambridge Tracts in Theoretical Computer Science. Cambridge University Press. ISBN 9780521527149.
3. ^ a b c van Benthem, Johan (2010). Modal Logic for Open Minds (PDF). CSLI. S2CID 62162288. Archived from the original (PDF) on 2020-02-19.
4. ^ Hamkins, Joel (2012). "The set-theoretic multiverse". The Review of Symbolic Logic. 5 (3): 416–449. arXiv:1108.4223. doi:10.1017/S1755020311000359. S2CID 33807508.
5. ^ Baltag, Alexandru; Christoff, Zoe; Rendsvig, Rasmus; Smets, Sonja (2019). "Dynamic Epistemic Logics of Diffusion and Prediction in Social Networks". Studia Logica. 107 (3): 489–531. doi:10.1007/s11225-018-9804-x. S2CID 13968166.
6. ^ Fitting and Mendelsohn. First-Order Modal Logic. Kluwer Academic Publishers, 1998. Section 1.6
7. ^ "Press release: Superheavy Element 114 Confirmed: A Stepping Stone to the Island of Stability". Lawrence Berkeley National Laboratory. 24 September 2009.
8. ^ Feinberg, G. (1967). "Possibility of Faster-Than-Light Particles". Physical Review. 159 (5): 1089–1105. Bibcode:1967PhRv..159.1089F. doi:10.1103/PhysRev.159.1089. See also Feinberg's later paper: Phys. Rev. D 17, 1651 (1978)
9. ^ Einstein, Albert (1905-06-30). "Zur Elektrodynamik bewegter Körper". Annalen der Physik. 17 (10): 891–921. Bibcode:1905AnP...322..891E. doi:10.1002/andp.19053221004.
10. ^ Stoljar, Daniel. "Physicalism". The Stanford Encyclopedia of Philosophy. Retrieved 16 December 2014.
11. ^ Saul Kripke Naming and Necessity Harvard University Press, 1980, p. 113.
12. ^ Thomson, Judith and Alex Byrne (2006). Content and Modality : Themes from the Philosophy of Robert Stalnaker. Oxford: Oxford University Press. p. 107. ISBN 9780191515736. Retrieved 16 December 2014.
13. ^ cf. Blindsight and Subliminal perception for negative empirical evidence
14. ^ Eschenroeder, Erin; Sarah Mills; Thao Nguyen (2006-09-30). William Frawley (ed.). The Expression of Modality. The Expression of Cognitive Categories. Mouton de Gruyter. pp. 8–9. ISBN 978-3-11-018436-5. Retrieved 2010-01-03.
15. ^ Nuyts, Jan (November 2000). Epistemic Modality, Language, and Conceptualization: A Cognitive-pragmatic Perspective. Human Cognitive Processing. John Benjamins Publishing Co. p. 28. ISBN 978-90-272-2357-9.
16. ^ See, e.g., Hansson, Sven (2006). "Ideal Worlds—Wishful Thinking in Deontic Logic". Studia Logica. 82 (3): 329–336. doi:10.1007/s11225-006-8100-3. S2CID 40132498.
17. ^ Ted Sider's Logic for Philosophy, unknown page. http://tedsider.org/books/lfp.html
18. ^ Kripke, Saul. Naming and Necessity. (1980; Harvard UP), pp. 43–5.
19. ^ Kripke, Saul. Naming and Necessity. (1980; Harvard UP), pp. 15–6.
20. ^ David Lewis, On the Plurality of Worlds (1986; Blackwell).
21. ^ Adams, Robert M. Theories of Actuality. Noûs, Vol. 8, No. 3 (Sep., 1974), particularly pp. 225–31.
22. ^ See [1] and [2]
23. ^ Andrew H. Miller, "Lives Unled in Realist Fiction", Representations 98, Spring 2007, The Regents of the University of California, ISSN 0734-6018, pp. 118–134.
24. ^ Bobzien, Susanne. "Ancient Logic". In Zalta, Edward N. (ed.). Stanford Encyclopedia of Philosophy.
25. ^ Bobzien, S. (1993). "Chrysippus' Modal Logic and its Relation to Philo and Diodorus", in K. Doering & Th. Ebert (eds), Dialektiker und Stoiker, Stuttgart 1993, pp. 63–84.
26. ^
27. ^ Lukas M. Verburgt (2020). "The Venn-MacColl Dispute in Nature". History and Philosophy of Logic. 41 (3): 244–251. doi:10.1080/01445340.2020.1758387. S2CID 219928989. Here: p.244.
28. ^ Lewis, C. I. (1912). "Implication and the Algebra of Logic." Mind, 21(84):522–531.
29. ^ Ballarin, Roberta. "Modern Origins of Modal Logic". The Stanford Encyclopedia of Philosophy. Retrieved 30 August 2020.
30. ^ Lewis, C. I. (1917). "The issues concerning material implication." Journal of Philosophy, Psychology, and Scientific Methods, 14:350–356.
31. ^ Clarence Irving Lewis and Cooper Harold Langford (1932). Symbolic Logic (1st ed.). Dover Publications.
32. ^ Rescher, Nicholas (1979). "Russell and Modal Logic". In George W. Roberts (ed.). Bertrand Russell Memorial Volume. London: George Allen and Unwin. p. 146.
33. ^ Dejnozka, Jan (1990). "Ontological Foundations of Russell's Theory of Modality" (PDF). Erkenntnis. 32 (3): 383–418. doi:10.1007/bf00216469. S2CID 121002878. Retrieved 2012-10-22.; quote is cited from Russell, Bertrand (1927). The Analysis of Matter. pp. 173.
34. ^ Ruth Barcan Marcus, Modalities: Philosophical Essays, Oxford University Press, 1993, p. x.
35. ^ Ruth C. Barcan (Mar 1946). "A Functional Calculus of First Order Based on Strict Implication". Journal of Symbolic Logic. 11 (1): 1–16. doi:10.2307/2269159. JSTOR 2269159.
36. ^ Ruth C. Barcan (Dec 1946). "The Deduction Theorem in a Functional Calculus of First Order Based on Strict Implication". Journal of Symbolic Logic. 11 (4): 115–118. doi:10.2307/2268309. JSTOR 2268309.
37. ^ Ruth C. Barcan (Mar 1947). "The Identity of Individuals in a Strict Functional Calculus of Second Order". Journal of Symbolic Logic. 12 (1): 12–15. doi:10.2307/2267171. JSTOR 2267171.
38. ^ McKinsey, J. C. C. (1941). "A Solution of the Decision Problem for the Lewis Systems S2 and S4, with an Application to Topology". J. Symb. Log. 6 (4): 117–134. doi:10.2307/2267105. JSTOR 2267105.
39. ^ Robert Goldbaltt, Mathematical Modal Logic: A view of it evolution