bump up Nitpick's axiom/definition unfolding limits, because some real-world problems (e.g. from Boogie) ran into the previous limits;
authorblanchet
Tue, 17 Nov 2009 23:47:57 +0100
changeset 33747 3aa6b9911252
parent 33746 6c6ce0757bfe
child 33748 dd5513734567
bump up Nitpick's axiom/definition unfolding limits, because some real-world problems (e.g. from Boogie) ran into the previous limits; the limits are there to prevent infinite recursion; they can be set arbitrarily high without much harm
src/HOL/Nitpick.thy
src/HOL/Tools/Nitpick/nitpick_hol.ML
--- a/src/HOL/Nitpick.thy	Tue Nov 17 22:51:00 2009 +0100
+++ b/src/HOL/Nitpick.thy	Tue Nov 17 23:47:57 2009 +0100
@@ -213,7 +213,7 @@
 (* While Nitpick normally avoids to unfold definitions for locales, it
    unfortunately needs to unfold them when dealing with the following built-in
    constants. A cleaner approach would be to change "Nitpick_HOL" and
-   "Nitpick_Nits" so that they handle the unexpanded overloaded constants
+   "Nitpick_Nut" so that they handle the unexpanded overloaded constants
    directly, but this is slightly more tricky to implement. *)
 lemmas [nitpick_def] = div_int_inst.div_int div_int_inst.mod_int
     div_nat_inst.div_nat div_nat_inst.mod_nat lower_semilattice_fun_inst.inf_fun
--- a/src/HOL/Tools/Nitpick/nitpick_hol.ML	Tue Nov 17 22:51:00 2009 +0100
+++ b/src/HOL/Tools/Nitpick/nitpick_hol.ML	Tue Nov 17 23:47:57 2009 +0100
@@ -1416,8 +1416,8 @@
     SOME t' => is_constr_pattern_lhs thy t'
   | NONE => false
 
-val unfold_max_depth = 63
-val axioms_max_depth = 63
+val unfold_max_depth = 255
+val axioms_max_depth = 255
 
 (* extended_context -> term -> term *)
 fun unfold_defs_in_term (ext_ctxt as {thy, destroy_constrs, fast_descrs,