"\n%s\nbut is should have type \n%s\n")
(NCicPp.ppterm ~subst ~metasenv ~context he)
(NCicPp.ppterm ~subst ~metasenv ~context arg)
- (NCicPp.ppterm ~subst ~metasenv ~context s)
- (NCicPp.ppterm ~subst ~metasenv ~context ty_arg))))
+ (NCicPp.ppterm ~subst ~metasenv ~context ty_arg)
+ (NCicPp.ppterm ~subst ~metasenv ~context s))))
| _ ->
raise
(TypeCheckerFailure
let ty_he = typeof_aux context he in
let args_with_ty = List.map (fun t -> t, typeof_aux context t) args in
(*
- prerr_endline ("HEAD: " ^ NCicPp.ppterm ~context ty_he);
+ prerr_endline ("HEAD: " ^ NCicPp.ppterm ~subst ~metasenv ~context ty_he);
prerr_endline ("TARGS: " ^ String.concat " | " (List.map (NCicPp.ppterm
- ~context) (List.map snd args_with_ty)));
+ ~subst ~metasenv ~context) (List.map snd args_with_ty)));
prerr_endline ("ARGS: " ^ String.concat " | " (List.map (NCicPp.ppterm
- ~context) (List.map fst args_with_ty)));
+ ~subst ~metasenv ~context) (List.map fst args_with_ty)));
*)
eat_prods ~subst ~metasenv context he ty_he args_with_ty
| C.Appl _ -> raise (AssertFailure (lazy "Appl of length < 2"))