Formal Verification of Digital Twins with TLA and Information Leakage Control
Luwen Huang, Lav R. Varshney, Karen E. Willcox
TL;DR
This work presents a formal methodology for designing and verifying digital twins using the Temporal Logic of Actions (TLA+), addressing uncertainties in both the virtual and physical domains and the bidirectional data exchange across distributed components. It introduces a novel augmentation of the digital twin probabilistic graphical model (PGM) to account for distributed communication and translates the augmented PGM into a finite-state machine suitable for model checking, while also weakening formal verification with statistical guarantees on information leakage. The UAV digital twin serves as a concrete demonstration, where synchronization between physical and digital states is formally specified and verified, including analysis of state-space growth and iterative bug fixes (e.g., timestamp validation). The approach yields formal guarantees on system orchestration and controlled information leakage, offering a principled path toward safe, verifiable digital twins in safety-critical settings, though it also highlights scalability challenges inherent to model checking of complex distributed systems.
Abstract
Verifying the correctness of a digital twin provides a formal guarantee that the digital twin operates as intended. Digital twin verification is challenging due to the presence of uncertainties in the virtual representation, the physical environment, and the bidirectional flow of information between physical and virtual. A further challenge is that a digital twin of a complex system is composed of distributed components. This paper presents a methodology to specify and verify digital twin behavior, translating uncertain processes into a formally verifiable finite state machine. We use the Temporal Logic of Actions (TLA) to create a specification, an implementation abstraction that defines the properties required for correct system behavior. Our approach includes a novel weakening of formal security properties, allowing controlled information leakage while preserving theoretical guarantees. We demonstrate this approach on a digital twin of an unmanned aerial vehicle, verifying synchronization of physical-to-virtual and virtual-to-digital data flows to detect unintended misalignments.
