src/HOL/IntDiv.thy
changeset 23401 8c5532263ba9
parent 23365 f31794033ae1
child 23431 25ca91279a9b
--- a/src/HOL/IntDiv.thy	Sat Jun 16 15:01:54 2007 +0200
+++ b/src/HOL/IntDiv.thy	Sat Jun 16 16:27:35 2007 +0200
@@ -834,11 +834,16 @@
 apply (auto simp add: linorder_neq_iff zdiv_zmult_zmult1_aux1 zdiv_zmult_zmult1_aux2)
 done
 
+lemma zdiv_zmult_zmult1_if[simp]:
+  "(k*m) div (k*n) = (if k = (0::int) then 0 else m div n)"
+by (simp add:zdiv_zmult_zmult1)
+
+(*
 lemma zdiv_zmult_zmult2: "c \<noteq> (0::int) ==> (a*c) div (b*c) = a div b"
 apply (drule zdiv_zmult_zmult1)
 apply (auto simp add: mult_commute)
 done
-
+*)
 
 
 subsection{*Distribution of Factors over mod*}