]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/proofEngineHelpers.mli
pattern_of function reimplemented. Now it takes a term and a list of subterms
[helm.git] / helm / ocaml / tactics / proofEngineHelpers.mli
index 85dc61e81d7fa5e03fbc86b115f5884453c63e3b..219d426e475b04f12d00cba5b060fabf9117251d 100644 (file)
@@ -48,6 +48,16 @@ val compare_metasenvs :
  * A pattern is a Cic term in which Cic.Implicit terms annotated with `Hole
  * appears *)
 
+(** create a pattern from a term and a list of subterms.
+* the pattern is granted to have a ? for every subterm that has no selected
+* subterms
+* @param equality equality function used while walking the term. Defaults to
+* physical equality (==) *)
+val pattern_of:
+ ?equality:(Cic.term -> Cic.term -> bool) -> term:Cic.term -> Cic.term list ->
+   Cic.term
+
+
 (** select metasenv conjecture pattern
 * select all subterms of [conjecture] matching [pattern].
 * It returns the set of matched terms (that can be compared using physical