The Consolation of Philosophydiscusses the problem of divine foreknowledge and human freedom. If God's foreknowledge is infallible, our actions are necessary. Boethius used the doctrine of divine eternity to show how our actions are not necessary in any sense that threatens freedom or moral responsibility.