simultaneous join_proofs;
authorwenzelm
Tue, 21 Jul 2009 20:37:32 +0200
changeset 32104 d1d98a02473e
parent 32103 ebdcff2b9810
child 32105 da419b0c1c1d
simultaneous join_proofs; removed obsolete promises_of;
src/Pure/thm.ML
--- a/src/Pure/thm.ML	Tue Jul 21 20:37:31 2009 +0200
+++ b/src/Pure/thm.ML	Tue Jul 21 20:37:32 2009 +0200
@@ -141,10 +141,9 @@
   val bicompose: bool -> bool * thm * int -> int -> thm -> thm Seq.seq
   val biresolution: bool -> (bool * thm) list -> int -> thm -> thm Seq.seq
   val rename_boundvars: term -> term -> thm -> thm
+  val join_proofs: thm list -> unit
   val proof_body_of: thm -> proof_body
   val proof_of: thm -> proof
-  val join_proof: thm -> unit
-  val promises_of: thm -> (serial * thm future) list
   val status_of: thm -> {oracle: bool, unfinished: bool, failed: bool}
   val future: thm future -> cterm -> thm
   val get_name: thm -> string
@@ -1616,15 +1615,14 @@
     (map #1 promises ~~ fulfill_bodies (map #2 promises)) body
 and fulfill_bodies futures = map fulfill_body (Exn.release_all (Future.join_results futures));
 
+val join_proofs = Pt.join_bodies o map fulfill_body;
+
 fun proof_body_of thm = (Pt.join_bodies [raw_body thm]; fulfill_body thm);
 val proof_of = Pt.proof_of o proof_body_of;
-val join_proof = ignore o proof_body_of;
 
 
 (* derivation status *)
 
-fun promises_of (Thm (Deriv {promises, ...}, _)) = promises;
-
 fun status_of (Thm (Deriv {promises, body}, _)) =
   let
     val ps = map (Future.peek o snd) promises;
@@ -1744,5 +1742,5 @@
 
 end;
 
-structure BasicThm: BASIC_THM = Thm;
-open BasicThm;
+structure Basic_Thm: BASIC_THM = Thm;
+open Basic_Thm;