Freedom, foreknowledge, and dependence