,
Naohiko Hoshino
,
Paolo Pistone
Creative Commons Attribution 4.0 International license
Differential logical relations are a method to measure distances between higher-order programs. They differ from standard methods based on program metrics in that differences between functional programs are themselves functions, relating errors in input with errors in output, this way providing a more fine grained, contextual, information. The aim of this paper is to clarify the metric nature of differential logical relations. While previous work has shown that these do not give rise, in general, to (quasi-)metric spaces nor to partial metric spaces, we show that the distance functions arising from such relations, that we call quasi-quasi-metrics, can be related to both quasi-metrics and partial metrics, the latter being also captured by suitable relational definitions. Moreover, we exploit such connections to deduce some new compositional reasoning principles for program differences.
@InProceedings{dallago_et_al:LIPIcs.FSCD.2025.15,
author = {Dal Lago, Ugo and Hoshino, Naohiko and Pistone, Paolo},
title = {{On the Metric Nature of (Differential) Logical Relations}},
booktitle = {10th International Conference on Formal Structures for Computation and Deduction (FSCD 2025)},
pages = {15:1--15:22},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-374-4},
ISSN = {1868-8969},
year = {2025},
volume = {337},
editor = {Fern\'{a}ndez, Maribel},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FSCD.2025.15},
URN = {urn:nbn:de:0030-drops-236300},
doi = {10.4230/LIPIcs.FSCD.2025.15},
annote = {Keywords: Differential Logical Relations, Quantales, Quasi-Metrics, Partial Metrics}
}