src/HOL/HOL_lemmas.ML
changeset 9058 7856a01119fb
parent 8964 df06ec11bbfa
child 9159 902ea754eee2
equal deleted inserted replaced
9057:af1ca1acf292 9058:7856a01119fb
   527   | _ => raise THM("RSmp",0,[th]));
   527   | _ => raise THM("RSmp",0,[th]));
   528 
   528 
   529 fun normalize_thm funs =
   529 fun normalize_thm funs =
   530   let fun trans [] th = th
   530   let fun trans [] th = th
   531 	| trans (f::fs) th = (trans funs (f th)) handle THM _ => trans fs th
   531 	| trans (f::fs) th = (trans funs (f th)) handle THM _ => trans fs th
   532   in zero_var_indexes o trans funs end;
   532   in zero_var_indexes o strip_shyps_warning o trans funs end;
   533 
   533 
   534 fun qed_spec_mp name =
   534 fun qed_spec_mp name =
   535   let val thm = normalize_thm [RSspec,RSmp] (result())
   535   let val thm = normalize_thm [RSspec,RSmp] (result())
   536   in ThmDatabase.ml_store_thm(name, thm) end;
   536   in ThmDatabase.ml_store_thm(name, thm) end;
   537 
   537