Logic of computational semi-effects and categorical gluing for equivariant functors

07/09/2020
by   Yuichi Nishiwaki, et al.
0

In this paper, we revisit Moggi's celebrated calculus of computational effects from the perspective of logic of monoidal action (actegory). Our development takes the following steps. Firstly, we perform proof-theoretic reconstruction of Moggi's computational metalanguage and obtain a type theory with a modal type as a refinement. Through the proposition-as-type paradigm, its logic can be seen as a decomposition of lax logic via Benton's adjoint calculus. This calculus models as a programming language a weaker version of effects, which we call semi-effects. Secondly, we give its semantics using actegories and equivariant functors. Compared to previous studies of effects and actegories, our approach is more general in that models are directly given by equivariant functors, which include Freyd categories (hence strong monads) as a special case. Thirdly, we show that categorical gluing along equivariant functors is possible and derive logical predicates for -modality. We also show that this gluing, under a natural assumption, gives rise to logical predicates that coincide with those derived by Katsumata's categorical ⊤⊤-lifting for Moggi's metalanguage.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/04/2022

Semimodules and the (syntactically-)linear lambda calculus

In a recent paper, the ℒ^𝒮-calculus has been defined. It is a proof-lang...
research
03/04/2021

Contextual Modal Types for Algebraic Effects and Handlers

Programming languages with algebraic effects often rely on effect annota...
research
04/09/2018

Modality via Iterated Enrichment

This paper investigates modal type theories by using a new categorical s...
research
04/14/2022

The Forms of Categorical Proposition

An exhaustive survey of categorical propositions is proposed in the pres...
research
04/17/2019

A 2-Categorical Study of Graded and Indexed Monads

In the study of computational effects, it is important to consider the n...
research
12/13/2022

Data Layout from a Type-Theoretic Perspective

The specifics of data layout can be important for the efficiency of func...
research
01/21/2018

Dialectica Categories for the Lambek Calculus

We revisit the old work of de Paiva on the models of the Lambek Calculus...

Please sign up or login with your details

Forgot password? Click here to reset