Manuscript Offprint
arXiv:2610.37006Abstract Lipschitz Continuity
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
MARCO CAMPION , ISABELLA MASTROENI , MICHELE PASQUA , AND CATERINA URBAN
Sorbonne Université, LIP6, Paris, France
e-mail address: marco.campion@lip6.fr
University of Verona, Department of Computer Science, Italy
e-mail address: {isabella.mastroeni, michele.pasqua}@univr.it
Inria & ENS — PSL, Paris, France
e-mail address: caterina.urban@inria.fr
ABSTRACT. We introduce Abstract Lipschitz Continuity (ALC), an extensional property of functions, in particular of program semantics, requiring that bounded differences between properties of two inputs yield proportionally bounded differences between properties of the corresponding outputs. ALC explicitly discerns between two complementary forms of approximation: property-based (or qualitative) approximations, which retain a property of the data and are formalized by upper closure operators as in abstract interpretation, and quantitative approximations, which measure the closeness of data and are formalized by pre-metrics, a weakening of metrics that covers the distances arising in program analysis. Keeping the two forms of approximation explicit has two main benefits. First, it allows us to precisely relate ALC to established extensional properties: ALC is a sufficient condition for partial completeness in abstract interpretation, for partial abstract non-interference in language-based security and, with a null Lipschitz constant, for abstract robustness in machine learning. Second, it supports reasoning about ALC of program semantics by induction on the syntax of programs: we present a sound deductive system, parametric in the property-based approximations and in the pre-metric of interest, that reduces a proof of ALC for a program to proofs for its basic commands and to some explicit side conditions, which isolate what makes ALC compositional across sequential composition, non-deterministic choice and iteration.
INTRODUCTION
Lipschitz continuity (LC) is a fundamental property in mathematical analysis, which provides a strong quantitative guarantee: the output of a Lipschitz continuous function changes at most linearly with respect to changes in its input, the slope being the Lipschitz constant. Its utility is wide-ranging: it is a cornerstone of convergence guarantees in optimization [Nes18, JT20] and a key tool for certifying the robustness of machine learning models, particularly in adversarial settings [FRH 19, HZS 21, ZJHW22a]. In program analysis, LC provides a measure of program robustness for code operating on uncertain inputs [CGL10, CGL12, CGLN11], and Lipschitz-style or continuity-based notions of robustness have been studied,
Key words and phrases: Abstract Lipschitz Continuity, Abstract Interpretation, Partial Abstract Non-Interference, Partial Completeness, Abstract Robustness.
Preprint submitted to Logical Methods in Computer Science
© M. Campion, I. Mastroeni, M. Pasqua, and C. Urban Creative Commons
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
<?php int count-a(FILE *F) { int c, nc = 0; while ((c = fgetc(F)) != EOF) { if (c == 'a') nc++; } return nc; } ?>FIGURE 1. SQL injection (left) and counting pattern program (right).
e.g., for string transducers [SDC13, HOS14], for numerical programs [GP13], and, as function sensitivity, in type systems [RP10]. In all these settings, however, perturbations are measured on concrete data, through a distance between the values themselves.
In this work, we argue that making the properties of data explicit provides a natural and complementary perspective. Indeed, in complex systems such as machine learning models or programs, small changes in the raw representation of data may correspond to negligible or irrelevant changes in the properties of interest, and, conversely, small changes in the raw data may cause relevant changes in their properties. Moreover, properties, rather than values, are what several established notions are about: static analyses compute properties of program states in an abstract domain, whose imprecision has been measured through distances [CDG22, CUDPG23, Log09, PW00]; information-flow policies specify which properties of the inputs may flow to an observer of properties of the outputs [GM18]; and robustness requirements for classifiers may tolerate changes of the output class within a given property [GMP24]. These notions, however, are either qualitative, as they require properties to be preserved exactly, or, in their partial variants, they only bound the effect of indistinguishable inputs. By reasoning quantitatively on how differences between properties of inputs propagate to differences between properties of outputs, we can capture robustness and stability in a way that more closely aligns with the intended behavior of such systems, with applications in areas ranging from program verification [CC04, GM18, RY20, SS15] to machine learning robustness [AHAG23, GMP24, LWSS24].
For instance, in the context of security, applications such as code injection and file integrity call for an explicit distinction between the closeness of data and their properties. SQL injection vulnerabilities arise from an unchecked interaction between untrusted input and the execution of a SQL query, which allows an attacker to execute arbitrary queries on the database. A trivial example is given on the left of Figure 1: an attacker can dump the whole users table by injecting the value "3 OR 1 = 1" in the unsanitized input argv[0], which turns the condition of the query q into a tautology. In this scenario, we could require that inputs with a similar number of Boolean operators select a similar number of tuples: a legitimate identifier contains no Boolean operator and selects at most one tuple, whereas the injected value above contains a single operator and selects the whole table. In other words, we aim at bounding the distance between properties of the outputs by the distance between properties of the inputs, rather than comparing concrete values.
As another example, malware detection tools look for malicious patterns, e.g., signatures or byte sequences, in the files under inspection. A simple detector is given on the right of Figure 1: it counts the occurrences of “a”, standing for a malicious pattern, in a file. Here we could require the detector to be robust. Suppose that the count is observed only up to a fixed granularity, namely through the interval of width 10 containing it (0–9, 10–19, …), which plays the role of the verdict of the detector. Then, modifying a few bytes of a file should move this interval by a proportionally bounded amount, whereas merely reordering the bytes of the file should not move it at all: an attacker cannot make the verdict switch between distant intervals by tampering with a file only slightly. Again, the relevant distances are between properties of data, namely the content of a file up to the order of its bytes and the interval containing a count (Example 2.5). The choice of the property matters as well: the length of a file would not be a suitable input property, since files of the same length, such as “aaaa” and “bbbb”, may contain very different numbers of patterns.
In principle, these requirements can be expressed by LC, provided that the property of interest is incorporated into the distance, e.g., by comparing files through their edit distance up to the order of their bytes, rather than through the plain edit distance, which would also accept detectors whose count changes when the bytes of a file are merely reordered. However, such a tailored distance hides the property within the distance itself: the property cannot be combined with a different distance, nor the distance with a different property, and the resulting requirement is hardly comparable with other established notions in the literature, which are typically expressed in terms of abstractions of data.
We introduce Abstract Lipschitz Continuity (ALC for short), a property that generalizes LC from data to their properties (Section 2). ALC requires that differences between the properties of inputs lead to proportionally bounded differences between the properties of the corresponding outputs: the distance between the properties of two outputs is at most k times the distance between the properties of the corresponding inputs, for an abstract Lipschitz constant k. In particular, inputs with the same property must be mapped to outputs at distance 0, as required, e.g., for files that only differ in the order of their bytes in the example above. Our formalization is grounded in the theory of abstract interpretation [CC77, CC79]. We model property-based (or qualitative) approximations by upper closure operators, which abstract concrete values to the set of values sharing a common property, e.g., all the files with the same bytes, up to their order, or all the strings with the same number of Boolean operators. We model quantitative approximations by pre-metrics, a weakening of metrics that only requires each element to be at distance 0 from itself, and thus covers the distances arising in program analysis, which in general are neither symmetric nor satisfy the triangle inequality. Unlike LC, ALC is parametrized by both forms of approximation and keeps them explicitly apart, which is what allows us to relate ALC to other extensional program properties, and to reason about ALC of programs by induction on their syntax.
Thanks to this explicit separation, we relate ALC of program semantics to other extensional properties that capture input/output relations in comparable yet distinct ways, and show that ALC is a sufficient condition for three of them (Section 3). In abstract interpretation, ALC implies (partial) completeness [CDG22, CUDPG23, GRS00]: when the distance satisfies mild assumptions, any program whose semantics is ALC w.r.t. an abstraction admits a complete best correct approximation on it, i.e., an analysis on that abstraction that introduces no imprecision; when ALC is known for an input abstraction different from the one used by the analysis, the imprecision of the analysis is at most k times the largest distance, measured through the former abstraction, between an input and its approximation in the latter, and it is null when the latter is more precise. In language-based security, ALC implies (partial) abstract non-interference [CMU25, GM18]: inputs with the same property yield outputs with the same property, or with properties at a bounded distance. In machine learning, ALC with a null constant implies (abstract)
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
robustness [GMP24, MMF25] for any perturbation radius, and it is, in general, strictly stronger.
Finally, we propose a sound deductive system for proving ALC of programs by induction on their syntax (Section 4), parametric in the input and output abstractions and in the pre-metric of interest. Unlike Lipschitz continuous functions, ALC functions are not closed under composition in general, since the output abstraction of a program need not match the input abstraction of the next one. The rules of the system make explicit the side conditions that recover compositionality: a compatibility, through the distance, between consecutive abstractions for sequential composition, a bound on how joins affect the output distance for non-deterministic choice, and either a continuity condition on the distance or a bound on the number of iterations for Kleene iteration. A proof of ALC for a program is thus reduced to proofs for its basic commands and to these side conditions.
Related Work. Section 3 studies in detail the relationship between ALC and (partial) completeness [CDG22, CUDPG23, GRS00], (partial) abstract non-interference [CMU25, GM82, GM18], which generalizes approximate non-interference [PHW04], and (abstract) robustness [GMP24, MMF25].
Our deductive system (Section 4) generalizes the proof system of Chaudhuri et al. [CGL10, CGLN11, CGL12] for proving the Lipschitz continuity of programs: when the property-based approximations are the identity, it recovers (an extension, due to the (star) rule, of) the system in [CGL12]. Lipschitz-style robustness has also been studied for string transducers [SDC13, HOS14], w.r.t. similarity functions generalizing, e.g., the Hamming and Levenshtein distances, and for numerical programs [GP13], where abstract interpretation is used to bound the discontinuity errors due to unstable tests in finite-precision implementations. Type systems track Lipschitz constants as function sensitivity [RP10], and de Amorim et al. [dAGHK19] encode relational properties, such as approximate differential privacy, as sensitivity w.r.t. suitable distances, possibly violating the triangle inequality. In all these works, perturbations are measured directly on concrete values, whereas ALC measures them between properties of data, formalized by upper closure operators.
The notion of software doping, technically introduced in , pursues an effect similar to ALC, with the aim of detecting programs that intentionally deviate from their expected behavior. The authors propose a Lipschitz-style condition for defining software doping which is tailored to the Hausdorff lifting. This is then further generalized via a functional modulus of continuity. Their work, like ours, discerns a property of interest, expressed through the Hausdorff lifting, while, in our approach, we discern a property that can be formalized as a closure operator (or Galois connection). Other potential related works are cited in Section 5, since a better understanding of the relation with ALC deserves further research.
Structure of the Paper. The rest of the paper is organized as follows.
-
Section 1 introduces the programming language of interest and its semantics, and recalls property-based approximations via upper closure operators, quantitative approximations via pre-metrics, and their combination.
-
Section 2 defines Lipschitz continuity over pre-metric spaces and ALC, and illustrates ALC on examples.
-
Section 3 shows that ALC is a sufficient condition for partial completeness, partial abstract non-interference and abstract robustness.
• Section 4 presents the deductive system for proving ALC of programs and proves it sound.
• Section 5 concludes and discusses future work.
This article is an extended version of [CMPU26]. With respect to the conference version, the whole presentation has been thoroughly revised and extended, with many new examples illustrating the main results, the complete proofs of all the results, and the correction of some statements and examples. A new figure, Figure 6, summarizes the relations between ALC and the other extensional properties established in Section 3. Moreover, Section 3 contains two groups of new results. First, we relate ALC to partial completeness and partial abstract non-interference when the latter are expressed w.r.t. an input abstraction different from the one for which ALC is known, as is often the case when the abstraction of interest is dictated by an existing analysis or by a security policy. Second, we show that 0-ALC is equivalent to abstract robustness when the latter is required for every perturbation radius, whereas it is, in general, strictly stronger than abstract robustness for a fixed radius.
1.1. Program Syntax and Semantics. We consider programs written in the language Prog of regular commands [BGGR23, O'H20]:
which is general enough to cover deterministic imperative languages as well as other programming paradigms that include, e.g., non-deterministic computations (and, with a suitable semantics, probabilistic ones). The term P; P denotes sequential composition, non-deterministic choice and is the Kleene closure where P can be executed any finite number of times (including zero). For our purposes, we instantiate the basic commands with the following operations:
Informally, these correspond to: the no-operation, variable assignments, and Boolean tests, respectively. We assume a standard grammar for arithmetic expressions in AExp and Boolean expressions in BExp, defined as follows:
Variables range over a denumerable set while values range over a denumerable set (e.g., integer or natural numbers).
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
FIGURE 2. Semantics of Prog.
As an example, a standard deterministic imperative language (like Imp in [Win93]) can be defined using guarded branching and loop commands as syntactic sugar as follows [Koz97]:
Suppose we have a semantics : for basic commands on a complete lattice , where is the partial order (i.e., a reflexive, antisymmetric and transitive binary relation), is the least upper bound, the greatest lower bound, is the supremum of and is the infimum of . Then, the semantics for programs : , also called the concrete semantics, is inductively defined on program syntax as shown in Figure 2, where denotes function composition , and for natural denotes the composition of -times (formally, , ).
A notable instance of such concrete semantics is the collecting semantics, central in abstract interpretation [CC77, CC79], defined over a domain of program memories M. The aim of the collecting semantics consists in expressing the set of all possible program states that could occur at some program point. Formally, consider the complete lattice of program memories, where maps variables to values, namely , and is the empty set. We can define a collecting big-step semantics : for a program as the standard predicate transformer semantics on sets of program memories , collecting all possible program memories that reach the end of the program. Assume a big-step evaluation semantics for arithmetic expressions and for Boolean expressions. Given an input , namely a set of program memories, the semantics of basic commands is defined as follows:
It is easy to note that the collecting semantics for basic commands is monotone (i.e., for such that , it holds that ) by construction on the powerset lattice of program memories, and so is also monotone for any program in Prog since both composition and the join operations preserve monotonicity.
Example 1.1. Let us consider the following program
which decrements all positive values by 1 and increments all non-positive values by 1. For simplicity, here and in all the examples of the paper, we assume that is the only program variable, so that program memories can be identified with integer values and . Let us consider the Kleene closure of , , and its collecting semantics , which collects all the values reachable from the input set by iterating any finite number of times, i.e., . Every value generates the descending sequence , after which the computation alternates between 0 and 1, while every value generates the ascending sequence . Hence, for any non-empty , the collecting semantics of is given by:
where and , while . For instance, and . Note that the output is always a set of consecutive integers (an interval), determined only by the infimum and the supremum of the input set.
We will extensively use this semantics in the examples of Section 3 and 4.
1.2. Abstractions and Distances. In program analysis approximations are fundamental for simplifying reasoning while preserving essential properties. Following [CMU25], we consider qualitative or property-based approximations, formalized by upper closure operators, and quantitative approximations, formalized by pre-metrics. Their combination yields a general approximation parametrized by both an abstraction and a distance.
1.2.1. Property-based Approximations via Upper Closure Operators. Qualitative or property-based approximations preserve certain properties of the approximated data. Property-based approximations are at the heart of abstract interpretation [CC77, CC79], which offers a general methodology for approximating computations by evaluating functions (e.g., program semantics) over an abstract domain A instead of the concrete domain C. This approach is especially valuable when exact analysis is computationally infeasible or undecidable, trading precision for decidability. In this setting, A is referred to as an abstraction of C whenever there is a Galois Connection (GC), or a Galois Insertion (GI), between the two domains. More formally, given a partially ordered set (poset, for short) , called the concrete domain, and a poset , called the abstract domain, a GC is a pair where is the (monotone) abstraction function, relating concrete elements to their abstract counterparts, sometimes referred to as the lower adjoint, and is the (monotone) concretization function, relating abstract elements to their concrete counterparts, also referred to as the upper adjoint, both satisfying the following condition:
A GC is a GI when , namely when composing the abstraction function with the concretization gives rise to the identity function . .
GIs, which are the focus of this paper, can be equivalently formulated in terms of upper closure operators.
Definition 1.2 (Upper Closure Operator [CC79]). Let be a poset. A function is an upper closure operator (uco or closure, for short) when it satisfies the following properties :
(monotonicity) ;
(extensivity) ;
(idempotence)
▶
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN

FIGURE 3. Hasse diagram of the domain of signs , ordered by inclusion.
Ucos are uniquely determined by the set of their fixpoints: . For instance, the composition is an uco of . The set of all ucos on a poset is denoted by . An uco over a complete lattice is said to be additive when it preserves arbitrary joins, i.e., for all .
Example 1.3 (Sign Closure). As an example, the closure abstracts a set of integers by only recording the signs of its elements, i.e., whether the set contains negative values, the value 0 and positive values. Formally, let and be the three blocks of the partition of according to the sign; then is the union of the blocks that intersect :
For instance, , and . The set of fixpoints of consists of all the unions of blocks:
that is, the classical domain of signs [CC79], whose Hasse diagram is depicted in Figure 3. Note that Sign is additive since it is defined element-wise.
Henceforth, we formally model property-based approximation through ucos:
Definition 1.4 (Property-based Approximation [CMU25]). Given a poset and an uco , an element is approximated (or abstracted) by the property . The set represents all elements in sharing the same property as according to .
Example 1.5 (Interval Approximation). Let be the interval approximation [CC76], mapping a set of integers to the smallest interval
such that . Explicitly, for every non-empty , where the infimum and the supremum are taken in , and (the empty interval). For instance, the set of integers can be approximated by the interval through the interval approximation . Moreover, the set
| pre- | quasipseudo- | pseudosemi- | quasisemi- | semi- | quasi- | pseudo- | metric | |
|---|---|---|---|---|---|---|---|---|
| (if-identity) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| (iff-identity) | ✕ | ✕ | ✕ | ✓ | ✓ | ✓ | ✕ | ✓ |
| (symmetry) | ✕ | ✕ | ✓ | ✕ | ✓ | ✕ | ✓ | ✓ |
| (triangle-inequality) | ✕ | ✓ | ✕ | ✕ | ✕ | ✓ | ✓ | ✓ |
| Example | ||||||||
| Reference | Ex. 1.13 | Ex. 1.8, 1.9 | Ex. 1.7 | Ex. 4.12 |
FIGURE 4. Metrics and their weakenings.
contains all sets of integers such that . Note that is not additive since the smallest interval containing a union may contain elements that belong to neither of the smallest intervals containing the two sets: for instance, , whereas .
In the following, we will often abbreviate with the composition of any two functions .
1.2.2. Quantitative Approximations via Pre-Metrics. Quantitative approximations preserve closeness of the approximated data, where here the meaning of “closeness” is measured through a distance function between elements of a set. We model distance functions using pre-metrics. Let be the set of real numbers extended with the infinity symbol , such that for all , , and let be the restriction of R to values greater or equal to 0. Hence, and, similarly, . We extend the arithmetic operations of to by letting and for all , including
Definition 1.6 (Pre-Metric [CUDPG23]). Given a non-empty set , a pre-metric is a binary function satisfying the only axiom :
The pair is called a pre-metric space.
We will occasionally use the subscript in cases where the set may not be immediately clear from the context. The same convention will be adopted for orderings . Due to the only requirement, namely the (if-identity) axiom, pre-metrics are among the least restrictive formal notions of distance. However, depending on what we want to measure and on which domain, a distance function may satisfy more axioms. For instance, metrics could be considered as a very restrictive formal notion of distance, since they further satisfy the following axioms :
Distances with infinite values are customary in metric geometry, where a metric space with infinite distances canonically splits into subspaces at finite distance, separated from one another by infinite distances [BBI01, Section 1.1], as well as in the theory of generalized metric spaces of Lawvere [Law73], which take values in . In this setting, Lipschitz continuity is defined by the same inequality as in the finite case [BBI01, Definition 1.4.1], so that, for every constant , two elements at infinite distance impose no constraint on a Lipschitz continuous function. The convention , rather than the measure-theoretic , extends this reading to the degenerate constant k=0, consistently with the definition of the least Lipschitz constant as a supremum of ratios , where (cf. Section 2).
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
(symmetry)
(triangle-inequality)
A classic example of metric is the Euclidean distance measuring the distance between two real values as the absolute value of their difference.
A distance that is not required to satisfy (symmetry) is called a quasi-metric, while a distance that is not required to satisfy the implication of (iff-identity) is called a pseudometric. Semi-metrics are not required to satisfy the (triangle-inequality). By composing the words pseudo-, quasi- and semi- we obtain different distance flavors by simply keeping the axioms that are satisfied by all the combined words. For instance, a quasisemi-metric is a pre-metric that additionally satisfies the (iff-identity), while a pseudosemi-metric only satisfies (symmetry) besides (if-identity). Note that all these classes are inclusive: e.g., every metric is also a quasi-metric and a pseudo-metric. Figure 4 summarizes the above distance notions and their properties. The last two rows display the distance symbol and the example in which the distance is defined and used for the first time. As we will see in the next sections, understanding the type of distance function we are manipulating is essential for proving some implications between properties of programs (cf. Section 3).
From this point forward, whenever we say that a function is a distance, we assume that it satisfies, at least, the axiom of a pre-metric.
Definition 1.6 is general enough to be instantiated with several practical notions of distance proposed in the abstract interpretation literature (e.g., [CDG22, LCL24, Log09, PW00, Sot10]). The following examples illustrate two of these notions, used extensively throughout the rest of the paper. For additional examples of pre-metrics and their applications in domains used within the context of program analysis, we refer to [CUDPG23].
Example 1.7 (Size Distance). Consider the powerset of a set . We write for the number of elements in , which is when is infinite. We define the size distance
between two sets as follows:
where we assume . In other words, calculates the absolute value of the difference in their size. Note that is a pseudo-metric since it does not satisfy the (iff-identity) axiom: two sets may have the same size yet be different. In program analysis, could be used to count, for instance, the number of spurious elements added by an abstract computation with respect to the abstraction of a concrete computation. For instance, if is the (interval abstraction of the) strongest numerical invariant of a program variable at certain program point, while is the abstract invariant generated by an abstract interpretation over , then indicates that the abstract interpretation added 10 more spurious values with respect to the (interval abstraction of the) concrete execution.
The terminology is not uniform in the literature. We follow the classical one of [Wil31] for semi-metrics, i.e., distances not required to satisfy the (triangle-inequality); other authors (e.g., [DD16]) use the word semi-metric for what we call pseudo-metric, and quasi-semi-metric (or hemi-metric) for what we call quasipseudo-metric.
Example 1.8 (Inclusion Distance). Given the poset , suppose we are interested in defining a distance that calculates the number of more elements one set has with respect to another , but only in the case , otherwise it simply returns . Formally, we define the inclusion distance
between two sets as follows:
For instance, over , because has one more integer than namely the number 10, while because . This is another distance, like , that could be used in program analysis to count the number of spurious elements added by an abstract computation with respect to the abstraction of the concrete execution. Note that may differ from even between comparable sets: . The pair forms a quasi-metric space: (iff-identity) holds since if and only if and , i.e., , while (triangle-inequality) holds since whenever , and the right-hand side is otherwise. It is not a metric space because does not satisfy (symmetry).
Example 1.9 (Path-Length Distance). Counting elements, as does, is not informative on abstract domains whose elements are infinite sets. For instance, in the domain of signs of Example 1.3 we have , although is an immediate successor of in Figure 3. The path-length distance [CUDPG23] measures instead how many steps apart two elements are in the Hasse diagram of a poset. Given a poset , we define
by letting be the length of a shortest path from to in the Hasse diagram of that only traverses edges upwards, i.e., the least such that , where each covers (namely and no element lies strictly between them), and when no such path exists, in particular when . This is the directed version, with unit weights, of the path-length distance of [CUDPG23], where paths can be traversed in both directions and edges may carry arbitrary weights. On the poset , where each step adds a single element, coincides with the inclusion distance of Example 1.8. On the domain of signs , ordered by inclusion, counts instead the number of blocks that have to be added to in order to obtain : for instance, , and , whereas and . For every poset , the pair is a quasi-metric space: (iff-identity) holds since a path of length 0 exists only from to ; (triangle-inequality) holds since the concatenation of an upward path from to with one from to is an upward path from to ; (symmetry) fails as soon as some element of covers another one, since then .
We formally define quantitative approximations via pre-metrics as follows:
Definition 1.10 (Quantitative Approximation [CMU25]). Given a pre-metric space and a fixed constant , an element is quantitatively approximated by any
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
element such that . The set represents all elements in that quantitatively approximate up to according to .
Note that, when is not symmetric, the order of the arguments matters: the set above is the “forward” ball of radius centered in x.
Example 1.11. Continuing Example 1.5, we may approximate sets of integer numbers by the size distance defined in Example 1.7. For instance, the set can be quantitatively approximated by any set of integers whose maximum distance from it is at most . Examples of such approximations include sets and .
Here, the admitted noise concerns elements that are “close”, according to the chosen , to the original one but that may not share a specific property identified by an uco .
1.2.3. Combining Property-based and Quantitative Approximations. By combining the two forms of approximation, we obtain a general approximation that incorporates a quantitative error within property abstractions, while still keeping the two types of approximations distinct. Given and a pre-metric space , we define the distance as
which calculates the distance between the property-based approximations of and . Note that only depends on the restriction of to the abstract domain . Hence, the definition and all that follows apply verbatim when is a pre-metric on only, such as the path-length distance of Example 1.9 on the domain of signs.
Definition 1.12 (General Approximation [CMU25]). Let be a poset and be a pre-metric space, and let . An element is approximated by the property and quantitatively approximated up to by , by any element such that . The set incorporates both forms of approximation.
Example 1.13. By considering the interval approximation from Example 1.5 and the inclusion distance from Example 1.8, we can combine the two forms of approximation, namely and , into : this new distance calculates the number of more elements between two comparable interval abstractions rather than considering the original input sets. Continuing Example 1.8, the set can then be qualitatively and quantitatively approximated by and in any set in , namely in any set whose interval abstraction is , or (e.g., , or ).
Clearly, when considering the identity function as abstraction (i.e., . ), it holds that for any and pre-metric . However, for , combining with preserves some axioms of but may lose others.
Proposition 1.14. Let be a poset, a pre-metric space, and . The following hold:
(i) satisfies (if-identity), i.e., is a pre-metric space;
(ii) satisfies (symmetry), resp. (triangle-inequality), if and only if the restriction of to does; in particular, whenever does;
(iii) if then does not satisfy (iff-identity), even when does;
Proof. (i) If x = y then by (if-identity) of .
(ii) Assume that satisfies (symmetry) on . Since for all , we have . Conversely, assume that satisfies (symmetry) and let . By idempotence of , we have and , hence . The proof for (triangle-inequality) is analogous: if satisfies it on then, for all , ; conversely, if satisfies it then, for all , . Finally, if satisfies an axiom on the whole , then it trivially satisfies it on .
(iii) Since , there exists with ; let , so that . By idempotence of , , hence by (if-identity) of , despite .
Consequently, is a pseudo-metric whenever is a metric or a pseudo-metric, a quasipseudo-metric whenever is a quasi-metric or a quasipseudo-metric, a pseudoseimetric whenever is a semi-metric or a pseudosemi-metric, and just a pre-metric whenever is a quasisemi-metric. In other words, when we combine a non-identity abstraction with the pre-metric , then preserves (if-identity), (symmetry) and (triangle-inequality), but always loses (iff-identity) on C.
Example 1.15. Recall from Example 1.8 that is a quasi-metric forming a quasi-metric space , i.e., it satisfies (iff-identity) and (triangle-inequality) but not (symmetry); by Proposition 1.14, keeps (triangle-inequality) but loses (iff-identity). For instance, even though . Hence forms a quasipseudo-metric space. On the other hand, the restriction of to the abstract domain of intervals does satisfy (iff-identity) and is thus again a quasi-metric: two intervals at -distance 0 are, by definition of , necessarily the same set.
2. ABSTRACT LIPSCHITZ CONTINUITY
In mathematical analysis, Lipschitz continuity is a strong form of uniform continuity that establishes a quantitative relationship between perturbations of the input of a function and the resulting perturbations of its output: the latter are bounded by a linear function of the former, whose slope is the Lipschitz constant. Classically, it is defined for functions between metric spaces, and it underlies, e.g., the notion of program robustness of Chaudhuri et al. [CGL10, CGLN11, CGL12], function sensitivity in differential privacy [RP10], and certified robustness of neural networks [FRH 19, HZS 21, JT20, ZJHW22a]. In our setting, however, the distances of interest (cf. Section 1) are in general neither symmetric nor satisfying the triangle inequality or the identity of indiscernibles, and the input and output spaces need not carry the same distance. We therefore define Lipschitz continuity for functions between (possibly distinct) pre-metric spaces.
Definition 2.1 (Lipschitz Continuity). Let and be pre-metric spaces denoting the input and output spaces, respectively. Let . A function satisfies -Lipschitz Continuity ( -LC for short) w.r.t. when the following inequality holds:
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN


FIGURE 5. Controlled input/output general approximations (left) and suppression of input general approximation (right).
A function satisfies Lipschitz Continuity (LC) w.r.t. when there exists such that satisfies -Lipschitz continuity w.r.t. .
Any such is called a Lipschitz constant of : it bounds the rate of change of the output of , i.e., for all with (recall that ), while inputs at distance 0 must be mapped to outputs at distance 0.
Note that a pre-metric on still induces a topology, whose open sets are the such that every has a forward ball , , contained in , and every -LC function is continuous w.r.t. the topologies induced by and . However, balls need not be open, limits need not be unique, and the results of metric analysis that depend on the metric axioms (e.g., Banach's fixed point theorem) are not available in general. What the rest of the paper relies on are two properties of Lipschitz constants that hold in any pre-metric setting: the set of admissible constants of a function is upward closed, and Lipschitz continuous functions are closed under composition, with the product of the constants as a constant of the composition. These are precisely the properties exploited by the deductive system of Section 4, while the results of Section 3 will require additional axioms on the distances at hand.
Definition 2.1 of k-Lipschitz continuity can be equivalently formulated as follows:
Proposition 2.2. Let and be pre-metric spaces and . A function satisfies w.r.t. if and only if
Proof. ( ) Let and with . Then .
( ) Let . If then , by the conventions of Section 1. Otherwise, satisfies , hence .
When approximations are introduced to the input of a function, they propagate through its computations, affecting the output. Understanding how approximations evolve during computations provides insight into the behavior of the function and, consequently, into program executions when the function represents program semantics [CGL10, CGL12, ZJHW22b, LB04, CDPGU26].
In this work, we generalize the definition of Lipschitz continuity (Definition 2.1), which relies on quantitative approximations (Definition 1.10), to work with general approximations
(Definition 1.12), explicitly discerning property-based approximations (i.e., ucos) from quantitative approximations (i.e., distances). This yields the novel notion of abstract Lipschitz continuity, which enforces a controlled (linear) error propagation from a general approximation of the input to a general approximation of the output of a function computation (Figure 5).
Definition 2.3 (Abstract Lipschitz Continuity). Let and be the input and output domains (posets), respectively. Let and be pre-metric spaces, and let , be the ucos on the input and output domains, respectively. Consider a constant . A function satisfies Abstract k-Lipschitz Continuity (k-ALC, for short) w.r.t. when:
A function satisfies Abstract Lipschitz Continuity (ALC) whenever there exists such that satisfies abstract -Lipschitz continuity.
Informally, k-ALC states that whenever y is a general approximation of x up to w.r.t. and , then is a general approximation of up to w.r.t. and .
When k-ALC holds, k is called an abstract Lipschitz constant of f. The case deserves attention: by the assumption (Section 1.2.2), 0-ALC requires for all at finite distance , i.e., f completely suppresses any (finite) general approximation of its input (Figure 5, right).
It is worth remarking that Definition 2.1 can be instantiated to model Definition 2.3 by incorporating the computation of the distance between property-based approximations within and . Indeed, by Proposition 1.14(i), and are pre-metrics on and , respectively, hence satisfies -ALC w.r.t. exactly when it satisfies -LC w.r.t. the pre-metric spaces and . However, explicitly discerning qualitative approximations (i.e., ucos) from quantitative approximations (i.e., distances) as in Definition 2.3, has two main advantages. First it allows us to relate ALC to other extensional program properties (i.e., relative to the input/output behavior of programs) studied in the program analysis literature, such as abstract robustness [GMP24] and partial completeness [CDG22, CUDPG23] (Section 3). Second, it allows reasoning on its validity over programs by induction on their syntax and on the chosen ucos (Section 4).
As a consequence, every property of Lipschitz continuity that holds for arbitrary pre-metric spaces transfers to ALC, such as the equivalent formulation of Proposition 2.2:
Proposition 2.4. Consider the premises of Definition 2.3. A function satisfies -ALC w.r.t. if and only if:
Proof. Immediate from Proposition 2.2 applied to the pre-metric spaces and .
Example 2.5 (Byte Histograms). Let be the set of byte values. A file is a finite sequence of bytes. Its byte histogram records the number of occurrences of each byte. Two files have the same histogram exactly when they differ only in the order of their bytes.
Let and be the sets of non-empty finite subsets of FILES and , respectively, both ordered by inclusion. We consider the input abstraction that forgets byte order:
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
and, as input distance, we take the Hausdorff distance [DD16] induced by the edit distance ed: FILES × FILES → N, which counts the minimum number of single-byte insertions, deletions, and substitutions needed to transform one file into another:
The combined distance therefore compares files up to byte reordering, e.g., the files “ab” and “ba” have edit distance 2, but .
As output abstraction, we take the uco that approximates counts by intervals of a fixed width , . Let for . Then replaces each count with the interval containing it:
For example, if , then , while . As output distance, we take the pseudo-metric . For , the distance between and is 0, whereas that between and is 10.
The semantics of count-a in Figure 1 (on the right) is the function : defined by , collecting the number of occurrences of the malicious pattern “a” in each file of . It satisfies w-ALC w.r.t. . Indeed, a single edit changes the number of occurrences of “a” by at most 1, while byte reordering leaves it unchanged. By the definition of Hausdorff distance, the maximum counts in any therefore differ by at most . Moreover, increasing a count by 1 either leaves its interval unchanged or moves it to the next interval, whose upper endpoint is larger. Thus, applying increases the distance between maximum counts by at most a factor , giving
\delta_{\mathrm{D}}^{\rho}(\left[\left[\mathbf{c o u n t-a}\right]\mathbf{F}_{1},\left[\left[\mathbf{c o u n t-a}\right]\mathbf{F}_{2}\right]\leq w\delta_{\mathrm{C}}^{\eta}(\mathbf{F}_{1},\mathbf{F}_{2}).The factor w is necessary: adding one “a” to “a” changes the count from w - 1 to w. After applying , the corresponding maxima are w - 1 and 2w - 1, whose difference is w.
Hence, ALC bounds how much the observed count can change under file modifications, while ensuring that byte reordering leaves it unchanged. Retaining only file length would not suffice: “a” and “b” have the same length, but their counts w and 0 satisfy . An abstraction identifying these files would therefore give input distance 0 and positive output distance, violating ALC for every finite constant.
Example 2.6. Consider the program of Example 1.1, the interval closure and the inclusion distance of Example 1.8. We consider non-empty sets of integers only, i.e., the pre-metric space , on which is still a uco and is well defined, since . Then satisfies 1-ALC w.r.t. . Indeed, let and . If then and there is nothing to prove. Otherwise and, by Example 1.1, for , where , so that . For instance:
The restriction to non-empty sets is necessary: whereas for every . On the other hand, does not satisfy -ALC w.r.t. for any : , since and have the same size, whereas . This is a general phenomenon: since , ALC forces inputs at distance 0 to be mapped to outputs at distance 0 (as observed after Definition 2.1), and identifies all intervals of the same size.
3. ALC AS A SUFFICIENT CONDITION: PARTIAL COMPLETENESS, PARTIAL ABSTRACT NON-INTERFERENCE AND ABSTRACT ROBUSTNESS
By instantiating the function in Definition 2.3 with the semantics of a program (e.g., the collecting semantics of a program defined in Section 1.1), ALC becomes an extensional property of programs, i.e., relative to their input/output behavior. By explicitly discerning the role of qualitative and quantitative approximations in its definition, ALC can be related to other extensional property of programs in the literature that capture input/output relations in comparable yet distinct ways. In this section, we show that ALC is a sufficient condition for three such properties. The first two weaken classical notions by admitting a bounded imprecision in the observed output properties: partial completeness (Section 3.1), a weakening of completeness in abstract interpretation, and partial abstract non-interference (Section 3.2), a weakening of abstract non-interference. The third one is abstract robustness (Section 3.3), a weakening of the robustness of classifiers in machine learning, which instead requires the observed output properties to be invariant under perturbations of the inputs within a bounded radius .
When ALC and partial completeness or partial abstract non-interference are expressed w.r.t. the same abstractions, ALC implies them for any threshold , regardless of the abstract Lipschitz constant ; under mild additional assumptions on the distances, it even implies their exact counterparts, namely completeness of the best correct approximation and abstract non-interference. Intuitively, the quantitative bound provided by ALC on how output properties may vary leaves no room for imprecision when input properties are indistinguishable. For abstract robustness, instead, the abstract Lipschitz constant must be null: 0-ALC implies abstract robustness for any radius , whereas the converse does not hold for a fixed radius. Hence, 0-ALC is, in general, strictly stronger than abstract robustness for a fixed radius.
We will also relate ALC to partial completeness and partial abstract non-interference when they are expressed w.r.t. two different input abstractions , a generalization that we do not consider for abstract robustness, which admits no imprecision in the observed output properties. In this case, the abstract Lipschitz constant does come into play: the threshold guaranteed by ALC is proportional to and to how far is from , as measured by the input distance. A recurring special case is when is more precise than , written as a slight abuse of notation for . The following lemma shows that, in this case, the composition of abstractions is equivalent to :
Lemma 3.1. Let be a poset and , . If , then .
Proof. ( ) Let us assume , for all input . Then, by monotonicity of , we have . Thus, by idempotency of , we have .
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN

FIGURE 6. Relation between ALC and other extensional program properties.
(⊆c) By extensivity of , for all , we have . Thus, by monotonicity of , we have .
Example 3.2. Consider the poset and the abstractions and , where is the simplified sign closure whose set of fixpoints is
Note that is coarser than the closure of Example 1.3, as it cannot express, e.g., . The abstraction is more precise than : for any , we have . Thus, by Lemma 3.1, . For instance, for , . Note that this does not hold for , which is incomparable with : .
Fig. 6 summarizes all the relations between ALC, partial completeness, partial abstract non-interference and abstract robustness formalized in this section.
3.1. Partial Completeness. Partial completeness [CDG22, CUDPG23] is a weakening of the standard notion of completeness in abstract interpretation. In the classical abstract interpretation framework [CC77], the computation of a concrete (possibly uncomputable) monotone function over a poset is replaced by an abstract (possibly computable) sound computation over an abstract domain , where . For example, if P is a program with a single variable then could be the collecting big-step semantics : defined in Section 1.1 over , the interval abstract domain (Example 1.5) and : is the abstract interval semantics soundly computed on intervals. An abstract function is sound when , and is said to be complete when . In this case coincides on A with the best correct approximation (bca) [CC79] of , so that a complete abstract function exists if and only if , a condition that only depends on and [GRS00].
Completeness is the best possible scenario where no imprecision is introduced by the abstract computation of . In practice, however, completeness is rarely achieved. For this reason, Campion et al. [CDG22, CUDPG23] introduced a weaker notion of completeness, called -partial completeness which allows some degree of imprecision limited by . This imprecision is measured by pre-metrics that are -compatible with the abstract domain, i.e., pre-metrics additionally satisfying [CUDPG23], for all :
Partial completeness was originally defined as a local property (namely, defined on a strict subset of the input domain) [CDG22]. Here, for our purposes, we consider a global version of -partial completeness:
To relate ALC w.r.t. of a monotone function to partial completeness, we observe that, given a -compatible pre-metric defined over , since we can always restrict to elements of , i.e., without losing the -compatible property. With the restricted distance in hand, we can now state our first relation between ALC and partial completeness:
Theorem 3.3. Let be a poset, let be a -compatible pre-metric space, and let . If a monotone function satisfies ALC w.r.t. , then the bca of satisfies -partial completeness w.r.t. , for any .
Proof. We prove the following implication:
Let us assume -ALC w.r.t. , and let . Instantiating ALC with , we have . By idempotence of and (if-identity), , hence . Then, by idempotence of , by definition of (as ), and by definition of , we have:
Hence, the bca of satisfies 0-partial completeness w.r.t. , and thus -partial completeness holds for any .
Monotonicity of is not used in the proof: for an arbitrary , the same bound holds for , which however is not guaranteed to be a sound approximation of , and hence cannot be called the bca of . In any case, monotonicity is not a restriction when is the collecting semantics [P] of a program , which is monotone by construction (Section 1.1).
Note that the combined distance never satisfies (iff-identity) on (Proposition 1.14), whereas the restriction of to may regain it (cf. Example 1.15). In this case, ALC guarantees completeness:
Corollary 3.4. Let be a poset, a -compatible pre-metric space, and , such that is a quasisemi-metric. If a monotone function satisfies ALC w.r.t. , then the bca of satisfies completeness w.r.t. .
Proof. By Theorem 3.3, satisfies 0-partial completeness w.r.t. , namely for all we have . Since is a quasisemi-metric, it satisfies (iff-identity), hence . , by idempotence of . Thus, satisfies completeness w.r.t. .
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
Theorem 3.3 and Corollary 3.4 reveal a novel relationship between the ALC of a function and the partial completeness of its bca, particularly in the context of program analysis where represents a monotone semantics [P] of a given program P. Notably, a proof of ALC of [P] w.r.t. the distance implies that the imprecision introduced by approximating [P] with its bca is bounded by any constant . Consequently, also satisfies 0-partial completeness, namely no imprecision is generated by the bca according to . Thus, ALC of a program [P] ensures the existence of an abstract interpreter capable of approximating the computation of [P] over with no imprecision according to the imprecision measured by . Furthermore, when the distance is a quasisemi-metric, then the bca is guaranteed to satisfy completeness, namely, no imprecision is generated by the bca. Another way to interpret Corollary 3.4 (and, analogously, Theorem 3.3) is as follows: if a program [P] does not admit a complete bca , then [P] cannot satisfy ALC w.r.t. for any -compatible such that is a quasisemi-metric.
Example 3.5. Consider again the program R, its Kleene closure , and the interval closure from Example 1.1, and recall from Example 2.6 that, on non-empty sets of integers, the (monotone) collecting semantics satisfies 1-ALC w.r.t. .
By Theorem 3.3, the bca then satisfies 0-partial completeness w.r.t. , i.e., , for any non-empty . Moreover, the restriction of to is a quasi-metric (Example 1.15), hence also a quasisemi-metric, so Corollary 3.4 applies, and we can conclude that is complete, namely it does not add any imprecision when approximating .
Consider instead the pseudo-metric space and the semantics of R. The bca does not satisfy 0-partial completeness w.r.t. : given , we have that and so cannot satisfy ALC for .
Theorem 3.3 and Corollary 3.4 use the same as both the input and the output abstraction of ALC (Definition 2.3), as well as to build the bca . In practice, however, the input abstraction for which ALC is known need not be the one through which an analysis approximates its input. The latter is usually dictated by the analysis at hand, e.g., by the abstract domain of an existing analyser, whereas ALC may have been established for an abstraction that makes the proof possible, e.g., one for which the basic commands are ALC; moreover, need not be ALC at all w.r.t. the input abstraction of the analysis (see Example 3.7). We therefore generalize the above relation by keeping as the output abstraction, but using two different input abstractions: for ALC, and for partial completeness. Intuitively, replacing an input with its abstraction introduces an input error, whose magnitude can be measured through , and ALC propagates this error linearly to the output, as in the classical use of Lipschitz constants to bound the effect of input perturbations [CGLN11, CGL12]: the resulting bound on the imprecision of the bca is proportional to . To this end, we first extend (3.1) to functions between two posets and , with an input abstraction and an output abstraction . An abstract function is sound when , and the bca of is , which is sound whenever is monotone. Given a -compatible pre-metric on , satisfies -partial completeness w.r.t. when
Clearly, (3.1) is the special case where and . As before, given a -compatible pre-metric on , we take as the restriction of to .
Theorem 3.6. Let and be posets, a pre-metric space, a -compatible pre-metric space, and , . Let . If a monotone function satisfies -ALC w.r.t. , then the bca of satisfies -partial completeness w.r.t. , for .
Proof. We prove the following implication:
Let us assume -ALC w.r.t. , and let . Instantiating ALC with , we have , by definition of . Then, by idempotence of , by definition of (as ), and by definition of , we have:
Hence, the bca of f satisfies -partial completeness w.r.t. f.
In this case, the bound on the output error for partial completeness depends on the largest distance between an input and its abstraction when observed through .
Example 3.7. Consider again the collecting semantics on non-empty sets of integers (Example 2.6), the sign closure Sign (Example 1.3), and the -compatible path-length distance on the domain of signs (Example 1.9). Note that, for any with , we have .
Since , we have
Hence, satisfies 1-ALC w.r.t. .
Let now be the classical parity closure, mapping a non-empty set of integers to if all its elements are even, to if all its elements are odd, and to otherwise. Since , we have . This bound is attained for . Hence . By Theorem 3.6, with , and , the bca satisfies 2-partial completeness w.r.t. .
Observe that the bound is not tight: every parity abstraction of a non-empty set contains negative values, so . By (3.3), the actual imprecision is 0 if contains a negative value, and 1 otherwise. Note also that ALC cannot be established directly w.r.t. : for any pre-metric , we have by (if-identity), whereas by (3.3), so does not satisfy -ALC w.r.t. for any . Theorem 3.6 thus yields a guarantee for the parity analysis that ALC w.r.t. cannot provide.
When is more precise than (Lemma 3.1), the bound of Theorem 3.6 becomes 0 and, as in Theorem 3.3, partial completeness holds for any :
Corollary 3.8. Let and be posets, a pre-metric space, a -compatible pre-metric space, and , , such that . If a
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
monotone function satisfies w.r.t. , then the of satisfies -partial completeness w.r.t. , for any .
Proof. By Lemma 3.1, for every , so by (if-identity). Hence , and, by Theorem 3.6, the bca of satisfies 0-partial completeness w.r.t. , and thus -partial completeness holds for any .
Example 3.9. Consider again the collecting semantics on non-empty sets of integers, and the -compatible path-length distance (Example 1.9), but now on the simplified domain of signs of Example 3.2. Note that as defined in (3.3). Hence, as in Example 3.7, satisfies 1-ALC w.r.t. .
Let now . Since is more precise than (Example 3.2), by Corollary 3.8, with and , the bca satisfies 0-partial completeness w.r.t. . Indeed, contains a negative value if and only if does, hence . Unlike Par in Example 3.7, does not lose the sign information that depends on.
3.2. Partial Abstract Non-Interference. Partial Abstract Non-Interference [CMU25] (PANI for short) is a relaxation of (abstract) non-interference [GM82, GM18] that combines both property-based and quantitative approximations on the output of a function computation. This notion can be seen as a generalization of approximate non-interference [PHW04], originally introduced in a probabilistic process algebra, requiring the observable behaviors of two agents to be under a similarity threshold . Specifically, PANI observes indistinguishable (distance-wise) properties of input data, while allowing a bounded distance between the observed output properties. This enables a more nuanced treatment of security policies, especially when small, bounded differences in outputs are tolerable. Under the same premises as Definition 2.3, -PANI w.r.t. has been formalized as [CMU25]:
Given inputs with zero property distance under , -PANI w.r.t. allows the function to produce different outputs, potentially with different properties under , as long as the variation remains bounded, i.e., not exceeding the threshold .
It turns out that ALC is a stronger property than PANI:
Theorem 3.10. Let and be posets, and pre-metric spaces, and , . If a function satisfies w.r.t. , then satisfies -PANI w.r.t. , for any .
Proof. We prove the following implication:
Let us assume -ALC w.r.t. , and let be such that . Then, by ALC, we have . Hence, satisfies 0-PANI w.r.t. , and thus -PANI w.r.t. holds for any .
Example 3.11. Consider again the semantics which, on non-empty sets of integers, satisfies 1-ALC w.r.t. (Example 2.6). By Theorem 3.10, also satisfies 0-PANI w.r.t. .
When satisfies (iff-identity), ALC implies Abstract Non-Interference (ANI) [GM18], which replaces distances with equalities: . .
Corollary 3.12. Let and be posets, a pre-metric space, a quasisemi-metric space, and , . If a function satisfies ALC w.r.t. , then satisfies ANI w.r.t. .
Proof. By Theorem 3.10, satisfies 0-PANI, namely: . Let be such that . By (if-identity) of , hence . Since is a quasisemi-metric, it satisfies (iff-identity), hence , namely satisfies ANI w.r.t. .
Example 3.13. Continuing Example 3.11, since is a quasi-metric (Example 1.8), hence also a quasisemi-metric, Corollary 3.12 gives that satisfies ANI w.r.t. .
Theorem 3.10 and Corollary 3.12 use the same as the input abstraction of both ALC and PANI (or ANI). In a security setting, however, the input abstraction of PANI is dictated by the policy, as it specifies which inputs must be (almost) indistinguishable to an observer of the output (e.g., which property of the input may be released [GM18]), whereas ALC may be known for a different input abstraction, as discussed in Section 3.1. Following the generalization of Section 3.1, we now use two different input abstractions: for ALC, and for PANI. Intuitively, two inputs and that are indistinguishable through have the same abstraction , and replacing each of them with it introduces an input error that ALC propagates to the output, so that their outputs are at most twice the propagated error apart. This intuition requires the inputs that PANI deems indistinguishable to be exactly those with the same -abstraction. For this reason, Theorem 3.14 also uses two different input distances, for ALC and for PANI, which play different roles. The distance is used quantitatively: it measures how far each input is from , as seen through , and thus determines, together with , the threshold . It can be any pre-metric under which ALC is known, and it only needs to be defined on (Section 1.2.3). The distance is instead used only qualitatively: by (3.4), only the pairs of inputs at distance 0 matter, so only specifies which inputs must be (almost) indistinguishable. Requiring it to be a quasisemi-metric ensures that if and only if , as in ANI, whatever the choice of . The distance under which ALC is known cannot be used for PANI in general, as it may be defined on only, or it may identify inputs with different -abstractions, in which case the conclusion of the theorem may fail. This issue does not arise with a single input abstraction, since ALC maps inputs at distance 0 to outputs at distance 0, whatever the pre-metric (Theorem 3.10).
Theorem 3.14. Let and be posets, a pre-metric space, a quasisemi-metric space, a pseudo-metric space, and . Let . If a function satisfies -ALC w.r.t. , then satisfies -PANI w.r.t. , for .
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
Proof. We prove the following implication:
Let us assume -ALC w.r.t. , and let be such that . Instantiating ALC with the pairs and , we have
by definition of . By (iff-identity) of the quasisemi-metric , we have , so and, by (if-identity) of , . By (triangle-inequality) of (and hence of ):
and, by (symmetry) of , . Hence , namely satisfies -PANI w.r.t. .
Example 3.15. Consider again the collecting semantics on non-empty sets of integers, the sign closure Sign and the parity closure Par of Example 3.7, and the undirected variant of on the domain of signs , where paths may traverse edges of the Hasse diagram in both directions, i.e., the path-length distance of with unit weights (cf. Example 1.9). Unlike , is symmetric (hence, it is a metric): for instance, , whereas . By (3.3), the output distance is at most , and it is 0 when the input distance is 0. Hence, satisfies 1-ALC w.r.t. .
Let now , and take as the inclusion distance , which is a quasi-metric (Example 1.8), hence also a quasisemi-metric. As in Example 3.7, , hence , and . By Theorem 3.14, with , , and , satisfies 4-PANI w.r.t. .
Observe that the bound is not tight: as shown above, the output distance is at most 1, which is attained, e.g., for and , which have the same parity but yield outputs with different signs. Hence, satisfies 1-PANI but not 0-PANI w.r.t. .
When is more precise than (Lemma 3.1), the bound of Theorem 3.14 is 0, and we obtain the same guarantee as Theorem 3.10, but w.r.t. :
Corollary 3.16. Let and be posets, a pre-metric space, a quasisemi-metric space, a pseudo-metric space, and , such that . If a function satisfies ALC w.r.t. , then satisfies -PANI w.r.t. , for any .
Proof. By Lemma 3.1, for every , so by (if-identity). Hence , and, by Theorem 3.14, satisfies 0-PANI w.r.t. , and thus -PANI w.r.t. holds for any .
Example 3.17. Consider again the collecting semantics on non-empty sets of integers, the closures and of Example 3.2, and the size distance , which is a pseudometric (Example 1.7). Since all non-empty elements of but are infinite,
is 0 if , and otherwise. By (3.3) (cf. Example 3.9), only if exactly one of contains a negative value, in which case also . Hence, it is easy to check that satisfies 1-ALC w.r.t. .
Let now , which is more precise than (Example 3.2), and take as the inclusion distance , which is a quasi-metric (Example 1.8), hence also a quasisemi-metric. By Corollary 3.16, with and , the collecting semantics also satisfies 0-PANI w.r.t. : inputs with the same interval yield outputs with the same sign.
3.3. Abstract Robustness. The idea of abstract robustness is to formally characterize the amount of error that an analyst may tolerate in a machine learning classification result [GMP24]. This error, generated by an input perturbation, either a property-based or a quantitative approximation [GMP24], is modeled as a property-based approximation of the classification outcome, expressed through an uco . Formally, given a set of inputs of interest and a perturbation that maps each input to a region of inputs around it, abstract robustness requires every input in the perturbation of an input of interest to have the same abstract classification as [GMP24, Definition 5.2]. Assuming to be a classifier, we consider the global version of abstract robustness, where every input is of interest, with a quantitative input perturbation of radius , which maps to its quantitative approximations up to (Definition 1.10), namely to the inputs such that [GMP24]:
In the following, we refer to (3.5) as abstract robustness w.r.t. for the radius . Note that, unlike the thresholds of partial completeness and PANI, the radius bounds the perturbation of the input, while the abstract classification of the output is not allowed to change. If we look at this definition in terms of ALC, we observe that this notion requires that the error introduced by the perturbation of the input must be neutralized, at least for the observation of the output classification. In fact, if we consider a quasisemi-metric output distance, the equality corresponds to the null output distance guaranteed by 0-ALC, which is thus a sufficient condition for abstract robustness, whatever the radius:
Theorem 3.18. Let and be posets, a pre-metric space, a quasisemi-metric space, , and fix . If a function satisfies 0-ALC w.r.t. , then satisfies abstract robustness w.r.t. for the radius .
Proof. We prove the following implication:
Let us assume 0-ALC w.r.t. , and let be such that . Since , by Proposition 2.4 with we have , namely by definition of . Since is a quasisemi-metric, it satisfies (iff-identity), hence .
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
Setting the abstract Lipschitz constant to zero is necessary, in general, to stabilize the classifier's output under the same abstraction when : with , inputs at distance may be mapped to outputs at distance , hence with different abstract classifications (see Example 3.19 below). For , instead, (3.5) only constrains the inputs at distance 0, and it is implied by k-ALC for any , as in Theorem 3.10. The distance must also be a quasisemi-metric to ensure that output abstractions at distance zero are equal.
The converse of Theorem 3.18 does not hold for a fixed radius : abstract robustness only constrains the inputs within distance from each other, whereas 0-ALC constrains all the inputs at finite distance, since for every (cf. Section 2).
Example 3.19. Consider again the collecting semantics on non-empty sets of integers, and the closures and of Example 3.2. As input distance we take , which is a quasipseudo-metric on , hence a pre-metric (Example 1.15): the perturbation of radius of an input consists of the sets whose interval is obtained by adding at most integers to . As output abstraction we take , and as output distance the path-length distance on , which is a quasi-metric (Example 1.9), hence also a quasisemi-metric.
For any radius , satisfies abstract robustness w.r.t. . Indeed, since takes values in , implies , hence by (iff-identity) of . Thus contains a negative value if and only if does, and by (3.3) (cf. Example 3.9). For instance, the perturbation of radius of is . More generally, for the perturbation of consists of the inputs with the same interval as , namely it is the perturbation induced by [GMP24, Section 7.2.1], and abstract robustness amounts to ANI w.r.t. (cf. Example 3.17).
However, does not satisfy 0-ALC w.r.t. \langle\delta_{\subseteq}^{\text{Int}},\delta_{pat}^{\text{Sign}}'\rangle: since , by (3.3) we have
The same pair shows that does not satisfy abstract robustness w.r.t. for any radius , although it satisfies 1-ALC w.r.t. . Indeed, if , then , so that the output signs differ only if contains a negative value and does not; in this case, , hence the output distance is bounded by the input distance .
Theorem 3.18 and Example 3.19 show that, in general, 0-ALC is strictly stronger than abstract robustness for a fixed radius. The two notions coincide when abstract robustness is required for every radius , namely w.r.t. the perturbation that maps each input to all the inputs at finite distance from :
Theorem 3.20. Consider the hypotheses of Theorem 3.18, except for the fixed radius . A function satisfies 0-ALC w.r.t. if and only if satisfies abstract robustness w.r.t. for the radius , for every .
Proof. ( ) By Theorem 3.18, applied to each .
(⇐) Let us assume abstract robustness w.r.t. for every radius , and let . If , then , by the conventions of Section 1.2.2. Otherwise, satisfies , hence by (3.5), and by (if-identity) of . Hence, satisfies 0-ALC w.r.t. .
What is interesting in these results is that abstract robustness, and therefore standard robustness, follows from the specific instance of ALC where the potential error in input does not affect in any way the classification of the output (at least in the observed output property), which corresponds to abstract robustness for perturbations of any radius. In this sense, ALC becomes a generalization of robustness by admitting an effect in the output, but this effect must be linearly bounded to the input error. From this perspective, ALC serves as a model for further weakening the robustness of ML, enabling us to better adapt it to specific contexts or application domains, for instance, by checking whether variations of input properties affect the classification.
4. PROVING ALC FOR PROGRAMS
ALC is an extensional property: it constrains the input/output behaviour of a program semantics and, as such, it cannot be checked directly on the program text. In this section we introduce a syntax-directed deductive system for proving that the semantics : of a program satisfies w.r.t. a pair of abstractions and a pre-metric on . The system is in the tradition of the proof systems for completeness [GLR15] and partial completeness [CDPGU26] of abstract interpretations, and of the proof systems and type systems for the Lipschitz continuity of programs developed for program robustness [CGL10, CGLN11, CGL12] and for sensitivity analysis in differential privacy [RP10]. Judgments take the form and are derived compositionally, following the structure of : a proof of ALC for is thus reduced to proofs of ALC for its basic commands and to a small number of side conditions relating the abstractions and through . These side conditions are what distinguishes ALC from Lipschitz continuity: unlike Lipschitz continuous functions, the functions that are ALC w.r.t. a given pair are not closed under composition in general, and the side conditions make explicit sufficient assumptions under which ALC is preserved, allowing one to track them along a derivation. Non-deterministic choice and iteration also require conditions on the output distance (Definitions 4.2 and 4.6), which, however, are needed for Lipschitz continuity as well (see the end of this section). In the spirit of the consequence rule of Hoare logic, the proposed proof system also allows one to trade precision for provability, by weakening the abstract Lipschitz constant as well as the input and output abstractions. The system will be proved to be sound: whenever is derivable, satisfies w.r.t. (Theorem 4.8). It is not complete, and the derived constant may be larger than the least abstract Lipschitz constant of ; the sources of this imprecision are discussed in Section 5. When , the system specializes to (an extension of) the proof system of Chaudhuri et al. [CGL12] for the Lipschitz continuity of programs.
From now on, we fix a complete lattice , a pre-metric on , and a program semantics : as in Section 1.1. Differently from Section 2, input and output abstractions are ucos on the same domain : this is forced by the language, since Kleene iteration only makes sense for functions from to itself, whereas sequential composition alone would also allow different, suitably matching, input and output domains. Likewise, for readability we use a single pre-metric on , although all the results of this section extend verbatim to distinct pre-metrics for inputs and outputs.
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
Given and , we write
for the set of all functions satisfying w.r.t. . Note that here we allow , thus slightly extending Definition 2.3: by the conventions of Section 1, for all , hence contains every function. The constant thus plays the role of the uninformative answer, much like for a static analysis: it allows the deductive system to always produce a sound, albeit possibly useless, judgment. We define:
The following lemma collects the properties of these sets on which the deductive system relies.
Lemma 4.1. Let and . The following hold:
(i) if then ;
(ii) is the set of all functions satisfying w.r.t. ;
(iii) if and only if for all ;
(iv) if and only if ;
(v) if , g \in k'\text{-}ALip\langle\delta^\eta', \delta^\rho'\rangle and \eta' \in t\text{-}ALip\langle\delta^\rho, \delta^\eta'\rangle, then g \circ f \in k\,t\,k'\text{-}ALip\langle\delta^\eta, \delta^\rho'\rangle.
Proof. (i) Multiplication is monotone on , hence for all .
(ii) Immediate, since .
(iii) By idempotence of , for all , so that amounts to for all .
(iv) By (ii), amounts to for all ; by (iii) with , so does , since and .
(v) For all we have , where the second inequality follows from (iii) applied to .
Item (iii) provides the reading of all the side conditions of the deductive system: a membership is a pointwise comparison between two combined distances. In particular, taking and , every closure belongs to : indeed, a closure is an isometry w.r.t. the distance it induces, , which is what makes the case especially well behaved. Item (iv) shows that, for a closure, being Lipschitz continuous w.r.t. is the same as being ALC with the identity as input abstraction and the closure itself as output abstraction: again, this is due to idempotence. Finally, item (v) is the key difference with Lipschitz continuity: the composition of two ALC functions is ALC provided that the output abstraction of the first and the input abstraction of the second are compatible up to a constant ; when , item (iii) gives and the constants simply multiply, as for Lipschitz continuous functions.
The deductive rules are given in Figure 7. Judgments take the form
and are meant to be read as “P is k-ALC w.r.t. ”, in analogy with Hoare triples: the input distance plays the role of the precondition, the output distance that of the postcondition, and k bounds the amplification of the former into the latter. Theorem 4.8
FIGURE 7. A deductive system for proving ALC for Prog.
below shows that this reading is sound, i.e., that for every derivable judgment . Let us examine the rules.
The (base) rule derives for a basic command (i.e., skip, an assignment or a Boolean guard) from a proof that . The deductive system is thus parametric on the ALC of basic commands, which depends on the chosen semantics, distance and abstractions, and has to be established separately, as in the proof system of Chaudhuri et al. [CGL12] for Lipschitz continuity. For skip this is immediate: since is the identity, if and only if for all ; in particular, is always derivable.
The (weaken) rule is the analogue of the consequence rule of Hoare logic: it derives a weaker judgment from a stronger one by changing the abstractions, at the price of a larger constant. The input abstraction can be replaced by any such that \eta' \in t-ALip\langle\delta^\eta, \delta^\eta'\rangle, i.e., by Lemma 4.1(iii), such that \delta^\eta' \leq t \delta^\eta: the new input distance dominates the old one up to the factor . Symmetrically, the output abstraction can be replaced by any such that \rho \in s-ALip\langle\delta^\rho', \delta^\rho\rangle, i.e., such that \delta^\rho \leq s \delta^\rho': the new output distance is dominated by the old one up to the factor . Both replacements are paid by multiplying the constant: indeed, for all , \delta^\rho(\left[\mathbb{P}\right]x, \left[\mathbb{P}\right]y) \leq s \delta^\rho'(\left[\mathbb{P}\right]x, \left[\mathbb{P}\right]y) \leq sk \delta^\eta'(x, y) \leq skt \delta^\eta(x, y). The two replacements can be applied independently, by taking and , or and , since \eta' \in 1-ALip\langle\delta^\eta', \delta^\eta'\rangle and \rho' \in 1-ALip\langle\delta^\rho', \delta^\rho'\rangle always hold (Lemma 4.1(iii)). Note that, by taking both and , the rule also allows one to increase the constant alone, since \eta' \in t-ALip\langle\delta^\eta', \delta^\eta'\rangle for every (Lemma 4.1(i) and (iii)): this form of weakening is semantically valid but never needed, since the constant in the conclusion of every rule is a monotone function of the constants in its premises, so that the least derivable constant for a
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
program is obtained without ever weakening a constant along the derivation. The weakening of the abstractions, on the other hand, is essential: as in Hoare logic, where the consequence rule is what allows one to establish a loop invariant, the rules for Kleene iteration require the input and output abstractions of the body to be compatible.
Sequential composition is handled by the (seq) rule, the syntactic counterpart of Lemma 4.1(v). While the composition of a -LC and a -LC function is -LC, the composition of two ALC programs and is not ALC in general: the output abstraction through which is observed need not be related to the input abstraction under which is analysed. The rule thus requires the side condition -ALip , i.e., by Lemma 4.1(iii): the distance between the input properties observed through is bounded by times the distance between the output properties observed through , so that the bound on the outputs of transfers to the inputs of at the cost of the factor , yielding the constant . The smaller , the more has to separate elements compared to . The side condition can always be discharged with , which however yields the uninformative constant : the rule is informative only when and are comparable through . When , Lemma 4.1(iii) gives , and ALC turns out to be closed under composition exactly as Lipschitz continuity is.
The (join) rule deals with non-deterministic choice. As for composition, the join of two ALC functions is not ALC in general, this time because of the output distance: even if and are both bounded, nothing guarantees a bound on : the abstraction of a join may contain elements that belong to neither of the abstractions of its operands, as is the case for the convex hull computed by Int. Following [CDG22, CDPGU26], we make this requirement explicit by parameterizing the rule on a binary operation that combines the two constants and bounds the effect of joins on the output distance.
Definition 4.2 (⊕-Bound). Let . A binary operation is an -bound for , written -Bound(, ), when it is associative, commutative and monotone, and it satisfies the following two conditions:
(i) .
(ii) .
The last condition is a form of subadditivity of w.r.t. the join of : it only depends on the distance and on the output abstraction, and it is what makes the (join) rule sound. Indeed, if , and -Bound( ) hold, then for all :
by monotonicity of and by its compatibility with the product. The next proposition provides a large class of -bounds for the path-length distance.
Proposition 4.3. Let be additive, and let be the path-length distance on the poset (Example 1.9). Then -Bound() holds, where + is the usual addition. In particular, -Bound() holds on .
Proof. Additivity implies for all . Let if and only if : this is a preorder on , being reflexive by extensivity and transitive by monotonicity and idempotence of , and is the downward closure of . Hence the elements of are the downward closed sets of , each of which is a union of equivalence classes of ; for , let be the set of classes contained in , so that by additivity. If are downward closed and contains finitely many classes, then is downward closed for every class that is minimal among them, and no downward closed set lies strictly between and ; conversely, every covering step adds exactly one class. Therefore if , and otherwise. Addition on is associative, commutative, monotone and satisfies . Let . If or , then the right-hand side of the subadditivity condition is . Otherwise and , whence . -Bound() trivially holds on since is
Proposition 4.3 applies, e.g., to the domain of signs Sign of Example 1.3, to the parity abstraction [CC79], and to the histogram abstraction of Example 2.5, all of which are induced by a partition of the underlying set and are thus additive.
The (join) rule thus takes -Bound( ) as an explicit premise, since the output abstraction may change along a derivation through (weaken): given derivations and , it concludes that is -ALC.
Kleene iteration is handled by the rules (bound-star) and (star). Both build on the observation that, by definition, is the join of the iterates , i.e., the join of the semantics of the programs skip, P, P; P, ... with input c. Given a derivation , the side condition of (seq) allows us to derive the constant for the -th iterate ; ...; , while the side condition provides a constant for the zero-th iterate skip, whose semantics is the identity (cf. the discussion of the (base) rule). Both side conditions hold with when (Lemma 4.1(iii)). Finally, an -bound for combines the constants of the iterates as in the (join) rule. This leads to the following definition.
Definition 4.4 (Iteration Constants). Let and let be an -bound. We define
where the supremum is taken in the complete lattice .
Note that always exists, although it may be ; when 0 is neutral for , as for + and the max function, the sequence is increasing by monotonicity of , and is its limit. For finite and , the two most natural -bounds give the following closed forms: for , if , and if and ; for , if , and if . In both cases, a non-expansive body is essentially what makes iteration informative (as also discussed in Section 5).
The (bound-star) rule applies when the iteration is known to stabilize within a bounded number of steps, as expressed by the following predicate.
Definition 4.5 (*-Bound). Let and . The predicate -Bound( , ) holds when for every .
In other words, on every input the result of is obtained by executing at most times. Under , has the same semantics as the join of programs,
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
and the constant is derived exactly as in the (join) rule. Bounds on the number of iterations are routinely established, e.g., by termination analyses or by manual annotations.
The (star) rule, instead, makes no assumption on the number of iterations, and correspondingly derives the constant . Here is the least upper bound of the increasing chain of finite joins , for , each of which satisfies the bound . In order to transfer these bounds to the limit, the output distance has to be continuous w.r.t. least upper bounds of chains, as defined by the following.
Definition 4.6 (ω-Continuity). A pre-metric on the complete lattice is -continuous, written -Cont(), when for all increasing chains and in the following inequality holds:
Proposition 4.7. The inclusion distance on is -continuous, and so is for every additive .
Proof. Let and be increasing chains in and let . If there is nothing to prove. Otherwise for all , hence , and every belongs to for all sufficiently large , since the chains are increasing. If there were such elements , they would all belong to for some , contradicting . Hence . The proof for is similar, counting equivalence classes instead of elements, as in the proof of Proposition 4.3: additivity gives , hence the classes contained in are those contained in some .
The following theorem shows that our deductive system is sound, namely, if can be derived by applying the rules of Figure 7, then satisfies .
Theorem 4.8 (Soundness). .
Proof. By induction on the derivation of . We proceed by cases on the last rule applied, assuming, by inductive hypothesis, that the judgments in its premises are semantically valid, i.e., that k' \vdash [\delta^\eta'] \mathsf{P}' [\delta^\rho'] in a premise implies [\mathsf{P}'] \in k' - ALip \langle \delta^\eta', \delta^\rho' \rangle. In each case we show that for all , where and are those of the conclusion.
(base): immediate by the definition of and the assumption .
(weaken): Let us show the proof for weakening the input abstraction . Assume k \vdash [\delta^\eta'] \mathsf{P} [\delta^\rho] and \eta' \in t\text{-ALip}\langle \delta^\eta, \delta^\eta' \rangle. The second assumption can be written as : \delta^\eta'(\eta'(c_1), \eta'(c_2)) \leq t\delta^\eta(c_1, c_2) which, by the idempotence property of , corresponds to \delta^\eta'(c_1, c_2) \leq t\delta^\eta(c_1, c_2). We get the following derivations :
The proof for weakening the output abstraction is similar and therefore omitted.
(seq): Assume we have a derivation for program , a derivation for program , and . By idempotent, the last assumption can be written as: . . Then we get the following derivations :
(join): Assume we have a derivation for program , a derivation for program , and -Bound( ). Then we get the following derivations :
The two rules for Kleene iteration share the premises , -ALip , -ALip and -Bound , which we assume in the following. By Lemma 4.1(iii), the two side conditions on the abstractions amount to and for all . For and , let denote the join of the first iterates, so that , , the sequence is an increasing chain, and by definition of . We first establish two auxiliary lemmas.
Lemma 4.9 (Iterates). For all and : .
Proof. By induction on . The case is the premise . For , we get the following derivations :
Lemma 4.10 (Finite Joins of Iterates). For all and : .
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
\mathcal{D}_{1}=\frac{\frac{\left[\left[x<0?\right]\right]\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x<0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}{\frac{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x<0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x<0?;x:=0\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}\mathrm{Sign}\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}(seq)
\mathcal{D}_{2}=\frac{\frac{\left[\left[x\geq0?\right]\right]\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x\geq0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}{\frac{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x\geq0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x\geq0?;\mathrm{skip}\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}\mathrm{Sign}\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}(seq)
FIGURE 8. Derivation of ReLU in Example 4.11.
Proof. By induction on . For , we have by -ALip . For , we get the following derivations :
(bound-star): Assume moreover -Bound( , ). Then, for all :
(star): Assume moreover -Cont( ). Then, for all :
Example 4.11. Consider the program
where .
FIGURE 9. Derivation of in Example 4.12.
implementing the ReLU function used in artificial neural networks [NH10], which maps negative inputs to 0 and leaves the other inputs unchanged. We take the domain of signs of Example 1.3 as both input and output abstraction, , together with the path-length distance on of Example 1.9. Writing blocks( ) for the set of blocks of the sign partition intersecting (cf. Example 1.3), we have that is the number of blocks in blocks( ) blocks( ) when blocks( ) blocks( ), and otherwise. We derive a judgment for the collecting semantics w.r.t. . The full derivation is shown in Figure 8.
Basic commands. The guard ? removes from its input all the values that are not negative, hence blocks( ) = blocks( ) . If blocks( ) blocks( ), the only block that may have in addition to is , and in that case is also a block that has in addition to . Therefore and, by (base), ? . The same argument, with the blocks and , gives ? . The assignment maps every non-empty set to and to : the only pairs of inputs at finite distance with different outputs are and a non-empty , for which . Hence by (base), and skip as observed after the (base) rule.
Composition. Since , Lemma 4.1(iii) gives , so that (seq) derives ; and ; , with constant .
Join. By Proposition 4.3, -Bound( ) holds, hence (join) derives ReLU and, by Theorem 4.8, satisfies 2-ALC w.r.t. .
The derived constant is sound but not the least one: actually satisfies 1-ALC. Indeed, blocks( ) contains if and only if , and contains if and only if ; hence, when blocks( ) blocks( ), each block gained by the output on w.r.t. the output on corresponds to a distinct block gained by w.r.t. . The imprecision is due to the (join) rule, which adds up the constants of the two branches: the two branches are sensitive to disjoint sets of input blocks ( for the first one, and for the second one), so that an additional input block can change the output of at most one of them, a fact that the uniform bound + cannot exploit.
Example 4.12 (Iterated Scaling). Consider the program
which scales its input by a factor , and its Kleene closure , which iterates the scaling an arbitrary number of times. In order to have a domain of values closed under division, we take , so that is expressible in Prog as , and, as in Example 2.6, we let
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
\mathcal{D}=\frac{\frac{\left[\left[x>0?\right]\right]\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x>0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}{\frac{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x>0?\left[\delta_{pat}^{\mathrm{Sign}}\right]}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x>0?;x:=-x\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}\frac{\left[\left[x:=-x\right]\right]\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle}{1\vdash\left[\delta_{pat}^{\mathrm{Sign}}\right]x:=-x\left[\delta_{pat}^{\mathrm{Sign}}\right]}\left(\mathrm{base}\right)}\mathrm{Sign}\in1-ALip\langle\delta_{pat}^{\mathrm{Sign}},\delta_{pat}^{\mathrm{Sign}}\rangle\left(\mathrm{seq}\right)(bound-star)
where .
FIGURE 10. Derivation of in Example 4.13.
be the set of non-empty subsets of Q. As input and output abstraction we consider here the interval abstraction over rationals , where infima and suprema are taken in , so that an element of is determined by its two bounds. As distance we take the Hausdorff distance between intervals, defined on by
with the conventions and for , which is a metric on . Hence measures the largest displacement of the two bounds of the interval abstractions of and . The derivation of a judgment for is shown in Figure 9, and described as follows.
Basic command. Since , we have and , hence for all : S is a contraction, and (base) derives .
Side conditions. Since , Lemma 4.1(iii) gives . The operation max is an -bound for : it is associative, commutative and monotone, it satisfies , and it is subadditive since and , where and likewise for max. Finally, is -continuous: for an increasing chain in , and , so that the bounds of are the limits of the bounds of , and follows by continuity of the absolute value.
Iteration. By Definition 4.4 with , and , we get , hence (star) derives and, by Theorem 4.8, satisfies 1-ALC w.r.t. . Note that this derived abstract Lipschitz constant is the least one: for we have , since the iterates approach 0 from the side of , and . Moreover it is worth noting that + is an -bound for as well, since , but with the same derivation yields the geometric series , a sound but not optimal constant. Finally, (bound-star) is not applicable here, since no satisfies .
Example 4.13 (Bounded Iteration). In the setting of Example 4.11, namely on with the path-length distance , consider the program
which negates the positive values of its input and discards the other ones, and its Kleene closure . The derivation of a judgment for is shown in Figure 10.
Basic commands. The guard ? is 1-ALC by the same argument used for the guards of Example 4.11. The assignment swaps the blocks and and leaves unchanged, hence : it is 1-ALC. By (seq) with , we get .
Bounded iteration. Since for every , a second iteration of yields the empty set: , and therefore , i.e., -Bound( , 1) holds. With , which is an -bound for by Proposition 4.3, and , Definition 4.4 gives , hence (bound-star) derives and, by Theorem 4.8, satisfies 2-ALC w.r.t. . The derived Lipchitz constant 2 is precise: , whereas has two blocks more than . Two remarks are in order. First, the (star) rule would be applicable as well, but uninformative: since , it yields , which shows the value of the information carried by -Bound. Second, differently from Example 4.12, max is not an -bound for : the blocks added by two joined sets add up, e.g., whereas . The suitable -bound thus depends on the distance at hand: + for distances that count elements or blocks, such as and , and max for distances that measure displacements, such as .
As a direct consequence of Theorem 4.8, when both abstractions are the identity, , the deductive system of Figure 7 becomes a proof system for the Lipschitz continuity of programs w.r.t. (Definition 2.1), since is the set of all functions (Lemma 4.1(ii)). In this case the side conditions on the abstractions become trivial: holds by Lemma 4.1(iii), hence in (seq), (bound-star) and (star), and (weaken) is never needed as long as derivations only involve the identity abstraction. The side conditions on the distance, namely and , as well as the bound -Bound( , ) on the number of iterations, are instead still required: they express what is needed to compose Lipschitz constants across non-deterministic choice and iteration, independently of any abstraction.
Corollary 4.14. is w.r.t.
Proof. By Theorem 4.8 and Lemma 4.1(ii).
5. CONCLUSION
Abstract Lipschitz continuity (ALC) requires the properties of the outputs of a function, e.g., a program semantics, to change at most linearly with the properties of its inputs: the distance between the abstractions of two outputs is at most k times the distance between the abstractions of the corresponding inputs. Like Lipschitz continuity, it is a stability guarantee, but on the properties of data: input variations that do not affect the property of interest,
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
such as reordering the bytes of a file in Example 2.5, do not count as perturbations, whereas the relevant ones are measured by a distance tailored to the abstract domain, which need not be a metric. Keeping the property-based and the quantitative approximations apart has two advantages. First, a single proof of ALC, obtained compositionally through the deductive system of Section 4, yields guarantees for extensional properties from different areas, namely partial completeness, partial abstract non-interference and abstract robustness (Section 3), as well as Lipschitz continuity when no abstraction is involved. Second, it makes explicit the assumptions on abstractions and distances these guarantees rely on, such as (iff-identity), which turns bounds on distances into equalities of properties.
Among the most important consequences, we showed that every monotone function satisfying ALC w.r.t. an abstraction , in particular every program semantics, admits a complete best correct approximation on for suitable distances, namely -compatible ones satisfying (iff-identity) on the abstract domain (Corollary 3.4): ALC programs admit an analysis on that introduces no imprecision. Moreover, when the output distance satisfies (iff-identity), ALC functions satisfy abstract non-interference w.r.t. the same abstractions (Corollary 3.12): inputs with the same property are mapped to outputs with the same property, so that nothing beyond the input property flows to the observed output. Both facts stem from ALC mapping inputs at distance 0 to outputs at distance 0, whatever the constant k; with different input abstractions, ALC still guarantees partial completeness and partial abstract non-interference, with an imprecision proportional to k. Abstract robustness of classifiers also follows from ALC, for any perturbation radius, provided that the constant is null, 0-ALC being in general strictly stronger. We conclude by discussing some directions for future work.
As stated in Section 1.1, basic commands could be instantiated differently, for instance with probabilistic or non-deterministic assignments. In this work we considered deterministic assignments only, and is interpreted as the semantic join. Extending the language with probabilistic choice, and the deductive system with a corresponding rule, is a natural next step: we expect the (join) rule to carry over, with an -bound tailored to standard distances between distributions such as the total variation or the Kantorovich metric, whereas the identification of meaningful abstractions of distributions, i.e., ucos on spaces of distributions playing the role of , is an open question.
The proposed ALC notion is a global property, in the sense that it is universally quantified over all inputs. As a future work, we plan to formalize its local version, requiring ALC on a strict subset of inputs only, and to study its relation with other local properties in the context of abstract interpretation [BGGR23, CDGU24, CDPGU26]. Dropping the universal quantification may invalidate the correlations established in Sections 3.1 and 3.3 for the global notions, and reasoning about local properties is more challenging for the deductive system, whose judgments would have to carry assumptions on the inputs reaching each program point, in the style of local completeness logic [BGGR23]. A related question is whether ALC can be established on a restricted set of canonical inputs. In [CDPG 26], (partial) completeness is reduced to the generators of a generator-dense abstraction, namely the minimal inputs having each abstract property: it would be interesting to understand under which conditions ALC can be established on generators only.
Another direction consists in considering weaker abstraction notions such as weak closures [MP23] or -relations [Lem26], which are able to formalize properties that do not admit a best abstraction function, such as the domain of convex polyhedra [GKPS67]. In [MP23], a correspondence is established, under suitable assumptions, between completeness in abstract interpretation and abstract non-interference in language-based security [GM04, GM18, Mas05, GM10]. Whether the correspondence extends to weak closures, and to other quantitative program properties such as (quantitative) input data usage [UM18, MCU24a, MCU24b] and the notions in [Mas24, Mas25, MP19, MP25], deserves further investigation.
As another interesting line of work, we aim to investigate the correlation between ALC and differential privacy [Dwo06], a standard approach to ensure privacy in data-driven software. To enforce differential privacy, traditional methodologies, e.g., based on type systems, first track sensitivity [RP10]. Once an upper bound on sensitivity is established on a program, the appropriate amount of random noise is injected into a randomized function to guarantee compliance with differential privacy [DMNS06]. Because sensitivity in its general form corresponds to Lipschitz Continuity, differential privacy can be naturally modeled and analyzed within ALC. Indeed, ALC can provide a semantic framework to automatically reason about probability distributions and sensitivity bounds by combining quantitative metrics with abstract interpretation. Crucially, by integrating property-based abstractions, ALC can allow us to define an abstract version of differential privacy that accounts for a weaker notion of the attacker model with limited observation power, where adversaries can only perceive coarse-grained or property-based outputs rather than exact values. Still, incorporating abstractions into a distance metric on probability spaces is not immediate. We leave for future work the modeling of differential privacy inside the ALC framework and the formalization of differential privacy accounting for input/output abstractions.
The deductive system of Section 4 isolates two properties of the output distance that make ALC compositional across non-deterministic choice and iteration: the existence of an -bound (Definition 4.2) and -continuity (Definition 4.6). We proved that both hold for the inclusion and path-length distances combined with additive abstractions (Propositions 4.3 and 4.7), and Examples 4.12 and 4.13 show that the suitable -bound depends on the nature of the distance (+ for distances that count elements, max for distances that measure displacements). A general characterization of the pre-metrics and abstractions admitting -bounds and -continuity, possibly in terms of the lattice structure of the abstract domain, would clarify the scope of the deductive system and is left for future work.
Finally, Theorem 4.8 shows that the deductive system is sound, but it is not complete: the least derivable abstract Lipschitz constant may be strictly greater than the actual one, or no finite constant may be derivable at all. We identified three sources of imprecision. First, the (base) rule requires basic commands to be ALC, which for Boolean guards holds only when the abstraction is complete for the guard, as for the domain of signs in Example 4.11, and fails for the interval abstraction. Second, the (join) rule combines the constants of the two branches through a uniform -bound, which cannot exploit the fact that the branches may be sensitive to disjoint parts of the input, as in Example 4.11. Third, the rules for Kleene iteration are informative only when the body is non-expansive or a bound on the number of iterations is available, as shown by Examples 4.12 and 4.13. Natural directions towards a (relatively) complete deductive system, together with the automatic inference of abstract Lipschitz constants, are refined rules: a (seq) rule allowing different intermediate abstractions, as in Lemma 4.1(v), instead of reaching common ones through (weaken), and -bounds sensitive to the guards of the branches.
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
REFERENCES
[AHAG23] Kumail Alhamoud, Hasan Abed Al Kader Hammoud, Motasem Alfarra, and Bernard Ghanem. Generalizability of adversarial robustness under distribution shifts. Trans. Mach. Learn. Res., 2023, 2023. URL: https://openreview.net/forum?id=XNFo3dQiCJ.
[BBI01] Dmitri Burago, Yuri Burago, and Sergei Ivanov. A Course in Metric Geometry, volume 33 of Graduate Studies in Mathematics. American Mathematical Society, Providence, RI, 2001. doi:10.1090/gsm/033.
[BGGR23] Roberto Bruni, Roberto Giacobazzi, Roberta Gori, and Francesco Ranzato. A correctness and incorrectness program logic. J. ACM, 70(2):15:1–15:45, 2023. doi:10.1145/3582267.
[CC76] P. Cousot and R. Cousot. Static determination of dynamic properties of programs. In Proceedings of the 2nd International Symposium on Programming, pages 106–130. Dunod, Paris, 1976.
[CC77] Patrick Cousot and Radhia Cousot. Abstract interpretation: A unified lattice model for static analysis of programs by construction or approximation of fixpoints. In Robert M. Graham, Michael A. Harrison, and Ravi Sethi, editors, Conference Record of the Fourth ACM Symposium on Principles of Programming Languages, Los Angeles, California, USA, January 1977, pages 238–252. ACM, 1977. doi:10.1145/512950.512973.
[CC79] Patrick Cousot and Radhia Cousot. Systematic design of program analysis frameworks. In Alfred V. Aho, Stephen N. Zilles, and Barry K. Rosen, editors, Conference Record of the Sixth Annual ACM Symposium on Principles of Programming Languages, San Antonio, Texas, USA, January 1979, pages 269–282. ACM Press, 1979. doi:10.1145/567752.567778.
[CC04] Patrick Cousot and Radhia Cousot. An abstract interpretation-based framework for software watermarking. In Proceedings of the 31st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL '04, pages 173–185, New York, NY, USA, 2004. Association for Computing Machinery. doi:10.1145/964001.964016.
[CDG22] Marco Campion, Mila Dalla Preda, and Roberto Giacobazzi. Partial (in)completeness in abstract interpretation: limiting the imprecision in program analysis. Proc. ACM Program. Lang., 6(POPL):1–31, 2022. doi:10.1145/3498721.
[CDGU24] Marco Campion, Mila Dalla Preda, Roberto Giacobazzi, and Caterina Urban. Monotonicity and the precision of program analysis. Proc. ACM Program. Lang., 8(POPL):1629–1662, 2024. doi:10.1145/3632897.
[CDPG 26] Marco Campion, Mila Dalla Preda, Roberto Giacobazzi, Antoine Miné, and Caterina Urban. In Sébastien Bardin and Aditya V. Thakur, editors, 33rd Static Analysis Symposium (SAS 2026), Lecture Notes in Computer Science, pages 1–26. Springer, 2026. doi:10.1007/978-3-032-40374-2_1.
[CDPGU26] Marco Campion, Mila Dalla Preda, Roberto Giacobazzi, and Caterina Urban. A logic for the imprecision of abstract interpretations. Proc. ACM Program. Lang., 10(POPL), 2026. doi:10.1145/3776707.
[CGL10] Swarat Chaudhuri, Sumit Gulwani, and Roberto Lublinerman. Continuity Analysis of Programs. In Proceedings of the 37th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL '10, page 57–70, New York, NY, USA, 2010. Association for Computing Machinery. doi:10.1145/1706299.1706308.
[CGL12] Swarat Chaudhuri, Sumit Gulwani, and Roberto Lublinerman. Continuity and Robustness of Programs. Communications of the ACM, 55(8):107–115, 2012. doi:10.1145/2240236.2240262.
[CGLN11] Swarat Chaudhuri, Sumit Gulwani, Roberto Lublinerman, and Sara NavidPour. Proving Programs Robust. In Tibor Gyimóthy and Andreas Zeller, editors, SIGSOFT/FSE'11 19th ACM SIGSOFT Symposium on the Foundations of Software Engineering (FSE-19) and ESEC'11: 13th European Software Engineering Conference (ESEC-13), Szeged, Hungary, September 5-9, 2011, pages 102–112. ACM, 2011. doi:10.1145/2025113.2025131.
[CMPU26] Marco Campion, Isabella Mastroeni, Michele Pasqua, and Caterina Urban. Abstract lipschitz continuity: Combining semantic and quantitative approximations. In Nathalie Bertrand and Stefan Milius, editors, Foundations of Software Science and Computation Structures (FoSSaCS 2026), pages 153–177. Springer, 2026. doi:10.1007/978-3-032-22730-0_8.
[CMU25] Marco Campion, Isabella Mastroeni, and Caterina Urban. Relating distances and abstractions - an abstract interpretation perspective. In Hakjoo Oh and Yulei Sui, editors, Static Analysis - 32nd International Symposium, SAS 2025, Singapore, October 13-14, 2025, Proceedings, volume 16100 of Lecture Notes in Computer Science, pages 249–277. Springer, 2025. doi:10.1007/978-3-032-07106-4_11.
[CUDPG23] Marco Campion, Caterina Urban, Mila Dalla Preda, and Roberto Giacobazzi. A formal framework to measure the incompleteness of abstract interpretations. In Manuel V. Hermenegildo and José F. Morales, editors, Static Analysis - 30th International Symposium, SAS 2023, Cascais, Portugal, October 22-24, 2023, Proceedings, volume 14284 of Lecture Notes in Computer Science, pages 114–138. Springer, 2023. doi:10.1007/978-3-031-44245-2_7.
[dAGHK19] Arthur Azevedo de Amorim, Marco Gaboardi, Justin Hsu, and Shin-ya Katsumata. Probabilistic relational reasoning via metrics. In 34th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2019, Vancouver, BC, Canada, June 24-27, 2019, pages 1–19. IEEE, 2019. doi:10.1109/LICS.2019.8785715.
[DBB 17] Pedro R. D'Argenio, Gilles Barthe, Sebastian Biewer, Bernd Finkbeiner, and Holger Hermanns. Is your software on dope? - formal analysis of surreptitiously "enhanced" programs. In Hongseok Yang, editor, Programming Languages and Systems - 26th European Symposium on Programming, ESOP 2017, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2017, Uppsala, Sweden, April 22-29, 2017, Proceedings, volume 10201 of Lecture Notes in Computer Science, pages 83–110. Springer, 2017. doi:10.1007/978-3-662-54434-1_4.
[DD16] Michel Marie Deza and Elena Deza. Encyclopedia of Distances. Springer, Berlin, Heidelberg, 4th edition, 2016. doi:10.1007/978-3-662-52844-0.
[DMNS06] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Shai Halevi and Tal Rabin, editors, Theory of Cryptography, pages 265–284, Berlin, Heidelberg, 2006. Springer Berlin Heidelberg.
[Dwo06] Cynthia Dwork. Differential privacy. In Automata, languages and programming (ICALP 2006). Part II, volume 4052 of Lecture Notes in Computer Science, pages 1–12, Berlin, Heidelberg, 2006. Springer.
[FRH 19] Mahyar Fazlyab, Alexander Robey, Hamed Hassani, Manfred Morari, and George J. Pappas. Efficient and accurate estimation of lipschitz constants for deep neural networks. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 11423–11434, 2019. URL: https://proceedings.neurips.cc/paper/2019/hash/95e1533eb1b20a97777749fb94fdb944-Abstract.html.
[GKPS67] Branko Grünbaum, Victor Klee, Micha A Perles, and Geoffrey Colin Shephard. Convex polytopes, volume 16. Springer, 1967.
[GLR15] Roberto Giacobazzi, Francesco Logozzo, and Francesco Ranzato. Analyzing program analyses. In Sriram K. Rajamani and David Walker, editors, Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2015, Mumbai, India, January 15-17, 2015, pages 261–273. ACM, 2015. doi:10.1145/2676726.2676987.
[GM82] Joseph A. Goguen and José Meseguer. Security policies and security models. In 1982 IEEE Symposium on Security and Privacy, Oakland, CA, USA, April 26-28, 1982, pages 11–20. IEEE Computer Society, 1982. doi:10.1109/SP.1982.10014.
[GM04] Roberto Giacobazzi and Isabella Mastroeni. Abstract non-interference: parameterizing non-interference by abstract interpretation. In Neil D. Jones and Xavier Leroy, editors, Proceedings of the 31st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2004, Venice, Italy, January 14-16, 2004, pages 186–197. ACM, 2004. doi:10.1145/964001.964017.
[GM10] R. Giacobazzi and I. Mastroeni. Adjoining classified and unclassified information by abstract interpretation. Journal of Computer Security, 18(5):751 – 797, 2010.
[GM18] Roberto Giacobazzi and Isabella Mastroeni. Abstract non-interference: A unifying framework for weakening information-flow. ACM Trans. Priv. Secur., 21(2):9:1–9:31, 2018. doi:10.1145/3175660.
[GMP24] Roberto Giacobazzi, Isabella Mastroeni, and Elia Perantoni. Adversities in abstract interpretation - accommodating robustness by abstract interpretation. ACM Trans. Program. Lang. Syst., 46(2):1–31, 2024. doi:10.1145/3649309.
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
[GP13] Eric Goubault and Sylvie Putot. Robustness analysis of finite precision implementations. In Programming Languages and Systems - 11th Asian Symposium, APLAS 2013, volume 8301 of Lecture Notes in Computer Science, pages 50–57. Springer, 2013. doi:10.1007/978-3-319-03542-0_4.
[GRS00] Roberto Giacobazzi, Francesco Ranzato, and Francesca Scozzari. Making abstract interpretations complete. J. ACM, 47(2):361–416, 2000. doi:10.1145/333979.333989.
[HOS14] Thomas A. Henzinger, Jan Otop, and Roopsha Samanta. Lipschitz robustness of finite-state transducers. In 34th International Conference on Foundation of Software Technology and Theoretical Computer Science, FSTTCS 2014, volume 29 of LIPIcs, pages 431–443. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2014. doi:10.4230/LIPIcs.FSTTCS.2014.431.
[HZS 21] Yujia Huang, Huan Zhang, Yuanyuan Shi, J. Zico Kolter, and Anima Anandkumar. Training certifiably robust neural networks with efficient local lipschitz bounds. In Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan, editors, Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 22745–22757, 2021. URL: https://proceedings.neurips.cc/paper/2021/hash/c055dcc749c2632fd4dd806301f05ba6-Abstract.html.
[JT20] Ziwei Ji and Matus Telgarsky. Directional convergence and alignment in deep learning. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL: https://proceedings.neurips.cc/paper/2020/hash/c76e4b2fa54f8506719a5c0dc14c2eb9-Abstract.html.
[Koz97] Dexter Kozen. Kleene algebra with tests. ACM Trans. Program. Lang. Syst., 19(3):427–443, 1997. doi:10.1145/256167.256195.
[Law73] F. William Lawvere. Metric spaces, generalized logic, and closed categories. Rendiconti del Seminario Matematico e Fisico di Milano, 43:135–166, 1973. Reprinted with author commentary in Reprints in Theory and Applications of Categories 1 (2002), 1–37. doi:10.1007/BF02924844.
[LB04] Ulrike von Luxburg and Olivier Bousquet. Distance-based classification with lipschitz functions. Journal of Machine Learning Research, 5(Jun):669–695, 2004.
[LCL24] Dennis Liew, Tiago Cogumbreiro, and Julien Lange. Sound and partially-complete static analysis of data-races in GPU programs. Proc. ACM Program. Lang., 8(OOPSLA2):2434–2461, 2024. doi:10.1145/3689797.
[Lem26] Matthieu Lemerre. Rocq bottom: Beyond soundness with precise reasoning about analysis precision. In Sébastien Bardin and Aditya V. Thakur, editors, 33rd Static Analysis Symposium (SAS 2026), Lecture Notes in Computer Science, pages 59–94. Springer, 2026.
[Log09] Francesco Logozzo. Towards a quantitative estimation of abstract interpretations. In Workshop on Quantitative Analysis of Software. Microsoft, June 2009. URL: https://www.microsoft.com/en-us/research/publication/towards-a-quantitative-estimation-of-abstract-interpretations/.
[LWSS24] Lin Li, Yifei Wang, Chawin Sitawarin, and Michael W. Spratling. Oodrobustbench: a benchmark and large-scale analysis of adversarial robustness under distribution shift. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL: https://openreview.net/forum?id=kAFevjEYsz.
[Mas05] I. Mastroeni. On the rôle of abstract non-interference in language-based security. In K. Yi, editor, Third Asian Symp. on Programming Languages and Systems (APLAS '05), volume 3780 of Lecture Notes in Computer Science, pages 418–433. Springer-Verlag, 2005.
[Mas24] Isabella Mastroeni. Abstract domain adequacy. Int. J. Softw. Tools Technol. Transf., 26(6):747–765, 2024. URL: https://doi.org/10.1007/s10009-024-00774-x, doi:10.1007/S10009-024-00774-X.
[Mas25] Isabella Mastroeni. Abstract local completeness. In Krishna Shankaranarayanan, Sriram Sankaranarayanan, and Ashutosh Trivedi, editors, Verification, Model Checking, and Abstract Interpretation, pages 3–25, Cham, 2025. Springer Nature Switzerland.
[MCU24a] Denis Mazzucato, Marco Campion, and Caterina Urban. Quantitative input usage static analysis. In Nathaniel Benz, Divya Gopinath, and Nija Shi, editors, NASA Formal Methods - 16th International Symposium, NFM 2024, Moffett Field, CA, USA, June 4-6, 2024, Proceedings, volume 14627 of Lecture Notes in Computer Science, pages 79–98. Springer, 2024. doi:10.1007/978-3-031-60698-4_5.
[MCU24b] Denis Mazzucato, Marco Campion, and Caterina Urban. Quantitative static timing analysis. In Roberto Giacobazzi and Alessandra Gorla, editors, Static Analysis - 31st International Symposium, SAS 2024, Pasadena, CA, USA, October 20-22, 2024, Proceedings, volume 14995 of Lecture Notes in Computer Science, pages 268–299. Springer, 2024. doi:10.1007/978-3-031-74776-2_11.
[MMF25] Luca Marzari, Isabella Mastroeni, and Alessandro Farinelli. Advancing neural network verification through hierarchical safety abstract interpretation. CoRR, abs/2505.05235, 2025. URL: https://doi.org/10.48550/arXiv.2505.05235, arXiv:2505.05235, doi:10.48550/ARXIV.2505.05235.
[MP19] Isabella Mastroeni and Michele Pasqua. Statically analyzing information flows: an abstract interpretation-based hyperanalysis for non-interference. In Chih-Cheng Hung and George A. Papadopoulos, editors, Proceedings of the 34th ACM/SIGAPP Symposium on Applied Computing, SAC 2019, pages 2215–2223. ACM, 2019. doi:10.1145/3297280.3297498.
[MP23] Isabella Mastroeni and Michele Pasqua. Domain precision in galois connection-less abstract interpretation. In Manuel V. Hermenegildo and José F. Morales, editors, Static Analysis - 30th International Symposium, SAS 2023, Cascais, Portugal, October 22-24, 2023, Proceedings, volume 14284 of Lecture Notes in Computer Science, pages 434–459. Springer, 2023. doi:10.1007/978-3-031-44245-2_19.
[MP25] Isabella Mastroeni and Michele Pasqua. Abstract interpretation-based verification for confidentiality: Information hiding and code protection by abstract interpretation. ACM Trans. on Privacy and Security, pages 1–28, 2025. doi:10.1145/3786347.
[Nes18] Yurii Nesterov. Lectures on Convex Optimization. Springer Publishing Company, Incorporated, 2nd edition, 2018. doi:10.1007/978-3-319-91578-4.
[NH10] Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Johannes Fürnkranz and Thorsten Joachims, editors, Proceedings of the 27th International Conference on Machine Learning (ICML-10), June 21-24, 2010, Haifa, Israel, pages 807–814. Omnipress, 2010. URL: https://icml.cc/Conferences/2010/papers/432.pdf.
[O'H20] Peter W. O'Hearn. Incorrectness logic. Proc. ACM Program. Lang., 4(POPL):10:1–10:32, 2020. doi:10.1145/3371078.
[PHW04] Alessandra Di Pierro, Chris Hankin, and Herbert Wiklicky. Approximate non-interference. J. Comput. Secur., 12(1):37–82, 2004. doi:10.3233/JCS-2004-12103.
[PW00] Alessandra Di Pierro and Herbert Wiklicky. Measuring the precision of abstract interpretations. In Kung-Kiu Lau, editor, Logic Based Program Synthesis and Transformation, 10th International Workshop, LOPSTR 2000 London, UK, July 24-28, 2000, Selected Papers, volume 2042 of Lecture Notes in Computer Science, pages 147–164. Springer, 2000. doi:10.1007/3-540-45142-0_9.
[RP10] Jason Reed and Benjamin C. Pierce. Distance makes the types grow stronger: a calculus for differential privacy. SIGPLAN Not., 45(9):157–168, September 2010. doi:10.1145/1932681.1863568.
[RY20] Xavier Rival and Kwangkeun Yi. Introduction to static analysis: an abstract interpretation perspective. Mit Press, 2020.
[SDC13] Roopsha Samanta, Jyotirmoy V. Deshmukh, and Swarat Chaudhuri. Robustness analysis of string transducers. In Automated Technology for Verification and Analysis - 11th International Symposium, ATVA 2013, volume 8172 of Lecture Notes in Computer Science, pages 427–441. Springer, 2013. doi:10.1007/978-3-319-02444-8_30.
[Sot10] Pascal Sotin. Quantifying the Precision of Numerical Abstract Domains. Research report, February 2010. URL: https://inria.hal.science/inria-00457324.
[SS15] Daniel Schoepe and Andrei Sabelfeld. Understanding and enforcing opacity. In 2015 IEEE 28th Computer Security Foundations Symposium, pages 539–553, 2015. doi:10.1109/CSF.2015.41.
[UM18] Caterina Urban and Peter Müller. An abstract interpretation framework for input data usage. In Amal Ahmed, editor, Programming Languages and Systems - 27th European Symposium on Programming, ESOP 2018, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2018, Thessaloniki, Greece, April 14-20, 2018, Proceedings, volume 10801 of Lecture Notes in Computer Science, pages 683–710. Springer, 2018. doi:10.1007/978-3-319-89884-1_24.
M. CAMPION, I. MASTROENI, M. PASQUA, AND C. URBAN
[Wil31] Wallace Alvin Wilson. On semi-metric spaces. American Journal of Mathematics, 53(2):361–373, 1931. doi:10.2307/2370790.
[Win93] G. Winskel. The formal semantics of programming languages: an introduction. MIT press, 1993.
[ZJHW22a] Bohang Zhang, Du Jiang, Di He, and Liwei Wang. Rethinking lipschitz neural networks and certified robustness: A boolean function perspective. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022. URL: http://papers.nips.cc/paper_files/paper/2022/hash/7b04ec5f2b89d7f601382c422dfe07af-Abstract-Conference.html.
[ZJHW22b] Bohang Zhang, Du Jiang, Di He, and Liwei Wang. Rethinking lipschitz neural networks and certified robustness: A boolean function perspective. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 19398–19413. Curran Associates, Inc., 2022. URL: https://proceedings.neurips.cc/paper_files/paper/2022/file/7b04ec5f2b89d7f601382c422dfe07af-Paper-Conference.pdf.
This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, 171 Second St, Suite 300, San Francisco, CA 94105, USA, or Eisenacher Strasse 2, 10777 Berlin, Germany