src/HOL/Tools/Nitpick/nitpick_hol.ML
changeset 47108 2a1953f0d20d
parent 46819 9b38f8527510
child 47109 db5026631799
--- a/src/HOL/Tools/Nitpick/nitpick_hol.ML	Sat Mar 24 16:27:04 2012 +0100
+++ b/src/HOL/Tools/Nitpick/nitpick_hol.ML	Sun Mar 25 20:15:39 2012 +0200
@@ -1638,11 +1638,11 @@
   let
     fun do_term depth Ts t =
       case t of
-        (t0 as Const (@{const_name Int.number_class.number_of},
+        (t0 as Const (@{const_name Num.numeral_class.numeral},
                       Type (@{type_name fun}, [_, ran_T]))) $ t1 =>
         ((if is_number_type ctxt ran_T then
             let
-              val j = t1 |> HOLogic.dest_numeral
+              val j = t1 |> HOLogic.dest_num
                          |> ran_T = nat_T ? Integer.max 0
               val s = numeral_prefix ^ signed_string_of_int j
             in