# Lean 数值计算：LLM2Cert 与 FloatLib 实测

Original title: So, how fast is numerical computation in Lean?

> Hacker News story 50675526 · language: zh · submitted 2026-11-28
> Web version: https://zeli.app/zh/story/50675526
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 5 · by [matt_d](<https://news.ycombinator.com/user?id=matt_d>) · 💬 0
[original](<https://robertboy18.github.io/TorchLean-Verified-Examples/week-09-floatlib-benchmarks/>) · [HN discussion](<https://news.ycombinator.com/item?id=50675526>)

## Summary

我最近用 FloatLib 在 Lean 中跑了一组数值计算基准测试，结果喜忧参半。在 LLM2Cert 的 291 个证明义务中，281 个仅靠 `interval` 策略就搞定；SMT-LIB 的 39,994 个浮点一致性测试也全部通过。但在非线性实数算术上，我们的速度还远不如 Z3 和 cvc5。最有趣的是对 VNN-COMP 反例的重放实验：很多所谓的反例其实是因为浮点舍入误差或求和顺序不同而失效。这让我意识到，证明神经网络定理和验证实际程序运行之间，还隔着巨大的数值语义鸿沟。

## Key quote

> 让模型去找出证书应该是什么，然后让数值策略来处理随之而来的不等式。

---

## Cite

- Page: https://zeli.app/zh/story/50675526
- Date: 2026-11-28
- Source: robertboy18.github.io (https://robertboy18.github.io/TorchLean-Verified-Examples/week-09-floatlib-benchmarks/)
- Hacker News: https://news.ycombinator.com/item?id=50675526

## Other languages

- en: https://zeli.app/story/50675526 · markdown: https://zeli.app/story/50675526.md
- ja: https://zeli.app/ja/story/50675526 · markdown: https://zeli.app/ja/story/50675526.md
- ko: https://zeli.app/ko/story/50675526 · markdown: https://zeli.app/ko/story/50675526.md
- de: https://zeli.app/de/story/50675526 · markdown: https://zeli.app/de/story/50675526.md
- es: https://zeli.app/es/story/50675526 · markdown: https://zeli.app/es/story/50675526.md
- ru: https://zeli.app/ru/story/50675526 · markdown: https://zeli.app/ru/story/50675526.md
