Exercise · Volume 1 · 1.2.4-21
Exercise 1.2.4-21
proved in Lean solution written
| Rating | M22 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Prove that every integer is a product of primes in exactly one way when the factors are listed in nondecreasing order.
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
Existence is Exercise 1.2.1-5: strong induction on .
Hint 2
For uniqueness first prove that a prime that divides a product divides one of the factors. This is Law B.
Hint 3
Then compare the smallest prime of two factorizations and use induction on .
Solution
Show the solution
Existence. Use strong induction on . If is a prime, it is a product with one factor. Otherwise with . By the induction hypothesis, and are products of primes. Join the two lists and sort. This is a factorization of .
Euclid's lemma. Let be a prime and let . Claim: or . Suppose . The number divides , so it is or , and it is not since . So . Now , and Law B (with the factor ) gives . By induction on the number of factors, if a prime divides , then divides some . If all are primes, then with forces .
Uniqueness. Use strong induction on . Let be two factorizations into primes with and . The prime divides , so for some , and . In the same way for some . So . Cancel it: . If , both lists are empty, since each prime is at least . Otherwise and the induction hypothesis says that the two lists are equal.
Check
. A computer search over that lists all nondecreasing tuples of primes with product finds exactly one tuple for each . The uniqueness fails in the number system of the numbers with integers , , where .
Remarks
Uniqueness is false in some other number systems, as the example with shows, so the proof must use the property of the integers that Euclid's lemma expresses. Exercises 1.2.4-27 to 1.2.4-31 use the theorem.
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.
- Problem:
TAOCP.S1_2_4.Ex21.statementaxioms: propext - Solution:
TAOCP.S1_2_4.Ex21.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.