在Lean 4中追求真理与美:形式化验证的语法理论、优化与Matroid理论
Pursuit of Truth and Beauty in Lean 4: Formally Verified Theory of Grammars, Optimization, Matroids
AI总结:
本文通过形式化验证探讨数学中的语法理论、优化与Matroid理论,旨在创建可理解、可信、有用且优雅的代码,强调定义的可读性和可信度,而非易于操作的定义。
摘要:
本文通过形式化验证探索数学中的语法理论、优化与Matroid理论,旨在创建可理解、可信、有用且优雅的代码。代码应尽可能自证,无需依赖文档;然而,本文冗余地描述了我们的代码制品,并提供了不在代码中存在的额外上下文。本文为熟悉Lean 4但不熟悉所呈现主题的读者所写。我们通过数学中的三个形式化领域(优化理论、Matroid理论和语法理论)来体现真理与美。在追求真理的过程中,我们专注于识别每个项目中的可信代码并忠实呈现。我们强调定义的可读性和可信度,而非选择易于操作的定义。在追求美的过程中,我们聚焦于罗杰·斯克托恩的哲学框架,他强调美不仅仅是装饰,更重要的是,美是塑造我们在世界中的位置以及救赎的来源,它可以被视为宗教的替代品。
英文摘要:
This thesis documents a voyage towards truth and beauty via formal verification of theorems. To this end, we develop libraries in Lean 4 that present definitions and results from diverse areas of MathematiCS (i.e., Mathematics and Computer Science). The aim is to create code that is understandable, believable, useful, and elegant. The code should stand for itself as much as possible without a need for documentation; however, this text redundantly documents our code artifacts and provides additional context that isn't present in the code. This thesis is written for readers who know Lean 4 but are not familiar with any of the topics presented. We manifest truth and beauty in three formalized areas of MathematiCS (optimization theory, matroid theory, and the theory of grammars). In the pursuit of truth, we focus on identifying the trusted code in each project and presenting it faithfully. We emphasize the readability and believability of definitions rather than choosing definitions that are easier to work with. In search for beauty, we focus on the philosophical framework of Roger Scruton, who emphasizes that beauty is not a mere decoration but, most importantly, beauty is the means for shaping our place in the world and a source of redemption, where it can be viewed as a substitute for religion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。