Rudin's least-upper-bound property of an ordered set
DefinitionRudin_ch01_orderAn ordered set has the least-upper-bound property when every nonempty subset of that is bounded above has a least upper bound in (Rudin, Definition 1.10); dually, it has the greatest-lower-bound property when every nonempty subset bounded below has a greatest lower bound. Mathlib's IsLUB, IsGLB, BddAbove and BddBelow already express Rudin's Definitions 1.7–1.9 and are reused unchanged. What Mathlib lacks is the property as a proposition: its ConditionallyCompleteLinearOrder is a structure carrying chosen sSup/sInf operations. These two predicates state the property itself, so that a theorem may assume it of an arbitrary ordered set, exactly as Rudin does.
import Mathlib /-! # Rudin, Chapter 1 — order-theoretic vocabulary Definitions transcribed from Walter Rudin, *Principles of Mathematical Analysis*, 3rd edition, Chapter 1 (Definitions 1.7, 1.8, 1.10). Mathlib already provides `upperBounds`, `lowerBounds`, `BddAbove`, `BddBelow`, `IsLUB` and `IsGLB`, which are mathematically the same notions Rudin introduces in 1.7–1.9, so they are reused verbatim. The only notion missing from Mathlib as a standalone predicate is Rudin's *least-upper-bound property* of an ordered set (Definition 1.10); Mathlib packages it as the class `ConditionallyCompleteLinearOrder`, whose data also fixes the choice functions `sSup`/`sInf`. The predicate below is the property itself, stated exactly as in Rudin, so that theorems may assume it of an arbitrary ordered set. -/ namespace Rudin /-- Rudin, Definition 1.10: an ordered set `S` has the **least-upper-bound property** if every nonempty subset of `S` that is bounded above has a least upper bound in `S`. -/ def HasLeastUpperBoundProperty (S : Type*) [Preorder S] : Prop := ∀ E : Set S, E.Nonempty → BddAbove E → ∃ x : S, IsLUB E x /-- The dual of `Rudin.HasLeastUpperBoundProperty`: every nonempty subset that is bounded below has a greatest lower bound. (Rudin, Theorem 1.11.) -/ def HasGreatestLowerBoundProperty (S : Type*) [Preorder S] : Prop := ∀ E : Set S, E.Nonempty → BddBelow E → ∃ x : S, IsGLB E x end Rudin
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Two predicates are introduced, each attached to an arbitrary type carrying a preorder (a reflexive, transitive relation ; antisymmetry is not assumed, and the order need not be total).
First predicate. has the least-upper-bound property means: for every subset , if is nonempty and is bounded above (there exists some with for all ), then there exists which is a least upper bound of — that is, is an upper bound of and for every upper bound of .
Second predicate. has the greatest-lower-bound property means the order-dual statement: for every subset , if is nonempty and bounded below (there exists with for all ), then there exists which is a greatest lower bound of — a lower bound of that dominates every other lower bound.
Both are definitions only; nothing is asserted or proved about them. They quantify over all subsets of , including subsets that are proper classes of elements of any cardinality, but explicitly exclude the empty subset via the nonemptiness requirement. Under a mere preorder, least upper bounds need not be unique, so the existential statements assert existence and not uniqueness.
Confirmed by the mission captain (proposal self-audit).