]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/check.ml
Reverting to the previous version some files which weren't intended to be
[helm.git] / helm / software / components / ng_kernel / check.ml
index c3695726bd37c20ed042d116f8ee2135f5ac86bf..71ba8ddc284720f3ec8bed7fa0ed08c34b41d6d6 100644 (file)
@@ -49,12 +49,20 @@ 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")]
   else
      [false, NUri.uri_of_string ("cic:/matita/pts/Type"^string_of_int n^".univ")]
 ;;
+let mk_cprop n = 
+  if n = 0 then 
+    [false, NUri.uri_of_string ("cic:/matita/pts/CProp.univ")]
+  else
+    [false, NUri.uri_of_string ("cic:/matita/pts/CProp"^string_of_int n^".univ")]
+;;
+
 
 let _ =
   let do_old_logging = ref true in
@@ -138,8 +146,13 @@ let _ =
   prerr_endline "caching objects";
   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);
+         NCicEnvironment.add_constraint true (mk_cprop a) (mk_cprop b);
+         NCicEnvironment.add_constraint true (mk_type a) (mk_cprop a);
+         NCicEnvironment.add_constraint true (mk_cprop a) (mk_type b);
+         NCicEnvironment.add_constraint true (mk_type b) (mk_cprop b);
+         aux tl
       | _ -> ()
     in
        aux lll