]> matita.cs.unibo.it Git - helm.git/commitdiff
added goals_of_proof
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 11 Oct 2005 12:53:57 +0000 (12:53 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 11 Oct 2005 12:53:57 +0000 (12:53 +0000)
helm/ocaml/tactics/proofEngineTypes.ml
helm/ocaml/tactics/proofEngineTypes.mli

index 2e25e4a057389f7149bfa64334bcbefdca615d84..ed4a491e1d98d2ed14c55e1a585365e56c0d2f18 100644 (file)
@@ -95,3 +95,6 @@ let apply_tactic t status =
   (** constraint: the returned value will always be constructed by Cic.Name **)
 type mk_fresh_name_type =
  Cic.metasenv -> Cic.context -> Cic.name -> typ:Cic.term -> Cic.name
+
+let goals_of_proof (_,metasenv,_,_) = List.map (fun (g,_,_) -> g) metasenv
+
index 63be26bb71630396f12f2d10a6063404bb76d189..f45d681c198b216cf65564f95368b81597d70c48 100644 (file)
@@ -72,3 +72,6 @@ val apply_tactic: tactic -> status ->  proof * goal list
   (** constraint: the returned value will always be constructed by Cic.Name **)
 type mk_fresh_name_type =
  Cic.metasenv -> Cic.context -> Cic.name -> typ:Cic.term -> Cic.name
+
+val goals_of_proof: proof -> goal list
+