]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/metadataConstraints.ml
fix coercGraph.mli
[helm.git] / helm / ocaml / metadata / metadataConstraints.ml
index 2ebd46c2a69478986d70cb2b47f4082d257dfc08..2c04562d81dcea898ccd3aaf27182ee845c3ace3 100644 (file)
@@ -407,7 +407,7 @@ let myspeciallist_of_facts  =
   [0,"cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)"]
 let myspeciallist =
   [0,"cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)";
-   0,"cic:/Coq/Init/Logic/sym_eq.con"; 
+(*   0,"cic:/Coq/Init/Logic/sym_eq.con"; *)
    0,"cic:/Coq/Init/Logic/trans_eq.con";
    0,"cic:/Coq/Init/Logic/f_equal.con";
    0,"cic:/Coq/Init/Logic/f_equal2.con";
@@ -494,7 +494,7 @@ let cmatch ~(dbd:Mysql.dbd)  ?(facts=false) t =
             else
               Some main, [0, []; types_no, types])
           else
-            prefixes (constants_no+types_no) t
+            prefixes (constants_no+types_no+1) t
         in
         (match prefixes with
            Some main, all_concl ->
@@ -547,7 +547,9 @@ let sigmatch ~(dbd:Mysql.dbd)
         let subsets = 
           let subsets = power constants in
           let types_no = List.length types in
+         if types_no > 0 then  
           (0,[]) :: List.map (function (n,l) -> (n+types_no,types@l)) subsets
+         else subsets
         in
         compute_exactly ~dbd ~facts ~where main subsets