simplified get_thm a bit
authorclasohm
Mon, 23 Jan 1995 12:20:10 +0100
changeset 871 1c060d444a81
parent 870 ef6faaa415dc
child 872 9b7236d774bd
simplified get_thm a bit
src/Pure/Thy/thy_read.ML
--- a/src/Pure/Thy/thy_read.ML	Fri Jan 20 10:41:01 1995 +0100
+++ b/src/Pure/Thy/thy_read.ML	Mon Jan 23 12:20:10 1995 +0100
@@ -538,11 +538,11 @@
   let fun get [] [] searched =
            raise THEORY ("get_thm: no theorem " ^ quote name, [thy])
         | get [] ng searched =
-            get (distinct (gen_rems (op =) (ng, searched))) [] searched
+            get (ng \\ searched) [] searched
         | get (t::ts) ng searched =
             (case Symtab.lookup (thmtab_ofname t, name) of
                  Some thm => thm
-               | None => get ts (ng @ get_parents t) (t::searched));
+               | None => get ts (ng union (get_parents t)) (t::searched));
 
       val (tname, _) = thyinfo_of_sign (sign_of thy);
   in get [tname] [] [] end;