Declared characteristic equations for < on nat for code generation.
authorberghofe
Thu, 20 Dec 2001 14:55:28 +0100
changeset 12554 671b4d632c34
parent 12553 90ac72455fcc
child 12555 e6d7f040fdc7
Declared characteristic equations for < on nat for code generation.
src/HOL/Main.thy
--- a/src/HOL/Main.thy	Wed Dec 19 13:21:12 2001 +0100
+++ b/src/HOL/Main.thy	Thu Dec 20 14:55:28 2001 +0100
@@ -116,4 +116,7 @@
   "Nil"     ("[]")
   "Cons"    ("(_ ::/ _)")
 
+lemma [code]: "((n::nat) < 0) = False" by simp
+declare less_Suc_eq [code]
+
 end