]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.ml
Big commit and major code clean-up:
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.ml
index e47b48d5d7e05a2ef793c3e8f4578a55bfa08f2f..707a7b2b2ed522886791f670aacb7d21af1787fb 100644 (file)
@@ -364,8 +364,11 @@ debug_print (CicPp.ppterm eliminator_body);
         | _ -> assert false
       in
       let name = UriManager.name_of_uri uri ^ suffix in
+      let buri = UriManager.buri_of_uri uri in
+      let uri = UriManager.uri_of_string (buri ^ "/" ^ name ^ ".con") in
       let obj_attrs = [`Class (`Elim sort); `Generated] in
-      Cic.Constant (name, Some eliminator_body, eliminator_type, [], obj_attrs)
+       uri,
+       Cic.Constant (name, Some eliminator_body, eliminator_type, [], obj_attrs)
   | _ ->
       failwith (sprintf "not an inductive definition (%s)"
         (UriManager.string_of_uri uri))