aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2014-10-22 19:09:28 +0200
committerHugo Herbelin2014-11-18 20:52:42 +0100
commit13f0964c058ef56e02538d1b15fbe681846fd17d (patch)
treeddee9964f887425352b75f82b9947e527e2b8a4c
parentca7171486839dee28732371ccde4a8bfc549368c (diff)
Tentative rephrasing of error message for rewrite.
-rw-r--r--tactics/rewrite.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tactics/rewrite.ml b/tactics/rewrite.ml
index 06e3c91f7e..68605119ca 100644
--- a/tactics/rewrite.ml
+++ b/tactics/rewrite.ml
@@ -483,7 +483,7 @@ let rec decompose_app_rel env evd t =
let len = Array.length args in
let fargs = Array.sub args 0 (Array.length args - 2) in
mkApp (f, fargs), args.(len - 2), args.(len - 1)
- | _ -> error "The term provided is not an applied relation."
+ | _ -> error "Cannot find a relation to rewrite."
let decompose_applied_relation env sigma orig (c,l) =
let ctype = Retyping.get_type_of env sigma c in
@@ -510,7 +510,7 @@ let decompose_applied_relation env sigma orig (c,l) =
let ctx,t' = Reductionops.splay_prod env sigma ctype in (* Search for underlying eq *)
match find_rel (it_mkProd_or_LetIn t' (List.map (fun (n,t) -> n, None, t) ctx)) with
| Some c -> c
- | None -> error "The term does not end with an applied homogeneous relation."
+ | None -> error "Cannot find an homogeneous relation to rewrite."
let decompose_applied_relation_expr env sigma (is, (c,l)) =
let sigma, cbl = Tacinterp.interp_open_constr_with_bindings is env sigma (c,l) in
@@ -2052,7 +2052,7 @@ let setoid_symmetry_in id =
let rec split_last_two = function
| [c1;c2] -> [],(c1, c2)
| x::y::z -> let l,res = split_last_two (y::z) in x::l, res
- | _ -> error "The term provided is not an equivalence."
+ | _ -> error "Cannot find an equivalence relation to rewrite."
in
let others,(c1,c2) = split_last_two args in
let he,c1,c2 = mkApp (equiv, Array.of_list others),c1,c2 in