如何在COQ中获得更好的证明风格?

发布于 2025-01-19 22:30:50 字数 1394 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄凉少年不暖心 2025-01-26 22:30:50

您将在很多方面取得很大的进步:

  • 阅读书籍和教程以及它们包含的建议和示例(您将在 Coq 的页面中找到一个列表)
  • 阅读库中的校样并尝试使用您将找到的模式。您可以发明自我修正的练习:例如,自己证明列表、算术等方面的引理,并将您的证明与图书馆中现有的证明进行比较。
  • 使用一些工具可以更轻松地编写可读和结构化的证明脚本(mathcomp/ssreflect 策略、项目符号等)。
  • 询问有关样式和证明脚本结构和大小的问题(就像您所做的那样)。

请注意,在如此广泛使用的打样助手中,现在存在多种打样样式(不一定兼容),您必须先查看其中的几种,然后才能选择最适合您的项目和偏好的一种。

You will make a lot of progress in a lot of ways:

  • Reading books and tutorials and the advice and examples they contain (you will find a list in Coq's page)
  • Reading proofs in libraries and try to use the patterns you will find. You may invent self-corrected exercises: for instance prove by yourself a lemma on lists, arithmetics, etc., and compare your proof with the existing one in a library.
  • Using some tools which make easier to write readable and structured proof scripts (mathcomp/ssreflect tactics, bullets, etc.)
  • Asking questions (as you do) about style and proof script structure and size.

Note that there exists now various proof styles (not necessarily compatible) in such a widely used proof assistant, you will have to look at several of them before chosing which one is the most adapted to your project and preferences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文