Pure/goals/prepare_proof/mkresult: now smashes flexflex pairs in the final
authorlcp
Thu, 03 Nov 1994 16:52:19 +0100
changeset 696 eb5b42442b14
parent 695 a1586fa1b755
child 697 40f72ab196f8
Pure/goals/prepare_proof/mkresult: now smashes flexflex pairs in the final result.
src/Pure/goals.ML
--- a/src/Pure/goals.ML	Thu Nov 03 16:39:41 1994 +0100
+++ b/src/Pure/goals.ML	Thu Nov 03 16:52:19 1994 +0100
@@ -139,7 +139,9 @@
       (*discharges assumptions from state in the order they appear in goal;
 	checks (if requested) that resulting theorem is equivalent to goal. *)
       fun mkresult (check,state) =
-        let val ngoals = nprems_of state
+        let val state = Sequence.hd (flexflex_rule state)
+	    		handle _ => state   (*smash flexflex pairs*)
+	    val ngoals = nprems_of state
             val th = implies_intr_list cAs state
             val {hyps,prop,sign=sign',...} = rep_thm th
         in  if not check then standard th