arXiv:2610.25636cs.CROct 2026

Manuscript Offprint

arXiv:2610.25636

Formalization of Rényi Differential Privacy in Isabelle/HOL (Draft version)

Tetsuya Sato

Abstract

Differential privacy (DP) is a gold-standard definition of privacy designed to evaluate the privacy guarantee of databases. Rényi differential privacy (RDP) is an important variant of DP that gives tight evaluations of machine learning algorithms. These formulations are easy to understand, but evaluating privacy for actual databases is complicated. Even a small change in the database can break its privacy, and evaluations of DP and RDP themselves are complicated. In particular, RDP evaluations in recent studies have become much harder. Therefore, formal verification of them has been studied for over a decade.

In this paper, we propose an Isabelle/HOL library for formalizing Rényi differential privacy in a general setting. We first formalize RDP for continuous distributions. As a technical basis, we formalize several properties of convex functions and f-divergences for nonnegative convex functions. We formalize basic properties of RDP, conversion laws from RDP to DP, the moment accountants in DP, and the Gaussian mechanism and its RDP. Finally, we discuss the stochastic gradient descent mechanism with Gaussian noise and formalize a rough evaluation of its RDP and DP.

Keywords: Differential Privacy, f-divergence, Rényi divergence, Isabelle/HOL, program verification

1 Introduction

Differential privacy(DP) is a de facto standard definition of privacy for databases with large amounts of individuals' private data [26, 28]. It is already applied in the real world, such as iOS, Google Maps, and the United States census [5, 37, 38]. As notable strengths of DP, it guarantees robustness against any kind of statistical attack, and its composition theorems allow decomposing the evaluation of the privacy guarantee of complex databases into their components' ones.

In the study of machine learning algorithms, privacy-preserving learning algorithms with noise sampled from Gaussian distributions have attracted both industry and academia. To evaluate DP of such Gaussian mechanisms rigorously, variants of differential privacy based on Rényi divergence have become increasingly important. Abadi et al. introduced gradient descent algorithms with Gaussian noise and discussed their moment accountants, which can be captured with Rényi divergences [1]; Bun et al. introduced zero-concentrated differential privacy [20]; Mironov introduced Rényi differential privacy(RDP) [52]. There are many studies on DP and RDP mechanisms.

In general, evaluating DP and RDP for databases is cumbersome. A few, even one-line, changes to database programs can break their differential privacy [49, Sec. 3]. In addition, RDP is much more complicated than DP, and evaluating it is not obvious, even understanding the proofs (For example, the original proof of Lemma 3.12 is complicated). Formal verification of RDP is more important and more complex than that of DP. For these reasons, formal verification of DP and RDP has been studied for over a decade. The first approach is based on Benton's relational Hoare logic [17]. Starting from Barthe et al.'s relational program logic for reasoning about DP [14], many variants are studied [11–13], and extended to support RDP and more general divergences [15, 54, 55].

The second is reformulating DP as the sensitivity of functions between metric spaces. Based on this approach, Gaboardi et al. introduced a linear dependent type system for reasoning about differential privacy [23, 35]. It was applied for automated reasoning [60] and verification of integrity [53].

The third approach is formalizing DP and RDP directly in proof assistants. Tristan et al. proposed the library SampCert for verified implementations of DP and RDP using Lean [24, 61]. It contains the formalization of DP and RDP in the discrete setting and the discrete-Laplace and discrete-Gaussian mechanisms (see also [21]). Feng formalized functions of the OpenDP library [33] in Lean.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org. Conference acronym 'XX, Woodstock, NY

Motivation. To our knowledge, RDP based on the continuous model of probabilistic programs has not been formalized yet. In this paper, we propose an Isabelle/HOL library for semantic-level formal verification of RDPs supporting

© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM ISBN 978-1-4503-XXXX-X/2018/06

https://doi.org/XXXXXXX.XXXXXXX

T. Sato

continuous probability distributions, including Gaussian distributions.

First, the continuous setting is more general than the discrete one. Moreover, Isabelle/HOL’s discrete probability distributions are implemented as measures on discrete spaces.

Second, even in the study of differential privacy in the discrete setting, we might need continuous models. For example, Mironov uses the continuous “ideal mechanism” to verify a secure floating-point implementation 1^{1} of the Laplace mechanism [51]. In addition, many pencil-and-paper proofs on RDP are written in the continuous setting. It is natural and convenient for us to implement them directly.

Finally, the author thought that it must not be so hard to formalize it in the continuous setting. We later formalize that f-divergences (hence RDP) in the continuous setting can be approximated with ones in the discrete setting.

Contribution. In this paper, we give an Isabelle/HOL library for Rényi differential privacy in the continuous setting, and give a formalization of the stochastic gradient descent (SGD) mechanism with Gaussian noise and Poisson subsampling.

For a technical basis, we formalize f-divergence, which is a class of statistical divergences generated by convex functions. We first give formal proofs of several basic properties of convex real functions, such as left and right derivatives and piecewise monotonicity. Then we formalize f-divergence for nonnegative generator functions, and its basic properties such as postprocessing inequality and joint convexity. Furthermore, we formalize an approximation property of f-divergences called approximability, which is a technical basis of the composition theorem of Rényi differential privacy in the general setting.

We then formalize basic properties of RDP, conversion laws from RDP to DP, the moment accountants in DP, and the Gaussian mechanism and its RDP. Finally, we formalize a rough evaluation of RDP and DP of Gaussian SGD.

References (26)