diff options
Diffstat (limited to 'library/universes.ml')
-rw-r--r-- | library/universes.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/universes.ml b/library/universes.ml index 7fe4258c2..cc0153311 100644 --- a/library/universes.ml +++ b/library/universes.ml @@ -220,7 +220,7 @@ let compare_head_gen_proj env equ eqs eqc' m n = | Proj (p, c), App (f, args) | App (f, args), Proj (p, c) -> (match kind_of_term f with - | Const (p', u) when eq_constant p p' -> + | Const (p', u) when eq_constant (Projection.constant p) p' -> let pb = Environ.lookup_projection p env in let npars = pb.Declarations.proj_npars in if Array.length args == npars + 1 then @@ -429,7 +429,7 @@ let global_app_of_constr c = | Ind (i, u) -> (IndRef i, u), None | Construct (c, u) -> (ConstructRef c, u), None | Var id -> (VarRef id, Instance.empty), None - | Proj (p, c) -> (ConstRef p, Instance.empty), Some c + | Proj (p, c) -> (ConstRef (Projection.constant p), Instance.empty), Some c | _ -> raise Not_found open Declarations |