Termsslug: hamt

HAMT

哈希数组映射前缀树

Structurally shared hash map implementation underlying Clojure's persistent collections.

Curated Intelligence

1 items · Page 1/1
Hacker News AIT2·Open Source
58 pts
Lean 4 Formal Verification of Clojure Core Uncovers 17 Unreported Bugs

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.