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 Modale Logica →

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 poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen