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 様相論理 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得