A person denying free will is put into some inquisition tool, say Spanish boot. He is asked: “Do I have free will to stop the torture?”. The answer “Yes” finishes the proof. After “No” the Spanish boot is tightened a bit and the question is repeated.
Source: Maarten Hoenen’s lecture on Duns Scotus: