]> matita.cs.unibo.it Git - helm.git/commitdiff
Signature_of has been closed with respect to constructors.
authorAndrea Asperti <andrea.asperti@unibo.it>
Fri, 7 Nov 2008 16:55:37 +0000 (16:55 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Fri, 7 Nov 2008 16:55:37 +0000 (16:55 +0000)
helm/software/components/tactics/metadataQuery.ml

index 571a045adfbfd54b2833bcaf0a13aaa6b5d97197..4beaab5c1e3d668a6ca10460dd9027fa8b8e3a9c 100644 (file)
@@ -171,6 +171,7 @@ let close_with_constructors s metasenv context =
                             List.fold_left 
                               (fun (j,s) _ -> 
                                  let curi = UriManager.uri_of_uriref uri i (Some j) in
+                                    prerr_endline ("adding " ^ (UriManager.string_of_uri curi));
                                    j+1,Constr.UriManagerSet.add curi s) (1,s) cl in
                             (i+1,s)) (0,bag) tl)
               | _ -> assert false)
@@ -272,7 +273,8 @@ let signature_of metasenv goal =
   let ty_set = Constr.constants_of ty in
   let hyp_set = signature_of_hypothesis context metasenv in
   let set = Constr.UriManagerSet.union ty_set hyp_set in
-    close_with_types set metasenv context
+    close_with_constructors (close_with_types set metasenv context)
+    metasenv context
 
 
 let universe_of_goal ~(dbd:HSql.dbd) apply_only metasenv goal =