]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/proofEngineTypes.ml
1. new syntax for patterns:
[helm.git] / helm / ocaml / tactics / proofEngineTypes.ml
index 7d1a53d73230862158a1a44570f84b4a20437fbc..9e92a076c47e46aa6a920d177127a09469df413a 100644 (file)
@@ -56,8 +56,9 @@ type tactic = status -> proof * goal list
   (** creates an opaque tactic from a status->proof*goal list function *)
 let mk_tactic t = t
 
-type pattern = (string * Cic.term) list * Cic.term option
-let goal_pattern = [],None
+ (** what, hypothesis patterns, conclusion pattern *)
+type pattern = Cic.term option * (string * Cic.term) list * Cic.term
+let conclusion_pattern t = t,[],Cic.Implicit (Some `Hole)
 
   (** tactic failure *)
 exception Fail of string