Equality modulo an element #
This file defines equality modulo an element in a commutative group.
Main definitions #
a ≡ b [PMOD p]
:a
andb
are congruent modulo ap
.
See also #
SModEq
is a generalisation to arbitrary submodules.
TODO #
Delete Int.ModEq
in favour of AddCommGroup.ModEq
. Generalise SModEq
to AddSubgroup
and
redefine AddCommGroup.ModEq
using it. Once this is done, we can rename AddCommGroup.ModEq
to AddSubgroup.ModEq
and multiplicativise it. Longer term, we could generalise to submonoids and
also unify with Nat.ModEq
.
a ≡ b [PMOD p]
means that b
is congruent to a
modulo p
.
Equivalently (as shown in Algebra.Order.ToIntervalMod
), b
does not lie in the open interval
(a, a + p)
modulo p
, or toIcoMod hp a
disagrees with toIocMod hp a
at b
, or
toIcoDiv hp a
disagrees with toIocDiv hp a
at b
.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of the forward direction of AddCommGroup.modEq_comm
.
Alias of the forward direction of AddCommGroup.neg_modEq_neg
.
Alias of the reverse direction of AddCommGroup.neg_modEq_neg
.
Alias of the forward direction of AddCommGroup.modEq_neg
.
Alias of the reverse direction of AddCommGroup.modEq_neg
.
Alias of the forward direction of AddCommGroup.zsmul_modEq_zsmul
.
Alias of the forward direction of AddCommGroup.nsmul_modEq_nsmul
.
Alias of the forward direction of AddCommGroup.int_cast_modEq_int_cast
.
Alias of the reverse direction of AddCommGroup.int_cast_modEq_int_cast
.
Alias of the reverse direction of AddCommGroup.nat_cast_modEq_nat_cast
.
Alias of the forward direction of AddCommGroup.nat_cast_modEq_nat_cast
.