Exercise · Volume 1 · 1.2.4-17
Exercise 1.2.4-17
proved in Lean solution written
| Rating | M15 |
|---|---|
| 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 Law A (congruences can be added, subtracted and multiplied) from the definition of congruence, and prove that a congruence modulo gives congruences modulo and modulo .
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
First show that, for integers, means that is an integer multiple of .
Hint 2
Then write and and compute .
Solution
Show the solution
The criterion. Let , , be integers. Claim: if and only if for an integer . For both sides say . Let . If , then . Conversely, let and . Then with , so and .
Law A. Let and with integers and . Then and . For the product,
and is an integer. By the criterion, , and .
Half of Law D. Let . Then for an integer . So , a multiple of and a multiple of by integers. So modulo and modulo .
Check
Modulo : and . Then , , and . For the half of Law D, gives modulo (both ) and modulo (both ).
Remarks
Exercise 1.2.4-18 proves the other half of Law D, which needs . Exercise 1.2.4-24 asks how far the laws go for real numbers.
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.Ex17.statementaxioms: none - Solution:
TAOCP.S1_2_4.Ex17.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.