Added skip_mono flag to inductive definition package.
authorberghofe
Thu, 03 Apr 2008 17:55:12 +0200
changeset 26535 66bca8a4079c
parent 26534 a2cb4de2a1aa
child 26536 e13479aa1d5d
Added skip_mono flag to inductive definition package.
src/HOL/Tools/function_package/inductive_wrap.ML
src/HOL/Tools/inductive_realizer.ML
--- a/src/HOL/Tools/function_package/inductive_wrap.ML	Thu Apr 03 17:54:19 2008 +0200
+++ b/src/HOL/Tools/function_package/inductive_wrap.ML	Thu Apr 03 17:55:12 2008 +0200
@@ -47,7 +47,8 @@
               alt_name = "",
               coind = false,
               no_elim = false,
-              no_ind = false}
+              no_ind = false,
+              skip_mono = true}
             [((R, T), NoSyn)] (* the relation *)
             [] (* no parameters *)
             (map (fn t => (("", []), t)) defs) (* the intros *)
--- a/src/HOL/Tools/inductive_realizer.ML	Thu Apr 03 17:54:19 2008 +0200
+++ b/src/HOL/Tools/inductive_realizer.ML	Thu Apr 03 17:55:12 2008 +0200
@@ -351,7 +351,7 @@
     val (ind_info, thy3') = thy2 |>
       InductivePackage.add_inductive_global (serial_string ())
         {quiet_mode = false, verbose = false, kind = Thm.theoremK, alt_name = "",
-          coind = false, no_elim = false, no_ind = false}
+          coind = false, no_elim = false, no_ind = false, skip_mono = false}
         rlzpreds rlzparams (map (fn (rintr, intr) =>
           ((Sign.base_name (name_of_thm intr), []),
            subst_atomic rlzpreds' (Logic.unvarify rintr)))