编程确实是简单的数学
Programming Really Is Simple Mathematics
AI总结:
本文基于初等集合论,以零公理方式重构编程基础,用三种操作和子集操作符定义规格、程序及正确性,推导出经典编程定律并机械验证。
摘要:
本文基于初等集合论,将编程的基础重新构建为一个小型数学理论(PRISM)。其亮点包括:零公理,即不假设任何性质,所有性质均从标准集合论中证明得出;一个单一概念同时涵盖规格说明和程序;其定义仅涉及一个关系和一个集合;一切操作均源自三种操作:选择、组合和限制;这些技术足以推导出经典“编程定律”论文中的公理作为推论,并可用机械方式证明;普通的子集操作符足以定义程序正确性概念以及特化和精化概念;基于此基础,该理论推导出数十个定理,刻画了程序和编程的重要性质;所有这些定理均已使用Isabelle/HOL进行机械验证,证明过程可在公共仓库中获取。本文是对早期贡献[arXiv:1507.00723]的显著扩展和重写。
英文摘要:
A re-construction of the fundamentals of programming as a small mathematical theory (PRISM) based on elementary set theory. Highlights: $\bullet$ Zero axioms. No properties are assumed, all are proved (from standard set theory). $\bullet$ A single concept covers specifications and programs. $\bullet$ Its definition only involves one relation and one set. $\bullet$ Everything proceeds from three operations: choice, composition and restriction. $\bullet$ These techniques suffice to derive the axioms of classic papers on the "laws of programming" as consequences and prove them mechanically. $\bullet$ The ordinary subset operator suffices to define both the notion of program correctness and the concepts of specialization and refinement. $\bullet$ From this basis, the theory deduces dozens of theorems characterizing important properties of programs and programming. $\bullet$ All these theorems have been mechanically verified (using Isabelle/HOL); the proofs are available in a public repository. This paper is a considerable extension and rewrite of an earlier contribution [arXiv:1507.00723]
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。