Publications

Stats

View publication

Title Gradual Sensitivity Typing
Authors Damián Árquez, Matías Toro, Éric Tanter
Publication date 2025
Abstract Reasoning about the sensitivity of functions with
respect to their inputs has interesting applications in various
areas, such as differential privacy. Sensitivity type systems
support the modular checking and enforcement of sensitivity,
but can be overly conservative for certain useful programming
patterns. Hence, there is value in bringing the benefits of gradual
typing to these disciplines in order to ease their adoption and
applicability. In this work, we motivate, formalize, and prototype
gradual sensitivity typing. The language GSoul supports both
the unrestricted unknown sensitivity and bounded imprecision in
the form of sensitivity intervals. Gradual sensitivity typing allows
programmers to smoothly evolve typed programs without any
static sensitivity information towards hardened programs with
a mix of static and dynamic sensitivity checking. Additionally,
gradual sensitivity typing seamlessly enables precise runtime
sensitivity checks whenever fully static checking would be overly
conservative. We formalize a core of the language GSoul and
prove that it satisfies both the gradual guarantees and sensitivity
type soundness, known as metric preservation. We establish that,
in general, gradual metric preservation is termination insensitive,
and that one can achieve termination-sensitive gradual metric
preservation by hardening specifications to bounded imprecision.
Furthermore, we show how the latter can be used to formally
reason about the differential privacy guarantees of graduallytyped programs.
We implement a prototype of GSoul, which
provides an interactive test bed for further exploring the potential
of gradual sensitivity typing.
Pages 314-329
Conference name Computer Security Foundations Symposium
Publisher IEEE Computer Society Press (Los Alamitos, CA, USA)
Reference URL View reference page