Commit 2022-12-05 23:25 f7a138da

View on Github →

feat: port algebra.divisibility.basic (#833) Based off mathlib3 SHA: 70d50ecfd4900dd6d328da39ab7ebd516abe4025 There were a few changes in behavior from Lean 3 to Lean 4:

  • Exists.intro c h -> Exists.intro c h.symm in the proof of Dvd.intro (h : a * c = b no longer unifies with b = a * c?)
  • dvd_refl -> fun {a} => dvd_refl a in the proof of dvd_rfl (a | a no longer unifies with ∀ {a : α}, a ∣ a?)

Estimated changes

added theorem Dvd.elim
added theorem Dvd.elim_left
added theorem Dvd.intro
added theorem Dvd.intro_left
added theorem MonoidHom.map_dvd
added theorem MulHom.map_dvd
added theorem dvd_mul_left
added theorem dvd_mul_of_dvd_left
added theorem dvd_mul_of_dvd_right
added theorem dvd_mul_right
added theorem dvd_of_mul_left_dvd
added theorem dvd_of_mul_right_dvd
added theorem dvd_refl
added theorem dvd_rfl
added theorem dvd_trans
added theorem map_dvd
added theorem mul_dvd_mul
added theorem mul_dvd_mul_left
added theorem mul_dvd_mul_right
added theorem one_dvd
added theorem pow_dvd_pow_of_dvd