An unofficial, read-only Hacker News reader. Join the beta →

I checked Clojure's core with Lean and found unreported bugs (opens external site)

238 points by encyclopedism 2 days ago | s.conao3.com | 84 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. As different tools (e.g., SPIN, Z3) have been used as "checking engines" to realize verification solutions, I think trying to use Lean as a checking engine is understandable; more so, if Lean provides additional benefits (e.g., richer library, higher level of abstractions, performant checking) over other tools that help reduce modeling tedium, improve model fidelity, or speed up checking.

    That said, I think the issue of model fidelity and spec/property correctness will still exist in a reduced form. Also, simpler solutions/tools may be better suited for certain classes of properties.

    As for how this exercise worked, my guess is that the agent models both the SUT and the environment, encodes the property based on property templates, and checks the model for bugs (w/ counterexample) or correctness proof using a set of tactics; see https://github.com/hirosassa/lean-verify/blob/main/skills/le.... I hope the author or others can provide a better explanation.