X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCic.ml;h=32b79f02a2f898a2dadd8472b7aef08a38adca36;hb=7288b45eacf9f7dcd118b3b89b81ff19ae9d6ce5;hp=2be6a73882bae4249e68f8845e510f5b5680385e;hpb=e48acbc0d00717ce8f12412673ece4e4ee0e9642;p=helm.git diff --git a/helm/software/components/ng_kernel/nCic.ml b/helm/software/components/ng_kernel/nCic.ml index 2be6a7388..32b79f02a 100644 --- a/helm/software/components/ng_kernel/nCic.ml +++ b/helm/software/components/ng_kernel/nCic.ml @@ -13,14 +13,23 @@ (********************************* TERMS ************************************) -type sort = Prop | Type of int | CProp +type univ_algebra = [ `Type | `Succ | `CProp ] + +type universe = (univ_algebra * NUri.uri) list + (* Max of non-empty list of named universes, or their successor (when true) + * The empty list represents type0 *) + +type sort = Prop | Type of universe + +type implicit_annotation = + [ `Closed | `Type | `Hole | `Tagged of string | `Term | `Typeof of int | `Vector ] -type implicit_annotation = [ `Closed | `Type | `Hole | `Term ] 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 @@ -43,15 +52,17 @@ type context_entry = (* A declaration or definition *) | 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 conjecture = string option * context * term +type meta_attrs = [`Name of string | `IsSort | `InScope | `OutScope of int] list + +type conjecture = meta_attrs * context * term type metasenv = (int * conjecture) list -type subst_entry = string option * context * term * term +type subst_entry = meta_attrs * context * term * term (* name,ctx,bo,ty *) type substitution = (int * subst_entry) list @@ -90,7 +101,7 @@ type ind_pragma = (* pragmatic of the object *) type generated = [ `Generated | `Provided ] type c_attr = generated * def_flavour * def_pragma -type f_attr = generated * def_flavour +type f_attr = generated * def_flavour * def_pragma type i_attr = generated * ind_pragma (* invariant: metasenv and substitution have disjoint domains *)