Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Mathlib/Algebra/GroupWithZero/Divisibility.lean
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ lemma pow_dvd_pow_iff (ha₀ : a ≠ 0) (ha : ¬IsUnit a) : a ^ n ∣ a ^ m ↔
apply pow_ne_zero m ha₀
· apply pow_dvd_pow

lemma mul_dvd_left_iff_isUnit (ha0 : a ≠ 0) : a * b ∣ a ↔ IsUnit b := by
nth_rw 2 [← mul_one a]
rw [mul_dvd_mul_iff_left ha0]
exact isUnit_iff_dvd_one.symm

lemma mul_dvd_right_iff_isUnit (ha0 : a ≠ 0) : b * a ∣ a ↔ IsUnit b := by
rw [mul_comm]
exact mul_dvd_left_iff_isUnit ha0

end CancelCommMonoidWithZero

section GroupWithZero
Expand Down
Loading