r/webdev • • 7d ago

Lean explained with TypeScript

https://gruhn.me/blog/2026-08-29/
10 Upvotes

3 comments sorted by

0

u/thekwoka 7d ago

Not sure what the use of Lean is here (just use Rust)

But this reminds me of solving Advent of Code in a d.ts file

1

u/tlai-848 1d ago

Rust and Lean solve different problems: Rust's type system helps enforce program invariants; Lean's dependent types let you encode propositions and check proofs. Lean makes sense when proof is part of the goal.