src/Tools/Code/code_preproc.ML
changeset 38973 cedf2ac63d9c
parent 38674 cd9b59cb1b75
child 39133 70d3915c92f0
equal deleted inserted replaced
38972:cd747b068311 38973:cedf2ac63d9c
    90   let
    90   let
    91     val thm = Local_Defs.meta_rewrite_rule (ProofContext.init_global thy) raw_thm;
    91     val thm = Local_Defs.meta_rewrite_rule (ProofContext.init_global thy) raw_thm;
    92     val thm_sym = Thm.symmetric thm;
    92     val thm_sym = Thm.symmetric thm;
    93   in
    93   in
    94     thy |> map_pre_post (fn (pre, post) =>
    94     thy |> map_pre_post (fn (pre, post) =>
    95       (pre |> MetaSimplifier.add_simp thm, post |> MetaSimplifier.del_simp thm_sym))
    95       (pre |> MetaSimplifier.add_simp thm, post |> MetaSimplifier.add_simp thm_sym))
    96   end;
    96   end;
    97 
    97 
    98 fun add_functrans (name, f) = (map_data o apsnd)
    98 fun add_functrans (name, f) = (map_data o apsnd)
    99   (AList.update (op =) (name, (serial (), f)));
    99   (AList.update (op =) (name, (serial (), f)));
   100 
   100