X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2Facic2Ast.ml;h=70036146e8240d697ab212f1f80e25c0444244cf;hb=50377dde5b5b1a8e5c7b2fb48b47defde9508b50;hp=1e4914e7f9bbbf250830d44654710119e3df65c0;hpb=eda1c80730b099bafcf3c89ce1e8b4afbbfef4f7;p=helm.git diff --git a/helm/ocaml/cic_transformations/acic2Ast.ml b/helm/ocaml/cic_transformations/acic2Ast.ml index 1e4914e7f..70036146e 100644 --- a/helm/ocaml/cic_transformations/acic2Ast.ml +++ b/helm/ocaml/cic_transformations/acic2Ast.ml @@ -29,13 +29,6 @@ module Ast = CicAst let symbol_table = Hashtbl.create 1024 -let sort_of_string = function - | "Prop" -> `Prop - | "Set" -> `Set - | "Type" -> `Type - | "CProp" -> `CProp - | _ -> assert false - let get_types uri = let o,_ = CicEnvironment.get_obj CicUniv.empty_ugraph uri in match o with @@ -66,7 +59,7 @@ let ast_of_acic ids_to_inner_sorts acic = let register_uri id uri = Hashtbl.add ids_to_uris id uri in let sort_of_id id = try - sort_of_string (Hashtbl.find ids_to_inner_sorts id) + Hashtbl.find ids_to_inner_sorts id with Not_found -> assert false in let idref id t = Ast.AttributedTerm (`IdRef id, t) in @@ -86,7 +79,7 @@ let ast_of_acic ids_to_inner_sorts acic = | Cic.AProd (id,n,s,t) -> let binder_kind = match sort_of_id id with - | `Set | `Type -> `Pi + | `Set | `Type | `Meta -> `Pi | `Prop | `CProp -> `Forall in idref id (Ast.Binder (binder_kind, (n, Some (aux s)), aux t))