Mechanising set theory