src/Pure/Thy/thm_deps.ML
changeset 28817 c8cc94a470d4
parent 28814 463c9e9111ae
child 28826 3b460b6eadae
--- a/src/Pure/Thy/thm_deps.ML	Sun Nov 16 22:12:43 2008 +0100
+++ b/src/Pure/Thy/thm_deps.ML	Sun Nov 16 22:12:44 2008 +0100
@@ -16,10 +16,10 @@
 
 (* thm_deps *)
 
-fun add_dep ((name, _, _), PBody {thms = thms', ...}) =
+fun add_dep (name, _, PBody {thms = thms', ...}) =
   name <> "" ?
     Graph.new_node (name, ()) #>
-    fold (fn (_, ((name', _, _), _)) => name <> "" ? Graph.add_edge (name', name)) thms';
+    fold (fn (_, (name', _, _)) => name <> "" ? Graph.add_edge (name', name)) thms';
 
 fun thm_deps thms =
   let
@@ -60,7 +60,7 @@
       |> sort_distinct (string_ord o pairself #1);
 
     val tab = Proofterm.fold_body_thms
-      (fn ((name, prop, _), _) => name <> "" ? Symtab.insert_list (op =) (name, prop))
+      (fn (name, prop, _) => name <> "" ? Symtab.insert_list (op =) (name, prop))
       (map (Proofterm.strip_thm o Thm.proof_body_of o snd) thms) Symtab.empty;
     fun is_unused (name, th) =
       not (member (op aconv) (Symtab.lookup_list tab name) (Thm.prop_of th));