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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기