Congruences modulo a natural number #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines the equivalence relation a ≡ b [MOD n] on the natural numbers,
and proves basic properties about it such as the Chinese Remainder Theorem
modeq_and_modeq_iff_modeq_mul.
Notations #
a ≡ b [MOD n] is notation for nat.modeq n a b, which is defined to mean a % n = b % n.
Tags #
modeq, congruence, mod, MOD, modulo
The natural number less than n*m congruent to a mod n and b mod m
Equations
- nat.chinese_remainder co a b = nat.chinese_remainder' _