The Logic of Polytheism