aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-03 22:18:44 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-03 22:18:44 +0000
commit1b118b7b7164d8c8543d4ba184f6afed10e2006c (patch)
tree46773aba5e3de963d883f092aef8290c876aba3a
parentb8b0e5813a01a0a8e816ee30be1b626cffbeb092 (diff)
Essai d'un peu plus de conversion dans apply : suppression de la
restriction de conversion sur les sous-termes seulement git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10749 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--pretyping/unification.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/pretyping/unification.ml b/pretyping/unification.ml
index 3f260991c..3ef17778a 100644
--- a/pretyping/unification.ml
+++ b/pretyping/unification.ml
@@ -141,7 +141,7 @@ let default_no_delta_unify_flags = {
modulo_delta = Cpred.empty;
}
-let unify_0_with_initial_metas metas is_subterm env sigma cv_pb flags m n =
+let unify_0_with_initial_metas metas conv_at_top env sigma cv_pb flags m n =
let nb = nb_rel env in
let trivial_unify pb (metasubst,_) m n =
match subst_defined_metas metas m with
@@ -242,7 +242,7 @@ let unify_0_with_initial_metas metas is_subterm env sigma cv_pb flags m n =
then
(metas,[])
else
- unirec_rec env cv_pb is_subterm (metas,[]) m n
+ unirec_rec env cv_pb conv_at_top (metas,[]) m n
let unify_0 = unify_0_with_initial_metas [] true
@@ -529,7 +529,7 @@ let w_unify_meta_types env ?(flags=default_unify_flags) evd =
let w_unify_core_0 env with_types cv_pb flags m n evd =
let (mc1,evd') = retract_coercible_metas evd in
let (mc2,ec) =
- unify_0_with_initial_metas mc1 false env (evars_of evd') cv_pb flags m n
+ unify_0_with_initial_metas mc1 true env (evars_of evd') cv_pb flags m n
in
w_merge env with_types flags mc2 ec evd'