Hacker News AIT2·Open Source
58 pts
The author modeled Java-implemented parts of Clojure core, including integer and bit arithmetic and persistent collections, in Lean 4, using failed proofs and differential testing to surface counterexamples. The effort uncovered 17 bugs absent from Clojure's JIRA and ask.clojure.org, spanning reduce on vector-of and the HAMT hash collision node. The author also proved clojure.core/mod matches floored remainder up to 32 bits.