Logical objects and the paradox of Burali-Forti