Join Inverse Rig Categories for Reversible Functional Programming, and Beyond

Robin Kaarsgaard, Mathys Rennela
2021 Electronic Proceedings in Theoretical Computer Science  
Reversible computing is a computational paradigm in which computations are deterministic in both the forward and backward direction, so that programs have well-defined forward and backward semantics. We investigate the formal semantics of the reversible functional programming language Rfun. For this purpose we introduce join inverse rig categories, the natural marriage of join inverse categories and rig categories, which we show can be used to model the language Rfun, under reasonable
more » ... s. These categories turn out to be a particularly natural fit for reversible computing as a whole, as they encompass models for other reversible programming languages, notably Theseus and reversible flowcharts. This suggests that join inverse rig categories really are the categorical models of reversible computing.
doi:10.4204/eptcs.351.10 fatcat:qhkblcncafd5dnolwfchgm46ry