Least Upper Bound in LaTeX (\text{lub})

lub\text{lub}
LaTeX command
\text{lub}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Abbreviation 'lub' for least upper bound, an older synonym of supremum common in order theory and lattices.

Textbooks on posets and lattices sometimes write \text{lub}\, S instead of \sup S, and the join a \vee b is the lub of a pair. Typesetting it with \text works, but it has two drawbacks: \text copies the surrounding font, so inside an italic theorem it turns italic, and it gives no operator spacing before the argument. The cleaner approach is \operatorname{lub} or a preamble line \DeclareMathOperator{\lub}{lub}, which keeps it upright and spaced like \sup. Use the starred declaration if you want subscripts placed underneath in displays.

Minimal compilable example

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

lub {x∈Q:x2<2}=2\text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2}
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Least Upper Bound: $\text{lub}$

\[ \text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2} \]
\end{document}

Related symbols

All 不等式・順序 →

Frequently asked questions

How do I write Least Upper Bound in LaTeX?
Type \text{lub} in math mode, for example $\text{lub}\, \{x \in \mathbb{Q} : x^2 < 2\} = \sqrt{2}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{lub}?
\text{lub} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{lub} in text mode, or only in math mode?
Both. \text{lub} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredAIでLaTeXを書く

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

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

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