Not Necessary in LaTeX (\neg\Box)

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

Where it is used

Negated necessity: \neg\Box p says p is not necessary, which is equivalent to \Diamond\neg p.

The duality \neg\Box p \leftrightarrow \Diamond\neg p lets you push negations inward, the modal counterpart of De Morgan's laws for quantifiers. Semantically it holds at a world when some accessible world falsifies p. \neg is an ordinary symbol, so \neg\Box p sets tightly; write \lnot if you prefer, it is an alias. For a struck-through box there is no standard single command, and a combined glyph would confuse readers, so keep the two-symbol form. In epistemic readings, \neg K_a p says the agent does not know p, which is weaker than knowing \neg p.

Minimal compilable example

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

¬□p↔◊¬p\neg \Box p \leftrightarrow \Diamond \neg p
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Not Necessary: $\neg\Box$

\[ \neg \Box p \leftrightarrow \Diamond \neg p \]
\end{document}

Related symbols

All Logik Modal →

Frequently asked questions

How do I write Not Necessary in LaTeX?
Type \neg\Box in math mode, for example $\neg \Box p \leftrightarrow \Diamond \neg p$. Load amssymb first with \usepackage{amssymb}.
Which package do I need for \neg\Box?
\neg\Box needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
Can I use \neg\Box in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\neg\Box$ 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