HackerByte

I checked Clojure's core with Lean and found unreported bugs

Verification of Clojure's core functionality using the Lean theorem prover revealed previously unreported bugs.

AI-generated summary

The author formally verified parts of Clojure's core Java implementation using the Lean 4 proof assistant. Despite Clojure's maturity, 17 previously unreported bugs were discovered, primarily in arithmetic operations and data structure interop, outside the core HAMT and vector tree structures. While differential testing matched Java's collections, specific edge cases in Clojure's implementations were revealed through formal methods.

Hacker News submitter: encyclopedism

Submitted to Hacker News:

Original source Hacker News discussion