English

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

Logic in Computer Science 2021-04-28 v1 Programming Languages Logic

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.

Keywords

Cite

@article{arxiv.2104.13324,
  title  = {On Generalized Metric Spaces for the Simply Typed Lambda-Calculus (Extended Version)},
  author = {Paolo Pistone},
  journal= {arXiv preprint arXiv:2104.13324},
  year   = {2021}
}
R2 v1 2026-06-24T01:34:18.113Z