X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Ftactics%2Finversion_principle.ml;h=8031e7bbd26b77c027c43fcd3a5e438813010770;hb=41e76668e9389ce17e41747026e533f907a0311c;hp=b16b133bac997364592db469ef3f8df0d77bd3cd;hpb=801f0eb3eabe1cbcd66d6a3f52c24eb8f1189611;p=helm.git diff --git a/components/tactics/inversion_principle.ml b/components/tactics/inversion_principle.ml index b16b133ba..8031e7bbd 100644 --- a/components/tactics/inversion_principle.ml +++ b/components/tactics/inversion_principle.ml @@ -145,7 +145,7 @@ let build_inversion uri obj = if List.length (list_of_prod arity) = (nleft + 1) then None else - begin + try let arity_l = cut_last (list_of_prod arity) in let rightparam_tys = cut_first nleft arity_l in let theorem = build_theorem rightparam_tys arity_l arity cons_list @@ -194,7 +194,8 @@ let build_inversion uri obj = Some (inversor_uri, Cic.Constant (UriManager.name_of_uri inversor_uri,Some bo,ty,[],[])) - end + with + Inversion.EqualityNotDefinedYet -> None ;; let init () = ();;