The Logic of Decision