Until in LaTeX (p \mathcal{U} q)
- LaTeX command
p \mathcal{U} q- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Until operator of temporal logic: p \mathcal{U} q holds if q eventually holds and p holds at every moment before that.
Strong until requires q to occur; weak until p \mathcal{W} q also allows p forever. Eventually is derived as \Diamond q \equiv \top \mathcal{U} q. Written plainly, \mathcal{U} is an ordinary symbol, so p\mathcal{U}q sets with no space around the U; wrap it as p \mathbin{\mathcal{U}} q to get binary-operator spacing, or define \newcommand{\until}{\mathbin{\mathcal{U}}}. Many LTL papers use a roman U, \mathbin{\mathsf{U}}, instead of the calligraphic letter. Past-time logics add since, its mirror image looking backwards.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Until: $p \mathcal{U} q$
\[ \Diamond q \leftrightarrow \top \mathbin{\mathcal{U}} q \]
\end{document}Related symbols
- Next
\bigcirc p - Eventually (temporal diamond)
\Diamond p - Accessibility
w R v - Always (temporal box)
\Box p - Kripke Model
\mathcal{M}, w \models p - Common Knowledge
C_G p
Frequently asked questions
- How do I write Until in LaTeX?
- Type p \mathcal{U} q in math mode, for example $\Diamond q \leftrightarrow \top \mathbin{\mathcal{U}} q$. It works in plain LaTeX without loading any package.
- Which package do I need for p \mathcal{U} q?
- None. p \mathcal{U} q is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use p \mathcal{U} q in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $p \mathcal{U} q$ in running text.
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen