Exercise · Volume 1 · 1.2.8-42
Exercise 1.2.8-42
not stated yet in Lean solution written
| Rating | M26 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers |
The task
Show that for all integers there is exactly one admissible list of indices (negative indices allowed, may be ) with and .
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
Uniqueness: turn the pair into the real number and use Exercise 1.2.8-35.
Hint 2
Existence: put the vectors in a set one at a time. Use and to repair adjacent or equal indices.
Hint 3
Start with the empty list and add the vector exactly times and exactly times. Show that the repair procedure stops, by a decreasing pair of counts.
Solution
Show the solution
Call a finite set of integers admissible if any two of its elements differ by at least . Let for every integer and . The task is to show that every equals for exactly one admissible .
Uniqueness. Let be admissible with . Since , the sum is . The set is a finite, sparse representation of in base , so it is admissible in the sense of Exercise 1.2.8-35. By the uniqueness part of that exercise, is determined by , and so by .
Existence. Three identities of the vectors are used. They follow from :
(For the last: .)
Define for an admissible and an integer by cases:
- If : let , and return .
- Else if : return .
- Else if : return .
- Else return .
Claim: is defined (the recursion stops), is admissible, satisfies , and has at most elements.
Value and admissibility. Case 4 is admissible because . In case 2 the identity shows that . In case 3 use . In case 1 use , and the two calls add and then . By induction on the recursion the results of the calls are admissible with the right values.
The upper part is merged only upwards. In the first call of case 1, put and . Then and , because has gaps at least . Under these two conditions, a call goes to case 2 as long as and moves to . The new pair satisfies the two conditions again ( was removed, and because ). Case 1 and case 3 never occur in this chain. So the chain ends in case 4, and the result differs from only at places greater than . In particular .
Termination. Order the calls by the pair with , lexicographically. In cases 2 and 3 the new set has elements. In case 1 the first call has elements. The second call has the set with (by the size bound for the first call, which holds by induction), and , because and . So every call has a smaller pair than its parent, and the recursion stops. The size bound follows in the same induction: case 4 adds one element, cases 2 and 3 give at most , and case 1 gives at most .
Building . Start with . Apply exactly times and then exactly times. Since and , the final set is admissible with .
Check
The insertion procedure, run in python for all , gives an admissible set with the correct sums every time. Examples: , since and . , since and . , since and . : and .
Remarks
For and this gives the base representation of the integer with finite expansion, as used in Exercise 1.2.8-35. Exercise 1.2.8-34 is the case with only positive indices. The result is due to D. A. Klarner (1968). The book's answer takes another route: it builds the joint representation from Exercise 1.2.8-41 by a shift of the indices.
This solution is checked, 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.