]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_tactics/nTacStatus.ml
Implementation of ndestruct tactic (including destruction of constructor forms
[helm.git] / helm / software / components / ng_tactics / nTacStatus.ml
index 0bef3a794448b6a9834e1be363f401bb3b0b1e8a..b58eb5558a8d95a2f6ce5564a0ea7ab228f19f2f 100644 (file)
@@ -229,6 +229,10 @@ let get_goalty status g =
  with NCicUtils.Meta_not_found _ as exn -> fail ~exn (lazy "get_goalty")
 ;;
 
+let get_subst status =
+  let _,_,_,subst,_ = status#obj in subst
+;;
+
 let to_subst status i entry =
  let name,height,metasenv,subst,obj = status#obj in
  let metasenv = List.filter (fun j,_ -> j <> i) metasenv in
@@ -267,6 +271,7 @@ let mk_meta status ?(attrs=[]) ctx bo_or_ty kind =
       let n,h,metasenv,subst,o = status#obj in
       let metasenv, metano, instance, _ = 
         NCicMetaSubst.mk_meta ~attrs metasenv ctx ~with_type:ty kind in
+      let attrs,_,_ = NCicUtils.lookup_meta metano metasenv in
       let metasenv = List.filter (fun j,_ -> j <> metano) metasenv in
       let subst = (metano, (attrs, ctx, bo_, ty)) :: subst in
       let status = status#set_obj (n,h,metasenv,subst,o) in