Title: the logic of democracy