NERIS TYPE THEORY