计算机科学 > 程序设计语言
[提交于 2018年5月21日]
标题:The sufficiently smart compiler is a theorem prover
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:That the Haskell Compiler GHC is capable of proving non-trivial equalities between Haskell code, by virtue of its aggressive optimizer, in particular the term rewriting engine in the simplifier. We demonstrate this with a surprising little code in a GHC plugin, explains the knobs we had to turn, discuss the limits of the approach and related applications of the same idea, namely testing that promises from Haskell libraries with domain-specific optimizations hold.
提交历史
来自:Joachim Breitner[v1] 2018年5月21日 星期一 15:03:24 UTC