ProofEngineTypes.proof ->
int -> (Cic.term -> Cic.term) -> Cic.metasenv ->
ProofEngineTypes.proof * Cic.metasenv
+
+(* returns the list of goals that are in newmetasenv and were not in
+ oldmetasenv *)
+val compare_metasenvs :
+ oldmetasenv:Cic.metasenv -> newmetasenv:Cic.metasenv -> int list
+
+(** Finds the _pointers_ to subterms that are alpha-equivalent to wanted in t.
+ * wanted is properly lifted when binders are crossed *)
+val find_subterms :
+ eq:(Cic.term -> Cic.term -> bool) ->
+ wanted:Cic.term -> Cic.term ->
+ Cic.term list
+