DEV Community

Discussion on: The Curry-Howard Correspondence in C#

Collapse
 
seankearon profile image
seankearon

I'd say it's going to be this:

B ModusPonens<A, B>(Func<A, B> A_implies_B, A proof_of_A)
{
    A_implies_B(proof_of_A);
}
Enter fullscreen mode Exit fullscreen mode

In the meantime, I'll eagerly await your next article! :)

Collapse
 
shimmer profile image
Brian Berns • Edited

That's right. Nice work! So modus ponens in logic corresponds to function application in programming. I'll try to follow up with some more interesting correspondences soon. Thanks for responding!

Collapse
 
seankearon profile image
seankearon

Woohoo! Thanks, Brian. Looking forward to the next instalment. :)

Thread Thread
 
shimmer profile image
Brian Berns

Part 2 is up here. Thanks for the encouragement to get it done!