(********************************* TERMS ************************************)
type universe = (bool * NUri.uri) list
- (* Max of non-empty list of named universes, or their successor (when true) *)
+ (* Max of non-empty list of named universes, or their successor (when true)
+ * The empty list represents type0 *)
-type sort = Prop | Type of universe | CProp
+type sort = Prop | Type of universe
-type implicit_annotation = [ `Closed | `Type | `Hole | `Term ]
+type implicit_annotation = [ `Closed | `Type | `Hole | `Term | `Typeof of int ]
type lc_kind = Irl of int | Ctx of term list
and local_context = int * lc_kind (* shift (0 -> no shift),
- subst (None means id) *)
+ subst (Irl n means id of
+ length n) *)
and term =
| Rel of int (* DeBruijn index, 1 based *)
| Meta of int * local_context
| Decl of term (* type *)
| Def of term * term (* body, type *)
-type hypothesis = string * context_entry
+type hypothesis = string * context_entry (* name, entry *)
type context = hypothesis list
type metasenv = (int * conjecture) list
-type subst_entry = string option * context * term * term
+type subst_entry = string option * context * term * term (* name,ctx,bo,ty *)
type substitution = (int * subst_entry) list