A computational interpretation of compact closed categories: reversible programming with negative and fractional types
A computational interpretation of compact closed categories: reversible programming with negative and fractional types
复制标题
紧凑闭类别的计算解释:负数和分数类型的可逆规划
DOI:
10.1145/3434290
复制
发表时间:
2021
影响因子:
--
通讯作者:
Sabry, Amr
中科院分区:
文献类型:
--
作者:
Chen, Chao-Hong;Sabry, Amr
Compact closed categories include objects representing higher-order functions and are well-established as models of linear logic, concurrency, and quantum computing. We show that it is possible to construct such compact closed categories for conventional sum and product types by defining a dual to sum types, a negative type, and a dual to product types, a fractional type. Inspired by the categorical semantics, we define a sound operational semantics for negative and fractional types in which a negative type represents a computational effect that ``reverses execution flow'' and a fractional type represents a computational effect that ``garbage collects'' particular values or throws exceptions.Specifically, we extend a first-order reversible language of type isomorphisms with negative and fractional types, specify an operational semantics for each extension, and prove that each extension forms a compact closed category. We furthermore show that both operational semantics can be merged using the standard combination of backtracking and exceptions resulting in a smooth interoperability of negative and fractional types. We illustrate the expressiveness of this combination by writing a reversible SAT solver that uses backtracking search along freshly allocated and de-allocated locations. The operational semantics, most of its meta-theoretic properties, and all examples are formalized in a supplementary Agda package.
登录
查看更多内容
DOI:
--
发表时间:
2002
期刊:
影响因子:
--
作者:
J. Propp
通讯作者:
J. Propp
DOI:
10.1007/978-3-030-33636-3_13
发表时间:
2019
期刊:
Math. Struct. Comput. Sci.
影响因子:
--
作者:
R. Kaarsgaard;Niccolò Veltri
通讯作者:
Niccolò Veltri
DOI:
--
发表时间:
1980
期刊:
影响因子:
--
作者:
C. Rauszer
通讯作者:
C. Rauszer
影响因子:
0.7
作者:
T. Crolard
通讯作者:
T. Crolard
DOI:
--
发表时间:
2013
期刊:
影响因子:
--
作者:
Elchanan Mossel;L. Trevisan;Siu Man Chan
通讯作者:
Siu Man Chan