]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/content_pres/sequent2pres.ml
parameter sintax added to axiom statement
[helm.git] / helm / software / components / content_pres / sequent2pres.ml
index b98f95634a3619e0e0e8027ae3fa278155c396f8..549f5c7c58d6437216b9c1d9320d19856938ee62 100644 (file)
@@ -102,13 +102,19 @@ let sequent2pres ~ids_to_inner_sorts =
        TermAcicContent.ast_of_acic ~output_type:`Term ids_to_inner_sorts annterm
       in
       CicNotationPres.box_of_mpres
-        (CicNotationPres.render ids_to_uris
+        (CicNotationPres.render
+          ~lookup_uri:(CicNotationPres.lookup_uri ids_to_uris)
           (TermContentPres.pp_ast ast)))
 
-let nsequent2pres ~subst =
+let nsequent2pres ~ids_to_nrefs ~subst =
+ let lookup_uri id =
+  try
+   let nref = Hashtbl.find ids_to_nrefs id in
+    Some (NReference.string_of_reference nref)
+  with Not_found -> None
+ in
   sequent2pres0
-    (fun term ->
-      let ast = NTermCicContent.nast_of_cic ~subst term in
-       CicNotationPres.box_of_mpres
-        (CicNotationPres.render (Hashtbl.create 1)
-          (TermContentPres.pp_ast ast)))
+    (fun ast ->
+      CicNotationPres.box_of_mpres
+       (CicNotationPres.render ~lookup_uri
+         (TermContentPres.pp_ast ast)))