]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/components/ng_kernel/nCicPp.ml
This commit patches the environment and the library so that their status is
[helm.git] / matitaB / components / ng_kernel / nCicPp.ml
index 84c95f45abbb7f4bf36772799e400505a3c50619..80eb372aeec1dace6d1622ebf9b83e16fcf81e38 100644 (file)
@@ -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