Improved efficiency of code generated for < predicate on natural numbers.
authorberghofe
Mon Sep 22 16:01:36 2003 +0200 (2003-09-22)
changeset 14192d6cb80cc1d20
parent 14191 2014eac694d2
child 14193 30e41f63712e
Improved efficiency of code generated for < predicate on natural numbers.
src/HOL/Main.thy
     1.1 --- a/src/HOL/Main.thy	Mon Sep 15 17:15:00 2003 +0200
     1.2 +++ b/src/HOL/Main.thy	Mon Sep 22 16:01:36 2003 +0200
     1.3 @@ -88,6 +88,7 @@
     1.4  setup eq_codegen_setup
     1.5  
     1.6  lemma [code]: "((n::nat) < 0) = False" by simp
     1.7 -lemmas [code] = less_Suc_eq imp_conv_disj
     1.8 +lemma [code]: "(0 < Suc n) = True" by simp
     1.9 +lemmas [code] = Suc_less_eq imp_conv_disj
    1.10  
    1.11  end