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 Modal Logic →

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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers