Remainder families
هذه الصفحة غير مترجمة بعدُ إلى العربية، لذلك تُعرض باللغة English.
ساعد في الترجمة →السؤال
Sort every integer — positive, negative and zero — into families by its remainder after dividing by 3. If you add a member of one family to a member of another, does the family of the answer depend on which members you chose?
جرّب التجربة قبل متابعة القراءة. لا توجد طريقة خاطئة للاستكشاف.
التجربة
عائلات البواقي
لوّن كل عدد صحيح حسب باقي قسمته على k. كل عدد صحيح يقع في عائلة واحدة بالضبط.
- [0]{ …, −15, −12, −9, −6, −3, 0, … }
- [1]{ …, −14, −11, −8, −5, −2, 1, … }
- [2]{ …, −13, −10, −7, −4, −1, 2, … }
أضف عضوًا من عائلة إلى عضو من عائلة أخرى…
تلميحات، إن أردتها
ما الذي يحدث
ما الذي يحدث
Dividing by splits the integers into exactly families — the integers with remainder , with remainder , …, with remainder . Every integer belongs to exactly one family. A splitting like this, into non-overlapping pieces that together cover everything, is called a partition.
The rule "same remainder" has three properties:
- every integer is related to itself (reflexive);
- if is related to , then is related to (symmetric);
- if is related to and to , then is related to (transitive).
A relation with these properties is an equivalence relation, and its families are called equivalence classes. Every equivalence relation gives a partition, and every partition comes from one.
/-- Congruence modulo `k` is an **equivalence relation** (reflexive, symmetric, transitive).
Its equivalence classes are the "hours" on a `k`-hour clock. -/
theorem modEq_equivalence (k : Int) : Equivalence (ModEq k) :=
⟨modEq_refl k, modEq_symm, modEq_trans⟩Now the surprise from the experiment. If and , then . Why? Because and are multiples of , so their sum is too. The family of a sum depends only on the families. The same is true for products.
That means we can add and multiply the families themselves. The families become the elements of a new number system, written — a quotient of . Building new structures by "gluing together" equivalent elements, and checking that the operations are well defined, is one of the most-used constructions in all of algebra.
/-- You may reduce before or after adding: `(a mod k + b mod k) mod k = (a + b) mod k`.
This applies core Lean's `Nat.add_mod`. -/
theorem mod_add_mod (a b k : Nat) : (a % k + b % k) % k = (a + b) % k :=
(Nat.add_mod a b k).symmتشبيه، وليس بناءً صوريًا: Colouring is a picture of the partition; the mathematical object is the set of residue classes itself.
إلى أين يقود هذا
- الصفوف 6–8 · مُخطَّط لهRelations, equivalence relations and partitionsRelations as sets of ordered pairs, and the special relations (reflexive, symmetric and transitive) that sort a set into non-overlapping classes. 'Same remainder', 'same colour' and 'same shape' are first examples.
- بداية المرحلة الجامعية · مُخطَّط لهCongruencesCongruence modulo n as an equivalence relation compatible with addition and multiplication; linear congruences, inverses modulo n, the Chinese remainder theorem, and the theorems of Fermat, Euler and Wilson.
- المرحلة الجامعية المتقدمة · مُخطَّط لهQuotient groups and quotient ringsCollapsing a group by a normal subgroup or a ring by an ideal: cosets as elements, well-defined operations, the isomorphism theorems, ℤ/nℤ as ℤ modulo nℤ, and fields built as quotients of polynomial rings.