]> matita.cs.unibo.it Git - helm.git/commitdiff
Old inversion bug fixed: it used to work only on the last hypothesis (or sort
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 11 Oct 2007 08:44:09 +0000 (08:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 11 Oct 2007 08:44:09 +0000 (08:44 +0000)
of).

helm/software/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