Thm.compose_no_flatten;
authorwenzelm
Fri, 23 Dec 2005 15:16:46 +0100
changeset 18497 7569674d7bb1
parent 18496 ef36f9be255e
child 18498 466351242c6f
Thm.compose_no_flatten;
src/Pure/goal.ML
--- a/src/Pure/goal.ML	Fri Dec 23 15:16:44 2005 +0100
+++ b/src/Pure/goal.ML	Fri Dec 23 15:16:46 2005 +0100
@@ -52,7 +52,7 @@
   A ==> ... ==> C
 *)
 fun conclude th =
-  (case SINGLE (Thm.bicompose_no_flatten false (false, th, Thm.nprems_of th) 1)
+  (case SINGLE (Thm.compose_no_flatten false (th, Thm.nprems_of th) 1)
       (Drule.incr_indexes th Drule.protectD) of
     SOME th' => th'
   | NONE => raise THM ("Failed to conclude goal", 0, [th]));
@@ -145,7 +145,7 @@
     val _ = conditional (not (Pattern.matches thy (Envir.beta_norm prop, prop'))) (fn () =>
       err ("Proved a different theorem: " ^ Sign.string_of_term thy prop'));
   in
-    Drule.conj_elim_precise (length props) raw_result
+    hd (Drule.conj_elim_precise [length props] raw_result)
     |> map
       (Drule.implies_intr_list casms
         #> Drule.forall_intr_list cparams
@@ -180,7 +180,7 @@
   init (Thm.adjust_maxidx (Thm.cprem_of st i))
   |> tac
   |> Seq.maps (fn st' =>
-    Thm.bicompose_no_flatten false (false, conclude st', Thm.nprems_of st') i st);
+    Thm.compose_no_flatten false (conclude st', Thm.nprems_of st') i st);
 
 in