]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/toplevel/meta.ml
lambda-delta/toplevel: improved transformation from automath (20 secs gained)
[helm.git] / helm / software / lambda-delta / toplevel / meta.ml
index 4b04e3af89a7b2faffc9f80a9cfea47b62df264a..af3f9b0af32b0038d4063ecff45331301b27b0db 100644 (file)
  * http://cs.unibo.it/helm/.
  *)
 
-type id = Aut.id
+type uri = NUri.uri
 
-type qid = id * id list (* qualified identifier: name, qualifiers *)
+type id = Aut.id
 
 type term = Sort of bool                  (* sorts: true = TYPE, false = PROP *)
-         | LRef of int                   (* local reference: de bruijn index *)
-         | GRef of int * qid * term list (* global reference: context length, name, arguments *)
+         | LRef of int * int             (* local reference: context length, de bruijn index *)
+         | GRef of int * uri * term list (* global reference: context length, name, arguments *)
          | Appl of term * term           (* application: argument, function *)
          | Abst of id * term * term      (* abstraction: name, type, body *)
 
-type pars = (qid * term) list (* parameter declarations: name, type *)
+type pars = (id * term) list (* parameter declarations: name, type *)
 
 (* entry: line number, parameters, name, type, (transparent?, body) *)
-type entry = int * pars * qid * term * (bool * term) option
+type entry = int * pars * uri * term * (bool * term) option
 
 type item = entry option