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 modulop
.
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
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
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of the forward direction of AddCommGroup.modEq_comm
.
Equations
- ⋯ = ⋯
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.intCast_modEq_intCast
.
Alias of the reverse direction of AddCommGroup.intCast_modEq_intCast
.
Alias of the forward direction of AddCommGroup.natCast_modEq_natCast
.
Alias of the reverse direction of AddCommGroup.natCast_modEq_natCast
.