Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Order

The relations ≤ on the numbers, ⊆ on sets and "divides" on the positive integers do not sort things into groups of equals; they rank them, and ranking needs its own definitions of what comes first, what sits on top, and when a collection has a top at all.

The previous lesson picked out the equivalence relations, those that are reflexive (every element is related to itself), symmetric (a relation one way gives it the other way) and transitive (related along a chain means related end to end), and showed that they group things. This lesson turns to the relations that rank. It assumes relations as sets of pairs, power sets, the quantifiers, and divisibility: a∣b when b=ak for some integer k. As throughout the course, ℕ={1,2,3,…}.

Antisymmetry

An order cannot be symmetric: if x≤y forced y≤x, then 1≤2 would give 2≤1. What an order has instead is that two things each ranked below the other are the same thing. A relation ⪯ on a set A is antisymmetric when

∀a,b∈A((a⪯b∧b⪯a)⇒a=b)

The symbol ⪯ stands for an abstract relation of this kind, read "precedes or equals"; ≤ is kept for numbers.

Antisymmetric is not the negation of symmetric. Equality is both, since whenever a=b and b=a, certainly a=b. And "x+y is even" on ℤ is symmetric without being antisymmetric, since it relates 1 and 3 both ways.

To prove antisymmetry, take arbitrary a and b, assume both a⪯b and b⪯a, and deduce a=b. To refute it, exhibit two different elements related both ways.

Partial orders

A relation on A that is reflexive, antisymmetric and transitive is a partial order, and A with it is a partially ordered set, or poset. Three examples carry the lesson.

The first is ≤ on ℝ, with the ordering facts of school algebra taken as known. Reflexivity is x≤x. For antisymmetry, suppose x≤y and y≤x; if x≠y then x<y and y<x, and adding gives x+y<y+x, which is false, so x=y. For transitivity, x≤y and y≤z mean y-x≥0 and z-y≥0, and adding gives z-x≥0.

Example. Let X be a set. Prove that ⊆ is a partial order on the power set P(X), the set of all subsets of X.

Reflexive: for every A∈P(X), every element of A is an element of A, so A⊆A. Antisymmetric: let A⊆B and B⊆A. Each set is a subset of the other, which is exactly the double inclusion that proves two sets equal, so A=B. Transitive: let A⊆B and B⊆C, and let x∈A. Since A⊆B, x∈B, and since B⊆C, x∈C. As x was arbitrary, A⊆C. All three properties hold, so ⊆ is a partial order on P(X).

Now you. Prove that divisibility is a partial order on ℕ.

Answer

Reflexive: a=a⋅1, so a∣a. Transitive: let a∣b and b∣c, say b=ak and c=bm with k,m integers. Then c=a(km) and km is an integer, so a∣c. Antisymmetric: let a∣b and b∣a, say b=ak and a=bm. Then a=akm, and since a≠0, km=1. Because a and b are positive, so are k and m, and two positive integers with product 1 are both 1. So b=a⋅1=a.

The positivity is doing real work. On ℤ, divisibility is still reflexive and transitive, but 2∣-2 since -2=2⋅(-1), and -2∣2 since 2=(-2)(-1), while 2≠-2. The broken step is the last: km=1 also has the integer solution k=m=-1. So divisibility is not a partial order on ℤ.

Total orders and strict orders

Two elements a and b of a poset are comparable when a⪯b or b⪯a. A partial order in which every pair is comparable is a total order, or linear order, because its elements line up in a single row. The order ≤ on ℝ is total: for any two reals, either x≤y or y≤x.

The other two examples are not. Neither of 2 and 3 divides the other, so they are incomparable under divisibility, and so are 4 and 6. In P({1,2}) the sets {1} and {2} are incomparable, since neither is a subset of the other. This is what "partial" means: the order ranks some pairs and is silent about others.

Each partial order has a strict version: a≺b means a⪯b and a≠b, which turns ≤ into <, ⊆ into "is a proper subset of", and divisibility into "divides and is different from".

Hasse diagrams

