hn.today

So, how fast is numerical computation in Lean?

robertboy18.github.io4 points0 comments
Screenshot of So, how fast is numerical computation in Lean?

FloatLib, a Lean library for verified floating-point and numerical computation, was tested on eleven benchmark sets beyond those used to develop it. Its tactics can decide closed floating-point statements inside Lean’s kernel, prove real inequalities with certified interval arithmetic, and establish rounding-error bounds. On 291 obligations from LLM2Cert’s dynamical-systems benchmarks, the interval tactic proved 281 using default settings, compared with 274 in the published Lean results; several remaining problems involve radial unboundedness or limitations in search. The strongest result was complete success on 39,994 SMT-LIB floating-point conformance tests. Kernel arithmetic itself was fast, but proof checking and the full Lean pipeline added substantial overhead, and external SMT solvers were generally faster end to end.

Nonlinear real arithmetic exposed a major weakness: interval subdivision proved 56 of 66 eligible instances within a minute, but took a median 7.3 seconds, versus roughly 20-30 milliseconds for SMT solvers, and solved very few of a much larger set. Replaying neural-network verifier witnesses also showed why numerical semantics matter: among 5,737 counterexample files, many needed inputs nudged into the valid domain, 97 depended on rounding, and 742 were rejected under the tested interpretations. These rejections do not establish that the corresponding SAT claims were wrong; alternative valid witnesses existed for most affected instances. The experiments highlight both the value of kernel-checked numerical proofs and the need to specify whether properties concern real-valued models or actual floating-point execution.

Read on robertboy18.github.io0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Personal Computing

Personal Computing

Cory Doctorow recalls Vernor Vinge’s visionary novel *Rainbows End* and the friendship and encouragement he shared with its author. He connects its vision of personal computing to vibe coding, while asking who will build and maintain the free and open-source software it depends on. (pluralistic.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.