]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nCicPp.ml
context, metasenv and subst made mandatory in CicPp
[helm.git] / helm / software / components / ng_kernel / nCicPp.ml
index b21274fea109915daca66ea3d1aab10f3501b9d2..94acaf3f483929db32ca7951d2d248ed485559cc 100644 (file)
@@ -4,7 +4,7 @@ let ppterm =
 
 let set_ppterm f = ppterm := f;;
 
-let ppterm ?(context=[]) ?(subst=[]) ?(metasenv=[]) t = 
+let ppterm ~context ~subst ~metasenv t = 
   !ppterm ~context ~subst ~metasenv t
 ;;
 
@@ -36,12 +36,13 @@ let trivial_pp_term ~context ~subst ~metasenv =
 ;;
 
 let ppobj = function
-  | (u,_,_,_,NCic.Fixpoint (b, fl, _)) -> 
+  | (u,_,metasenv,subst,NCic.Fixpoint (b, fl, _)) -> 
        "let rec "^NUri.string_of_uri u^"\n"^
        String.concat "\nand "
         (List.map (fun (_,name,n,ty,bo) ->
-          name ^ " on " ^ string_of_int n ^ " : " ^ ppterm ty ^ " :=\n"^
-          ppterm bo) fl)
+          name ^ " on " ^ string_of_int n ^ " : " ^ 
+          ppterm ~metasenv ~subst ~context:[] ty ^ " :=\n"^
+          ppterm ~metasenv ~subst ~context:[] bo) fl)
   | (u,_,_,_,NCic.Inductive (b, _,tl, _)) -> "inductive"
   | (u,_,_,_,NCic.Constant (_,_,_, _, _)) -> "constant"
 ;;