On the Lattice of Program Metrics

02/10/2023
by   Ugo Dal Lago, et al.
0

In this paper we are concerned with understanding the nature of program metrics for calculi with higher-order types, seen as natural generalizations of program equivalences. Some of the metrics we are interested in are well-known, such as those based on the interpretation of terms in metric spaces and those obtained by generalizing observational equivalence. We also introduce a new one, called the interactive metric, built by applying the well-known Int-Construction to the category of metric complete partial orders. Our aim is then to understand how these metrics relate to each other, i.e., whether and in which cases one such metric refines another, in analogy with corresponding well-studied problems about program equivalences. The results we obtain are twofold. We first show that the metrics of semantic origin, i.e., the denotational and interactive ones, lie in between the observational and equational metrics and that in some cases, these inclusions are strict. Then, we give a result about the relationship between the denotational and interactive metrics, revealing that the former is less discriminating than the latter. All our results are given for a linear lambda-calculus, and some of them can be generalized to calculi with graded comonads, in the style of Fuzz.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/27/2021

On Generalized Metric Spaces for the Simply Typed Lambda-Calculus (Extended Version)

Generalized metrics, arising from Lawvere's view of metric spaces as enr...
research
08/30/2022

The syntactic side of autonomous categories enriched over generalised metric spaces

Programs with a continuous state space or that interact with physical pr...
research
04/04/2023

A Complete V-Equational System for Graded lambda-Calculus

Modern programming frequently requires generalised notions of program eq...
research
08/05/2019

Recognizing and realizing cactus metrics

The problem of realizing finite metric spaces in terms of weighted graph...
research
01/03/2020

Decomposable Probability-of-Success Metrics in Algorithmic Search

Previous studies have used a specific success metric within an algorithm...
research
05/18/2021

An Internal Language for Categories Enriched over Generalised Metric Spaces

Programs with a continuous state space or that interact with physical pr...
research
06/05/2022

Never mind the metrics – what about the uncertainty? Visualising confusion matrix metric distributions

There are strong incentives to build models that demonstrate outstanding...

Please sign up or login with your details

Forgot password? Click here to reset