The check was added by Tassi when adding universe constraints.
However, it is now believed to be useless.
List.fold_right (
fun x (l,ugraph) ->
let ty,ugraph1 = type_of_aux ~logger context x ugraph in
- let _,ugraph1 = type_of_aux ~logger context ty ugraph1 in
+ (*let _,ugraph1 = type_of_aux ~logger context ty ugraph1 in*)
((x,ty)::l,ugraph1))
tl ([],ugraph1)
in
(match (CicReduction.whd ~subst context hetype) with
Cic.Prod (n,s,t) ->
let b,ugraph1 =
+(*
+if hety <> s then
+prerr_endline ("AAA22: " ^ CicPp.ppterm hete ^ ": " ^ CicPp.ppterm hety ^ " <==> " ^ CicPp.ppterm s);
+*)
CicReduction.are_convertible
~subst ~metasenv context hety s ugraph
in