ok so I know we have a million threads about dependent types and Agda and whatever but I just want a space where we can all sit together and appreciate how absolutely unhinged and beautiful the Curry-Howard correspondence is. no pressure, no homework, just vibes and proofs-as-programs ๐ซถ
for those just stumbling in: the Curry-Howard correspondence is the observation that there is a direct structural isomorphism between proof systems and models of computation. the core insight, stated simply:
like. that's it. logic is programming. programming is logic. the universe decided these two completely independently-discovered things were secretly the same object and i think about it every day.
the full correspondence table (my personal favourite cheat-sheet):
| Logic | ฮป-calculus / Types | Category Theory |
|---|---|---|
| Proposition A | Type A | Object A |
| Proof of A | Term of type A | Morphism 1 โ A |
| Implication A โ B | Function type A โ B | Exponential Bแดฌ |
| Conjunction A โง B | Product type A ร B | Cartesian product A ร B |
| Disjunction A โจ B | Sum type A + B | Coproduct A + B |
| True (โค) | Unit type () | Terminal object 1 |
| False (โฅ) | Empty type โฅ | Initial object 0 |
| โx. P(x) | Dependent product ฮ | Right adjoint functor |
| โx. P(x) | Dependent sum ฮฃ | Left adjoint functor |
| Proof reduction | ฮฒ-reduction | Morphism composition |
drop your favourite examples, connections, quotes, code snippets โ anything you love about this correspondence. let's make this thread a forever-reference for people discovering it for the first time ๐ธ