Formalizing Category Theory and Presheaf Models of Type Theory in Nuprl