Formal validation for microgrid reliability based on TLA+
Abstract Ensuring the reliability of modern microgrids requires verification beyond conventional simulations. This paper introduces the novel application of TLA+, a formal specification language to model and verify a cyber‑physical microgrid with six DERs and four priority loads. Our approach formally defines critical safety invariants such as Margin of Safety (MoS) ≥ 0 and automatically uncovers subtle design flaws, including MoS violations undetected by conventional testing. Experimental verification on a 25 kV system shows TLA+ can explore 1.79 million states in under 3 minutes, mathematically proving correctness under normal (MoS = +28) and attack scenarios (MoS = –2). State‑space exploration ranges efficiently from minimal configurations (3,332 states, 8 s) to full‑load conditions (1.79 M states, 171 s) with predictable growth indicated by anomaly percentages (0.19 %-65 %). Although validated on a single topology, the method establishes a provably correct foundation for microgrid design, advancing the shift from test‑and‑fix to correct‑by‑construction methodologies in resilient smart grid engineering.
Authors
- Muhammad Nasar (ORCID: https://orcid.org/0000-0002-5966-8430)
- János Csatár
Institutions
- Budapest University of Technology and Economics (HU)
Publication Details
- Journal
- Journal of Electrical Engineering
- Published
- 2026-02-01
- DOI
- https://doi.org/10.2478/jee-2026-0006
- Primary Topic
- Smart Grid Security and Resilience
- Type
- article
- Field-Weighted Citation Impact
- 0.00