A finite poset can be drawn economically, leaving reflexivity and transitivity for the reader to fill in. Say that b covers a when a≺b and there is no c with a≺c≺b. The Hasse diagram puts each element as a point, places b higher on the page than a whenever a≺b, and draws a line only for covering pairs. Then a⪯b exactly when a=b or a path climbs from a to b.

Take the eight divisors of 30, namely 1,2,3,5,6,10,15,30, under divisibility. The number 1 is covered by the primes 2, 3 and 5. Then 2 is covered by 6 and 10, 3 by 6 and 15, and 5 by 10 and 15. Finally 6, 10 and 15 are each covered by 30. That is twelve lines, drawn as the edges of a cube standing on the corner 1, with 30 at the opposite corner. The poset has nineteen strict pairs in all (for instance 2≺30), but the other seven follow by climbing.

The cube is no accident. A divisor of 30 is a product of some of the primes 2, 3 and 5, and a∣b exactly when the primes of a are among those of b. So the divisors of 30 under divisibility have the same diagram as P({2,3,5}) under ⊆.

The divisors of 12 give a different shape. They are 1,2,3,4,6,12. Here 1 is covered by 2 and 3; 2 is covered by 4 and 6; 3 by 6; and 4 and 6 are covered by 12. Note that 12 does not cover 2, because 4 and 6 lie between. Those seven lines draw two squares sharing an edge, from 2 to 6, rather than a cube.

Hasse diagrams under divisibility. The eight divisors of 30 form a cube with 1 at the bottom, 30 at the top and twelve covering lines. The six divisors of 12 form two squares sharing the edge from 2 to 6 (highlighted), with seven covering lines.
Hasse diagrams under divisibility. The eight divisors of 30 form a cube with 1 at the bottom, 30 at the top and twelve covering lines. The six divisors of 12 form two squares sharing the edge from 2 to 6 (highlighted), with seven covering lines.

Maximal against greatest

"Top" has two meanings in a poset, and they come apart as soon as the order is not total. An element g of A is greatest when everything lies below it: a⪯g for every a∈A. An element m is maximal when nothing lies strictly above it: there is no a∈A with m≺a. Least and minimal are the same definitions turned upside down.

Take the divisors of 12 other than 12, the set {1,2,3,4,6} under divisibility. Nothing in it is a proper multiple of 4 or of 6, so both are maximal. Neither is greatest, since neither divides the other, and nothing else could be, since a greatest element would be a multiple of both. So there are two maximal elements and no greatest. At the bottom, 1 divides everything and is least. In a Hasse diagram the maximal elements are the points with no line going up.

Greatest is a statement about every element; maximal is a statement about none. That is why a greatest element is always maximal (anything above it would also be below it, and antisymmetry makes the two equal), while a maximal element may simply be incomparable with the rest. In a total order every pair is comparable, and the two notions coincide.

Infinite posets can lack both: under ≤, ℕ has no maximal element, since n<n+1.

Example. Prove that a poset has at most one greatest element.

Let g and g′ both be greatest elements of A. Since g is greatest and g′∈A, we have g′⪯g. Since g′ is greatest and g∈A, we have g⪯g′. By antisymmetry, g=g′.

Antisymmetry supplies the equality, and it is why one may speak of "the greatest element", written maxA when it exists.

Now you. Prove that if a poset A has a greatest element g, then g is the only maximal element of A.

Answer

First, g is maximal. Suppose g≺a for some a∈A, so g⪯a and g≠a. Since g is greatest, a⪯g, and antisymmetry gives a=g, a contradiction. Second, let m be any maximal element. Since g is greatest, m⪯g. If m≠g then m≺g, contradicting maximality of m. So m=g.

The poset {1,2,3,4,6} is the contrapositive at work: it has two maximal elements, so it cannot have a greatest one.

Upper bounds and the least upper bound

Maximal and greatest look inside a set. Bounds look at it from outside, within a larger poset. Let S be a subset of a poset A. An element u∈A is an upper bound of S when s⪯u for every s∈S, and S is bounded above when it has one. Lower bounds are defined the other way up. An upper bound need not belong to S: in ℝ, the upper bounds of [0,1) are exactly the numbers u≥1, and none of them is in the set.

