aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/evd.ml
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2014-10-12 15:32:38 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2014-10-13 19:12:34 +0200
commit267d7a63e9c24573226d0890bedb783f10dcb235 (patch)
tree9086f77abd7a96d89d9b9e9272ac4aa87f256223 /pretyping/evd.ml
parent9632987e1eb0b035c760ab293e785c752d5eac92 (diff)
Adding a tactic which fails if one of the goals under focus is dependent in another one.
Diffstat (limited to 'pretyping/evd.ml')
-rw-r--r--pretyping/evd.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml
index 028361185..f85970a1f 100644
--- a/pretyping/evd.ml
+++ b/pretyping/evd.ml
@@ -1572,6 +1572,12 @@ let evar_source_of_meta mv evd =
| Anonymous -> (Loc.ghost,Evar_kinds.GoalEvar)
| Name id -> (Loc.ghost,Evar_kinds.VarInstance id)
+let dependent_evar_ident ev evd =
+ let evi = find evd ev in
+ match evi.evar_source with
+ | (_,Evar_kinds.VarInstance id) -> id
+ | _ -> anomaly (str "Not an evar resulting of a dependent binding")
+
(*******************************************************************)
type open_constr = evar_map * constr