Modal Reasoning = Metric Reasoning, via Lawvere

03/05/2021
by   Ugo Dal Lago, et al.
0

Graded modal types systems and coeffects are becoming a standard formalism to deal with context-dependent computations where code usage plays a central role. The theory of program equivalence for modal and coeffectful languages, however, is considerably underdeveloped if compared to the denotational and operational semantics of such languages. This raises the question of how much of the theory of ordinary program equivalence can be given in a modal scenario. In this work, we show that coinductive equivalences can be extended to a modal setting, and we do so by generalising Abramsky's applicative bisimilarity to coeffectful behaviours. To achieve this goal, we develop a general theory of ternary program relations based on the novel notion of a comonadic lax extension, on top of which we define a modal extension of Abramsky's applicative bisimilarity (which we dub modal applicative bisimilarity). We prove such a relation to be a congruence, this way obtaining a compositional technique for reasoning about modal and coeffectful behaviours. But this is not the end of the story: we also establish a correspondence between modal program relations and program distances. This correspondence shows that modal applicative bisimilarity and (a properly extended) applicative bisimilarity distance coincide, this way revealing that modal program equivalences and program distances are just two sides of the same coin.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/13/2019

Operational semantics and program verification using many-sorted hybrid modal logic

We propose a general framework to allow: (a) specifying the operational ...
research
02/02/2022

Modal reduction principles across relational semantics

The present paper establishes systematic connections among the first-ord...
research
11/06/2018

Gradual Type Theory (Extended Version)

Gradually typed languages are designed to support both dynamically typed...
research
05/25/2015

A Logic of Knowing How

In this paper, we propose a single-agent modal logic framework for reaso...
research
05/08/2000

PSPACE Reasoning for Graded Modal Logics

We present a PSPACE algorithm that decides satisfiability of the graded ...
research
04/03/2020

Ticking clocks as dependent right adjoints: Denotational semantics for clocked type theory

Clocked Type Theory (CloTT) is a type theory for guarded recursion usefu...
research
05/01/2021

lr-Multisemigroups and Modal Convolution Algebras

We show how modal quantales arise as convolution algebras of functions f...

Please sign up or login with your details

Forgot password? Click here to reset