PureThy.defined_fact;
authorwenzelm
Wed, 16 Apr 2008 21:53:02 +0200
changeset 26694 29f5c1a296bc
parent 26693 90d0b86644ac
child 26695 65106c87b688
PureThy.defined_fact; unused_thms: simplified signature;
src/Pure/Isar/isar_cmd.ML
--- a/src/Pure/Isar/isar_cmd.ML	Wed Apr 16 21:53:01 2008 +0200
+++ b/src/Pure/Isar/isar_cmd.ML	Wed Apr 16 21:53:02 2008 +0200
@@ -259,7 +259,7 @@
  [("class", (Sign.intern_class, can o Sign.certify_class, Sign.hide_class)),
   ("type", (Sign.intern_type, Sign.declared_tyname, Sign.hide_type)),
   ("const", (Sign.intern_const, Sign.declared_const, Sign.hide_const)),
-  ("fact", (PureThy.intern_fact, PureThy.check_fact, PureThy.hide_fact))];
+  ("fact", (PureThy.intern_fact, PureThy.defined_fact, PureThy.hide_fact))];
 
 fun hide_names b (kind, xnames) thy =
   (case AList.lookup (op =) hide_kinds kind of
@@ -552,9 +552,9 @@
   in
     ThmDeps.unused_thms
       (case opt_range of
-         NONE => (NONE, [thy])
-       | SOME (xs, NONE) => (SOME (map ThyInfo.get_theory xs), [thy])
-       | SOME (xs, SOME ys) => (SOME (map ThyInfo.get_theory xs), map ThyInfo.get_theory ys))
+        NONE => (Theory.parents_of thy, [thy])
+      | SOME (xs, NONE) => (map ThyInfo.get_theory xs, [thy])
+      | SOME (xs, SOME ys) => (map ThyInfo.get_theory xs, map ThyInfo.get_theory ys))
     |> map pretty_thm |> Pretty.chunks |> Pretty.writeln
   end);