arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.12716cs.PL
收藏

实验函数式程序设计中可检查元逻辑的实用惯用考虑

Practical Idiomatic Considerations for Checkable Meta-Logic in Experimental Functional Programming

Baltasar Trancón y Widemann, Markus Lepper

摘要:

用强类型的纯函数式语言将复杂的概念实现为可执行模型,这是模拟和形式化规范之间的最佳选择。对于研究和教育来说,通常希望用元逻辑注释来丰富算法代码,这些注释以各种方式体现为断言、定理或测试用例。检查框架使用函数范式的内在逻辑能力,通过启发式测试来近似定理证明。在这里,我们提出了几个新的习惯用法,以提高实际的表现力检查,即元语言标记,名义公理,和建设性的存在。所有这些都是在文学Haskell'98中用一些公共语言扩展制定的。它们的使用和影响说明了一个现实的建模问题的应用程序。

英文摘要:

Implementing a complex concept as an executable model in a strongly typed, purely functional language hits a sweet spot between mere simulation and formal specification. For research and education it is often desirable to enrich the algorithmic code with meta-logical annotations, variously embodied as assertions, theorems or test cases. Checking frameworks use the inherent logical power of the functional paradigm to approximate theorem proving by heuristic testing. Here we propose several novel idioms to enhance the practical expressivity of checking, namely meta-language marking, nominal axiomatics, and constructive existentials. All of these are formulated in literate Haskell'98 with some common language extensions. Their use and impact are illustrated by application to a realistic modeling problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