Lune

LICS2021Top-tier venue

On Generalized Metric Spaces for the Simply Typed Lambda-Calculus

Paolo Pistone

2021Year
8Citations
1Top-tier citations

Abstract

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.

  • This work has been funded by the ERC CoG 818616 "DIAPASoN".

2 Higher-Order Metric Semantics

Program metrics have been widely investigated to capture properties like program similarity and sensitivity. The fundamental idea is usually to associate types σ, τ with metric spaces, and programs f : σ → τ with non-expansive, or more generally Lipschitz continuous functions. This means that for all programs t, u of type σ, the distance between f (t) and f (u) does not exceed that between t and u by more than a fixed factor L (formally, d(f (t), f (u)) ≤ L • d(t, u)).

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext c90e2a86-6526-4017-8719-7acd7bd87317

Cited by top-tier papers1

Ask how each one uses it

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines