Reducing to an interval modulo its length #
This file defines operations that reduce a number (in an Archimedean
LinearOrderedAddCommGroup) to a number in a given interval, modulo the length of that
interval.
Main definitions #
toIcoDiv hp a b(wherehp : 0 < p): The unique integer such that this multiple ofp, subtracted fromb, is inIco a (a + p).toIcoMod hp a b(wherehp : 0 < p): Reducebto the intervalIco a (a + p).toIocDiv hp a b(wherehp : 0 < p): The unique integer such that this multiple ofp, subtracted fromb, is inIoc a (a + p).toIocMod hp a b(wherehp : 0 < p): Reducebto the intervalIoc a (a + p).
The unique integer such that this multiple of p, subtracted from b, is in Ico a (a + p).
Equations
Instances For
Alias of the reverse direction of toIcoDiv_eq_iff.
The unique integer such that this multiple of p, subtracted from b, is in Ioc a (a + p).
Equations
Instances For
Alias of the reverse direction of toIocDiv_eq_iff.
Reduce b to the interval Ico a (a + p).
Equations
Instances For
Reduce b to the interval Ioc a (a + p).
Equations
Instances For
Note we omit toIcoDiv_zsmul_add' as -m + toIcoDiv hp a b is not very convenient.
Note we omit toIocDiv_zsmul_add' as -m + toIocDiv hp a b is not very convenient.
Links between the Ico and Ioc variants applied to the same element #
Alias of the forward direction of AddCommGroup.modEq_iff_toIcoMod_eq_left.
Alias of the forward direction of AddCommGroup.modEq_iff_toIocMod_eq_right.
If a and b fall within the same cycle w.r.t. c, then they are congruent modulo p.
Alias of the reverse direction of toIcoMod_inj.
If a and b fall within the same cycle w.r.t. c, then they are congruent modulo p.
toIcoMod as an equiv from the quotient.
Equations
Instances For
toIocMod as an equiv from the quotient.
Equations
Instances For
The circular order structure on α ⧸ AddSubgroup.zmultiples p #
Equations
Equations
Equations
simp confluence lemmas for rings #
In rings, we simplify (m : ℤ) • x to ↑m * x, so we need to restate some lemmas
using ↑m * x instead of m • x. In some lemmas, m is a variable,
in other lemmas m = toIcoDiv _ _ _ or m = toIocDiv _ _ _.
Note we omit toIcoDiv_intCast_mul_add' as -m + toIcoDiv hp a b is not very convenient.
Note we omit toIocDiv_intCast_mul_add' as -m + toIocDiv hp a b is not very convenient.