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 · 1.2.3-6

Exercise 1.2.3-6

proved in Lean solution written

RatingHM20
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Show that rule (d), Eq. (11), holds for infinite sums when any three of the four sums in it converge.

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

For finite sets the rule holds termwise: each index jj is counted the same number of times on both sides.

Hint 2

Apply this to the partial sums that define the infinite sums in Eq. (3). Then pass to the limit, separately for j≥0j \ge 0 and for j<0j < 0.

Solution

Show the solution

For a relation TT and integers p,q≥0p, q \ge 0, put UqT=∑T(j), 0≤j≤qaj,VpT=∑T(j), −p≤j<0aj.U^T_q = \sum_{T(j),\, 0 \le j \le q} a_j, \qquad V^T_p = \sum_{T(j),\, -p \le j < 0} a_j. These sums are finite. The sum ∑T(j)aj\sum_{T(j)} a_j exists exactly when both UqTU^T_q and VpTV^T_p have limits as q→∞q \to \infty and p→∞p \to \infty, and then its value is the sum of the two limits.

Finite step. Let [⋅][\cdot] be the bracket of Eq. (16). For each jj, [R(j)]+[S(j)]=[R(j) or S(j)]+[R(j) and S(j)][R(j)] + [S(j)] = [R(j) \text{ or } S(j)] + [R(j) \text{ and } S(j)]. Check the four cases: both false, 0=0+00 = 0 + 0; only RR true, 1=1+01 = 1 + 0; only SS true, 1=1+01 = 1 + 0; both true, 2=1+12 = 1 + 1. Multiply by aja_j and add over the finite window 0≤j≤q0 \le j \le q: UqR+UqS=UqR∨S+UqR∧S,U^R_q + U^S_q = U^{R \vee S}_q + U^{R \wedge S}_q, and in the same way over −p≤j<0-p \le j < 0: VpR+VpS=VpR∨S+VpR∧S.V^R_p + V^S_p = V^{R \vee S}_p + V^{R \wedge S}_p.

Limit step. Suppose that three of the four sums exist. Then three of the four sequences UqRU^R_q, UqSU^S_q, UqR∨SU^{R \vee S}_q, UqR∧SU^{R \wedge S}_q have limits. The fourth sequence is a sum or difference of the other three, by the first identity, so it has a limit too. The same holds for the four sequences VV. Thus the fourth sum also exists. Take limits in both identities and add them: ∑R(j)aj+∑S(j)aj=∑R(j)∨S(j)aj+∑R(j)∧S(j)aj.□\sum_{R(j)} a_j + \sum_{S(j)} a_j = \sum_{R(j) \vee S(j)} a_j + \sum_{R(j) \wedge S(j)} a_j. \qquad \square

Check

Let aj=2−ja_j = 2^{-j} for j≥0j \ge 0, R(j)=R(j) = "j≥0j \ge 0 and jj even", S(j)=S(j) = "j≥0j \ge 0 and j mod 3=0j \bmod 3 = 0". The sums are ∑R=4/3\sum_R = 4/3, ∑S=8/7\sum_S = 8/7, the union is the set of the jj that are divisible by 22 or 33, and the intersection is the set of multiples of 66 with the sum 64/6364/63. Then ∑R∨S=4/3+8/7−64/63=(84+72−64)/63=92/63\sum_{R \vee S} = 4/3 + 8/7 - 64/63 = (84 + 72 - 64)/63 = 92/63. A direct partial sum of the terms with jj divisible by 22 or 33 up to j=60j = 60 gives 1.4603…1.4603\ldots, and 92/63=1.4603…92/63 = 1.4603\ldots.

Remarks

Exercise 1.2.3-21 derives the same rule from the bracket notation for finite sums. The identity of the finite step shows that, when the sums over RR and SS exist, the sum over R∨SR \vee S exists if and only if the sum over R∧SR \wedge S exists. So two sums are not enough, and three are enough.

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.

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

Something is wrong? Report it.