Saved in:
Bibliographic Details
Main Authors: Hubers, Alex, Ingle, Apoorv, Marmaduke, Andrew, Morris, J. Garrett
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.11742
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • We explore recursive programming with extensible data types. Row types make the structure of data types first class, and can express a variety of type system features including record subtyping and combination of case branches. Our goal is the modular combination of recursive types and of recursive functions over them. The most significant challenge is in recursive function calls, which may need to account for new cases in a combined type. We introduce extensible histomorphisms, Mendler-style descriptions of recursive functions in which recursive calls can happen at larger types, and show that they provide expressive recursion over extensible data types. We formalize our approach in R$ωμ$, a row type theory with support for recursive terms and types.