From: Enrico Tassi Date: Mon, 7 Apr 2008 14:59:43 +0000 (+0000) Subject: added case of const and axiom X-Git-Tag: make_still_working~5426 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=b49c4ade22239e671012537d598e7b2bc17c419e;p=helm.git added case of const and axiom --- diff --git a/helm/software/components/ng_kernel/nCicPp.ml b/helm/software/components/ng_kernel/nCicPp.ml index 94acaf3f4..b89d44aca 100644 --- a/helm/software/components/ng_kernel/nCicPp.ml +++ b/helm/software/components/ng_kernel/nCicPp.ml @@ -44,7 +44,13 @@ let ppobj = function ppterm ~metasenv ~subst ~context:[] ty ^ " :=\n"^ ppterm ~metasenv ~subst ~context:[] bo) fl) | (u,_,_,_,NCic.Inductive (b, _,tl, _)) -> "inductive" - | (u,_,_,_,NCic.Constant (_,_,_, _, _)) -> "constant" + | (u,_,metasenv,subst,NCic.Constant (_,name,None,ty, _)) -> + "axiom " ^ name ^ " : " ^ + ppterm ~metasenv ~subst ~context:[] ty ^ "\n" + | (u,_,metasenv,subst,NCic.Constant (_,name,Some bo,ty, _)) -> + "axiom " ^ name ^ " : " ^ + ppterm ~metasenv ~subst ~context:[] ty ^ ":=\n"^ + ppterm ~metasenv ~subst ~context:[] bo ^ "\n" ;;