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: when for some integer . It also uses two results from the lesson on direct proof: the well-ordering principle (every non-empty set of natural numbers has a least element) and the division algorithm. As throughout the course, , and the power set of a set , the set of all its subsets, is written .
Antisymmetry and partial orders
An order cannot be symmetric: if forced , then would give . What an order has instead is that two things each ranked below the other are the same thing. A relation on a set is antisymmetric when
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 and , certainly . And " is even" on is symmetric without being antisymmetric, since it relates and both ways. A relation can also be neither: " divides " on relates to and not back, so it is not symmetric, and it relates and both ways, so it is not antisymmetric.
To prove antisymmetry, take arbitrary and , assume both and , and deduce . To refute it, exhibit two different elements related both ways.
A relation on that is reflexive, antisymmetric and transitive is a partial order, and with it is a partially ordered set, or poset, written when the relation needs naming. Three examples carry the lesson.
The first is on , with the ordering facts of school algebra taken as known. Reflexivity is . For antisymmetry, suppose and ; if then and , and adding gives , which is false, so . For transitivity, and mean and , and adding gives . Every subset of , such as , or , inherits the order, and more generally a partial order restricted to any subset is still a partial order, since the three properties are universal statements and survive shrinking the domain.
Example. Let be a set. Prove that is a partial order on the power set .
Reflexive: for every , every element of is an element of , so . Antisymmetric: let and . Each set is a subset of the other, which is exactly the double inclusion that proves two sets equal, so . Transitive: let and , and let . Since , , and since , . As was arbitrary, . All three properties hold, so is a partial order on .
Now you. Prove that divisibility is a partial order on .
Answer
Reflexive: , so . Transitive: let and , say and with integers. Then and is an integer, so . Antisymmetric: let and , say and . Then , and since , . Because and are positive, so are and , and two positive integers with product are both . So .
The positivity is doing real work. On , divisibility is still reflexive and transitive, but since , and since , while . The broken step is the last: also has the integer solution . So divisibility is not a partial order on .
Every partial order comes with a twin. If is a partial order on , so is its reverse, defined by when : each of the three properties, read with the letters exchanged, is the same property again. The reverse of is , and the reverse of is . This is the duality principle: every definition in this lesson has an upside-down version (least for greatest, lower bound for upper bound), and every theorem proved for one version holds for the other, by applying it to the reverse order. So the lesson proves each fact once.
What if a relation is reflexive and transitive but not antisymmetric?
Then it is a preorder, and preorders are common: divisibility on ; "" on , which relates and both ways; "is at least as tall as" on people; and, in the next lesson, "there is an injection from into " on sets. A preorder ranks, but it allows ties between different objects.
A preorder always hides a partial order, and the equivalence relations of the previous lesson are what find it. Let be a preorder on , and say when and . This is an equivalence relation: reflexive because , symmetric because its definition is, and transitive because and give and . On the classes, define when .
The definition uses representatives, so it must be checked to be well defined, as operations on classes were in the lesson on equivalence relations. Suppose , and . Then , so by transitivity. The relation on classes is reflexive and transitive because is, and it is antisymmetric: and mean and , so and . Collapsing the ties produces a partial order.
For divisibility on , the ties are and , the classes are and the pairs , and choosing the non-negative member of each gives divisibility on , a genuine partial order. For injections between sets, the ties are pairs of sets each injecting into the other, and the question of whether a tie means there is a bijection between them is exactly the Schröder and Bernstein theorem, proved in the next lesson.
Total orders and strict orders
Two elements and of a poset are comparable when or , and incomparable otherwise. 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 or .
The other two examples are not. Neither of and divides the other, so they are incomparable under divisibility, and so are and . In the sets and 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.
Incomparability is where intuition from numbers misleads. In a total order, "not " means "". In a partial order it does not: does not divide , and does not come before either. A proof that says " fails, so precedes " has assumed the order is total.
Each partial order has a strict version: means and , which turns into , into "is a proper subset of", and divisibility into "divides and is different from". The strict versions have their own axioms. A relation on is a strict partial order when it is irreflexive (no has ) and transitive.
Proposition. If is a partial order on , and means and , then is a strict partial order. Moreover it is asymmetric: and never both hold.
Proof. Irreflexive: would require . Transitive: let and . Then and , so . If , then and , so by antisymmetry, contradicting . So and . Asymmetric: if and , transitivity gives , contradicting irreflexivity.
The converse also holds: from a strict partial order , the relation " or " is a partial order, and the two constructions undo each other. That is Problem 5. So a partial order and a strict partial order carry the same information, and a text may start from either. In a total order, the strict version satisfies trichotomy: for all and , exactly one of , , holds. At least one holds by totality, and at most one by irreflexivity and asymmetry.
Hasse diagrams
A finite poset can be drawn economically, leaving reflexivity and transitivity for the reader to fill in. Say that covers when and there is no with . The Hasse diagram, named after the number theorist Helmut Hasse, puts each element as a point, places higher on the page than whenever , and draws a line only for covering pairs. No arrowheads are needed, since up is the direction of the order.
Take the eight divisors of , namely , under divisibility. The number is covered by the primes , and . Then is covered by and , by and , and by and . Finally , and are each covered by . That is twelve lines, drawn as the edges of a cube standing on the corner , with at the opposite corner. The poset has nineteen strict pairs in all (for instance ), but the other seven follow by climbing.
The divisors of give a different shape. They are . Here is covered by and ; is covered by and ; by ; and and are covered by . Note that does not cover , because and lie between. Those seven lines draw two squares sharing an edge, from to , rather than a cube.
The diagram loses nothing, because in a finite poset the covering pairs determine the whole order.
Proposition. In a finite poset, if and only if there are elements with in which each covers .
Proof. () By transitivity of , applied times, .
() Suppose . Consider all sequences in which each term is strictly below the next. There is at least one, with . In any such sequence the terms are distinct, since for by transitivity, and is irreflexive. So is at most the number of elements of the poset, and among the finitely many possible lengths there is a largest; take a sequence with as large as possible. If some did not cover , there would be a with , and inserting it would give a longer sequence. So every step is a covering pair.
Finiteness was used, and it is needed. In no element covers another at all, since between lies ; a Hasse diagram of would be dots and no lines.
The cube is no accident. A divisor of is a product of some of the primes , and , and exactly when the primes of are among those of . The precise word for "the same poset under different names" is this. An order isomorphism from to is a bijection with if and only if , for all ; the two posets are then isomorphic. The map sending each divisor of to its set of prime factors, , , and so on, is an order isomorphism onto , and isomorphic posets have the same Hasse diagram. The "if and only if" matters: the identity map from to is a bijection that preserves order ( gives ), but while does not divide , so it is not an isomorphism.
The divisors of are with and , and exactly when and . The product order on , for posets and , sets when in and in . So the divisors of are isomorphic to in the product order, a three by two grid, which is the two squares of the figure. The product order is a partial order, checked coordinate by coordinate, but it is rarely total: in , the points and are incomparable.
Maximal against greatest
"Top" has two meanings in a poset, and they come apart as soon as the order is not total. An element of is greatest when everything lies below it: for every . An element is maximal when nothing lies strictly above it: there is no with . By duality, an element is least when for every , and minimal when no has .
Take the divisors of other than , the set under divisibility. Nothing in it is a proper multiple of or of , 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, divides everything and is least. In a Hasse diagram the maximal elements are the points with no line going up, and the minimal ones the points with no line going down.
Greatest is a statement about every element; maximal is a statement about none. Written out with quantifiers,
and the difference is the difference between "" and "not ", which the previous section showed are the same only in a total order. A maximal element may simply be incomparable with the rest. In a total order every pair is comparable, and the two notions coincide.
Example. Prove that a poset has at most one greatest element.
Let and both be greatest elements of . Since is greatest and , we have . Since is greatest and , we have . By antisymmetry, .
Antisymmetry supplies the equality, and it is why one may speak of "the greatest element", written when it exists; by duality the least element, , is unique too. In a preorder the argument fails at exactly that step, and "greatest" elements can tie.
Now you. Prove that if a poset has a greatest element , then is the only maximal element of .
Answer
First, is maximal. Suppose for some , so and . Since is greatest, , and antisymmetry gives , a contradiction. Second, let be any maximal element. Since is greatest, . If then , contradicting maximality of . So .
The poset is the contrapositive at work: it has two maximal elements, so it cannot have a greatest one. The converse of the Now you, that a unique maximal element must be greatest, is true for finite posets and false for infinite ones; Problem 6 asks for both halves.
Infinite posets can lack maximal and minimal elements altogether: under , has no maximal element, since , and has neither kind. Finite posets cannot.
Theorem. Every finite non-empty poset has a minimal element and a maximal element.
Proof. Let be a finite non-empty poset. For each , let be the number of elements with . The values form a non-empty set of non-negative integers, so by well-ordering some has as small as possible. Suppose, for a contradiction, that some has . Every with also has , by transitivity, so the elements strictly below are among those strictly below . The element is itself strictly below but not strictly below , since is irreflexive. So , contradicting the choice of . Hence is minimal. Applying this to the reverse order gives a maximal element.
Applied to the set , which contains and so is not empty, the theorem gives more: in a finite poset, every element lies above some minimal element, and dually below some maximal one. The last section of the lesson asks what replaces this theorem when the poset is infinite.
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 be a subset of a poset . An element is an upper bound of when for every , and is bounded above when it has one. Lower bounds are defined the other way up. An upper bound need not belong to : in , the upper bounds of are exactly the numbers , and none of them is in the set.
Among the upper bounds, the one that matters is the lowest. An element is the least upper bound, or supremum, of , written , when two conditions hold:
Condition (i) says is an upper bound; condition (ii) says it lies below every other one. Together they say 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, , is defined the other way up. A set with a greatest element has that element as its supremum: is an upper bound in , and every upper bound of has because .
The definition works in any poset. Under divisibility on the upper bounds of are the common multiples, and the section on lattices shows that the least of them in the divisibility order is , the least common multiple. Under , , since contains both, and any set containing and contains their union.
In , where is total, condition (ii) has a working form: no number below is an upper bound, that is, for every some has . (This is (ii) contraposed: " for every upper bound " says that every with fails to be an upper bound, and in a total order "not " is "".) If belongs to , it is the greatest element: . But it need not belong.
Example. Prove that has , and that .
The set is . For (i), each element satisfies because , so is an upper bound. For (ii), let ; we show is not an upper bound. Since , choose a natural number , which exists because has no upper bound in , a fact proved in the lesson on the real numbers. Then , so , and an element of lies above . Every upper bound is therefore at least , and . Finally would force , which no allows, so , and has a supremum but no greatest element. Its infimum is , which is its least element.
Now you. Prove that and without using any fact about .
Answer
Supremum. For (i), every satisfies , so is an upper bound. For (ii), let and find an element of above it. If , the element will do. If , take the midpoint : then and , so and . So no number below is an upper bound, and , which is not in the interval.
Infimum. Every has , so is a lower bound. Let . If , the element lies below it. If , then satisfies , so and . So no number above is a lower bound, and .
A supremum can fail to exist in two ways: there may be no upper bounds at all, as for in , or there may be upper bounds and no least one. The first failure is familiar; the second is subtler, and the next paragraphs and the section on lattices both show it.
What is the supremum of the empty set?
Condition (i) for says " for every ", a universal statement over an empty domain, so it is vacuously true: every element of the poset is an upper bound of . Condition (ii) then asks for an element below every element of the poset. So exists exactly when the poset has a least element, and then it is that element. Dually, is the greatest element, if there is one.
In that gives and . The second looks odd until it is read as an intersection: the intersection of no sets at all is the set of that belong to every set in an empty family, and every passes that test vacuously. In , which has no least element, has no supremum; that is why the completeness axiom of the lesson on the real numbers speaks only of non-empty sets.
The power set is better behaved than in every respect: every family of subsets of , of any size, has a supremum, its union, and an infimum, its intersection. The proof is the one for two sets. The union of a family contains each member, and any set containing each member contains every element of the union. A poset in which every subset has a supremum and an infimum is a complete lattice, and complete lattices have a remarkable property: every order-preserving map from one to itself has a fixed point. Problem 13 proves this for power sets, and the result gives a second proof of the Schröder and Bernstein theorem of the next lesson.
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
The set is non-empty, since , and bounded above in by , since a rational has . In fact any positive rational with is an upper bound: if some had , then and , contradicting .
So the rational upper bounds can be pushed down, and the elements of pushed up. The decimals , , and have squares , , and , all above , so each is an upper bound. The decimals , , and have squares , , and , all below , so each is in . The two sides close in on a number whose square is , and no rational has square .
That suggests a fact, stated here and proved in the lesson on the real numbers: is non-empty 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 . 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.
Lattices, and divisibility as one
The suprema of two-element sets deserve names. In a poset, the join of and , written , is , and their meet, written , is , whenever these exist. A lattice is a poset in which every two elements have a join and a meet. (The symbols are the logical "or" and "and", and the resemblance is deliberate: in , exactly when or .)
Three lattices are already in view. In a total order, and : the two elements are comparable, so one of them is the greatest element of and hence its supremum, and dually. In , and . The third is divisibility on , whose meet is the greatest common divisor, and the proof that it exists rests on the well-ordering principle and the division algorithm, as the lemma behind Euclid's lemma did in the lesson on contrapositive and contradiction.
Example. Let . Prove that has an infimum in , and that it can be written as for some integers and .
Let be the set of positive integers of the form with . It is not empty, since is in it. By the well-ordering principle it has a least element , and for some integers and .
First, is a lower bound, that is, and . By the division algorithm, with . Then
has the form . If were positive it would belong to and be smaller than , contradicting the choice of . So and . The same argument with in place of gives .
Second, lies above every lower bound. Let with and . A common divisor of two integers divides every integer combination of them, so .
So is a lower bound lying above every lower bound: , and . For and , the positive combinations include , , , and nothing smaller, since every combination is a multiple of . So .
The infimum under divisibility is the greatest common divisor, , and here "greatest" has two meanings that happen to agree: is greatest in the divisibility order, and since every common divisor divides , also , so is greatest in size. The representation is Bézout's identity, and the Discrete Mathematics lesson on divisibility computes and with Euclid's algorithm.
Now you. Let , and let be the least positive common multiple of and (it exists because is one). Prove that in .
Answer
The set of positive common multiples of and contains , so by well-ordering it has a least element . Since and , is an upper bound of .
Let be any upper bound, so and . By the division algorithm, with . Since divides both and , it divides , and likewise . If were positive, it would be a positive common multiple smaller than , contradicting the choice of . So and . Hence lies below every upper bound, and , the least common multiple.
So is a lattice, with least element and no greatest element. It becomes more symmetric if is admitted: on divisibility is still a partial order (antisymmetry needs a line for , since forces ), and is its greatest element, because for every . The divisors of a fixed number form a lattice as well, since the gcd and lcm of two divisors of are again divisors of (the lcm because is a common multiple, and so a multiple of the least one). The cube and the two squares in the figure are lattices of this kind.
A subset of a lattice need not be a lattice, and the join inside a subset can differ from the join outside it. In under divisibility, and have no upper bound at all, so there is no join. In , the set has two upper bounds, and , which are incomparable, so it has upper bounds and no least one: the second way a supremum can fail. And is a lattice in which , since is not there; inside the join is . Suprema are taken in a named poset, and changing the poset changes the answer, exactly as had a supremum in and none in . Some laws, on the other hand, hold in every lattice, and Problem 9 proves two of them.
Well-orders
The well-ordering principle says something about that is false for , for the non-negative rationals and for : every non-empty subset has a least element. That property gets its own name. A total order on is a well-order when every non-empty subset of has a least element, and is then well-ordered.
So is well-ordered by , and so is every finite totally ordered set, since by the theorem on finite posets a non-empty finite subset has a minimal element, and in a total order a minimal element is least. The set is not, and neither is under , which has no least element. Totality is almost free in the definition: if a partial order has a least element in every non-empty subset, then for any and the subset has a least element, which makes and comparable.
Well-orders are exactly the orders along which one cannot descend for ever.
Proposition. In a well-ordered set there is no infinite sequence with each term strictly below the one before.
Proof. Suppose there were such a sequence. Its set of values is a non-empty subset of , so it has a least element, say . But is also in the set and , a contradiction.
The converse holds for total orders too: if some non-empty has no least element, choose ; it is not least, so, by totality, some has ; that is not least either, so some has ; and so on for ever. The argument makes infinitely many choices one after another, a point that returns at the end of the lesson.
The reason to care about well-orders is that induction works along them. Strong induction, from the induction lesson, is the case of this theorem.
Theorem (induction over a well-order). Let be well-ordered and let be a statement about elements of . Suppose that for every , if holds for all , then holds. Then holds for every .
Proof. Suppose not. Then the set of counterexamples is non-empty, so it has a least element . Every is smaller than the least counterexample, so holds. By the hypothesis, holds, a contradiction.
There is no separate base case, because for the least element of the condition " for all " is vacuous, and the hypothesis must prove outright there.
The lexicographic order
A dictionary orders words by their first letter, breaks ties by the second, and so on. For totally ordered sets and , the lexicographic order on does the same with pairs:
with meaning or . On it runs
Every pair comes before , so has infinitely many predecessors, and the order is not isomorphic to , in which every element has finitely many. The lexicographic order is total: given , either , and the pair with the smaller first coordinate comes first, or and , and the smaller second coordinate decides. That is a partial order follows from Problem 5 once the strict relation is shown to be irreflexive and transitive, which is Problem 1.
Example. Prove that the lexicographic order on is a well-order.
Let be a non-empty subset of . The set of first coordinates is a non-empty subset of , so it has a least element . The set is non-empty, since , so it has a least element , and .
We show for every . Since , . If , then by the first clause of the definition. If , then , so , and either , when the pairs are equal, or , when by the second clause. So is the least element of .
The proof used well-ordering twice, once per coordinate, and the same proof shows that the lexicographic product of any two well-orders is a well-order.
Now you. Order by putting every even number before every odd number, and each parity in its usual order: when and have the same parity and , or is even and is odd. So . Given that is a total order, prove that it is a well-order, and name an element with infinitely many predecessors.
Answer
Let be a non-empty subset of . If contains an even number, let be the least even element of in the usual order, which exists by well-ordering of applied to the even elements of . For : if is odd, because evens precede odds; if is even, by the choice of , so . So is least. If contains no even number, every element is odd, and the least element of in the usual order, , satisfies for every , all of the same parity, so . In both cases has a least element.
The number has infinitely many predecessors, every even number. As with in , that shows the order is not isomorphic to .
The lexicographic order on finite words is where intuition fails. Order words in the letters and as a dictionary does, with a word placed before its own extensions. Then
an infinite descending sequence, so by the Proposition the dictionary order on words is not a well-order, even though it is total. The pairs were safe because they have fixed length. The repair for words is shortlex: compare lengths first, and use the dictionary only between words of the same length. There are finitely many words of each length, so shortlex lists all words in one sequence, , and it is a well-order.
Lexicographic orders are the standard tool for proving that a process stops. If each step of an algorithm replaces a pair of natural numbers by a lexicographically smaller one, the algorithm must halt, since otherwise its pairs form an infinite descending sequence. That remains true when a step may lower the first coordinate and then raise the second coordinate as much as it likes: may be followed by , and still the run is finite.
What does a well-order longer than look like, and why would anyone want one?
The two orders met above, evens before odds and the lexicographic order on , are well-orders that continue past a complete copy of . Cantor, in his papers of 1883, counted along such orders with ordinal numbers: for the order type of , for followed by one more element, for evens before odds, and for in lexicographic order, which is copies of in a row. Every well-ordered set is isomorphic to exactly one ordinal, and the ordinals are themselves well-ordered, so they measure the length of a well-order as the natural numbers measure the size of a finite set.
The practical use is induction and termination beyond the reach of . Wilhelm Ackermann defined in 1928 a function on pairs of non-negative integers by
It is not obvious that this defines anything: the last clause feeds a value of back into . Induction over the lexicographic well-order settles it. Suppose is defined at every pair lexicographically below . If , the first clause defines outright. The second clause refers to , whose first coordinate is smaller. The third first refers to , which is smaller, so is some number ; it then refers to , which is smaller whatever is, because the first coordinate dropped. So is defined, and by the theorem it is defined everywhere. No induction on a single natural number does this directly, because the second coordinate can jump arbitrarily high. The function grows explosively: , a number of decimal digits.
Chains and antichains
Inside any poset there are two extreme kinds of subset. A chain is a subset in which every two elements are comparable, so that the order restricted to it is total. An antichain is a subset in which no two distinct elements are comparable. In the powers of form a chain, , and the primes form an antichain, since no prime divides a different prime. In the one-element subsets form an antichain. A single element is both a chain and an antichain, and so is .
For a finite poset, the height is the largest number of elements in a chain and the width the largest number of elements in an antichain. The two interact through one simple fact.
Lemma. A chain and an antichain have at most one element in common.
Proof. If were both in the chain and the antichain , they would be comparable because is a chain and incomparable because is an antichain.
So if a poset is the union of chains, every antichain has at most elements: each of its elements lies in one of the chains, and no chain can hold two of them, so the pigeonhole principle allows at most . Dually, if a poset is the union of antichains, every chain has at most elements. Covers of one kind bound sets of the other kind, and when a cover and a set of the same size can both be found, the height or width is settled. The next theorem says that for chains and height, the bound is always attained.
Theorem (Mirsky). Let be a finite poset whose largest chain has elements. Then is the union of disjoint antichains.
Proof. For , let be the largest number of elements in a chain whose greatest element is . The chain shows , and by the choice of . For , let . Every element lies in exactly one .
Each is an antichain. Suppose . Take a chain of elements with greatest element . Every element of it is , hence , so adding gives a chain of elements with greatest element . Therefore . So two comparable distinct elements never share a value of , and no contains two comparable elements.
Leon Mirsky published the theorem in 1971. By the remark before it, no partition into fewer than antichains is possible, since the chain of elements would need different antichains; so the height equals the least number of antichains that cover the poset. Since each antichain has at most elements, where is the width, a finite poset of height and width has at most elements.
The theorem has a practical reading. If means that task must be finished before task starts, an antichain is a set of tasks that can run at the same time, and the proof schedules the whole project in rounds, round being , where is the length of the longest chain of dependencies. No schedule can use fewer.
Example. Find the height and the width of under divisibility, and a partition into antichains of the least possible number.
Height. The chain has four elements. No chain has five: list a chain's elements in increasing order as ; each is a proper multiple of the one before, so at least twice it, and five elements would give . So the height is .
Mirsky's partition. The value is the number of elements in the longest divisor chain ending at . It is for ; for the primes (only lies below them); for (for instance , and nothing longer, since the only divisors of are , , ); and for and (as and ). So the antichains are
and a direct check confirms that no number in any of them divides another in the same set.
Width. The six numbers form an antichain: a proper multiple of any of them is at least . And six chains cover the whole poset:
so by the lemma no antichain has more than six elements. The width is , and , as it must be.
Now you. Find the height and width of , the Mirsky partition into antichains, and a cover by chains that proves the width.
Answer
Height. If and , then has more elements than . So the sets in a chain have different sizes, and sizes run from to , which allows at most four sets. The chain has four, so the height is .
Partition. A longest chain ending at a set with elements can include one set of each size from to (remove the elements of one at a time), and no more, by the size argument. So , and the antichains are the sets of each size: , the three singletons, the three pairs, and .
Width. The three singletons form an antichain. The three chains
cover all eight subsets, so no antichain has more than three elements. The width is .
Is there a theorem with chains and antichains the other way round?
Yes, and it is harder. Mirsky's theorem covers a poset by as few antichains as its height demands. The dual statement covers it by as few chains as its width demands.
Dilworth's theorem. A finite poset whose largest antichain has elements is the union of chains.
Robert Dilworth proved it in 1950, twenty-one years before Mirsky's dual, and the delay reflects the difficulty. The easy half, that at least chains are needed, is the lemma above. The hard half has no neat labelling like ; the standard proofs go by induction on the size of the poset, splitting at a largest antichain, or deduce it from results on matchings in graphs, and they belong to a course in combinatorics.
Both theorems give the bound , and that bound alone has a famous consequence. Paul Erdős and George Szekeres proved in 1935 that every sequence of more than distinct real numbers contains an increasing subsequence of more than terms or a decreasing one of more than terms. For instance, any ten distinct numbers in a row contain four in increasing order or four in decreasing order. The proof is a choice of partial order, and it is Problem 12.
For power sets the width is known exactly. Emanuel Sperner proved in 1928 that the largest antichain in has elements, the number of subsets of the middle size, so the Now you's answer of is the case .
Linear extensions and Zorn's lemma
A partial order can always be completed to a total one without contradicting it. A linear extension of a partial order on is a total order on such that implies . Listing a degree's modules in an order that respects every prerequisite is finding a linear extension, and so is the "topological sort" a build system performs before compiling files that depend on one another. For the divisors of , the usual order of size is one linear extension, and is another.
Theorem. Every partial order on a finite set has a linear extension.
Proof. By induction on the number of elements. A set with or elements is already totally ordered. Let , suppose the claim holds for every set of elements, and let be a poset with elements. By the theorem on finite posets it has a minimal element . The set has elements and, with restricted to it, is a poset, so by hypothesis it has a linear extension . Define on by putting first: for every , and for , when . This is a total order, since it is with one new element placed below everything. It extends : let . If , then . If , then , and is impossible because is minimal, so and . If neither is , then , so .
For an infinite set, peeling off a minimal element fails: there may be none, and even when there is, the peeling may never reach some elements. A different construction is needed, and it starts with a lemma that orders a single incomparable pair.
Lemma. Let be a partial order on , written , and let and be incomparable under . Then
is a partial order on that contains and has .
Proof. Call the pairs of old and the other pairs of new. The pair is new, since and . is reflexive because is.
Antisymmetric. Let and . If both pairs are old, by antisymmetry of . If is old and new, then and , so and, by transitivity, , contradicting incomparability. The case with new and old is the same with the letters exchanged. If both are new, then and , so , again impossible. So only the first case occurs, and .
Transitive. Let and . If both are old, . If is old and new, then and , so is new, and in . If is new and old, then and , so is new. If both are new, then and , so , impossible. In every possible case .
The lemma fixes one incomparable pair; an infinite set can have infinitely many, and fixing them one at a time is a process with no last step. What replaces "and so on" is a principle about posets.
Zorn's lemma. Let be a non-empty poset in which every non-empty chain has an upper bound in . Then has a maximal element.
It is not proved in this course. It is equivalent, given the other axioms of set theory, to the axiom of choice, which says that from any family of non-empty sets one element can be chosen from each at once; mathematicians take one of the equivalent forms as an axiom. For a finite poset, Zorn's lemma is the theorem on finite posets proved above, which needs no chain condition at all. For infinite posets the hypothesis is essential: in every element is part of the chain , which has no upper bound, and there is no maximal element.
Theorem (Szpilrajn). Every partial order on any set has a linear extension.
Proof. Let be a partial order on , and let be the set of all partial orders on that contain , each regarded as a set of pairs, and ordered by . is not empty, since belongs to it.
Let be a non-empty chain in , and let be the union of its members. We show ; it is then an upper bound of . contains , since every member of does, and it is reflexive for the same reason. For transitivity, let and be in , say and with . Since is a chain, one contains the other, say . Then both pairs are in the partial order , so . Antisymmetry is proved the same way: if and are in , both lie in the larger of the two orders containing them, so .
By Zorn's lemma, has a maximal element . Suppose were not total, with and incomparable. The Lemma gives a partial order containing , hence containing , so ; and while , so and , which would contradict the maximality of . Hence is total, and it is a linear extension of .
Edward Szpilrajn published the theorem in 1930. The proof shows the pattern of almost every use of Zorn's lemma. Collect the partial objects, here partial orders extending the given one, and order them by inclusion. Check that the union of a chain of partial objects is again a partial object; the check is usually routine, and it is the step that must not be skipped. Take a maximal partial object, and show that if it were not complete it could be enlarged, usually by a lemma like the one above. The same pattern proves that every vector space has a basis (the partial objects are linearly independent sets, and a maximal one spans), including vector spaces far beyond those of a first linear algebra course, such as regarded as a vector space over . It also proves that every connected graph, however infinite, has a spanning tree.
The chain condition is where proofs fail. Let be the set of finite subsets of , ordered by . The chain has union , which is not in , and no finite set contains every member of the chain, so the chain has no upper bound in . And has no maximal element: lies strictly below , and a non-empty finite set lies strictly below . Zorn's lemma promises nothing here, and nothing is there.
Why is Zorn's lemma an axiom rather than a theorem?
Because it cannot be proved from the other axioms of set theory, and neither can its negation. Kurt Gödel showed in 1938 that the axiom of choice is consistent with the other axioms of Zermelo and Fraenkel's system, ZF, and Paul Cohen showed in 1963 that its negation is consistent with them too. Since Zorn's lemma and the axiom of choice imply each other over ZF, the same holds for Zorn.
The heuristic argument for Zorn's lemma shows where choice enters. Start anywhere in . If the current element is not maximal, choose something strictly above it. Continue: after infinitely many steps the elements chosen form a chain, which has an upper bound, so choose one and keep climbing. The climb runs along a well-order that may be far longer than , but the chosen elements are all different, so it cannot run longer than the size of allows; it must stop, and it can only stop at a maximal element. Making this rigorous needs the ordinals and a single act of choosing, all at once, a successor for every non-maximal element; the axiom of choice is exactly the licence for that.
Three equivalent forms are usually met together: the axiom of choice, which Ernst Zermelo made explicit in 1904; Zermelo's well-ordering theorem, proved from choice in the same paper, that every set, included, can be well-ordered; and Zorn's lemma, found by Kazimierz Kuratowski in 1922 and independently by Max Zorn, who published it in 1935. The mathematician Jerry Bona summed up how differently they strike the intuition: the axiom of choice is obviously true, the well-ordering principle obviously false, and who can tell about Zorn's lemma? They are one principle in three costumes.
Choice has strange consequences. Nobody can write down a well-order of , although one exists if choice is assumed, and the Banach and Tarski paradox of 1924 cuts a solid ball into finitely many pieces that can be moved rigidly and reassembled into two balls the size of the first. Most mathematicians accept choice anyway, because without it much of algebra and analysis breaks, and results proved with it are marked in careful texts when the use is essential.
Zorn's lemma is a statement about infinite sets, and so is the preorder "there is an injection from into " met near the start of the lesson. The next lesson takes up that preorder, compares the sizes of infinite sets by functions alone, and asks how many real numbers there are.
Problems
Work each problem on paper before opening anything; for Core and Challenge problems, try the hint before the solution.
Warm-up
1. Let and be totally ordered sets, and let be the strict lexicographic order on . Prove that is irreflexive and transitive.
Solution
Write for the strict orders of and of ; both are irreflexive and transitive.
Irreflexive. would require , or and . Both are impossible, since is irreflexive in and in .
Transitive. Let and . There are four cases, according to which clause of the definition gives each relation.
If and , then by transitivity in . If and , then . If and , then . In these three cases by the first clause. If with and , then by transitivity in , and by the second clause.
By Problem 5, the relation " or " is therefore a partial order, and the lesson showed it is total.
2. List the covering pairs of the divisors of under divisibility, and say how many lines the Hasse diagram has. Find the height and the width, with proof.
Solution
The divisors are . First, covers exactly when is prime. If with prime and , then and for positive integers and with , so or , that is, or . If instead with , then , so does not cover .
So the covering pairs are those where the larger is or times the smaller:
, , , , , , , , , , , .
That is twelve lines. The diagram is a three by three grid standing on a corner, since the divisors are with .
Height. The chain has five elements. Suppose a chain had six, listed upwards as . Each quotient is an integer at least , and , which divides because does. If all five quotients are , the product is , which does not divide ; if one is at least , the product is at least . Either way this is impossible. The height is .
Width. The set is an antichain: none divides another. The three chains , and cover all nine divisors, so by the lemma on chains and antichains no antichain has more than three elements. The width is .
3. In the poset under divisibility, find all minimal and all maximal elements, and decide whether there is a least or a greatest element. Then find, if they exist, , and in this poset.
Solution
An element is minimal when no other element of the set divides it. The numbers are prime, so their only divisors in the set are themselves, and they are minimal. Every other element has a prime divisor in the set: are divisible by and by . So the minimal elements are .
An element is maximal when no proper multiple of it lies in the set, that is, when its double exceeds . So the maximal elements are ; the others have , , , and in the set.
There are five minimal elements, so there is no least element (a least element would be the only minimal one), and six maximal elements, so no greatest one.
The upper bounds of in the set are its common multiples there, and , and , so . The only upper bound of is , so . The set has no upper bound, since , so it has no supremum.
4. In , find all upper bounds and all lower bounds of , and and . In , find and .
Solution
A set is an upper bound of when and , that is, when . So the upper bounds are and , and the least is .
A set is a lower bound when and , that is, when . So the lower bounds are and , and .
In , the supremum is the least common multiple and the infimum the greatest common divisor, by the Example and the Now you in the section on lattices. The common multiples of and are the multiples of (the least positive one is , since , are not multiples of and is), so , and , computed in the lesson.
Core
5. Let be a strict partial order on (irreflexive and transitive), and define to mean or . Prove that is a partial order whose strict version is again. Prove also that starting from a partial order, passing to its strict version and then back gives the partial order you started with.
Hint
For transitivity of , split on whether either of the two relations is an equality. For antisymmetry, use the asymmetry argument from the lesson.
Solution
Reflexive. For every , , so .
Transitive. Let and . If , then is the second relation. If , it is the first. Otherwise and , so by transitivity of , and .
Antisymmetric. Let and , and suppose . Then and , so by transitivity, contradicting irreflexivity. So .
The strict version of is . The strict version relates to when and , that is, when ( or ) and , which is equivalent to " and ". Since is irreflexive, already implies , so this is just .
The other round trip. Start from a partial order , with strict version meaning and . The relation " or " holds when ( and ) or . If , then either and the first alternative holds, or and the second does. Conversely, each alternative gives , the second by reflexivity. So the round trip returns .
6. Prove or disprove each claim. (a) If a poset has exactly one maximal element, that element is greatest. (b) If a finite poset has exactly one maximal element, that element is greatest.
Hint
For (a), put an element beside a copy of with nothing relating the two. For (b), use the theorem on finite posets on the set of elements above a given .
Solution
(a) False. Let , where is a new element that is not an integer, ordered by on and with related only to itself. This is a partial order: reflexivity, antisymmetry and transitivity hold inside , and any relation involving is . No integer is maximal, since . The element is maximal, since nothing other than is related to it. So is the only maximal element. It is not greatest, since fails.
(b) True. Let be a finite poset whose only maximal element is , and let . The set is finite and contains , so by the theorem on finite posets, applied to with the restricted order, it has an element maximal in . This is maximal in : if for some , then , so , contradicting the maximality of in . Since is the only maximal element of , , and so . As was arbitrary, is greatest.
Part (a) shows where finiteness enters: in , the set of elements above has no maximal element, and the argument of (b) breaks at exactly that step.
7. Find the flaw in this argument, show that the claim is false, and prove the claim under the extra hypothesis that every two elements of have a common upper bound in .
Claim. Let be a non-empty poset in which every non-empty chain has an upper bound in . Then has a greatest element.
Proof. By Zorn's lemma, has a maximal element . Let . Since is maximal, it is not the case that . Therefore . As was arbitrary, is greatest.
Hint
Which step would be correct in a total order, and only there? For the counterexample, try the smallest poset with two incomparable elements.
Solution
The flaw is the step from "not " to "". In a total order that step is trichotomy, but in a partial order and may be incomparable, and then neither nor holds. The argument confuses maximal with greatest.
The claim is false. Let with and incomparable (so the order is just equality). The non-empty chains are and , with upper bounds and . Both and are maximal and neither is greatest.
Corrected claim. Suppose also that every two elements of have a common upper bound. Let be maximal, as Zorn's lemma provides, and let . Let be a common upper bound of and . Then , and is impossible since is maximal, so . Hence . As was arbitrary, is greatest.
8. Prove that among any numbers chosen from , one divides another. Show that the statement fails for numbers, and deduce the width of under divisibility.
Hint
Write each number as a power of times an odd number. How many odd numbers are available?
Solution
Every can be written as with and odd: divide by as long as the result is even, which stops because the values decrease. The odd part is determined by . If with and odd and, say, , then would be even; so and .
For the odd part is one of the odd numbers . Among chosen numbers, by the pigeonhole principle two different ones, and , have the same odd part . They are different, so ; say . Then , so the first divides the second.
For numbers the claim fails: take . A proper multiple of any of them is at least twice it, so at least , and is not in the set. So no one of them divides another.
In the language of the lesson, the sets for the odd numbers are chains covering , so every antichain has at most elements, and is an antichain with exactly . The width is . For this is the width of found in the lesson, and the chains are the six chains used there.
9. Let be a lattice. Prove that (a) if and only if , and dually if and only if ; (b) and , for all . (c) Deduce that for all .
Hint
For (a), check the two conditions in the definition of supremum. Part (b) then follows from (a) in one line each.
Solution
(a) Suppose . Then is an upper bound of , since and , and every upper bound of has . So is the least upper bound: . Conversely, if , then , since the join is an upper bound of . The second statement is the first applied to the reverse order, in which joins and meets exchange roles.
(b) Since is an upper bound of , , and the dual half of (a) gives . Since is a lower bound of , , and the first half of (a), with in the role of and in the role of , gives . The join of two elements does not depend on their order, since and are the same set, so .
(c) In the meet is the greatest common divisor and the join is the least common multiple, as proved in the lesson. So by (b). For instance .
10. Prove or disprove each claim. (a) The lexicographic order on is a well-order. (b) There is a well-order on . (c) Every subset of a well-ordered set is well-ordered by the restricted order. (d) If is well-ordered, so is with the reverse order.
Hint
For (b), a bijection between and lets you borrow the order of . For (d), try .
Solution
(a) False. The subset is non-empty and has no least element: for any , the element is in and by the second clause.
(b) True. Define by for and for . The values for are even and those for are odd and at least , so maps into , and it is injective: equal values have equal parity, and then or gives . Define when . This is reflexive and transitive because is, antisymmetric because forces , and total because is. Let be non-empty. Then is a non-empty subset of , with a least element for some , and for every , that is, . So is a well-order. It lists as .
(c) True. Let be well-ordered and . The restricted order is a total order, since the defining properties are universal statements. A non-empty subset of is a non-empty subset of , so it has a least element, and that element is in the subset.
(d) False, unless is finite. is well-ordered, but under the reverse order a least element of would be a greatest natural number, and there is none, since .
11. Let be an infinite totally ordered set in which every element has only finitely many predecessors (elements strictly below it). Prove that is order-isomorphic to .
Hint
Send each element to one more than its number of predecessors. Show this map is strictly increasing, and that its image contains whenever it contains .
Solution
For , let , a finite set, and define , a natural number.
is strictly increasing. Let . Every has by transitivity, so . Also and . So has at least one more element than , and .
is injective and reflects order. Let . By totality, or , so or ; in particular . The same reasoning shows that implies : otherwise , and then . So if and only if .
is surjective. First, the image of is closed downwards: if with , then is a non-empty finite totally ordered set, so it has a greatest element (by the theorem on finite posets, since a maximal element of a total order is greatest). The predecessors of are exactly the predecessors of other than : if then and ; and if with , then because is greatest in , so . So . Second, the image is infinite, since is injective and is infinite, so for each some value . Going down from one step at a time, each value from down to is in the image, among them.
So is a bijection with exactly when , an order isomorphism. The hypothesis on predecessors cannot be dropped: in the evens-first order on , the element has infinitely many predecessors, and the order is not isomorphic to .
Challenge
12. Prove that every sequence of distinct real numbers has an increasing subsequence of more than terms or a decreasing subsequence of more than terms. Show that terms are not enough.
Hint
First prove that a finite poset with more than elements has a chain of more than elements or an antichain of more than , using Mirsky's theorem. Then find a partial order on the positions whose chains are the increasing subsequences.
Solution
Step 1. Let be a finite poset with more than elements, and suppose every chain has at most elements, so the height satisfies . By Mirsky's theorem, is the union of antichains. If each had at most elements, would have at most elements, which is false. So some antichain has more than elements.
Step 2. On the set of positions , define when and . This is a partial order: reflexive since and ; antisymmetric since and give ; transitive since both conditions are transitive.
A chain is a set of positions any two of which are comparable; since , comparability means , and as the values are distinct, . So chains are increasing subsequences. An antichain is a set of positions no two of which are comparable; for , incomparability means fails, so . So antichains are decreasing subsequences.
The poset has elements, so by Step 1 there is an increasing subsequence of more than terms or a decreasing one of more than terms.
Sharpness. Take blocks of numbers each. Block , for , lists in decreasing order, so the blocks are decreasing inside and every number in a later block exceeds every number in an earlier one. For , this is . An increasing subsequence takes at most one term from each block, since each block is decreasing, so it has at most terms. A decreasing subsequence stays inside one block, since a term of a later block is larger than every term of an earlier one, so it has at most terms. This sequence has distinct terms and neither kind of long subsequence.
The result is due to Paul Erdős and George Szekeres, 1935. Problem 14 of the lesson on contrapositive and contradiction proved the case by the pigeonhole principle.
13. Let be a set and let be monotone: implies . Prove that has a fixed point, a set with .
Hint
Consider all sets with , and take their union. Show it is contained in its own image, then apply once more.
Solution
Call a set expanding if . The empty set is expanding, since . Let be the union of all expanding sets, a subset of .
. Let . Then for some expanding set . Since and is monotone, . So . As was arbitrary, .
. Applying to , monotonicity gives . So is itself expanding, and therefore it is one of the sets in the union that defines : .
By double inclusion, . In the language of the lesson, is the supremum in of the expanding sets, and it is the greatest fixed point: every fixed point is expanding, so is contained in .
This is the power-set case of the Knaster and Tarski fixed point theorem, and it proves the Schröder and Bernstein theorem of the next lesson. Given injections and , the map on is monotone; for a fixed point , the function equal to on and to the inverse of on is a bijection .
14. A box holds finitely many balls, each labelled with a natural number. A move removes one ball, with label say, and puts into the box any finite number of new balls (possibly none), each with a label smaller than . So a ball labelled can only be removed. Prove that however the moves are chosen, the box is empty after finitely many moves.
Hint
Suppose some play goes on for ever, and choose one whose starting box has the smallest possible largest label. Follow the balls with that largest label.
Solution
A play that never empties the box is an infinite sequence of moves, each legal in the box left by the one before. Suppose, for a contradiction, that infinite plays exist. Each starts from a non-empty box, which has a largest label; by the well-ordering principle, choose an infinite play whose starting box has the least possible largest label .
No move ever creates a ball with label or more, since new labels are smaller than the label removed, which is at most . So the balls labelled are those present at the start, say of them, and at most moves remove one. Hence there is a stage after which no move removes a ball labelled .
If , every move removes a ball and adds none, so the play has at most as many moves as the box has balls, and is finite, a contradiction. So .
From stage on, every move removes a ball with label at most and adds balls with smaller labels, and the balls labelled are never touched. So deleting the balls labelled from the box at stage , and from every later box, leaves an infinite sequence of legal moves, starting from a box whose labels are all at most . That box is not empty, since a move is made from it. This is an infinite play whose starting box has largest label less than , contradicting the choice of . So there are no infinite plays.
No bound on the number of moves exists in advance: a single ball labelled may be replaced by a million balls labelled , and the play then lasts a million and one moves. That is why no induction on the number of moves or balls works; the argument uses the largest label first and the number of balls carrying it second, which is a lexicographic order in disguise.