aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics
diff options
context:
space:
mode:
Diffstat (limited to 'tactics')
-rw-r--r--tactics/equality.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tactics/equality.ml b/tactics/equality.ml
index 5bf745121..dbff4f520 100644
--- a/tactics/equality.ml
+++ b/tactics/equality.ml
@@ -1174,7 +1174,7 @@ let eq_rhs eq =
let subst_one x gl =
let hyps = pf_hyps gl in
- let (_,xval,_) = Sign.lookup_named x hyps in
+ let (_,xval,_) = pf_get_hyp gl x in
(* If x has a body, simply replace x with body and clear x *)
if xval <> None then tclTHEN (unfold_body x) (clear [x]) gl else
(* x is a variable: *)