History, religion, and progress