Moved find_intros_goal from goals.ML to pure_thy.ML
authorberghofe
Mon, 03 Feb 2003 11:06:06 +0100
changeset 13800 16136d2da0db
parent 13799 77614fe09362
child 13801 6c5c5bdfae84
Moved find_intros_goal from goals.ML to pure_thy.ML
src/Pure/pure_thy.ML
--- a/src/Pure/pure_thy.ML	Mon Feb 03 11:04:16 2003 +0100
+++ b/src/Pure/pure_thy.ML	Mon Feb 03 11:06:06 2003 +0100
@@ -31,6 +31,7 @@
   val thms_containing: theory -> string list * string list -> (string * thm list) list
   val thms_containing_consts: theory -> string list -> (string * thm) list
   val find_intros: theory -> term -> (string * thm) list
+  val find_intros_goal : theory -> thm -> int -> (string * thm) list
   val find_elims : theory -> term -> (string * thm) list
   val hide_thms: bool -> string list -> theory -> theory
   val store_thm: (bstring * thm) * theory attribute list -> theory -> theory * thm
@@ -248,6 +249,9 @@
 
 val find_intros = find_matching index_intros (Some o Logic.strip_imp_concl)
 
+fun find_intros_goal thy st i =
+  find_intros thy (Logic.concl_of_goal (prop_of st) i);
+
 val find_elims = find_matching index_elims
   (fn prop => case Logic.strip_imp_prems prop of [] => None | p::_ => Some p)