removed former algebra presimpset entirely
authorhaftmann
Thu, 06 May 2010 16:53:35 +0200
changeset 36705 4a7709f041a8
parent 36704 9dd2fe596ace
child 36706 b6a47c7d6125
removed former algebra presimpset entirely
src/HOL/Tools/Groebner_Basis/normalizer.ML
--- a/src/HOL/Tools/Groebner_Basis/normalizer.ML	Thu May 06 16:50:26 2010 +0200
+++ b/src/HOL/Tools/Groebner_Basis/normalizer.ML	Thu May 06 16:53:35 2010 +0200
@@ -55,14 +55,13 @@
 
 structure Data = Generic_Data
 (
-  type T = simpset * (thm * entry) list;
-  val empty = (HOL_basic_ss, []);
+  type T = (thm * entry) list;
+  val empty = [];
   val extend = I;
-  fun merge ((ss, e), (ss', e')) : T =
-    (merge_ss (ss, ss'), AList.merge eq_key (K true) (e, e'));
+  val merge = AList.merge eq_key (K true);
 );
 
-val get = snd o Data.get o Context.Proof;
+val get = Data.get o Context.Proof;
 
 
 (* match data *)
@@ -110,7 +109,7 @@
 
 fun undefined _ = raise Match;
 
-fun del_data key = apsnd (remove eq_data (key, []));
+fun del_data key = remove eq_data (key, []);
 
 val del = Thm.declaration_attribute (Data.map o del_data);
 
@@ -159,17 +158,17 @@
       val ideal' = map (symmetric o mk_meta) ideal
     in
       del_data key #>
-      apsnd (cons (key, ({vars = vars, semiring = semiring, 
+      cons (key, ({vars = vars, semiring = semiring, 
                           ring = ring, field = field, idom = idom, ideal = ideal'},
              {is_const = undefined, dest_const = undefined, mk_const = undefined,
-             conv = undefined})))
+             conv = undefined}))
     end);
 
 
 (* extra-logical functions *)
 
 fun funs raw_key {is_const, dest_const, mk_const, conv} phi = 
- (Data.map o apsnd) (fn data =>
+ Data.map (fn data =>
   let
     val key = Morphism.thm phi raw_key;
     val _ = AList.defined eq_key data key orelse