diff options
author | 2001-07-10 12:04:17 +0000 | |
---|---|---|
committer | 2001-07-10 12:04:17 +0000 | |
commit | 47b05fc01cfc977201f84d1af1e1415f84cf39dc (patch) | |
tree | 694d86d44c9ea8c62adaf6c6aa1bf0fe0a3b5cfa /tactics/equality.ml | |
parent | efe54347f3c6ebdced8142c5656c05ff46caa693 (diff) |
Changement de place de la tactique Setoid_rewrite et renommage
en Rewrite. Le choix entre egalite de Leibnitz et egalite de
setoide est fait automatiquement
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1841 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/equality.ml')
-rw-r--r-- | tactics/equality.ml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tactics/equality.ml b/tactics/equality.ml index 2b1c9da35..7b319b48d 100644 --- a/tactics/equality.ml +++ b/tactics/equality.ml @@ -33,6 +33,7 @@ open Tacinterp open Tacred open Vernacinterp open Coqlib +open Setoid_replace (* Rewriting tactics *) @@ -50,7 +51,10 @@ let general_rewrite_bindings lft2rgt (c,l) gl = let sigma = project gl in let _,t = splay_prod env sigma ctype in match match_with_equation t with - | None -> error "The term provided does not end with an equation" + | None -> + if l = [] + then general_s_rewrite lft2rgt c gl + else error "The term provided does not end with an equation" | Some (hdcncl,_) -> let hdcncls = string_head hdcncl in let suffix = Declare.elimination_suffix (sort_of_goal gl) in |