Interface ModalLogic<T>
- All Superinterfaces:
Logic<T>
Modal logic for reasoning about necessity and possibility.
Modal logic extends classical logic with modal operators:
- â–¡ (Box/Necessarily) - true in all possible worlds
- â—‡ (Diamond/Possibly) - true in at least one possible world
Common modal logic systems:
- K: Basic modal logic
- T: K + reflexivity (□Æ→ Æ)
- S4: T + transitivity (□Æ→ □□Æ)
- S5: S4 + symmetry (◇Æ→ □◇Æ)
References
- Saul Kripke, "Semantical Considerations on Modal Logic", Acta Philosophica Fennica, Vol. 16, 1963, pp. 83-94
- C. I. Lewis and C. H. Langford, "Symbolic Logic", Century Company, 1932 (foundational work)
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the modal logic system (K, T, S4, S5, etc.).necessarily(Proposition<T> proposition) Modal operator: □Æ(Necessarily).possibly(Proposition<T> proposition) Modal operator: ◇Æ(Possibly).Methods inherited from interface Logic
and, equivalent, falseValue, implies, not, or, trueValue
-
Method Details
-
necessarily
Modal operator: □Æ(Necessarily). True if Æis true in all accessible possible worlds.- Parameters:
proposition- the proposition- Returns:
- â–¡Ãâ€
-
possibly
Modal operator: ◇Æ(Possibly). True if Æis true in at least one accessible possible world.- Parameters:
proposition- the proposition- Returns:
- â—‡Ãâ€
-
getSystem
Returns the modal logic system (K, T, S4, S5, etc.).- Returns:
- the system name
-