The Logic in Ancient Prophecy