src/HOL/Tools/arith_data.ML
changeset 82967 73af47bc277c
parent 80722 b7d051e25d9d
equal deleted inserted replaced
82966:55a71dd13ca0 82967:73af47bc277c
    87   mk_meta_eq (Drule.export_without_context (Goal.prove ctxt [] []
    87   mk_meta_eq (Drule.export_without_context (Goal.prove ctxt [] []
    88       (HOLogic.mk_Trueprop (HOLogic.mk_eq tu))
    88       (HOLogic.mk_Trueprop (HOLogic.mk_eq tu))
    89     (K (EVERY [expand_tac, norm_tac ctxt]))));
    89     (K (EVERY [expand_tac, norm_tac ctxt]))));
    90 
    90 
    91 fun simp_all_tac rules ctxt =
    91 fun simp_all_tac rules ctxt =
    92   ALLGOALS (safe_simp_tac (put_simpset HOL_ss ctxt addsimps rules));
    92   ALLGOALS (safe_simp_tac (put_simpset HOL_ss ctxt |> Simplifier.add_simps rules));
    93 
    93 
    94 fun simplify_meta_eq rules ctxt =
    94 fun simplify_meta_eq rules ctxt =
    95   simplify (put_simpset HOL_basic_ss ctxt addsimps rules |> Simplifier.add_eqcong @{thm eq_cong2})
    95   simplify (put_simpset HOL_basic_ss ctxt
    96     o mk_meta_eq;
    96     |> Simplifier.add_simps rules
       
    97     |> Simplifier.add_eqcong @{thm eq_cong2}) o mk_meta_eq;
    97 
    98 
    98 end;
    99 end;