Exercise · Volume 1 · 1.2.1-15
Exercise 1.2.1-15
proved in Lean solution written
| Rating | HM28 |
|---|---|
| Markers | HM (needs higher mathematics), recommended |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.1 of Volume 1. Companion chapter: Mathematical induction |
The task
Study well-orderings: (a) the integers with are not well-ordered, (b) find a well-ordering of the integers, (c) decide for the nonnegative reals, (d) and (e) decide for tuples under lexicographic order, (f) a characterization by descending sequences, (g) induction on a well-ordered set.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Write each part in terms of the property (iii): every nonempty subset has a least element.
Hint 2
For (d), use induction on the length of the tuples: look at the set of the first components of a nonempty set of tuples.
Hint 3
For (e), test the order on tuples of the form with . For (g), look at the set of the elements where fails.
Solution
Show the solution
Call a least element of a set an element with for all .
(a) The set itself has no least element for : for each integer , the integer is smaller. So (iii) fails. (The set of negative integers fails in the same way.)
(b) Define when , or when and . The order of the integers is . It is the lexicographic order of the pairs , and is one to one. So (i) and (ii) hold, as for any order given by a one to one map into a totally ordered set. For (iii), let be nonempty, and let be the least value of for ; it exists since the nonnegative integers are well-ordered by . At most two elements of have , namely and , and the one that is smaller for is the least element of .
(c) No. The set of the positive reals is a nonempty subset of the nonnegative reals. For each positive , the number is positive and smaller, so there is no least element.
(d) Yes. First (i) and (ii). Let be two tuples, and let be the first index with . Then if , and if , and exactly one of the two holds by (ii) in . For transitivity, let at index and at index , and let . The tuples agree up to . At position the three entries satisfy with at least one strict step. So by (i) in , and .
For (iii) use induction on . For it is the property of . Let and let be nonempty. The set of the first components of the elements of is a nonempty subset of , so it has a least element . Let be the set of the tuples of with first component , with the first component removed. This is a nonempty subset of , and by induction it has a least element . Then is the least element of : a tuple of with a larger first component is larger, and one with first component is larger or equal by the choice of .
(e) Not in general. The relation still satisfies (i) and (ii), but (iii) fails as soon as has two elements . The tuples have the property that each one is larger than the next: since at position the entry is smaller than . So the set has no least element. If has only one element, the order is the order by length, and it is a well-ordering. (To get a well-ordering of for each , compare the length first and then the tuples of equal length by the lexicographic order of (d).)
(f) Let (i) and (ii) hold. If is a well-ordering and is an infinite sequence with , the set has a least element . But and (ii) say that is false. This is a contradiction, so no such sequence exists. Conversely, suppose (iii) fails: some nonempty has no least element. Choose . Since is not least, some is not , and by (ii) . In the same way choose in , and so on. This is an infinite descending sequence. (The choices use the axiom of choice for countably many steps.) So if there is no such sequence, (iii) holds.
(g) Let be the set of the for which is false. If is not empty, it has a least element . For each , , so is true. By the hypothesis of (g), is true. This contradicts . So is empty, and holds for all .
Check
For (b), the first elements in the order are , and the first ten satisfy along the list. In (d) with and , the order is . In (e) with , : , a descending chain. For (g) with and , the hypothesis at is empty, so holds without a separate base case, and (g) is the strong induction of Exercise 1.2.1-5.
Remarks
Part (g) is the principle behind all proofs of termination: a quantity that gets smaller at each step in a well-ordered set. Part (d) gives induction on several integers at once, which is called double induction for pairs. The C1 chapter of Section 1.2.1 states the principle and its link to the least-element property.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only. Lean states the parts one by one.
- Problem (a):
TAOCP.S1_2_1.Ex15.a.statementaxioms: none - Solution (a):
TAOCP.S1_2_1.Ex15.a.solvedaxioms: Quot.sound, propext - Problem (b):
TAOCP.S1_2_1.Ex15.b.statementaxioms: propext - Solution (b):
TAOCP.S1_2_1.Ex15.b.solvedaxioms: Classical.choice, Quot.sound, propext - Problem (c):
TAOCP.S1_2_1.Ex15.c.statementaxioms: Classical.choice, Quot.sound, propext - Solution (c):
TAOCP.S1_2_1.Ex15.c.solvedaxioms: Classical.choice, Quot.sound, propext - Problem (d):
TAOCP.S1_2_1.Ex15.d.statementaxioms: none - Solution (d):
TAOCP.S1_2_1.Ex15.d.solvedaxioms: Quot.sound, propext - Problem (e):
TAOCP.S1_2_1.Ex15.e.statementaxioms: propext - Solution (e):
TAOCP.S1_2_1.Ex15.e.solvedaxioms: Classical.choice, Quot.sound, propext - Problem (f):
TAOCP.S1_2_1.Ex15.f.statementaxioms: none - Solution (f):
TAOCP.S1_2_1.Ex15.f.solvedaxioms: Classical.choice, Quot.sound, propext - Problem (g):
TAOCP.S1_2_1.Ex15.g.statementaxioms: none - Solution (g):
TAOCP.S1_2_1.Ex15.g.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.