28th Estonian Winter School in Computer Science (EWSCS)
XXVIII Eesti Arvutiteaduse Talvekool
Viinistu, Estonia, March 2 - 5, 2026
assistant professor at University of Minho,
Braga, Portugal
Google Scholar
Reasoning precisely about imprecisions (metric program equivalence)
Abstract
Modern programs increasingly interact with continuous data, randomness,
quantum, and physical processes. In this setting, the typical binary notions
of program equivalence become too coarse, and more flexible, quantitative ones
are called for. In autonomous driving, for example, one does not expect two
programs to match the same speeds exactly; instead the idea is to determine
how close their behaviours are, typically measured in terms of a suitable
metric.
The course highlights how metric reasoning can be used in practice, with
illustrations from probabilistic programming and other computational models.
Our focus will be rather on fundamental principles – involving a core
programming language (lambda-calculus), corresponding laws of metric
equational systems, and their categorical semantics.
The emphasis throughout is on intuition, the essence of things, and main ideas,
rather than full technical detail. Thus no prior knowledge of lambda-calculus
or category theory is assumed.
- brief course overview (motivations, programme and its rationale)
- introduction to linear lambda-calculus
- types and term formation rules
- substitution
- the equational system
- extensions (only some brief comments)
- the essence of category theory
- necessary definitions
- category
- symmetric monoidal category
- SMC category
- the semantics of linear lambda-calculus
- the metric equational system
- examples of metric reasoning
- remarks on linearity / needing to track resource usage
- the challenge of giving a categorical semantics
- the categorical semantics of metric lambda-calculus
- soundness and (approximate) completeness (only some brief comments)
- applications
- concluding remarks
Course material (updated 5 March 2026)
- Slides from lecture 1 [pdf]
- Slides from lecture 2 [pdf]
- Slides from lecture 3 [pdf]
- Slides from lecture 4 [pdf]
References
- Fredrik Dahlqvist, Renato Neves. The syntactic side of autonomous
categories enriched over generalised metric spaces. Log. Methods
Comput. Sci., v. 19, n. 4, art. 31, 2023. doi:10.46298/lmcs-19(4:31)2023
- Fredrik Dahlqvist, Renato Neves. A complete V-equational
system for graded lambda-calculus. Electron. Notes Theor. Inf.
Comput. Sci., v. 3, art. 4, 2023. 10.46298/entics.12299
- Fredrik Dahlqvist, Renato Neves. An internal language for
categories enriched over generalised metric spaces. In Florin Manea,
Alex Simpson, eds., Proc. of 30th EACSL Ann. Conf. on Computer
Science Logic (CSL 2022), v. 216 of Leibniz Int. Proc. in
Inform., pp 16:1-16:18, Dagstuhl Publishing, 2022. doi:10.4230/lipics.csl.2022.16