Exercise · Volume 1 · 1.2.4-24
Exercise 1.2.4-24
not stated yet in Lean solution written
| Rating | M20 |
|---|---|
| Markers | M (mathematical), recommended |
| Kind | Informal: the exercise has no formal statement, so Lean does not state it from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Find out which of Laws A, B, C and D stay true when the numbers in them are real and not only integers.
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 a real modulus , the statement means for an integer . The proof is the one of Exercise 1.2.4-17, which uses only the floor.
Hint 2
Test each law with small fractions, with the modulus . A law that fails there needs an integrality condition.
Solution
Show the solution
Setting. For real numbers, means , as in the integer case. The proof of Exercise 1.2.4-17 does not use that the numbers are integers, so means for an integer , also for real , , .
Law C holds for all reals. For a real , the distributive law of Exercise 1.2.4-15 holds for real numbers. So if and only if . No condition is needed.
Law A holds for sums and differences, and for products only with integrality. If and with integers , , then the sum and the difference are congruent for all real numbers. For the product, . This is a multiple of by an integer if and are integers, and the symmetric form works when and are integers. Without such a condition the law is false: modulo , and , but . In particular a congruence can be multiplied by any integer.
Law B needs integers and . The relation has no meaning for general reals, so take this definition: and are relatively prime if for integers and . For integers this is the usual condition, by Exercise 1.2.4-19 and its converse. With this definition, let and , where and are integers and , , are real. Write and . Then . So
and the factor of is an integer, because and are integers. So . If or is not an integer, the law fails even with and , where : take , and . Then , but .
Law D. The half "modulus gives modulus and " needs integers: from one gets , and is an integer when is. So the congruence modulo needs to be an integer, and the congruence modulo needs to be an integer. It fails for the pair , , , : the difference is , so , but . The other half holds for real and that are relatively prime in the sense above. Let and . Then
so . For integers this is a second proof of Exercise 1.2.4-18.
Summary. Law C holds for all reals. Law A holds for sums and differences for all reals and for products when the numbers that multiply the differences are integers. Law B holds for real , , that are relatively prime in the sense of an integer combination, if and are integers. Law D holds in one direction for real moduli that are relatively prime in that sense, and in the other direction when the other modulus is an integer.
Remarks
A computer run with fractions of denominators , , , , and random multiples of the modulus found no counterexample to the product rule with integer and , to Law B with the integer combination condition, or to the second half of Law D with that condition. The three counterexamples above are exact. The case of integers is Exercises 1.2.4-17 to 1.2.4-20. The book's answer is shorter: it names only the laws that need no extra condition, Law A for sums and differences and Law C.
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.