src/HOL/Tools/Nitpick/nitpick.ML
changeset 47716 dc9c8ce4aac5
parent 47715 04400144c6fc
child 47745 de249b5ae6e2
child 47752 0814fc93ab89
--- a/src/HOL/Tools/Nitpick/nitpick.ML	Tue Apr 24 09:47:40 2012 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick.ML	Tue Apr 24 09:47:40 2012 +0200
@@ -383,7 +383,9 @@
        (not (is_pure_typedef ctxt T) orelse is_univ_typedef ctxt T)) orelse
       is_number_type ctxt T orelse is_bit_type T
     fun is_type_actually_monotonic T =
-      formulas_monotonic hol_ctxt binarize T (nondef_ts, def_ts)
+      time_limit tac_timeout (formulas_monotonic hol_ctxt binarize T)
+                 (nondef_ts, def_ts)
+      handle TimeLimit.TimeOut => false
     fun is_type_kind_of_monotonic T =
       case triple_lookup (type_match thy) monos T of
         SOME (SOME false) => false