Tropical Mathematics and the Lambda-Calculus I: Metric and Differential Analysis of Effectful Programs

Davide Barbarossa, Paolo Pistone

Research output: Chapter or section in a book/report/conference proceedingChapter in a published conference proceeding

Abstract

We study the interpretation of the lambda-calculus in a framework based on tropical mathematics, and we show that it provides a unifying framework for two well-developed quantitative approaches to program semantics: on the one hand program metrics, based on the analysis of program sensitivity via Lipschitz conditions, on the other hand resource analysis, based on linear logic and higher-order program differentiation. To do that, we focus on the semantics arising from the relational model weighted over the tropical semiring, and we discuss its application to the study of "best case" program behavior for languages with probabilistic and non-deterministic effects. Finally, we show that a general foundation for this approach is provided by an abstract correspondence between tropical algebra and Lawvere’s theory of generalized metric spaces.
Original languageEnglish
Title of host publication32nd EACSL Annual Conference on Computer Science Logic (CSL 2024)
EditorsAniello Murano, Alexandra Silva
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)978-3-95977-310-2
DOIs
Publication statusPublished - 7 Feb 2024

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume288
ISSN (Print)1868-8969

Funding

Funding This work has been supported by the European Research Council through the project ERC CoG 818616 DIAPASoN.

FundersFunder number
European Research CouncilERC CoG 818616 DIAPASoN

Keywords

  • Differential lambda-calculus
  • Lawvere quantale
  • Program metrics
  • Relational semantics
  • Tropical semiring

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Tropical Mathematics and the Lambda-Calculus I: Metric and Differential Analysis of Effectful Programs'. Together they form a unique fingerprint.

Cite this