English

Functoriality of Enriched Data Types

Category Theory 2026-03-03 v5 Logic in Computer Science

Abstract

In previous work, categories of algebras of endofunctors were shown to be enriched in categories of coalgebras of the same endofunctor, and the extra structure of that enrichment was used to define a generalization of inductive data types. These generalized inductive data types are parametrized by a coalgebra CC, so we call them CC-inductive data types; we call the morphisms induced by their universal property CC-inductive functions. We extend that work by incorporating natural transformations into the theory: given a suitable natural transformation between endofunctors, we show that this induces enriched functors between their categories of algebras which preserve CC-inductive data types and CC-inductive functions. Such CC-inductive data types are often finite versions of the corresponding inductive data type, and we show how our framework can extend classical initial algebra semantics to these types. For instance, we show that our theory naturally produces partially inductive functions on lists, changes in list element types, and tree pruning functions.

Keywords

Cite

@article{arxiv.2505.06059,
  title  = {Functoriality of Enriched Data Types},
  author = {Lukas Mulder and Paige Randall North and Maximilien Péroux},
  journal= {arXiv preprint arXiv:2505.06059},
  year   = {2026}
}

Comments

24 pages

R2 v1 2026-06-28T23:27:16.894Z