The Logic of the History of Ideas