计算机科学 > 程序设计语言
[提交于 2025年3月7日]
标题:Binomial Tabulation: A Short Story
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We reconstruct some of the development in Richard Bird's [2008] paper Zippy Tabulations of Recursive Functions, using dependent types and string diagrams rather than mere simple types. This paper serves as an intuitive introduction to and demonstration of these concepts for the curious functional programmer, who ideally already has some exposure to dependent types and category theory, is not put off by basic concepts like indexed types and functors, and wants to see a more practical example. The paper is presented in the form of a short story, narrated from the perspective of a functional programmer trying to follow the development in Bird's paper. The first section recaps the original simply typed presentation. The second section explores a series of refinements that can be made using dependent types. The third section uses string diagrams to simplify arguments involving functors and naturality. The short story ends there, but the paper concludes with a discussion and reflection in the afterword.
提交历史
来自:Hsiang-Shang Ko[v1] 2025年3月7日 星期五 00:00:00 UTC