]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/proofEngineHelpers.mli
1. new syntax for patterns:
[helm.git] / helm / ocaml / tactics / proofEngineHelpers.mli
index c2f8c640aeded79e7e84ded52ea869e910b1f788..c11ad6ecaac179e63441525e07ea02d52229d564 100644 (file)
@@ -55,16 +55,11 @@ val pattern_of:
   ?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