src/HOL/Tools/inductive_set.ML
changeset 45375 7fe19930dfc9
parent 45177 189c81779a68
child 45384 dffa657f0aa2
equal deleted inserted replaced
45374:e99fd663c4a3 45375:7fe19930dfc9
   534   end;
   534   end;
   535 
   535 
   536 val add_inductive_i = Inductive.gen_add_inductive_i add_ind_set_def;
   536 val add_inductive_i = Inductive.gen_add_inductive_i add_ind_set_def;
   537 val add_inductive = Inductive.gen_add_inductive add_ind_set_def;
   537 val add_inductive = Inductive.gen_add_inductive add_ind_set_def;
   538 
   538 
   539 val mono_add_att = to_pred_att [] #> Inductive.mono_add;
   539 fun mono_att att =  (* FIXME really mixed_attribute!? *)
   540 val mono_del_att = to_pred_att [] #> Inductive.mono_del;
   540   Thm.mixed_attribute (fn (context, thm) =>
       
   541     let val thm' = to_pred [] context thm
       
   542     in (Thm.attribute_declaration att thm' context, thm') end);
       
   543 
       
   544 val mono_add_att = mono_att Inductive.mono_add;
       
   545 val mono_del_att = mono_att Inductive.mono_del;
   541 
   546 
   542 
   547 
   543 (** package setup **)
   548 (** package setup **)
   544 
   549 
   545 (* setup theory *)
   550 (* setup theory *)