计算机科学 > 程序设计语言
[提交于 2020年8月28日]
标题:Practical Idiomatic Considerations for Checkable Meta-Logic in Experimental Functional Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Baltasar Trancón Y Widemann[v1] 2020年8月28日 星期五 15:55:46 UTC