added proof_to_theory';
authorwenzelm
Wed, 28 Nov 2001 23:29:48 +0100
changeset 12315 edeb1bbcd479
parent 12314 160013745a92
child 12316 79138d75405f
added proof_to_theory';
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Wed Nov 28 23:29:21 2001 +0100
+++ b/src/Pure/Isar/toplevel.ML	Wed Nov 28 23:29:48 2001 +0100
@@ -53,6 +53,7 @@
   val proof: (ProofHistory.T -> ProofHistory.T) -> transition -> transition
   val proof': (bool -> ProofHistory.T -> ProofHistory.T) -> transition -> transition
   val proof_to_theory: (ProofHistory.T -> theory) -> transition -> transition
+  val proof_to_theory': (bool -> ProofHistory.T -> theory) -> transition -> transition
   val unknown_theory: transition -> transition
   val unknown_proof: transition -> transition
   val unknown_context: transition -> transition
@@ -348,7 +349,9 @@
   app_current (fn int => (fn Theory thy => Proof (f int thy) | _ => raise UNDEF));
 fun proof' f = map_current (fn int => (fn Proof prf => Proof (f int prf) | _ => raise UNDEF));
 val proof = proof' o K;
-fun proof_to_theory f = map_current (fn _ => (fn Proof prf => Theory (f prf) | _ => raise UNDEF));
+fun proof_to_theory' f =
+  map_current (fn int => (fn Proof prf => Theory (f int prf) | _ => raise UNDEF));
+val proof_to_theory = proof_to_theory' o K;
 
 val unknown_theory = imperative (fn () => warning "Unknown theory context");
 val unknown_proof = imperative (fn () => warning "Unknown proof context");