Possible World in LaTeX (w)
- LaTeX command
w- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
A possible world: a point in a Kripke frame at which formulas are evaluated as true or false.
Worlds are drawn from a set W, and a frame is the pair (W, R) with an accessibility relation. Depending on the logic, a world can stand for a state of a program, a moment in time, or an epistemic alternative. Convention uses lowercase w, v, u for worlds and w_0 for the actual one. Because a bare italic w is so common, introduce it explicitly, and prefer w \in W in the first formula to anchor the reading.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Possible World: $w$
\[ w \in W,\quad \mathcal{M}, w \models p \]
\end{document}Related symbols
- Deontic Ought
O p - Kripke Model
\mathcal{M}, w \models p - Deontic Permitted
P p - Accessibility
w R v - Next
\bigcirc p - Until
p \mathcal{U} q
Frequently asked questions
- How do I write Possible World in LaTeX?
- Type w in math mode, for example $w \in W,\quad \mathcal{M}, w \models p$. It works in plain LaTeX without loading any package.
- Which package do I need for w?
- None. w is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use w in text mode, or only in math mode?
- Both. w compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.