English

Metric Reasoning about $\lambda$-Terms: the Affine Case (Long Version)

Logic in Computer Science 2015-05-15 v1

Abstract

Terms of Church's λ\lambda-calculus can be considered equivalent along many different definitions, but context equivalence is certainly the most direct and universally accepted one. If the underlying calculus becomes probabilistic, however, equivalence is too discriminating: terms which have totally unrelated behaviours are treated the same as terms which behave very similarly. We study the problem of evaluating the distance between affine λ\lambda-terms. The most natural definition for it, namely a natural generalisation of context equivalence, is shown to be characterised by a notion of trace distance, and to be bounded from above by a coinductively defined distance based on the Kantorovich metric on distributions. A different, again fully-abstract, tuple-based notion of trace distance is shown to be able to handle nontrivial examples.

Keywords

Cite

@article{arxiv.1505.03638,
  title  = {Metric Reasoning about $\lambda$-Terms: the Affine Case (Long Version)},
  author = {Raphaëlle Crubillé and Ugo Dal Lago},
  journal= {arXiv preprint arXiv:1505.03638},
  year   = {2015}
}

Comments

46 pages

R2 v1 2026-06-22T09:34:02.232Z