Among the upper bounds, the one that matters is the lowest. An element u is the least upper bound, or supremum, of S, written supS, when two conditions hold:

(i)s⪯ufor everys∈S,(ii)u⪯vfor every upper boundvofS

Condition (i) says u is an upper bound; condition (ii) says it lies below every other one. Together they say u is the least element of the set of upper bounds, so by the upside-down version of the Example above there is at most one, and "the" is earned. The greatest lower bound, or infimum, infS, is defined the other way up.

The definition works in any poset. Under divisibility on ℕ the upper bounds of {4,6} are the common multiples, and each is a multiple of 12 (if n=6b and 4∣6b, then 3b is even, so b is even). So sup{4,6}=12, the least common multiple. Under ⊆, sup{A,B}=A∪B, since any set containing A and B contains their union.

In ℝ, where ≤ is total, condition (ii) has a working form: no number below u is an upper bound, that is, for every b<u some s∈S has s>b. If supS belongs to S, it is the greatest element: sup[0,1]=1=max[0,1]. But it need not belong.

Example. Prove that S={1-1n:n∈ℕ} has supS=1, and that 1∉S.

The set is {0,12,23,34,…}. For (i), each element satisfies 1-1n<1 because 1n>0, so 1 is an upper bound. For (ii), let b<1; we show b is not an upper bound. Since 1-b>0, choose a natural number n>11-b, which exists because ℕ has no upper bound in ℝ, a fact a later lesson proves. Then 1n<1-b, so 1-1n>b, and an element of S lies above b. Every upper bound is therefore at least 1, and supS=1. Finally 1-1n=1 would force 1n=0, which no n allows, so 1∉S, and S has a supremum but no greatest element.

Now you. Prove that sup(0,1)=1 without using any fact about ℕ.

Answer

For (i), every x∈(0,1) satisfies x<1, so 1 is an upper bound. For (ii), let b<1 and find an element of (0,1) above it. If b≤0, the element 12 will do. If 0<b<1, take the midpoint x=b+12: then b<x<1 and x>0, so x∈(0,1) and x>b. So no number below 1 is an upper bound, and sup(0,1)=1, which is not in the interval.

A supremum can also fail to exist. The empty set has every real as an upper bound and so no least one, and ℕ has no upper bound in ℝ at all.

A gap in the rationals

Whether a least upper bound exists depends on the poset the bounds are drawn from, just as surjectivity depended on the codomain. Work in ℚ under ≤, and let

T={q∈ℚ:q2<2}

The set is nonempty, since 1∈T, and bounded above in ℚ by 2, since a rational q>2 has q2>4. In fact any positive rational u with u2>2 is an upper bound: if some q∈T had q>u, then q2>u2>2, contradicting q∈T.

So the rational upper bounds can be pushed down, and the elements of T pushed up. The decimals 1.5, 1.42, 1.415 and 1.4143 have squares 2.25, 2.0164, 2.002225 and 2.00024449, all above 2, so each is an upper bound. The decimals 1.4, 1.41, 1.414 and 1.4142 have squares 1.96, 1.9881, 1.999396 and 1.99996164, all below 2, so each is in T. The two sides close in on a number whose square is 2, and an earlier lesson proved that no rational has square 2.

That suggests a fact, stated here and proved in a later lesson: T is nonempty and bounded above in ℚ, yet has no least upper bound in ℚ, because below every rational upper bound lies a smaller one. Inside ℝ the same set has supremum 2. The rationals are totally ordered, as the reals are, yet something the reals have is missing from them, and least upper bounds are where the absence shows.

Whether every nonempty set of reals bounded above has a least upper bound is a question about what sets of real numbers look like, and it is where the course is heading. A prior question comes first: how many real numbers are there? Both ℚ and ℝ are infinite, and it is not yet clear that one infinity can be larger than another. The next lesson settles it by comparing the sizes of infinite sets.