## Abstract

Algebra and coalgebra are widely used to model data types in functional programming languages and proof assistants. Their use permits to better structure the computations and also to enhance the expressivity of a language or of a proof system. Interestingly, parametric polymorphism à la System F provides a way to encode algebras and coalgebras in strongly normalizing languages without losing the good logical properties of the calculus. Even if these encodings are sometimes unsatisfying because they provide only limited forms of algebras and coalgebras, they give insights on the expressivity of System F in terms of functions that we can program in it. With the goal of contributing to a better understanding of the expressivity of Implicit Computational Complexity systems, we study the problem of defining algebras and coalgebras in the Light Affine Lambda Calculus, a system characterizing the complexity class FPTIME. This system limits the computational complexity of programs but it also limits the ways we can use parametric polymorphism, and in general the way we can write our programs. We show here that while the restrictions imposed by the Light Affine Lambda Calculus pose some issues to the standard System F encodings, they still permit to encode some form of algebra and coalgebra. Using the algebra encoding one can define in the Light Affine Lambda Calculus the traditional inductive types. Unfortunately, the corresponding coalgebra encoding permits only a very limited form of coinductive data types. To extend this class we study an extension of the Light Affine Lambda Calculus by distributive laws for the modality §. This extension has been discussed but not studied before.

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

Title of host publication | Proceedings of the ACM SIGPLAN International Conference on Functional Programming, ICFP |

Publisher | Association for Computing Machinery |

Pages | 114-126 |

Number of pages | 13 |

Volume | 2015-August |

ISBN (Print) | 9781450336697 |

DOIs | |

Publication status | Published - 29 Aug 2015 |

Event | 20th ACM SIGPLAN International Conference on Functional Programming, ICFP 2015 - Vancouver, Canada Duration: 31 Aug 2015 → 2 Sep 2015 |

### Conference

Conference | 20th ACM SIGPLAN International Conference on Functional Programming, ICFP 2015 |
---|---|

Country/Territory | Canada |

City | Vancouver |

Period | 31/08/15 → 2/09/15 |

## Keywords

- Algebra and coalgebra
- Implicit computational complexity
- Light logics