Contextual Linear Types for Differential Privacy
Open Access
- 17 May 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 45 (2) , 1-69
Abstract
Language support for differentially private programming is both crucial and delicate. While elaborate program logics can be very expressive, type-system-based approaches using linear types tend to be more lightweight and amenable to automatic checking and inference, and in particular in the presence of higher-order programming. Since the seminal design of Fuzz , which is restricted to ϵ-differential privacy in its original design, significant progress has been made to support more advanced variants of differential privacy, like (ϵ, δ )-differential privacy. However, supporting these advanced privacy variants while also supporting higher-order programming in full has proven to be challenging. We present Jazz , a language and type system that uses linear types and latent contextual effects to support both advanced variants of differential privacy and higher-order programming. Latent contextual effects allow delaying the payment of effects for connectives such as products, sums, and functions, yielding advantages in terms of precision of the analysis and annotation burden upon elimination, as well as modularity. We formalize the core of Jazz , prove it sound for privacy via a logical relation for metric preservation, and illustrate its expressive power through a number of case studies drawn from the recent differential privacy literature.Keywords
All Related Versions
Funding Information
- ANID Fondecyt (11181208, 1190058, 3200583)
- ANID Millennium Science Initiative Program code (ICN17_002)
- NSF (CCF-2119939)
This publication has 42 references indexed in Scilit:
- Deep Learning with Differential Privacy2016
- Proving Differential Privacy via Probabilistic Couplings2016
- Higher-Order Approximate Relational Refinement Types for Mechanism Design and Differential Privacy2015
- Really Natural Linear Indexed Type Checking2014
- Proving Differential Privacy in Hoare Logic2014
- Probabilistic Relational Reasoning for Differential PrivacyACM Transactions on Programming Languages and Systems, 2013
- Tracking Data-Flow with Open Closure Types2013
- Hoare type theory, polymorphism and separationJournal of Functional Programming, 2008
- An indexed model of recursive types for foundational proof-carrying codeACM Transactions on Programming Languages and Systems, 2001
- Singleton, union and intersection types for program extractionLecture Notes in Computer Science, 1991