explicit code equation for integer_of_nat
authorhaftmann
Fri, 15 Feb 2013 08:31:30 +0100
changeset 51142 ac9e909fe55d
parent 51141 cc7423ce6774
child 51143 0a2371e7ced3
explicit code equation for integer_of_nat
src/HOL/Library/Code_Numeral_Types.thy
--- a/src/HOL/Library/Code_Numeral_Types.thy	Fri Feb 15 11:31:59 2013 +0100
+++ b/src/HOL/Library/Code_Numeral_Types.thy	Fri Feb 15 08:31:30 2013 +0100
@@ -111,6 +111,10 @@
   is "of_nat :: nat \<Rightarrow> int"
   .
 
+lemma integer_of_nat_eq_of_nat [code]:
+  "integer_of_nat = of_nat"
+  by transfer rule
+
 lemma int_of_integer_integer_of_nat [simp]:
   "int_of_integer (integer_of_nat n) = of_nat n"
   by transfer rule