The Logic of Belief