What is a Categorical Model of Arrows?

We investigate what the correct categorical formulation of Hughes? Arrows should be. It has long been folklore that Arrows, a functional programming construct, and Freyd categories, a categorical notion due to Power, Robinson and Thielecke, are somehow equivalent.In this paper, we show that the situation is more subtle. By considering Arrows wholly within the base category we derive two alternative formulations of Freyd category that are equivalent to Arrows-enriched Freyd categories and indexed Freyd categories. By imposing a further condition, we characterise those indexed Freyd categories that are isomorphic to Freyd categories. The key differentiating point is the number of inputs available to a computation and the structure available on them, where structured input is modelled using comonads.

[1]  G. M. Kelly,et al.  BASIC CONCEPTS OF ENRICHED CATEGORY THEORY , 2022, Elements of ∞-Category Theory.

[2]  Eugenio Moggi,et al.  Notions of Computation and Monads , 1991, Inf. Comput..

[3]  K. Brown,et al.  Graduate Texts in Mathematics , 1982 .

[4]  Tarmo Uustalu,et al.  Signals and Comonads , 2005, J. Univers. Comput. Sci..

[5]  S. Lane Categories for the Working Mathematician , 1971 .

[6]  Philip Wadler,et al.  The arrow calculus , 2010, J. Funct. Program..

[7]  Edmund Robinson,et al.  Premonoidal categories and notions of computation , 1997, Mathematical Structures in Computer Science.

[8]  Hayo Thielecke,et al.  Closed Freyd- and kappa-categories , 1999, ICALP.

[9]  Chris Heunen,et al.  Arrows, like Monads, are Monoids , 2006, MFPS.

[10]  John Power,et al.  Generic models for computational effects , 2006, Theor. Comput. Sci..

[11]  Hayo Thielecke,et al.  Modelling environments in call-by-value programming languages , 2003, Inf. Comput..

[12]  John Hughes,et al.  Generalising monads to arrows , 2000, Sci. Comput. Program..

[13]  Conor McBride,et al.  Applicative programming with effects , 2008, J. Funct. Program..

[14]  Ichiro Hasuo,et al.  Freyd is Kleisli, for Arrows , 2006, MSFP@MPC.