Until in LaTeX (p \mathcal{U} q)

pUqp \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.

◊q↔⊤Uq\Diamond q \leftrightarrow \top \mathbin{\mathcal{U}} q
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Until: $p \mathcal{U} q$

\[ \Diamond q \leftrightarrow \top \mathbin{\mathcal{U}} q \]
\end{document}

Related symbols

All Logik Modal →

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.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan