A Curry-Howard Approach to Church's Synthesis (Logical Methods in Computer Science, 2019)