src/HOL/Tools/function_package/context_tree.ML
changeset 26529 03ad378ed5f0
parent 26196 0a0c2752561e
child 27330 1af2598b5f7d
--- a/src/HOL/Tools/function_package/context_tree.ML	Thu Apr 03 16:03:59 2008 +0200
+++ b/src/HOL/Tools/function_package/context_tree.ML	Thu Apr 03 16:34:52 2008 +0200
@@ -81,8 +81,7 @@
 fun branch_vars t = 
     let 
       val t' = snd (dest_all_all t)
-      val assumes = Logic.strip_imp_prems t'
-      val concl = Logic.strip_imp_concl t'
+      val (assumes, concl) = Logic.strip_horn t'
     in (fold (curry add_term_vars) assumes [], term_vars concl)
     end
 
@@ -104,9 +103,9 @@
 fun mk_branch ctx t = 
     let
       val (ctx', fixes, impl) = dest_all_all_ctx ctx t
-      val assms = Logic.strip_imp_prems impl
+      val (assms, concl) = Logic.strip_horn impl
     in
-      (ctx', fixes, assms, rhs_of (Logic.strip_imp_concl impl))
+      (ctx', fixes, assms, rhs_of concl)
     end
     
 fun find_cong_rule ctx fvar h ((r,dep)::rs) t =