Definition of regular categories