]> matita.cs.unibo.it Git - helm.git/blobdiff - components/tactics/inversion.ml
Old inversion bug fixed: it used to work only on the last hypothesis (or sort
[helm.git] / components / tactics / inversion.ml
index 19d0c739ae87816ac9c26f6fded33d04f681ab37..e610212440ac9e71840859f2c76dccf14330f276 100644 (file)
@@ -336,8 +336,8 @@ let inversion_tac ~term =
    for n = 1 to arity_consno do
     a := (Cic.Implicit None)::(!a)
    done;
-  (* apply    i_inv             ? ...?      H).     *)
-  Cic.Appl ([Cic.Const(uri,[])] @ !a @ [Cic.Rel 1])
+   (* apply    i_inv             ? ...?      H).     *)
+   Cic.Appl ([Cic.Const(uri,[])] @ !a @ [term])
   in
   let t = appl_term (arity_length + (List.length cons_list)) inversor_uri in
   let (t1,metasenv,_subst,t3,t4, attrs) = proof in