prove term_ok_cons and type_ok_cons