From 105db906ae45e792d1caeeb2e3fb7f69944b2caa Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Mon, 7 Apr 2014 12:53:41 +0200 Subject: - Fixes for canonical structure resolution (check that the initial term indeed unifies with the projected term, keeping track of universes). - Fix the [unify] tactic to fail properly. - Fix unification to disallow lowering a global Type(i) universe to Prop or Set. --- pretyping/evarsolve.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pretyping/evarsolve.ml') diff --git a/pretyping/evarsolve.ml b/pretyping/evarsolve.ml index 306116d76d..761f11c115 100644 --- a/pretyping/evarsolve.ml +++ b/pretyping/evarsolve.ml @@ -30,8 +30,8 @@ let refresh_universes dir evd t = let evdref = ref evd in let modified = ref false in let rec refresh t = match kind_of_term t with - | Sort (Type u as s) when Univ.universe_level u = None || - Evd.is_sort_variable evd s = None -> + | Sort (Type u as s) when Univ.universe_level u = None + (* || Evd.is_sort_variable evd s = None *) -> (modified := true; (* s' will appear in the term, it can't be algebraic *) let s' = evd_comb0 (new_sort_variable Evd.univ_flexible) evdref in -- cgit v1.2.3