首页    期刊浏览 2025年02月28日 星期五
登录注册

文章基本信息

  • 标题:Distributive laws of directed containers
  • 作者:Danel AHMAN ; Tarmo UUSTALU
  • 期刊名称:Progress in Informatics
  • 印刷版ISSN:1349-8614
  • 电子版ISSN:1349-8606
  • 出版年度:2013
  • 期号:10
  • 页码:3-18
  • DOI:10.2201/NiiPi.2013.10.2
  • 出版社:National Institute of Informatics
  • 摘要:Containers are an elegant representation of a wide class of datatypes in terms of positions and shapes. We have recently introduced directed containers as a special case to account for the common situation where every position in a shape determines another shape, informally the subshape rooted by that position. While containers interpret into set functors via a fully faithful functor, directed containers denote comonads fully faithfully. In fact, directed containers correspond to exactly those containers that carry a comonad structure. Directed containers can also be seen as a generalization (a dependently typed version) of monoids. While the category of containers (just as the category of set functors) carries a composition monoidal structure, directed containers (just as comonads) do not generally compose. In this paper, we develop a concept of a distributive law between two directed containers corresponding to that of a distributive law between two comonads and spell out the distributive-law based composition construction of directed containers. This turns out to generalize the Zappa-Szép product of two monoids.
  • 关键词:directed containers; comonads; distributive laws; monoids; Zappa-Szép products; mathematical structures in functional programming; dependently typed programming
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有