Saved in:
Bibliographic Details
Main Authors: Ko, Hsiang-Shang, Mu, Shin-Cheng, Gibbons, Jeremy
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.04001
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929744273997824
author Ko, Hsiang-Shang
Mu, Shin-Cheng
Gibbons, Jeremy
author_facet Ko, Hsiang-Shang
Mu, Shin-Cheng
Gibbons, Jeremy
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_04001
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Binomial Tabulation: A Short Story
Ko, Hsiang-Shang
Mu, Shin-Cheng
Gibbons, Jeremy
Programming Languages
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.
title Binomial Tabulation: A Short Story
topic Programming Languages
url https://arxiv.org/abs/2503.04001