src/HOL/Tools/Nitpick/nitpick_nut.ML
changeset 38171 5f2ea92319e0
parent 38170 d74b66ec02ce
child 38190 b02e204b613a
--- a/src/HOL/Tools/Nitpick/nitpick_nut.ML	Tue Aug 03 02:18:05 2010 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick_nut.ML	Tue Aug 03 12:16:32 2010 +0200
@@ -746,8 +746,7 @@
   (not (is_fun_type (type_of u)) andalso not (is_opt_rep (rep_of u))) orelse
   case u of
     Cst (Num _, _, _) => true
-  | Cst (cst, T, _) =>
-    cst = Suc orelse (body_type T = nat_T andalso cst = Add)
+  | Cst (cst, T, _) => body_type T = nat_T andalso (cst = Suc orelse cst = Add)
   | Op2 (Apply, _, _, u1, u2) => forall is_constructive [u1, u2]
   | Op3 (If, _, _, u1, u2, u3) =>
     not (is_opt_rep (rep_of u1)) andalso forall is_constructive [u2, u3]