rename equals_zero_I to minus_unique (keep old name too)
authorhuffman
Fri, 18 Dec 2009 19:00:11 -0800
changeset 34146 14595e0c27e8
parent 34145 402b7c74799d
child 34147 319616f4eecf
rename equals_zero_I to minus_unique (keep old name too)
src/HOL/Library/FrechetDeriv.thy
src/HOL/NSA/NSA.thy
src/HOL/NSA/NSComplex.thy
src/HOL/OrderedGroup.thy
src/HOL/Ring_and_Field.thy
--- a/src/HOL/Library/FrechetDeriv.thy	Fri Dec 18 18:48:27 2009 -0800
+++ b/src/HOL/Library/FrechetDeriv.thy	Fri Dec 18 19:00:11 2009 -0800
@@ -438,7 +438,7 @@
     hence 2: "x + h \<noteq> 0"
       apply (rule contrapos_nn)
       apply (rule sym)
-      apply (erule equals_zero_I)
+      apply (erule minus_unique)
       done
     show "norm (?inv (x + h) - ?inv x - - (?inv x * h * ?inv x)) / norm h
           = norm ((?inv (x + h) - ?inv x) * h * ?inv x) / norm h"
--- a/src/HOL/NSA/NSA.thy	Fri Dec 18 18:48:27 2009 -0800
+++ b/src/HOL/NSA/NSA.thy	Fri Dec 18 19:00:11 2009 -0800
@@ -1711,7 +1711,7 @@
 lemma Infinitesimal_add_not_zero:
      "[| h \<in> Infinitesimal; x \<noteq> 0 |] ==> star_of x + h \<noteq> 0"
 apply auto
-apply (subgoal_tac "h = - star_of x", auto intro: equals_zero_I [symmetric])
+apply (subgoal_tac "h = - star_of x", auto intro: minus_unique [symmetric])
 done
 
 lemma Infinitesimal_square_cancel [simp]:
--- a/src/HOL/NSA/NSComplex.thy	Fri Dec 18 18:48:27 2009 -0800
+++ b/src/HOL/NSA/NSComplex.thy	Fri Dec 18 19:00:11 2009 -0800
@@ -161,7 +161,7 @@
 
 lemma hcomplex_add_minus_eq_minus:
       "x + y = (0::hcomplex) ==> x = -y"
-apply (drule OrderedGroup.equals_zero_I)
+apply (drule OrderedGroup.minus_unique)
 apply (simp add: minus_equation_iff [of x y])
 done
 
--- a/src/HOL/OrderedGroup.thy	Fri Dec 18 18:48:27 2009 -0800
+++ b/src/HOL/OrderedGroup.thy	Fri Dec 18 19:00:11 2009 -0800
@@ -193,7 +193,7 @@
   assume "a = b" thus "a - b = 0" by (simp add: diff_minus)
 qed
 
-lemma equals_zero_I:
+lemma minus_unique:
   assumes "a + b = 0" shows "- a = b"
 proof -
   have "- a = - a + (a + b)" using assms by simp
@@ -201,6 +201,8 @@
   finally show ?thesis .
 qed
 
+lemmas equals_zero_I = minus_unique (* legacy name *)
+
 lemma diff_self [simp]: "a - a = 0"
 by (simp add: diff_minus)
 
@@ -291,7 +293,7 @@
 
 lemma minus_add_distrib [simp]:
   "- (a + b) = - a + - b"
-by (rule equals_zero_I) (simp add: add_ac)
+by (rule minus_unique) (simp add: add_ac)
 
 lemma minus_diff_eq [simp]:
   "- (a - b) = b - a"
--- a/src/HOL/Ring_and_Field.thy	Fri Dec 18 18:48:27 2009 -0800
+++ b/src/HOL/Ring_and_Field.thy	Fri Dec 18 19:00:11 2009 -0800
@@ -228,10 +228,10 @@
 text {* Distribution rules *}
 
 lemma minus_mult_left: "- (a * b) = - a * b"
-by (rule equals_zero_I) (simp add: left_distrib [symmetric]) 
+by (rule minus_unique) (simp add: left_distrib [symmetric]) 
 
 lemma minus_mult_right: "- (a * b) = a * - b"
-by (rule equals_zero_I) (simp add: right_distrib [symmetric]) 
+by (rule minus_unique) (simp add: right_distrib [symmetric]) 
 
 text{*Extract signs from products*}
 lemmas mult_minus_left [simp, noatp] = minus_mult_left [symmetric]