Equality modulo an element #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines equality modulo an element in a commutative group.
Main definitions #
a ≡ b [PMOD p]:aandbare congruent modulo ap.
See also #
smodeq is a generalisation to arbitrary submodules.
TODO #
Delete int.modeq in favour of add_comm_group.modeq. Generalise smodeq to add_subgroup and
redefine add_comm_group.modeq using it. Once this is done, we can rename add_comm_group.modeq
to add_subgroup.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.to_interval_mod), b does not lie in the open interval
(a, a + p) modulo p, or to_Ico_mod hp a disagrees with to_Ioc_mod hp a at b, or
to_Ico_div hp a disagrees with to_Ioc_div hp a at b.
Instances for add_comm_group.modeq
Alias of the forward direction of add_comm_group.modeq_comm.
Alias of the reverse direction of add_comm_group.neg_modeq_neg.
Alias of the forward direction of add_comm_group.neg_modeq_neg.
Alias of the forward direction of add_comm_group.modeq_neg.
Alias of the reverse direction of add_comm_group.modeq_neg.
Alias of the forward direction of add_comm_group.zsmul_modeq_zsmul.
Alias of the forward direction of add_comm_group.nsmul_modeq_nsmul.