aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-11-10 17:52:35 +0100
committerPierre-Marie Pédrot2014-11-10 18:14:07 +0100
commitd7e7e9a62fd951b2103d2b6fb9ce2589a16022ca (patch)
treed58859c9bb9317ce83abe04e90d7ee56f7336032
parentdc334ef9fb37894658bdc51b931a0a7784dbdaa3 (diff)
Universes.nf_evars_and_universes_opt_subst substitutes evars eagerly.
This is a continuation of the previous patch.
-rw-r--r--library/universes.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/universes.ml b/library/universes.ml
index 708324aede..438e6cc532 100644
--- a/library/universes.ml
+++ b/library/universes.ml
@@ -547,8 +547,9 @@ let nf_evars_and_universes_opt_subst f subst =
let lsubst = Univ.level_subst_of subst in
let rec aux c =
match kind_of_term c with
- | Evar (evdk, _ as ev) ->
- (match try f ev with Not_found -> None with
+ | Evar (evk, args) ->
+ let args = Array.map aux args in
+ (match try f (evk, args) with Not_found -> None with
| None -> c
| Some c -> aux c)
| Const pu ->