A linearly ordered space without a greatest element is not compact

See it in Lean

Axioms
ZFC only
Concerns
Compact, Linearly orderable

Statement

Let \(X\) be a nonempty set with a linear order \(<\) that has no greatest element, and give \(X\) the order topology. Then \(X\) is not compact.

Proof

The open rays \(\{s : s < a\}\), \(a \in X\), cover \(X\), since every \(x \in X\) lies below some \(a\). The union of finitely many of them is the ray below the largest \(a\) involved (or empty, if there are none), which misses that \(a\) (or any point of the nonempty space \(X\)). So the cover has no finite subcover. \(\blacksquare\)

Where it is used

Cited on space pages