Abstract Interpretation with Infinitesimals: Towards Scalability in Nonstandard Static Analysis

Kengo Kido, Swarat Chaudhuri, Ichiro Hasuo

Abstract

Verifying hybrid systems—which combine discrete control logic with continuous physical dynamics—remains a significant challenge in formal methods. This paper proposes a novel approach by extending Abstract Interpretation through Nonstandard Analysis (NSA). By modeling continuous flows as discrete loops with infinitesimal time steps ($dt$), the authors leverage the Transfer Principle to apply standard static analysis techniques to hybrid systems. A key theoretical contribution is the introduction of "uniform widening" to ensure termination in the nonstandard setting. Prototype results on classic benchmarks like the water-level monitor and thermostat demonstrate the potential for scalable, automated safety verification.

Introduction

Hybrid systems are ubiquitous in modern engineering, found in everything from automotive controllers to medical devices. These systems are characterized by the interplay between discrete logic (software) and continuous physical processes (physics). Traditionally, verifying the safety of these systems has been a binary choice: either use powerful but labor-intensive deductive verification or use automated but often unscalable specialized hybrid solvers.

This research, presented at the SNR 2015 workshop, seeks a middle ground. The authors aim to bring the scalability of Abstract Interpretation—a foundational technique for static analysis of software—to the domain of hybrid systems. The bridge between these two worlds is built using the tools of Nonstandard Analysis (NSA).

The $WHILE^{dt}$ Modeling Framework

The core innovation of this work is the discretization of continuous time using mathematical infinitesimals. Instead of modeling physical dynamics with complex Ordinary Differential Equations (ODEs), the authors introduce a language called $WHILE^{dt}$.

In this framework, continuous flow is represented as a discrete loop that executes a "hyper-finite" number of times. Each iteration of the loop advances the system state by an infinitesimal constant, $dt$. This transformation allows the continuous evolution of a system to be treated as a standard program loop, which is the "bread and butter" of traditional static analysis tools.

Modeling continuous flow as an infinitesimal discrete loop.

By treating $dt$ symbolically, the analysis remains sound for the continuous limit. The tool does not approximate $dt$ with a small real number; it treats it as a true infinitesimal, ensuring that the resulting over-approximations of the reachable state space are mathematically rigorous.

Theoretical Foundations: The Transfer Principle and Uniform Widening

The leap from standard software analysis to nonstandard hybrid analysis is made possible by the Transfer Principle. This logical axiom from NSA states that most first-order properties true for real numbers also hold for hyperreal numbers. Consequently, the entire theoretical framework of Abstract Interpretation—including Galois connections and fixed-point theorems—can be "transferred" almost directly into the nonstandard world.

However, the authors identified a critical hurdle: convergence. In standard Abstract Interpretation, "widening" operators are used to ensure that the analysis terminates in a finite number of steps by over-approximating the loop's behavior. In the nonstandard world, a standard widening operator might only guarantee termination in a "hyper-finite" number of steps, which is effectively infinite for a standard computer.

To solve this, the authors introduced the concept of uniform widening. A uniform widening operator is specifically designed to guarantee that the analysis converges to a stable fixed point in a standard, finite number of steps, even when dealing with infinitesimal increments. This theoretical refinement is what makes the nonstandard approach computationally feasible.

Experimental Evaluation

To demonstrate the practicality of their approach, the authors developed a prototype tool with an OCaml frontend and a Mathematica backend. The backend is used to perform the geometric computations required for the "domain of convex polyhedra," a common abstract domain used to represent sets of possible system states.

Flowchart representation of a hybrid system benchmark showing discrete transitions and continuous updates.

The tool was tested on two classic benchmarks: the Water-Level Monitor and the Thermostat. The results were promising. For the Water-Level Monitor, the tool calculated the reachable region ($1 \le x \le 12$) in approximately 34 seconds. For the Thermostat, it found the bounds ($18 \le x \le 22$) in just 6.7 seconds. The outputted regions (e.g., $1 - dt \le x \le 12 + dt$) provided the expected safety bounds, confirming the soundness of the framework.

Discussion and Future Work

While the prototype demonstrates a successful proof-of-concept, several areas for improvement remain. The current implementation relies on convex polyhedra, which are excellent for linear dynamics but struggle to represent curved behaviors (like those involving trigonometric functions) without significant over-approximation.

Furthermore, the authors noted that identifying a broader range of "uniform" widening operators would increase the tool's flexibility across different abstract domains. As a work-in-progress, this research lays the groundwork for a new class of static analyzers that can treat "physics as code," potentially unlocking unprecedented scalability in the verification of complex hybrid systems.

Summary updated

BibTeX
@inproceedings{kido2015abstract,
  author = {Kengo Kido and Swarat Chaudhuri and Ichiro Hasuo},
  title = {{Abstract Interpretation with Infinitesimals: Towards Scalability in Nonstandard Static Analysis}},
  booktitle = {SNR@CAV},
  year = {2015},
  doi = {10.29007/rls3},
}
Figure