(** To be increased each time the term type below changes, used for "safe"
* marshalling *)
-let magic = 6
+let magic = 7
type term =
(* CIC AST *)
(* what to match, inductive type, out type, <pattern,action> list *)
| Cast of term * term
| LetIn of term capture_variable * term * term (* name, body, where *)
- | LetRec of induction_kind * (term capture_variable list * term capture_variable * term * int) list * term
- (* (params, name, body, decreasing arg) list, where *)
| Ident of string * subst list option
(* literal, substitutions.
* Some [] -> user has given an empty explicit substitution list
type 'term obj =
| Inductive of 'term capture_variable list * 'term inductive_type list
(** parameters, list of loc * mutual inductive types *)
- | Theorem of NCic.def_flavour * string * 'term * 'term option * NCic.def_pragma
- (** flavour, name, type, body
+ | Theorem of string * 'term * 'term option * NCic.c_attr
+ (** name, type, body, attributes
* - name is absent when an unnamed theorem is being proved, tipically in
* interactive usage
* - body is present when its given along with the command, otherwise it
*)
| Record of 'term capture_variable list * string * 'term * (string * 'term * bool * int) list
(** left parameters, name, type, fields *)
+ | LetRec of induction_kind * ('term capture_variable list * 'term capture_variable * 'term * int) list * NCic.f_attr
+ (* (params, name, body, decreasing arg) list, attributes *)
(** {2 Standard precedences} *)
let binder_prec = 20
let apply_prec = 70
let simple_prec = 90
-