taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 2.3-11

Exercise 2.3-11

not stated yet in Lean solution written

RatingHM32
MarkersHM (needs higher mathematics), recommended
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 2.3 of Volume 1

The task

Extend the notion of tree to infinite nested collections of sets. Say whether level, degree, parent and child can be defined for each node. Give nested sets of real numbers for (a) every node of uncountable degree and infinitely many levels, (b) a node of uncountable level, (c) every node of degree at least 2 and uncountably many levels.

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

Let a member XX be an ancestor of YY if X⊃YX \supset Y properly. Define the level of XX as the cardinal number of its ancestors, and the degree as the number of classes of descendants.

Hint 2

For (a), use sets of sequences of real numbers that start with a given prefix, and a bijection between the sequences and the real numbers.

Hint 3

For (b), use a chain of sets indexed by the real numbers. For (c), add branching to a chain, with sets in the plane.

Solution

Show the solution

Plan. First define the notions with cardinal numbers and see which of them can fail. Then give three examples in a space of sequences or in the plane, and move them to the real numbers by a bijection. This is possible because the plane, and the set of sequences of real numbers, have the same cardinality 2ℵ02^{\aleph_0} as the real line.

Definitions. Let CC be a nested collection of nonempty sets. Call XX an ancestor of YY, and YY a descendant of XX, when X⊋YX \supsetneq Y. For a subset D⊆CD \subseteq C let X≡YX \equiv Y in DD if some Z∈DZ \in D contains both. This is an equivalence relation on DD. To show transitivity, let W≡XW \equiv X by Z1Z_1 and X≡YX \equiv Y by Z2Z_2. Then Z1∩Z2⊇X≠∅Z_1 \cap Z_2 \supseteq X \ne \emptyset, so one of Z1,Z2Z_1, Z_2 contains the other, and the larger one contains WW and YY. The classes of CC are the trees of the forest that CC describes.

Level of XX: the cardinal number of the set of ancestors of XX. Degree of XX: the cardinal number of the classes of the set of descendants of XX. Both are defined for each node.

Parent of YY: an ancestor XX with no member strictly between XX and YY. Child is the converse. These two need not exist. A node can have ancestors and no parent, and a node can have descendants and no child. In the chain of sets (t,∞)(t, \infty) with tt real, no node has a parent or a child. So parent and child are defined only for some nodes. The children of a node can be put in order by embedding their classes in a linear order, as in a finite forest.

Example (a). Let Ω\Omega be the set of sequences (x1,x2,…)(x_1, x_2, \ldots) of real numbers, and fix a bijection of Ω\Omega with ℝ\mathbb{R}. For each finite sequence s=(s1,…,sk)s = (s_1, \ldots, s_k) with k≥0k \ge 0, let NsN_s be the set of members of Ω\Omega that start with ss. Then Ns⊋Ns′N_s \supsetneq N_{s'} exactly when s′s' extends ss properly. Two sets NsN_s and Ns′N_{s'} are disjoint when neither sequence extends the other. So the collection is nested. The root is N()=ΩN_{()} = \Omega. The children of NsN_s are the sets N(s,a)N_{(s, a)} with aa real, which is uncountably many sets. The set NsN_s has level kk, so the levels 0,1,2,…0, 1, 2, \ldots all occur. Moved to ℝ\mathbb{R} by the bijection, the sets are sets of real numbers.

Example (b). Let At=(t,∞)A_t = (t, \infty) for real tt. The sets form a chain, so they are nested. The set AtA_t has the ancestors AsA_s for all s<ts < t. There are 2ℵ02^{\aleph_0} of them, so each node has uncountable level.

Example (c). Work in the plane and move to ℝ\mathbb{R} by a bijection. For 0<t<10 < t < 1 let Vt={(x,y):x≤t}V_t = \{(x, y) : x \le t\}. For bars, let Bm,k t={t}×[m/2k,(m+1)/2k)B^{\,t}_{m,k} = \{t\} \times [m/2^k, (m+1)/2^k) for k≥0k \ge 0 and 0≤m<2k0 \le m < 2^k. The sets Vs⊂VtV_s \subset V_t for s<ts < t form a chain. A bar at position tt lies in Vt′V_{t'} exactly when t′≥tt' \ge t, and is disjoint from Vt′V_{t'} otherwise. Bars at different positions are disjoint, and the bars at one position are nested as dyadic intervals. So the collection is nested.

The node VtV_t has degree 2. Its descendants are the sets VsV_s with s<ts < t and the bars at positions u≤tu \le t. The sets VsV_s (s<ts < t) and the bars at positions u<tu < t lie in a common set Vs′V_{s'} with max⁡(s,u)≤s′<t\max(s, u) \le s' < t, so they are one class. The bars at position tt lie in no VsV_s with s<ts < t, so they form a second class. The bar Bm,k tB^{\,t}_{m,k} has the two descendants B2m,k+1 tB^{\,t}_{2m,k+1} and B2m+1,k+1 tB^{\,t}_{2m+1,k+1} as the tops of its two classes, because they are disjoint. So every node has degree 2. Each bar at position tt has the ancestors Vt′V_{t'} for all t′∈[t,1)t' \in [t, 1), which is uncountably many. So there are nodes of uncountable level, and every node has degree at least 2.

Check

No program can check an infinite collection, but python3 checked the finite part of the idea. For the bars at one position it listed the dyadic intervals up to k=4k = 4 and confirmed that any two are nested or disjoint and that each interval of depth k<4k < 4 has exactly two sub-intervals at depth k+1k + 1. The number of intervals up to k=4k = 4 is 1+2+4+8+16=311 + 2 + 4 + 8 + 16 = 31.

Remarks

The construction in (c) uses the same idea as the one in Knuth's answer, with half-planes in place of his sets. Level and degree are cardinal numbers here, so a node can have level 2ℵ02^{\aleph_0} although it has no parent.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.