X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matitaB%2Fcomponents%2Fng_kernel%2FnCicPp.ml;h=80eb372aeec1dace6d1622ebf9b83e16fcf81e38;hb=e79c8b830f9f6b0c3f4d577909e32e1bb4032cdf;hp=84c95f45abbb7f4bf36772799e400505a3c50619;hpb=9dac2c325dca1b5b92d6ba11dadf470538bae28e;p=helm.git diff --git a/matitaB/components/ng_kernel/nCicPp.ml b/matitaB/components/ng_kernel/nCicPp.ml index 84c95f45a..80eb372ae 100644 --- a/matitaB/components/ng_kernel/nCicPp.ml +++ b/matitaB/components/ng_kernel/nCicPp.ml @@ -141,7 +141,7 @@ let ppterm status ~formatter:f ~context ~subst ~metasenv:_ ?(inside_fix=false) t let _,_,t,_ = List.assoc n subst in let hd = NCicSubstitution.subst_meta status lc t in aux ctx - (NCicReduction.head_beta_reduce (status :> NCic.status) ~upto:(List.length args) + (NCicReduction.head_beta_reduce (status :> NCicEnvironment.status) ~upto:(List.length args) (match hd with | NCic.Appl l -> NCic.Appl (l@args) | _ -> NCic.Appl (hd :: args))) @@ -359,8 +359,15 @@ let ppsubst status ~metasenv ?use_subst subst = let ppobj status obj = on_buffer (ppobj status) obj;; +class type cstatus = + object + inherit NCicEnvironment.status + inherit NCic.cstatus + end + class status (uid : string option) = object(self) + inherit NCicEnvironment.status uid (* this method is meant to be overridden in ApplyTransformation *) method user = uid method ppterm = ppterm self