]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/check.ml
Added cprop <= type constraint.
[helm.git] / helm / software / components / ng_kernel / check.ml
index c3695726bd37c20ed042d116f8ee2135f5ac86bf..a793cf05978817f49e8a6ae00180994000545ef6 100644 (file)
@@ -49,6 +49,7 @@ let logger =
           if debug then
            prerr_endline (do_indent () ^ "Trust: " ^ NUri.string_of_uri s))
 ;;
+
 let mk_type n = 
   if n = 0 then
      [false, NUri.uri_of_string ("cic:/matita/pts/Type.univ")]
@@ -56,6 +57,8 @@ let mk_type n =
      [false, NUri.uri_of_string ("cic:/matita/pts/Type"^string_of_int n^".univ")]
 ;;
 
+let cprop = [false, NUri.uri_of_string ("cic:/matita/pts/CProp.univ")];;
+
 let _ =
   let do_old_logging = ref true in
   HelmLogger.register_log_callback
@@ -136,10 +139,12 @@ let _ =
   prerr_endline "finished....";
   let lll = List.sort compare (CicUniv.do_rank (get_graph ())) in
   prerr_endline "caching objects";
+  NCicEnvironment.add_constraint true cprop (mk_type 0);
   let _ = 
     let rec aux = function
-      | a::b::tl ->
-         NCicEnvironment.add_lt_constraint (mk_type a) (mk_type b)
+      | a::(b::_ as tl) ->
+         NCicEnvironment.add_constraint true (mk_type a) (mk_type b);
+         aux tl
       | _ -> ()
     in
        aux lll