Go back to Hilbert's 10th problem: find an algorithm to determine if a polynomial has integer solution.
Proof.
Finally shown in 1970 by Matiyasevich. The detail of this proof is not mentioned in the class.
People were trying to reach the final solution gradually, paper after paper. It took 70 years to
finally get a function

to transform

's input into

's input, so
we can see that, normally, to discover

is the most tricky part of all these reductions.