aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-04-24 16:03:06 +0200
committerPierre-Marie Pédrot2019-05-10 12:53:09 +0200
commita5a89e8b623cd5822f59b854a45efc8236ae0087 (patch)
tree8950d13c0d8f75c14724191d58f100c78206a4d3 /tactics
parent4785156d31eb513b6e7fcb8dbab1c219da83612b (diff)
Logic.convert_hyp now takes an environment as an argument.
This prevents having to call global functions, for no good reason. We also seize the opportunity to name the check argument.
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tactics.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 5e8869f9b0..5a19f95f90 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -168,7 +168,7 @@ let convert_hyp ?(check=true) d =
let env = Proofview.Goal.env gl in
let sigma = Tacmach.New.project gl in
let ty = Proofview.Goal.concl gl in
- let sign = convert_hyp check (named_context_val env) sigma d in
+ let sign = convert_hyp ~check env sigma d in
let env = reset_with_named_context sign env in
Refine.refine ~typecheck:false begin fun sigma ->
Evarutil.new_evar env sigma ~principal:true ty
@@ -728,7 +728,7 @@ let e_change_in_hyps ?(check=true) f args =
raise (RefinerError (env, sigma, NoSuchHyp id))
in
let (sigma, d) = e_pf_change_decl redfun where hyp env sigma in
- let sign = Logic.convert_hyp check (named_context_val env) sigma d in
+ let sign = Logic.convert_hyp ~check env sigma d in
let env = reset_with_named_context sign env in
(env, sigma)
in