added thm(s) retrieval functions (from goals.ML);
authorwenzelm
Wed, 19 Oct 2005 21:52:43 +0200
changeset 17930 e7160d70be1f
parent 17929 e8d7d463436d
child 17931 881274f283cf
added thm(s) retrieval functions (from goals.ML);
src/Pure/pure_thy.ML
--- a/src/Pure/pure_thy.ML	Wed Oct 19 21:52:42 2005 +0200
+++ b/src/Pure/pure_thy.ML	Wed Oct 19 21:52:43 2005 +0200
@@ -14,6 +14,8 @@
   val get_thm: theory -> thmref -> thm
   val get_thms: theory -> thmref -> thm list
   val get_thmss: theory -> thmref list -> thm list
+  val thm: xstring -> thm
+  val thms: xstring -> thm list
   structure ProtoPure:
     sig
       val thy: theory
@@ -237,6 +239,9 @@
 fun get_thmss thy thmrefs = List.concat (map (get_thms thy) thmrefs);
 fun get_thm thy thmref = single_thm (name_of_thmref thmref) (get_thms thy thmref);
 
+fun thm name = get_thm (the_context ()) (Name name);
+fun thms name = get_thms (the_context ()) (Name name);
+
 
 (* thms_containing etc. *)