]> matita.cs.unibo.it Git - helm.git/commitdiff
added support for open terms in check
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 9 Mar 2005 10:24:03 +0000 (10:24 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 9 Mar 2005 10:24:03 +0000 (10:24 +0000)
helm/ocaml/cic_omdoc/cic2acic.ml
helm/ocaml/cic_transformations/acic2Ast.ml

index cf9760c2565dd4ae86c6ae445a1c62ee0ae88c6f..c2a832cbecf1f7ffec729324109ae9c3364eb459 100644 (file)
@@ -116,7 +116,7 @@ let acic_of_cic_context' seed ids_to_terms ids_to_father_ids ids_to_inner_sorts
         | C.Sort (C.Type _) -> "Type" (* TASSI OK*)
         | C.Sort C.CProp -> "CProp"
         | C.Meta _       ->
-prerr_endline "Cic2acic: string_of_sort applied to a meta" ;
+(* prerr_endline "Cic2acic: string_of_sort applied to a meta" ; *)
            "?"
         | t              ->
 prerr_endline ("Cic2acic: string_of_sort applied to: " ^ CicPp.ppterm t) ;
index 1e4914e7f9bbbf250830d44654710119e3df65c0..b60abf25886ea34a60658fba9f21d7926a180e5d 100644 (file)
@@ -34,6 +34,7 @@ let sort_of_string = function
   | "Set" -> `Set
   | "Type" -> `Type
   | "CProp" -> `CProp
+  | "?" -> `Meta
   | _ -> assert false
 
 let get_types uri =
@@ -86,7 +87,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))