Further definition from Stanford Encyclopedia.
"A modal is an expression (like ‘necessarily’ or ‘possibly’) that is used to qualify the truth of a judgement. Modal logic is, strictly speaking, the study of the deductive behavior of the expressions ‘it is necessary that’ and ‘it is possible that’. However, the term ‘modal logic’ may be used more broadly for a family of related systems. These include logics for belief, for tense and other temporal expressions, for the deontic (moral) expressions such as ‘it is obligatory that’ and ‘it is permitted that’, and many others. An understanding of modal logic is particularly valuable in the formal analysis of philosophical argument, where expressions from the modal family are both common and confusing. Modal logic also has important applications in computer science."
What is Modal Logic?
"
2. Modal Logics
The most familiar logics in the modal family are constructed from a weak logic called
K (after Saul Kripke). Under the narrow reading, modal logic concerns necessity and possibility. A variety of different systems may be developed for such logics using
K as a foundation. The symbols of
K include ‘~’ for ‘not’, ‘→’ for ‘if…then’, and ‘□’ for the modal operator ‘it is necessary that’. (The connectives ‘&’, ‘∨’, and ‘↔’ may be defined from ‘~’ and ‘→’ as is done in propositional logic.)
K results from adding the following to the principles of propositional logic.
Necessitation Rule: If
A is a theorem of
K, then so is □
A.
Distribution Axiom: □(
A→
B) → (□
A→□
B).
(In these principles we use ‘
A’ and ‘
B’ as metavariables ranging over formulas of the language.) According to the Necessitation Rule, any theorem of logic is necessary. The Distribution Axiom says that if it is necessary that if
A then
B, then if necessarily
A, then necessarily
B.
The operator ◊ (for ‘possibly’) can be defined from □ by letting ◊
A = ~□~
A. In
K, the operators □ and ◊ behave very much like the quantifiers ∀ (all) and ∃ (some). For example, the definition of ◊ from □ mirrors the equivalence of ∀
xA with ~∃
x~
A in predicate logic. Furthermore, □(
A&
B) entails □
A&□
B and vice versa; while □
A∨□
B entails □(A∨
B), but
not vice versa. This reflects the patterns exhibited by the universal quantifier: ∀
x(
A&
B) entails ∀
xA&∀
xB and vice versa, while ∀
xA ∨ ∀
xB entails ∀
x(
A ∨
B) but not vice versa. Similar parallels between ◊ and ∃ can be drawn. The basis for this correspondence between the modal operators and the quantifiers will emerge more clearly in the section on
Possible Worlds Semantics.
The system
K is too weak to provide an adequate account of necessity. The following axiom is not provable in
K, but it is clearly desirable.
(
M) □
A→
A
(
M) claims that whatever is necessary is the case. Notice that (
M) would be incorrect were □ to be read ‘it ought to be that’, or ‘it was the case that’. So the presence of axiom (
M) distinguishes logics for necessity from other logics in the modal family. A basic modal logic
M results from adding (
M) to
K. (Some authors call this system
T.)
Many logicians believe that
M is still too weak to correctly formalize the logic of necessity and possibility. They recommend further axioms to govern the iteration, or repetition of modal operators. Here are two of the most famous iteration axioms:
(4) □
A→□□
A
(5) ◊
A→□◊
A
S4 is the system that results from adding (4) to
M. Similarly
S5 is
M plus (5). In
S4, the sentence □□
A is equivalent to □
A. As a result, any string of boxes may be replaced by a single box, and the same goes for strings of diamonds. This amounts to the idea that iteration of the modal operators is superfluous. Saying that
A is necessarily necessary is considered a uselessly long-winded way of saying that
A is necessary. The system
S5 has even stronger principles for simplifying strings of modal operators. In
S4, a string of operators of
the same kind can be replaced for that operator; in
S5, strings containing both boxes and diamonds are equivalent to the last operator in the string. So, for example, saying that it is possible that
A is necessary is the same as saying that
A is necessary. A summary of these features of
S4 and
S5 follows.
S4: □□…□ = □ and ◊◊…◊ = ◊
S5: 00…□ = □ and 00…◊ = ◊, where each 0 is either □ or ◊
One could engage in endless argument over the correctness or incorrectness of these and other iteration principles for □ and ◊. The controversy can be partly resolved by recognizing that the words ‘necessarily’ and ‘possibly’, have many different uses. So the acceptability of axioms for modal logic depends on which of these uses we have in mind. For this reason, there is no one modal logic, but rather a whole family of systems built around
M. The relationship between these systems is diagrammed in
Section 8, and their application to different uses of ‘necessarily’ and ‘possibly’ can be more deeply understood by studying their possible world semantics in
Section 6.
The system
B (for the logician Brouwer) is formed by adding axiom (
B) to
M.
(
B)
A→□◊
A
It is interesting to note that
S5 can be formulated equivalently by adding (
B) to
S4. The axiom (
B) raises an important point about the interpretation of modal formulas. (
B) says that if
A is the case, then
A is necessarily possible. One might argue that (
B) should always be adopted in any modal logic, for surely if
A is the case, then it is necessary that
A is possible. However, there is a problem with this claim that can be exposed by noting that ◊□
A→
A is provable from (
B). So ◊□
A→
A should be acceptable if (
B) is. However, ◊□
A→
A says that if
A is possibly necessary, then
A is the case, and this is far from obvious. Why does (
B) seem obvious, while one of the things it entails seems not obvious at all? The answer is that there is a dangerous ambiguity in the English interpretation of
A→□◊
A. We often use the expression ‘If
A then necessarily
B’ to express that the conditional ‘if
A then
B’ is necessary. This interpretation corresponds to □(
A→
B). On other occasions, we mean that if
A, then
B is necessary:
A→□
B. In English, ‘necessarily’ is an adverb, and since adverbs are usually placed near verbs, we have no natural way to indicate whether the modal operator applies to the whole conditional, or to its consequent. For these reasons, there is a tendency to confuse (
B):
A→□◊
A with □(
A→◊
A). But □(
A→◊
A) is not the same as (
B), for □(
A→◊
A) is already a theorem of
M, and (
B) is not. One must take special care that our positive reaction to □(
A→◊
A) does not infect our evaluation of (
B). One simple way to protect ourselves is to formulate
B in an equivalent way using the axiom: ◊□
A→
A, where these ambiguities of scope do not arise."
Modal Logic (Stanford Encyclopedia of Philosophy)