X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2Fcheck.ml;h=71ba8ddc284720f3ec8bed7fa0ed08c34b41d6d6;hb=f7101ffe7045c53dde6e1371005f9ceac1852826;hp=fb9d553b8e40b7bc3f38f0f9c914b3b5eef98bfb;hpb=57e708bca8555d6146c4e3d07c0a9b6a546373ce;p=helm.git diff --git a/helm/software/components/ng_kernel/check.ml b/helm/software/components/ng_kernel/check.ml index fb9d553b8..71ba8ddc2 100644 --- a/helm/software/components/ng_kernel/check.ml +++ b/helm/software/components/ng_kernel/check.ml @@ -12,7 +12,7 @@ (* $Id$ *) let debug = true -let ignore_exc = true +let ignore_exc = false let rank_all_dependencies = false let trust_environment = false @@ -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 @@ -140,6 +148,10 @@ let _ = let rec aux = function | 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