src/HOL/Tools/lin_arith.ML
changeset 38762 996afaa9254a
parent 38715 6513ea67d95d
child 38763 283f1f9969ba
     1.1 --- a/src/HOL/Tools/lin_arith.ML	Thu Aug 26 17:01:12 2010 +0200
     1.2 +++ b/src/HOL/Tools/lin_arith.ML	Thu Aug 26 17:37:26 2010 +0200
     1.3 @@ -769,29 +769,11 @@
     1.4  
     1.5  structure Fast_Arith = Fast_Lin_Arith(structure LA_Logic = LA_Logic and LA_Data = LA_Data);
     1.6  
     1.7 -fun map_inj_thms f {add_mono_thms, mult_mono_thms, inj_thms, lessD, neqE, simpset, number_of} =
     1.8 -  {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms, inj_thms = f inj_thms,
     1.9 -    lessD = lessD, neqE = neqE, simpset = simpset, number_of = number_of};
    1.10 -
    1.11 -fun map_lessD f {add_mono_thms, mult_mono_thms, inj_thms, lessD, neqE, simpset, number_of} =
    1.12 -  {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms, inj_thms = inj_thms,
    1.13 -    lessD = f lessD, neqE = neqE, simpset = simpset, number_of = number_of};
    1.14 -
    1.15 -fun map_simpset f {add_mono_thms, mult_mono_thms, inj_thms, lessD, neqE, simpset, number_of} =
    1.16 -  {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms, inj_thms = inj_thms,
    1.17 -    lessD = lessD, neqE = neqE, simpset = f simpset, number_of = number_of};
    1.18 -
    1.19 -fun map_number_of f {add_mono_thms, mult_mono_thms, inj_thms, lessD, neqE, simpset, number_of} =
    1.20 -  {add_mono_thms = add_mono_thms, mult_mono_thms = mult_mono_thms, inj_thms = inj_thms,
    1.21 -    lessD = lessD, neqE = neqE, simpset = simpset, number_of = f number_of};
    1.22 -
    1.23 -fun add_inj_thms thms = Fast_Arith.map_data (map_inj_thms (append thms));
    1.24 -fun add_lessD thm = Fast_Arith.map_data (map_lessD (fn thms => thms @ [thm]));
    1.25 -fun add_simps thms = Fast_Arith.map_data (map_simpset (fn simpset => simpset addsimps thms));
    1.26 -fun add_simprocs procs = Fast_Arith.map_data (map_simpset (fn simpset => simpset addsimprocs procs));
    1.27 -
    1.28 -fun set_number_of f = Fast_Arith.map_data (map_number_of (K (serial (), f)))
    1.29 -
    1.30 +val add_inj_thms = Fast_Arith.add_inj_thms;
    1.31 +val add_lessD = Fast_Arith.add_lessD;
    1.32 +val add_simps = Fast_Arith.add_simps;
    1.33 +val add_simprocs = Fast_Arith.add_simprocs;
    1.34 +val set_number_of = Fast_Arith.set_number_of;
    1.35  
    1.36  fun simple_tac ctxt = Fast_Arith.lin_arith_tac ctxt false;
    1.37  val lin_arith_tac = Fast_Arith.lin_arith_tac;