aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics/hints.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-11-20 20:09:26 +0100
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-02-14 17:30:34 +0100
commitd4b344acb23f19b089098b7788f37ea22bc07b81 (patch)
tree6dd26d747b259793ef6a24befd27e13234b19875 /tactics/hints.ml
parent2cd0648e003308a000f9f89c898bce4d15fc94a1 (diff)
Eliminating parts of the right-hand side compatibility layer
Diffstat (limited to 'tactics/hints.ml')
-rw-r--r--tactics/hints.ml5
1 files changed, 0 insertions, 5 deletions
diff --git a/tactics/hints.ml b/tactics/hints.ml
index cd5fc79f5..2b310033c 100644
--- a/tactics/hints.ml
+++ b/tactics/hints.ml
@@ -50,7 +50,6 @@ exception Bound
let head_constr_bound sigma t =
let t = strip_outer_cast sigma t in
- let t = EConstr.of_constr t in
let _,ccl = decompose_prod_assum sigma t in
let hd,args = decompose_app sigma ccl in
match EConstr.kind sigma hd with
@@ -66,11 +65,8 @@ let head_constr sigma c =
let decompose_app_bound sigma t =
let t = strip_outer_cast sigma t in
- let t = EConstr.of_constr t in
let _,ccl = decompose_prod_assum sigma t in
let hd,args = decompose_app_vect sigma ccl in
- let hd = EConstr.of_constr hd in
- let args = Array.map EConstr.of_constr args in
match EConstr.kind sigma hd with
| Const (c,u) -> ConstRef c, args
| Ind (i,u) -> IndRef i, args
@@ -754,7 +750,6 @@ let secvars_of_global env gr =
let make_exact_entry env sigma pri poly ?(name=PathAny) (c, cty, ctx) =
let secvars = secvars_of_constr env sigma c in
let cty = strip_outer_cast sigma cty in
- let cty = EConstr.of_constr cty in
match EConstr.kind sigma cty with
| Prod _ -> failwith "make_exact_entry"
| _ ->