Skip to content

Commit 82a040d

Browse files
committed
Alias evars defined with evars during a refine operation
1 parent 1c57e37 commit 82a040d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proofs/refine.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ let generic_refine ~typecheck f gl =
8383
| None -> Evd.define self c sigma
8484
| Some evk ->
8585
let id = Evd.evar_ident self sigma in
86-
let sigma = Evd.define self c sigma in
86+
let sigma =
87+
if EConstr.isEvar sigma c then
88+
Evd.define_with_evar self c sigma
89+
else Evd.define self c sigma
90+
in
8791
match id with
8892
| None -> sigma
8993
| Some id -> Evd.rename evk id sigma

0 commit comments

Comments
 (0)