\top top (true) (⊤) in LaTeX
| Command | \top |
|---|---|
| Mode | math |
| Package | none, part of LaTeX |
| Unicode | ⊤ U+22A4 |
| Kind | Sets and logic |
\top typesets the symbol “top (true)” (⊤). It is a symbol from set theory and logic.
Try it
Open this formula in the editor The preview is drawn in your browser by KaTeX, which knows the common math commands. The editor compiles the formula with pdfTeX.
Example
\documentclass{article}
\begin{document}
\( p \vee \neg p \equiv \top \)
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
How to use it
\top works only in math mode. In running text, put it between $...$ or \(...\). Outside math mode LaTeX stops with Missing $ inserted. The command is part of LaTeX; you need no package.
About sets and logic
The number sets are written in blackboard bold with \mathbb{...} from the amssymb package, which only has capital letters. Quantifiers and the empty set are part of LaTeX. The set operations are listed under binary operators and the comparisons, such as subset and element of, under relation symbols.