?equality:(Cic.term -> Cic.term -> bool) -> term:Cic.term -> Cic.term list ->
Cic.term
-(** select all subterms of a given term matching a given pattern (i.e. subtrees
-* rooted at pattern's holes. The first component is the context the term lives
-* in). raise Bad_pattern (pattern_entry, term_entry) *)
-val select: term:Cic.term -> pattern:Cic.term -> (Cic.context * Cic.term) 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
-
+(** select context term (what,where)
+* select all subterms of [term] matching [what] in positions rooted at the holes
+* of the pattern [where]. [context] is the context of [term]. It returns
+* the list of the matched terms (that can be compared using physical equality)
+* together with their contexts. *)
+val select:
+ context:Cic.context -> term:Cic.term -> pattern:(Cic.term option * Cic.term) ->
+ (Cic.context * Cic.term) list