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

04/27/2021
by   Paolo Pistone, et al.
0

Generalized metrics, arising from Lawvere's view of metric spaces as enriched categories, have been widely applied in denotational semantics as a way to measure to which extent two programs behave in a similar, although non equivalent, way. However, the application of generalized metrics to higher-order languages like the simply typed lambda calculus has so far proved unsatisfactory. In this paper we investigate a new approach to the construction of cartesian closed categories of generalized metric spaces. Our starting point is a quantitative semantics based on a generalization of usual logical relations. Within this setting, we show that several families of generalized metrics provide ways to extend the Euclidean metric to all higher-order types.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/28/2019

Semantics of higher-order probabilistic programs with conditioning

We present a denotational semantics for higher-order probabilistic progr...
research
02/10/2023

On the Lattice of Program Metrics

In this paper we are concerned with understanding the nature of program ...
research
06/28/2018

Up-To Techniques for Behavioural Metrics via Fibrations

Up-to techniques are a well-known method for enhancing coinductive proof...
research
04/28/2022

On Quantitative Algebraic Higher-Order Theories

We explore the possibility of extending Mardare et al. quantitative alge...
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
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
01/27/2018

Quantitative Behavioural Reasoning for Higher-order Effectful Programs: Applicative Distances (Extended Version)

This paper studies the quantitative refinements of Absramsky's applicati...

Please sign up or login with your details

Forgot password? Click here to reset