Congruences modulo an integer #
This file defines the equivalence relation a ≡ b [ZMOD n] on the integers, similarly to how
Data.Nat.ModEq defines them for the natural numbers. The notation is short for n.ModEq a b,
which is defined to be a % n = b % n for integers a b n.
Tags #
modeq, congruence, mod, MOD, modulo, integers
a ≡ b [ZMOD n] when a % n = b % n.
Instances For
Alias of AddCommGroup.modEq_iff_intModEq.
Alias of the reverse direction of AddCommGroup.intCast_modEq_intCast.
Alias of the forward direction of AddCommGroup.intCast_modEq_intCast.
Alias of the reverse direction of Int.modEq_iff_dvd.
Alias of the forward direction of Int.modEq_iff_dvd.
Cancel left multiplication on both sides of the ≡ and in the modulus.
For cancelling left multiplication in the modulus, see Int.ModEq.of_mul_left.
Cancel right multiplication on both sides of the ≡ and in the modulus.
For cancelling right multiplication in the modulus, see Int.ModEq.of_mul_right.