X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite%2FgrafiteAst.ml;h=5668b3cba14ffae959ef58c39c5f041cf2d624e5;hb=d120acefa62d997341a84ec54cb1532e223dd661;hp=2b0f4db5f1ad329091df4241cbf1247e466e67cf;hpb=1ca749a387695a5a4abc138a06de496a63abac4a;p=helm.git diff --git a/helm/software/components/grafite/grafiteAst.ml b/helm/software/components/grafite/grafiteAst.ml index 2b0f4db5f..5668b3cba 100644 --- a/helm/software/components/grafite/grafiteAst.ml +++ b/helm/software/components/grafite/grafiteAst.ml @@ -34,13 +34,14 @@ type ('term, 'lazy_term, 'ident) pattern = type 'lazy_term reduction = [ `Normalize - | `Reduce | `Simpl | `Unfold of 'lazy_term option | `Whd ] type 'ident intros_spec = int option * 'ident option list +type 'term auto_params = 'term list * (string*string) list + type ('term, 'lazy_term, 'reduction, 'ident) tactic = (* Higher order tactics (i.e. tacticals) *) | Do of loc * int * ('term, 'lazy_term, 'reduction, 'ident) tactic @@ -58,9 +59,9 @@ type ('term, 'lazy_term, 'reduction, 'ident) tactic = (* Real tactics *) | Absurd of loc * 'term | Apply of loc * 'term - | ApplyS of loc * 'term * (string * string) list + | ApplyS of loc * 'term * 'term auto_params | Assumption of loc - | AutoBatch of loc * (string * string) list + | AutoBatch of loc * 'term auto_params | Cases of loc * 'term * 'ident intros_spec | Change of loc * ('term, 'lazy_term, 'ident) pattern * 'lazy_term | Clear of loc * 'ident list @@ -70,7 +71,7 @@ type ('term, 'lazy_term, 'reduction, 'ident) tactic = | Contradiction of loc | Cut of loc * 'ident option * 'term | Decompose of loc * 'ident option list - | Demodulate of loc + | Demodulate of loc * 'term auto_params | Destruct of loc * 'term list option | Elim of loc * 'term * 'term option * ('term, 'lazy_term, 'ident) pattern * 'ident intros_spec @@ -98,7 +99,7 @@ type ('term, 'lazy_term, 'reduction, 'ident) tactic = | Split of loc | Symmetry of loc | Transitivity of loc * 'term - (* Costruttori Aggiunti *) + (* Declarative language *) | Assume of loc * 'ident * 'term | Suppose of loc * 'term *'ident * 'term option | By_term_we_proved of loc *'term option * 'term * 'ident option * 'term option @@ -113,7 +114,8 @@ type ('term, 'lazy_term, 'reduction, 'ident) tactic = | AndElim of loc * 'term * 'ident * 'term * 'ident * 'term | RewritingStep of loc * (string option * 'term) option * 'term * - [ `Term of 'term | `Auto of (string * string) list | `Proof ] * + [ `Term of 'term | `Auto of 'term auto_params + | `Proof | `SolveWith of 'term ] * bool (* last step*) type search_kind = [ `Locate | `Hint | `Match | `Elim ] @@ -133,7 +135,7 @@ type 'term macro = (* real macros *) | Check of loc * 'term | Hint of loc * bool - | AutoInteractive of loc * (string * string) list + | AutoInteractive of loc * 'term auto_params | Inline of loc * presentation_style * string * string (* URI or base-uri, name prefix *)