merged
authorhaftmann
Sun, 22 Feb 2009 16:48:36 +0100
changeset 30055 7dc7b029b878
parent 30054 36d7d337510e (current diff)
parent 30053 044308b4948a (diff)
child 30057 bf6b35c5c0fc
child 30058 f84c2412e870
merged
--- a/src/HOL/Divides.thy	Sun Feb 22 16:48:11 2009 +0100
+++ b/src/HOL/Divides.thy	Sun Feb 22 16:48:36 2009 +0100
@@ -178,6 +178,12 @@
 lemma dvd_div_mult_self: "a dvd b \<Longrightarrow> (b div a) * a = b"
 by (subst (2) mod_div_equality [of b a, symmetric]) (simp add:dvd_imp_mod_0)
 
+lemma dvd_div_mult: "a dvd b \<Longrightarrow> (b div a) * c = b * c div a"
+apply (cases "a = 0")
+ apply simp
+apply (auto simp: dvd_def mult_assoc)
+done
+
 lemma div_dvd_div[simp]:
   "a dvd b \<Longrightarrow> a dvd c \<Longrightarrow> (b div a dvd c div a) = (b dvd c)"
 apply (cases "a = 0")