Eventually (temporal diamond) in LaTeX (\Diamond p)
- LaTeX command
\Diamond p- Package
- Add to your preamble:
\usepackage{amssymb} - Mode
- Math mode only
Where it is used
Temporal "eventually": \Diamond p says p holds at some present or future moment.
Linear temporal logic also writes it F p (future), and it can be defined from until as \Diamond p \equiv \top\,\mathcal{U}\,p. Liveness properties are typically of this shape, such as \Box(\mathit{req} \to \Diamond\mathit{grant}). \Diamond\Box p means p eventually holds forever. In alethic modal logic the same diamond means "possibly", so state the temporal reading. Use \Diamond, not \diamond, which is a smaller binary operator. In computation tree logic it is prefixed by a path quantifier, as in AF p or EF p.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Eventually (temporal diamond): $\Diamond p$
\[ \Diamond \Box p \to \Box \Diamond p \]
\end{document}Related symbols
- Until
p \mathcal{U} q - Always (temporal box)
\Box p - Next
\bigcirc p - Common Knowledge
C_G p - Accessibility
w R v - Believes
B_a p
Frequently asked questions
- How do I write Eventually (temporal diamond) in LaTeX?
- Type \Diamond p in math mode, for example $\Diamond \Box p \to \Box \Diamond p$. Load amssymb first with \usepackage{amssymb}.
- Which package do I need for \Diamond p?
- \Diamond p needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
- Can I use \Diamond p in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\Diamond p$ in running text.