Mathlib.Algebra.GroupWithZero.Divisibility
25 declarations. Mathlib docs · Source
theorem zero_dvd_iff E0 #
∀ {α : Type u_1} [inst : SemigroupWithZero α] {a : α}, 0 ∣ a ↔ a = 0
Given an element a of a commutative semigroup with zero, there exists another element whose
product with zero equals a iff a equals zero.
theorem dvd_zero E0 #
∀ {α : Type u_1} [inst : SemigroupWithZero α] (a : α), a ∣ 0
theorem mul_dvd_mul_iff_left E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [IsLeftCancelMulZero α] {a b c : α}, a ≠ 0 → (a * b ∣ a * c ↔ b ∣ c)
Given two elements b, c of a cancellative MonoidWithZero and a nonzero element a,
a*b divides a*c iff b divides c.
theorem mul_dvd_mul_iff_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b c : α}, c ≠ 0 → (a * c ∣ b * c ↔ a ∣ b)
Given two elements a, b of a commutative cancellative MonoidWithZero and a nonzero
element c, a*c divides b*c iff a divides b.
def DvdNotUnit E1 #
{α : Type u_1} → [CommMonoidWithZero α] → α → α → Prop
DvdNotUnit a b expresses that a divides b "strictly", i.e. that b divided by a
is not a unit.
theorem dvdNotUnit_of_dvd_of_not_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] {a b : α}, a ∣ b → ¬b ∣ a → DvdNotUnit a b
theorem isRelPrime_zero_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] {x : α}, IsRelPrime 0 x ↔ IsUnit x
theorem isRelPrime_zero_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] {x : α}, IsRelPrime x 0 ↔ IsUnit x
theorem not_isRelPrime_zero_zero E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [Nontrivial α], ¬IsRelPrime 0 0
theorem IsRelPrime.ne_zero_or_ne_zero E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] {x y : α} [Nontrivial α], IsRelPrime x y → x ≠ 0 ∨ y ≠ 0
theorem isRelPrime_of_no_nonunits_factors E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] {x y : α},
¬(x = 0 ∧ y = 0) → (∀ (z : α), ¬IsUnit z → z ≠ 0 → z ∣ x → ¬z ∣ y) → IsRelPrime x y
theorem dvd_and_not_dvd_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {x y : α}, x ∣ y ∧ ¬y ∣ x ↔ DvdNotUnit x y
theorem ne_zero_of_dvd_ne_zero E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] {p q : α}, q ≠ 0 → p ∣ q → p ≠ 0
theorem isPrimal_zero E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α], IsPrimal 0
theorem IsPrimal.mul E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {m n : α}, IsPrimal m → IsPrimal n → IsPrimal (m * n)
theorem dvd_antisymm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α} [Subsingleton αˣ], a ∣ b → b ∣ a → a = b
theorem dvd_antisymm' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α} [Subsingleton αˣ], a ∣ b → b ∣ a → b = a
theorem Dvd.dvd.antisymm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α} [Subsingleton αˣ], a ∣ b → b ∣ a → a = b
Alias of dvd_antisymm.
theorem Dvd.dvd.antisymm' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α} [Subsingleton αˣ], a ∣ b → b ∣ a → b = a
Alias of dvd_antisymm'.
instance instIsPartialOrderDvd E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] [Subsingleton αˣ],
IsPartialOrder α fun x1 x2 ↦ x1 ∣ x2
instance instIsPartialOrderRightDvd E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] [Subsingleton αˣ], IsPartialOrder α RightDvd
theorem pow_dvd_pow_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a : α} {m n : ℕ},
a ≠ 0 → ¬IsUnit a → (a ^ n ∣ a ^ m ↔ n ≤ m)
theorem mul_dvd_left_iff_isUnit E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α}, a ≠ 0 → (a * b ∣ a ↔ IsUnit b)
theorem mul_dvd_right_iff_isUnit E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [IsCancelMulZero α] {a b : α}, a ≠ 0 → (b * a ∣ a ↔ IsUnit b)
theorem GroupWithZero.dvd_iff E0 #
∀ {α : Type u_1} [inst : GroupWithZero α] {m n : α}, m ∣ n ↔ m = 0 → n = 0
∣ is not a useful definition if an inverse is available.