added dest_main_statement;
authorwenzelm
Fri, 04 Jun 1999 19:51:26 +0200
changeset 6768 26d64339c25a
parent 6767 99797f2652d1
child 6769 4b1bd69dfe0b
added dest_main_statement;
src/Pure/object_logic.ML
--- a/src/Pure/object_logic.ML	Fri Jun 04 19:51:04 1999 +0200
+++ b/src/Pure/object_logic.ML	Fri Jun 04 19:51:26 1999 +0200
@@ -11,6 +11,7 @@
 signature OBJECT_LOGIC =
 sig
   val dest_statement: string * term -> (string * term) list
+  val dest_main_statement: term -> term
   val setup: (theory -> theory) list
 end;
 
@@ -24,6 +25,11 @@
       (case concl of Const ("Trueprop", _) $ t => [(name, t)] | _ => [])
   end;
 
+fun dest_main_statement t =
+  (case Logic.strip_imp_concl t of
+    _ $ t => t
+  | _ => raise TERM ("dest_main", [t]));
+
 
 (* FIXME *)
 val setup = [];