ProofEngineTypes.proof * Cic.metasenv
val subst_meta_and_metasenv_in_proof :
ProofEngineTypes.proof ->
- int -> (Cic.term -> Cic.term) -> Cic.metasenv ->
+ int -> Cic.substitution -> Cic.metasenv ->
ProofEngineTypes.proof * Cic.metasenv
(* returns the list of goals that are in newmetasenv and were not in
(* returns the index and the type of a premise in a context *)
val lookup_type: Cic.metasenv -> Cic.context -> string -> int * Cic.term
+(* orders a metasenv w.r.t. dependency among metas *)
+val sort_metasenv: Cic.metasenv -> Cic.metasenv
+
+
(* FG: some helper functions ************************************************)
val get_name: Cic.context -> int -> string option