author | huffman |
Tue, 12 Jun 2007 23:14:29 +0200 | |
changeset 23347 | 7bb5dc641158 |
parent 23346 | 1517207ec8b9 |
child 23348 | 86e372940544 |
src/HOL/Nat.thy | file | annotate | diff | comparison | revisions |
--- a/src/HOL/Nat.thy Tue Jun 12 21:59:40 2007 +0200 +++ b/src/HOL/Nat.thy Tue Jun 12 23:14:29 2007 +0200 @@ -1368,6 +1368,9 @@ lemma of_nat_eq_0_iff [simp]: "(of_nat m = (0::'a::semiring_char_0)) = (m = 0)" by (rule of_nat_eq_iff [of _ 0, simplified]) +lemma inj_of_nat: "inj (of_nat :: nat \<Rightarrow> 'a::semiring_char_0)" + by (simp add: inj_on_def) + lemma of_nat_diff [simp]: "n \<le> m ==> of_nat (m - n) = of_nat m - (of_nat n :: 'a::ring_1)" by (simp del: of_nat_add