src/Pure/Isar/isar_cmd.ML
changeset 51717 9e7d1c139569
parent 51583 9100c8e66b69
child 52143 36ffe23b25f8
equal deleted inserted replaced
51709:19b47bfac6ef 51717:9e7d1c139569
   191 (* simprocs *)
   191 (* simprocs *)
   192 
   192 
   193 fun simproc_setup name lhss (txt, pos) identifier =
   193 fun simproc_setup name lhss (txt, pos) identifier =
   194   ML_Lex.read pos txt
   194   ML_Lex.read pos txt
   195   |> ML_Context.expression pos
   195   |> ML_Context.expression pos
   196     "val proc: Morphism.morphism -> Simplifier.simpset -> cterm -> thm option"
   196     "val proc: Morphism.morphism -> Proof.context -> cterm -> thm option"
   197     ("Context.map_proof (Simplifier.def_simproc_cmd {name = " ^ ML_Syntax.make_binding name ^ ", \
   197     ("Context.map_proof (Simplifier.def_simproc_cmd {name = " ^ ML_Syntax.make_binding name ^ ", \
   198       \lhss = " ^ ML_Syntax.print_strings lhss ^ ", proc = proc, \
   198       \lhss = " ^ ML_Syntax.print_strings lhss ^ ", proc = proc, \
   199       \identifier = Library.maps ML_Context.thms " ^ ML_Syntax.print_strings identifier ^ "})")
   199       \identifier = Library.maps ML_Context.thms " ^ ML_Syntax.print_strings identifier ^ "})")
   200   |> Context.proof_map;
   200   |> Context.proof_map;
   201 
   201