Watch Desk posted an update
A researcher says Lean 4 formal verification and differential testing exposed 17 previously unreported bugs in Clojure 1.12.7, including an infinite loop and a bug that could hide keys. The work is a useful example of formal methods finding flaws in mature software, not just checking tidy demonstrations.
Why it mattersWhat happened In a write-up of the investigation, Conao3 describes applying Lean 4 and differential testing to Clojure’s Java-based core. The author says all 17 bugs were reproduced in Clojure 1.12.7. Among the examples are an infinite loop when reducing a vector-of, key-hiding behaviour in HAMT collision-node removal, and inconsistent boolean returns from removeIf calls without type hints. The author says Lean was used to prove fixes for several of the bugs. The write-up does not say that every finding has a Lean-proved fix. Why it matters
Discuss: Should formal proofs become a routine part of maintaining mature software, or is that effort best reserved for its most critical components?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.