Added error messages.
authornipkow
Fri, 17 Oct 1997 15:23:14 +0200
changeset 3918 94e0fdcb7b91
parent 3917 6ea5f9101c3e
child 3919 c036caebfc75
Added error messages.
src/Provers/splitter.ML
--- a/src/Provers/splitter.ML	Fri Oct 17 11:12:36 1997 +0200
+++ b/src/Provers/splitter.ML	Fri Oct 17 15:23:14 1997 +0200
@@ -257,9 +257,12 @@
 
 fun split_tac [] i = no_tac
   | split_tac splits i =
-  let fun const(thm) = let val _$(t as _$lhs)$_ = concl_of thm
-                           val (Const(a,_),args) = strip_comb lhs
-                       in (a,(thm,fastype_of t,length args)) end
+  let fun const(thm) =
+            (case concl_of thm of _$(t as _$lhs)$_ =>
+               (case strip_comb lhs of (Const(a,_),args) =>
+                  (a,(thm,fastype_of t,length args))
+                | _ => error("Wrong format for split rule"))
+             | _ => error("Wrong format for split rule"))
       val cmap = map const splits;
       fun lift_tac Ts t p st = (rtac (inst_lift Ts t p st trlift i) i) st
       fun lift_split_tac st = st |>