]> matita.cs.unibo.it Git - helm.git/commitdiff
Bugfix in inversion (was using refl_eq instead of refl).
authorWilmer Ricciotti <ricciott@cs.unibo.it>
Fri, 4 Dec 2009 11:30:34 +0000 (11:30 +0000)
committerWilmer Ricciotti <ricciott@cs.unibo.it>
Fri, 4 Dec 2009 11:30:34 +0000 (11:30 +0000)
helm/software/components/ng_tactics/nInversion.ml

index 627885cb743628ed01c7b8b2ec04d6122ed2f23f..8df07952f65eea99e4feed26987c41ecc0677180 100644 (file)
@@ -130,8 +130,8 @@ let mk_inverter name it leftno ?selection outsort status baseuri =
                                       mk_appl (mk_id "P"::id_rs)))))
      in 
      let t = mk_appl ( [mk_id (ind_name ^ "_" ^ suffix)]@ id_ls @ [lambdas] @
-                       List.map mk_id hyplist @
-                       CicNotationPt.Implicit `Vector::[mk_id "Hterm"] ) in
+                       List.map mk_id hyplist @ 
+                       HExtlib.mk_list (CicNotationPt.Implicit `JustOne) (List.length ys) @ [mk_id "Hterm"] ) in
      let status, theorem = GrafiteDisambiguate.disambiguate_nobj status ~baseuri 
                              (baseuri ^ name ^ ".def",
                                0,CicNotationPt.Theorem (`Theorem,name,theorem,Some
@@ -158,7 +158,7 @@ let mk_inverter name it leftno ?selection outsort status baseuri =
                                NTactics.branch_tac;
                                NTactics.case_tac "end";
                                NTactics.apply_tac ("",0,mk_id "Hcut");
-                               NTactics.apply_tac ("",0,mk_id "refl_eq"); 
+                               NTactics.apply_tac ("",0,mk_id "refl"); 
                                NTactics.shift_tac;
                                (*NTactics.case_tac "cut";*)
                                NTactics.apply_tac ("",0,t);