Always (temporal box) in LaTeX (\Box p)

□p\Box p
LaTeX command
\Box p
Package
Add to your preamble:\usepackage{amssymb}
Mode
Math mode only

Where it is used

Temporal "always": \Box p says p holds now and at every future moment of the run.

In linear temporal logic, \Box is often written G (globally), and safety properties take the form \Box\neg\mathit{bad}. It is dual to eventually, \Box p \leftrightarrow \neg\Diamond\neg p, and \Box\Diamond p expresses that p happens infinitely often. The same box is necessity in alethic modal logic, so state which reading applies. \Box and \square give near-identical squares; \Box is the conventional modal operator and spacing before p is not added automatically. CTL prefixes it with a path quantifier, as in AG p.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

□(req→◊grant)\Box(\mathit{req} \to \Diamond \mathit{grant})
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Always (temporal box): $\Box p$

\[ \Box(\mathit{req} \to \Diamond \mathit{grant}) \]
\end{document}

Related symbols

All المنطق الشرطي →

Frequently asked questions

How do I write Always (temporal box) in LaTeX?
Type \Box p in math mode, for example $\Box(\mathit{req} \to \Diamond \mathit{grant})$. Load amssymb first with \usepackage{amssymb}.
Which package do I need for \Box p?
\Box p needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
Can I use \Box p in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\Box p$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث