type direction = [ `LeftToRight | `RightToLeft ]
-type loc = Token.flocation
+type loc = Stdpp.location
type ('term, 'lazy_term, 'ident) pattern =
'lazy_term option * ('ident * 'term) list * 'term option
| `Unfold of 'lazy_term option
| `Whd ]
+type 'ident intros_spec = int option * 'ident option list
+
type ('term, 'lazy_term, 'reduction, 'ident) tactic =
(* Higher order tactics (i.e. tacticals) *)
| Do of loc * int * ('term, 'lazy_term, 'reduction, 'ident) tactic
| Apply of loc * 'term
| ApplyS of loc * 'term * (string * string) list
| Assumption of loc
- | Auto of loc * (string * string) list
- | Cases of loc * 'term * 'ident list
+ | AutoBatch of loc * (string * string) list
+ | Cases of loc * 'term * 'ident intros_spec
| Change of loc * ('term, 'lazy_term, 'ident) pattern * 'lazy_term
| Clear of loc * 'ident list
| ClearBody of loc * 'ident
+ | Compose of loc * 'term * 'term option * int * 'ident intros_spec
| Constructor of loc * int
| Contradiction of loc
| Cut of loc * 'ident option * 'term
- | Decompose of loc * 'ident list
+ | Decompose of loc * 'ident option list
| Demodulate of loc
- | Destruct of loc * 'term
+ | Destruct of loc * 'term list option
| Elim of loc * 'term * 'term option * ('term, 'lazy_term, 'ident) pattern *
- int option * 'ident list
- | ElimType of loc * 'term * 'term option * int option * 'ident list
+ 'ident intros_spec
+ | ElimType of loc * 'term * 'term option * 'ident intros_spec
| Exact of loc * 'term
| Exists of loc
| Fail of loc
| Fold of loc * 'reduction * 'lazy_term * ('term, 'lazy_term, 'ident) pattern
| Fourier of loc
- | FwdSimpl of loc * string * 'ident list
+ | FwdSimpl of loc * string * 'ident option list
| Generalize of loc * ('term, 'lazy_term, 'ident) pattern * 'ident option
| IdTac of loc
- | Intros of loc * int option * 'ident list
+ | Intros of loc * 'ident intros_spec
| Inversion of loc * 'term
| LApply of loc * bool * int option * 'term list * 'term * 'ident option
| Left of loc
| Reflexivity of loc
| Replace of loc * ('term, 'lazy_term, 'ident) pattern * 'lazy_term
| Rewrite of loc * direction * 'term *
- ('term, 'lazy_term, 'ident) pattern * 'ident list
+ ('term, 'lazy_term, 'ident) pattern * 'ident option list
| Right of loc
| Ring of loc
| Split of loc
- | Subst of loc
| Symmetry of loc
| Transitivity of loc * 'term
(* Costruttori Aggiunti *)
| AndElim of loc * 'term * 'ident * 'term * 'ident * 'term
| RewritingStep of
loc * (string option * 'term) option * 'term *
- [ `Term of 'term | `Auto of (string * string) list ] *
+ [ `Term of 'term | `Auto of (string * string) list | `Proof ] *
bool (* last step*)
type search_kind = [ `Locate | `Hint | `Match | `Elim ]
type 'term macro =
(* Whelp's stuff *)
- | WHint of loc * 'term
+ | WHint of loc * 'term
| WMatch of loc * 'term
| WInstance of loc * 'term
| WLocate of loc * string
| WElim of loc * 'term
(* real macros *)
| Check of loc * 'term
- | Hint of loc
+ | Hint of loc * bool
+ | AutoInteractive of loc * (string * string) list
| Inline of loc * presentation_style * string * string
(* URI or base-uri, name prefix *)
(** To be increased each time the command type below changes, used for "safe"
* marshalling *)
-let magic = 11
+let magic = 12
type ('term,'obj) command =
| Index of loc * 'term option (* key *) * UriManager.uri (* value *)
- | Coercion of loc * UriManager.uri * bool (* add_obj *) * int (* arity *)
+ | Coercion of loc * UriManager.uri * bool (* add_obj *) *
+ int (* arity *) * int (* saturations *)
| Default of loc * string * UriManager.uri list
| Drop of loc
| Include of loc * string