renamed Goal constant to prop, more general protect/unprotect interfaces;
authorwenzelm
Fri, 28 Oct 2005 22:28:12 +0200
changeset 18040 c67505cdecad
parent 18039 500b7ed7b2bd
child 18041 052622286158
renamed Goal constant to prop, more general protect/unprotect interfaces;
src/Pure/Isar/obtain.ML
--- a/src/Pure/Isar/obtain.ML	Fri Oct 28 22:28:11 2005 +0200
+++ b/src/Pure/Isar/obtain.ML	Fri Oct 28 22:28:12 2005 +0200
@@ -57,10 +57,10 @@
     val cparms = map (Thm.cterm_of thy) parms;
 
     val thm' = thm
-      |> Drule.implies_intr_goals cprops
+      |> Drule.implies_intr_protected cprops
       |> Drule.forall_intr_list cparms
       |> Drule.forall_elim_vars (maxidx + 1);
-    val elim_tacs = replicate (length cprops) (Tactic.etac Drule.goalI);
+    val elim_tacs = replicate (length cprops) (Tactic.etac Drule.protectI);
 
     val concl = Logic.strip_assums_concl prop;
     val bads = parms inter (Term.term_frees concl);
@@ -234,9 +234,7 @@
         #> Proof.add_binds_i AutoBind.no_facts
       end;
 
-    val before_qed = SOME (Method.primitive_text (fn th =>
-      let val th' = Goal.conclude th
-      in th' COMP Drule.incr_indexes_wrt [] [] [] [th'] Drule.goalI end));
+    val before_qed = SOME (Method.primitive_text (Goal.conclude #> Goal.protect));
     fun after_qed _ [[res]] =
       (check_result res; Proof.end_block #> Seq.map (`Proof.the_fact #-> guess_context));
   in