Exercise · Volume 1 · 1.2.1-5
Exercise 1.2.1-5
proved in Lean solution written
| Rating | 21 |
|---|---|
| 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
Show by induction that each integer larger than is a product of one or more primes.
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
The statement for may need the statement for smaller numbers that are not , so use the strong form of induction.
Hint 2
Split the cases: is a prime, or has a divisor strictly between and .
Solution
Show the solution
Let be the statement " is a product of one or more primes", for . Assume for each with . (For this assumption is empty, and the proof below still works.)
Case 1: is a prime. Then is the product of the one prime .
Case 2: is not a prime. Then has a positive divisor other than and . Write with an integer . Since , also . By the assumption, and for some primes. Then is a product of primes.
So holds in both cases. By strong induction it holds for all .
Check
and is a prime, a product of one prime. A python3 run that applies the rule to all gave a product of primes that equals each time.
Remarks
The factorization is also unique apart from order. That is a different theorem. Its proof needs the lemma that a prime that divides a product divides one of the factors, and this lemma follows from the extended Euclid's algorithm of this section.
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_1.Ex5.statementaxioms: none - Solution:
TAOCP.S1_2_1.Ex5.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.