English

Hennessy-Milner Logic in CSLib, the Lean Computer Science Library

Logic in Computer Science 2026-02-18 v1 Programming Languages

Abstract

We present a library-level formalisation of Hennessy-Milner Logic (HML) - a foundational logic for labelled transition systems (LTSs) - for the Lean Computer Science Library (CSLib). Our development includes the syntax, satisfaction relation, and denotational semantics of HML, as well as a complete metatheory including the Hennessy-Milner theorem - bisimilarity coincides with theory equivalence for image-finite LTSs. Our development emphasises generality and reusability: it is parametric over arbitrary LTSs, definitions integrate with CSLib's infrastructure (such as the formalisation of bisimilarity), and proofs leverage Lean's automation (notably the grind tactic). All code is publicly available in CSLib and can be readily applied to systems that use its LTS API.

Keywords

Cite

@article{arxiv.2602.15409,
  title  = {Hennessy-Milner Logic in CSLib, the Lean Computer Science Library},
  author = {Fabrizio Montesi and Marco Peressotti and Alexandre Rademaker},
  journal= {arXiv preprint arXiv:2602.15409},
  year   = {2026}
}
R2 v1 2026-07-01T10:39:37.186Z