src/HOL/Tools/inductive_package.ML
changeset 10743 8ea821d1e3a4
parent 10735 dfaf75f0076f
child 10804 306aee77eadd
equal deleted inserted replaced
10742:d27b0022b997 10743:8ea821d1e3a4
   533 fun mk_cases_meth (ctxt, raw_props) =
   533 fun mk_cases_meth (ctxt, raw_props) =
   534   let
   534   let
   535     val thy = ProofContext.theory_of ctxt;
   535     val thy = ProofContext.theory_of ctxt;
   536     val ss = Simplifier.get_local_simpset ctxt;
   536     val ss = Simplifier.get_local_simpset ctxt;
   537     val cprops = map (Thm.cterm_of (Theory.sign_of thy) o ProofContext.read_prop ctxt) raw_props;
   537     val cprops = map (Thm.cterm_of (Theory.sign_of thy) o ProofContext.read_prop ctxt) raw_props;
   538   in Method.erule (map (smart_mk_cases thy ss) cprops) end;
   538   in Method.erule 0 (map (smart_mk_cases thy ss) cprops) end;
   539 
   539 
   540 val mk_cases_args = Method.syntax (Scan.lift (Scan.repeat1 Args.name));
   540 val mk_cases_args = Method.syntax (Scan.lift (Scan.repeat1 Args.name));
   541 
   541 
   542 
   542 
   543 (* prove induction rule *)
   543 (* prove induction rule *)