aboutsummaryrefslogtreecommitdiff
path: root/tactics/eauto.ml4
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-06-23 15:59:03 +0200
committerMatthieu Sozeau2014-06-23 15:59:03 +0200
commite2b64c6df6e59dda27b3b19ca8bde19c2bdf35e2 (patch)
tree3b5dd3d9e6d487ef69f8136884b6b07cf98f12ed /tactics/eauto.ml4
parentdb37c9f3f32ae7a2abcd5e1a3f6239eddb5e1768 (diff)
Oops, I fixed the .ml's
Diffstat (limited to 'tactics/eauto.ml4')
-rw-r--r--tactics/eauto.ml46
1 files changed, 4 insertions, 2 deletions
diff --git a/tactics/eauto.ml4 b/tactics/eauto.ml4
index fd5310e040..bc3ad026cb 100644
--- a/tactics/eauto.ml4
+++ b/tactics/eauto.ml4
@@ -545,10 +545,12 @@ let autounfold_one db cl gl =
let (ids, csts) = Hint_db.unfolds db in
(Id.Set.union ids i, Cset.union csts c)) (Id.Set.empty, Cset.empty) db
in
- let did, c' = unfold_head (pf_env gl) st (match cl with Some (id, _) -> pf_get_hyp_typ gl id | None -> pf_concl gl) in
+ let did, c' = unfold_head (pf_env gl) st
+ (match cl with Some (id, _) -> pf_get_hyp_typ gl id | None -> pf_concl gl)
+ in
if did then
match cl with
- | Some hyp -> change_in_hyp None c' hyp gl
+ | Some hyp -> change_in_hyp None (fun env sigma -> sigma, c') hyp gl
| None -> convert_concl_no_check c' DEFAULTcast gl
else tclFAIL 0 (str "Nothing to unfold") gl