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

72 points by nathell 22 hours ago on lobsters | 5 comments

olegkovalov | 21 hours ago

This is scary to realize how many bugs can be hidden in stdlibs or built-in types. Definitely bugs will always exist but finding them on that low in callstack is indeed a horror story.

icholy | 10 hours ago

I've been shocked to find how many bugs seemingly "very simple" code can have.

daveliepmann | 6 hours ago

It's a bit unclear to me what the "tested 3 million inputs" thing means, and the general strategies applied here

lean-verify seems to focus on small functions (makes sense to me) but then I suppose it tries to run inputs on the lean variant and then the (say) Java variant and compare the results? In that universe are we even really relying on lean properties?

In other words, could I have (for example) python-verify and gotten the same results here?

frogulis | 7 hours ago

I suppose the assumption is that the lean implementation is proven to be correct (for some definition of correct)