Mathlib.Algebra.Divisibility.Units
50 declarations and 1 deprecated aliases. Mathlib docs · Source
Divisibility and units
Main definition
IsRelPrime x y: thatxandyare relatively prime, defined to mean that the only common divisors ofxandyare the units.
IsRelPrime enjoys desirable properties in a decomposition monoid.
See Lemma 6.3 in On properties of square-free elements in commutative cancellative monoids,
https://doi.org/10.1007/s00233-019-10022-3.
theorem Units.coe_dvd E0 #
∀ {α : Type u_1} [inst : Monoid α] {a : α} {u : αˣ}, ↑u ∣ a
Elements of the unit group of a monoid represented as elements of the monoid divide any element of the monoid.
theorem Units.dvd_mul_right E1 #
∀ {α : Type u_1} [inst : Monoid α] {a b : α} {u : αˣ}, a ∣ b * ↑u ↔ a ∣ b
In a monoid, an element a divides an element b iff a divides all associates of b.
theorem Units.mul_right_dvd E1 #
∀ {α : Type u_1} [inst : Monoid α] {a b : α} {u : αˣ}, a * ↑u ∣ b ↔ a ∣ b
In a monoid, an element a divides an element b iff all associates of a divide b.
theorem Units.dvd_mul_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {a b : α} {u : αˣ}, a ∣ ↑u * b ↔ a ∣ b
In a commutative monoid, an element a divides an element b iff a divides all left
associates of b.
theorem Units.mul_left_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {a b : α} {u : αˣ}, ↑u * a ∣ b ↔ a ∣ b
In a commutative monoid, an element a divides an element b iff all
left associates of a divide b.
theorem IsUnit.dvd E0 #
∀ {α : Type u_1} [inst : Monoid α] {a u : α}, IsUnit u → u ∣ a
Units of a monoid divide any element of the monoid.
theorem IsUnit.dvd_mul_right E0 #
∀ {α : Type u_1} [inst : Monoid α] {a b u : α}, IsUnit u → (a ∣ b * u ↔ a ∣ b)
theorem IsUnit.mul_right_dvd E0 #
∀ {α : Type u_1} [inst : Monoid α] {a b u : α}, IsUnit u → (a * u ∣ b ↔ a ∣ b)
In a monoid, an element a divides an element b iff all associates of a divide b.
theorem IsUnit.isPrimal E1 #
∀ {α : Type u_1} [inst : Monoid α] {u : α}, IsUnit u → IsPrimal u
theorem IsUnit.dvd_mul_left E0 #
∀ {α : Type u_1} [inst : CommMonoid α] {a b u : α}, IsUnit u → (a ∣ u * b ↔ a ∣ b)
In a commutative monoid, an element a divides an element b iff a divides all left
associates of b.
theorem IsUnit.mul_left_dvd E0 #
∀ {α : Type u_1} [inst : CommMonoid α] {a b u : α}, IsUnit u → (u * a ∣ b ↔ a ∣ b)
In a commutative monoid, an element a divides an element b iff all
left associates of a divide b.
theorem isUnit_iff_dvd_one E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α}, IsUnit x ↔ x ∣ 1
theorem isUnit_iff_forall_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α}, IsUnit x ↔ ∀ (y : α), x ∣ y
theorem isUnit_of_dvd_unit E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, x ∣ y → IsUnit y → IsUnit x
theorem isUnit_of_dvd_one E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {a : α}, a ∣ 1 → IsUnit a
theorem not_isUnit_of_not_isUnit_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {a b : α}, ¬IsUnit a → a ∣ b → ¬IsUnit b
theorem dvd_pow_self_iff E0 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α} {n : ℕ}, x ∣ x ^ n ↔ n ≠ 0 ∨ IsUnit x
def IsRelPrime E1 #
{α : Type u_1} → [Monoid α] → α → α → Prop
x and y are relatively prime if every common divisor is a unit.
theorem IsRelPrime.symm E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, IsRelPrime x y → IsRelPrime y x
instance symm_isRelPrime E0 #
∀ {α : Type u_1} [inst : CommMonoid α], Std.Symm IsRelPrime
theorem isRelPrime_comm E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, IsRelPrime x y ↔ IsRelPrime y x
theorem isRelPrime_self E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α}, IsRelPrime x x ↔ IsUnit x
theorem IsUnit.isRelPrime_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, IsUnit x → IsRelPrime x y
theorem IsUnit.isRelPrime_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, IsUnit y → IsRelPrime x y
theorem isRelPrime_one_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α}, IsRelPrime 1 x
theorem isRelPrime_one_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x : α}, IsRelPrime x 1
theorem IsRelPrime.of_mul_left_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime (x * y) z → IsRelPrime x z
theorem IsRelPrime.of_mul_left_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime (x * y) z → IsRelPrime y z
theorem IsRelPrime.of_mul_right_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x (y * z) → IsRelPrime x y
theorem IsRelPrime.of_mul_right_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x (y * z) → IsRelPrime x z
theorem IsRelPrime.of_dvd_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime y z → x ∣ y → IsRelPrime x z
theorem IsRelPrime.of_dvd_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime z y → x ∣ y → IsRelPrime z x
theorem IsRelPrime.isUnit_of_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y : α}, IsRelPrime x y → x ∣ y → IsUnit x
theorem isRelPrime_mul_unit_left_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime (x * y) z ↔ IsRelPrime y z)
theorem isRelPrime_mul_unit_left_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime y (x * z) ↔ IsRelPrime y z)
theorem isRelPrime_mul_unit_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime (x * y) (x * z) ↔ IsRelPrime y z)
theorem isRelPrime_mul_unit_right_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime (y * x) z ↔ IsRelPrime y z)
theorem isRelPrime_mul_unit_right_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime y (z * x) ↔ IsRelPrime y z)
theorem isRelPrime_mul_unit_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsUnit x → (IsRelPrime (y * x) (z * x) ↔ IsRelPrime y z)
theorem IsRelPrime.dvd_of_dvd_mul_right_of_isPrimal E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x z → x ∣ y * z → IsPrimal x → x ∣ y
theorem IsRelPrime.dvd_of_dvd_mul_left_of_isPrimal E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x y → x ∣ y * z → IsPrimal x → x ∣ z
theorem IsRelPrime.mul_dvd_of_right_isPrimal E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x y → x ∣ z → y ∣ z → IsPrimal y → x * y ∣ z
theorem IsRelPrime.mul_dvd_of_left_isPrimal E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α}, IsRelPrime x y → x ∣ z → y ∣ z → IsPrimal x → x * y ∣ z
theorem IsRelPrime.dvd_of_dvd_mul_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α], IsRelPrime x z → x ∣ y * z → x ∣ y
theorem IsRelPrime.dvd_of_dvd_mul_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α], IsRelPrime x y → x ∣ y * z → x ∣ z
theorem IsRelPrime.mul_left E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α],
IsRelPrime x z → IsRelPrime y z → IsRelPrime (x * y) z
theorem IsRelPrime.mul_right E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α],
IsRelPrime x y → IsRelPrime x z → IsRelPrime x (y * z)
theorem IsRelPrime.mul_left_iff E0 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α],
IsRelPrime (x * y) z ↔ IsRelPrime x z ∧ IsRelPrime y z
theorem IsRelPrime.mul_right_iff E0 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α],
IsRelPrime x (y * z) ↔ IsRelPrime x y ∧ IsRelPrime x z
theorem IsRelPrime.mul_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoid α] {x y z : α} [DecompositionMonoid α], IsRelPrime x y → x ∣ z → y ∣ z → x * y ∣ z
Deprecated aliases
| Name | New name | Since |
|---|---|---|
symmetric_isRelPrime | symm_isRelPrime | 2026-06-10 |