# Why Your Type Checker May Be Wrong: Lean and the Curry-Howard Correspondence

Original title: An introduction to formal proof verification and the Curry-Howard Correspondence

> Hacker News story 49046983 · language: en · submitted 2026-07-25
> Web version: https://zeli.app/story/49046983
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 27 · by [max-amb](<https://news.ycombinator.com/user?id=max-amb>) · 💬 6
[original](<https://max-amb.github.io/blog/your_type_checker_may_be_wrong/>) · [HN discussion](<https://news.ycombinator.com/item?id=49046983>)

## Summary

I explore how proof assistants like Lean leverage the Curry-Howard correspondence to treat mathematical proofs as computer programs. By mapping logical operations to types, these tools verify complex theorems automatically. However, I reveal a critical limitation: if a proof involves non-terminating expressions, the type checker cannot definitively validate the result, meaning it might be wrong even when you believe you are right.

## Key quote

> Therefore, one may be surprised by the fact that type checkers also form the backbone of proof assistants, which may mean your type checker is wrong or just may not know you are right.

## HN discussion (6 comments)

### [GroksBarnacles](<https://news.ycombinator.com/item?id=49091571>)

> Anyone else having the text squeezed to only ~1/3 the page width? On mobile
>
> Edit: Switched to desktop site, and.. that's just how it is

### [max-amb](<https://news.ycombinator.com/item?id=49047071>)

> Feel free to ask any questions etc. here :)

### [cyanregiment](<https://news.ycombinator.com/item?id=49091179>)

> Oh that's where "currying" comes from?
>
> I thought it was just a delicious way to bind events.

---

## Cite

- Page: https://zeli.app/story/49046983
- Date: 2026-07-25
- Source: max-amb.github.io (https://max-amb.github.io/blog/your_type_checker_may_be_wrong/)
- Hacker News: https://news.ycombinator.com/item?id=49046983

## Other languages

- zh: https://zeli.app/zh/story/49046983 · markdown: https://zeli.app/zh/story/49046983.md
