We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c57e37 commit 82a040dCopy full SHA for 82a040d
proofs/refine.ml
@@ -83,7 +83,11 @@ let generic_refine ~typecheck f gl =
83
| None -> Evd.define self c sigma
84
| Some evk ->
85
let id = Evd.evar_ident self sigma in
86
- let sigma = Evd.define self c sigma in
+ 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
91
match id with
92
| None -> sigma
93
| Some id -> Evd.rename evk id sigma
0 commit comments