States and exceptions considered as dual effects

In this paper we consider the two major computational effects of states and exceptions, from the point of view of diagrammatic logics. We get a surprising result: there exists a symmetry between these two effects, based on the well-known categorical duality between products and coproducts. More precisely, the lookup and update operations for states are respectively dual to the throw and catch operations for exceptions. This symmetry is deeply hidden in the programming languages; in order to unveil it, we start from the monoidal equational logic and we add progressively the logical features which are necessary for dealing with either effect. This approach gives rise to a new point of view on states and exceptions, which bypasses the problems due to the non-algebraicity of handling exceptions.

Data and Resources

Additional Info

Field Value
Source https://hal.science/hal-00445873
Author Dumas, Jean-Guillaume, Duval, Dominique, Fousse, Laurent, Reynaud, Jean-Claude
Maintainer CCSD
Last Updated November 21, 2026, 09:19 (UTC)
Created November 21, 2026, 09:19 (UTC)
Identifier hal-00445873
Language en
Rights https://about.hal.science/hal-authorisation-v1/
contributor Calculs Algébriques et Systèmes Dynamiques (CASYS) ; Laboratoire Jean Kuntzmann (LJK) ; Université Pierre Mendès France - Grenoble 2 (UPMF)-Université Joseph Fourier - Grenoble 1 (UJF)-Institut polytechnique de Grenoble - Grenoble Institute of Technology (Grenoble INP)-Centre National de la Recherche Scientifique (CNRS)-Université Pierre Mendès France - Grenoble 2 (UPMF)-Université Joseph Fourier - Grenoble 1 (UJF)-Institut polytechnique de Grenoble - Grenoble Institute of Technology (Grenoble INP)-Centre National de la Recherche Scientifique (CNRS)
creator Dumas, Jean-Guillaume
date 2011-05-21T00:00:00
harvest_object_id 108bf175-355f-4f75-bda1-08b2da2c1127
harvest_source_id 3374d638-d20b-4672-ba96-a23232d55657
harvest_source_title test moissonnage SELUNE
metadata_modified 2026-10-23T00:00:00
relation info:eu-repo/semantics/altIdentifier/arxiv/1001.1662
set_spec type:REPORT