21828 articles – 15613 Notices  [english version]
HAL : hal-00445873, version 4

Fiche détaillée  Récupérer au format
Versions disponibles :
States and exceptions considered as dual effects
Jean-Guillaume Dumas 1, Dominique Duval 1, Laurent Fousse 1, Jean-Claude Reynaud 2
(19/05/2011)

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.
1 :  Laboratoire Jean Kuntzmann (LJK)
CNRS : UMR5224 – Université Joseph Fourier - Grenoble I – Université Pierre-Mendès-France - Grenoble II – Institut Polytechnique de Grenoble - Grenoble Institute of Technology
2 :  Reynaud Consulting (RC)
Reynaud Consulting
Informatique/Logique en informatique

Mathématiques/Catégories et ensembles
Liste des fichiers attachés à ce document : 
PDF
dual-DDFR.pdf(572.5 KB)
PS
dual-DDFR.ps(1.3 MB)