X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_tactics%2FnDestructTac.ml;h=be991484079afe4510396a93d27bde7d237f55cc;hb=e4328c9691fa85434acfb24eaedcb15ea2263b28;hp=daa80fd8f08690e2964db8e1469d5e21ca38f8c3;hpb=3c2b1af52212c320f6e4506d10df7077379a222c;p=helm.git diff --git a/matita/components/ng_tactics/nDestructTac.ml b/matita/components/ng_tactics/nDestructTac.ml index daa80fd8f..be9914840 100644 --- a/matita/components/ng_tactics/nDestructTac.ml +++ b/matita/components/ng_tactics/nDestructTac.ml @@ -471,7 +471,7 @@ let subst_tac ~context ~dir skip cur_eq = | _ -> cascade_select_in_ctx status ~subst:(get_subst status) context skip cur_eq in let varname = match var with | NCic.Rel var -> - let name,_ = List.nth context var in + let name,_ = List.nth context (var+cur_eq-1) in HLog.warn (Printf.sprintf "destruct: trying to remove variable: %s" name); [name] | _ -> [] @@ -497,7 +497,7 @@ let subst_tac ~context ~dir skip cur_eq = (* XXX: temo che la clear multipla funzioni bene soltanto se * gli identificatori sono nell'ordine giusto. * Per non saper né leggere né scrivere, usiamo due clear - * invece di una *) + * invece di una *) NTactics.try_tac (NTactics.clear_tac [eq_name]); NTactics.try_tac (NTactics.clear_tac varname); ]@