X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matitaB%2Fcomponents%2Fng_kernel%2FnCicPp.ml;h=d19914ab4166bf423a6cee37caf689a75f414fdb;hb=df7a2aa19e98dc28e7f22129275a175cead49e2d;hp=84c95f45abbb7f4bf36772799e400505a3c50619;hpb=6c702f5054d7975f76911ba62da9bfa33d3ed0fa;p=helm.git diff --git a/matitaB/components/ng_kernel/nCicPp.ml b/matitaB/components/ng_kernel/nCicPp.ml index 84c95f45a..d19914ab4 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))) @@ -280,6 +280,7 @@ let string_of_pragma = function | `Elim _sort -> "Elim _" | `Projection -> "Projection" | `InversionPrinciple -> "InversionPrinciple" + | `DiscriminationPrinciple -> "DiscriminationPrinciple" | `Variant -> "Variant" | `Local -> "Local" | `Regular -> "Regular" @@ -359,8 +360,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