This sounds interesting enough that I think a link would be useful
Here you go: https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...