### Abstract

We investigate the notion of a comodel of a (countable) Lawvere theory, an evident dual to the notion of previous termmodelnext term. By taking the forgetful functor from the category of previous termcomodelsnext term to Set, every (countable) Lawvere theory generates a comonad on Set. But while Lawvere theories are equivalent to finitary monads on Set, and that result extends to higher cardinality, no such result holds for comonads, and that is not only for size reasons: it is primarily because, while Set is cartesian closed, Setop is not. So every monad with rank on Set generates a comonad on Set, but not conversely. Our leading example is given by the countable Lawvere theory for global state: its category of previous termcomodels is the category of arrays, yielding a precise relationship between global state and arrays. Restricting from arbitrary comonads to those comonads generated by Lawvere theories allows us to study new and interesting constructions, in particular that of tensor product.

Original language | English |
---|---|

Pages (from-to) | 297-314 |

Number of pages | 18 |

Journal | Electronic Notes in Theoretical Computer Science |

Volume | 106 |

DOIs | |

Publication status | Published - 11 Dec 2004 |

## Fingerprint Dive into the research topics of 'From comodels to coalgebras: state and arrays'. Together they form a unique fingerprint.

## Cite this

Power, J., & Shkaravska, O. (2004). From comodels to coalgebras: state and arrays.

*Electronic Notes in Theoretical Computer Science*,*106*, 297-314. https://doi.org/10.1016/j.entcs.2004.02.041