nat type now has a size functin => no longer needed as special case
authorkrauss
Wed, 13 Dec 2006 14:54:07 +0100
changeset 21816 453fd9857b4c
parent 21815 0fba71f35a9c
child 21817 0210a5db2013
nat type now has a size functin => no longer needed as special case
src/HOL/Tools/function_package/lexicographic_order.ML
--- a/src/HOL/Tools/function_package/lexicographic_order.ML	Wed Dec 13 14:52:50 2006 +0100
+++ b/src/HOL/Tools/function_package/lexicographic_order.ML	Wed Dec 13 14:54:07 2006 +0100
@@ -62,9 +62,7 @@
     | _ => [(t, tt)]
            
 fun mk_base_fun_header fulltyp (t, typ) =
-    if typ = HOLogic.natT then
-      Abs ("x", fulltyp, t)
-    else Abs ("x", fulltyp, Const("Nat.size", typ --> HOLogic.natT) $ t)
+    Abs ("x", fulltyp, Const("Nat.size", typ --> HOLogic.natT) $ t)
          
 fun mk_base_funs (tt: typ) = 
     mk_base_fun_bodys (Bound 0) tt |>