← Lab /Software

KindHML automatically verifies complex temporal properties of smart contracts

Their automated encoding and verification approach can effectively verify non-trivial temporal properties and detect violations beyond current analysis tools

Software arXiv 15 Apr 2026 Method Prototype evidence

Published as “KindHML: formal verification of smart contracts based on Hennessy-Milner logic”

Why it matters

Developers and auditors can automatically check high-level business-logic safety properties and obtain concrete exploit traces, improving debugging and security analysis of smart contracts.

Summary

KindHML can verify complex temporal properties of smart contracts-including liquidity and front-running- that existing tools cannot express, and on a benchmark it always matches the ground truth, proving properties and finding violations. Counterexamples are produced in under a second, while proofs may take longer (up to several minutes). The evidence comes from a set of verification tasks on representative contracts.

What they found 3

  1. KindHML’s answers always match the ground truth for the benchmark

    “The results show that KindHML always returns an answer consistent with the ground truth, and that it is effective both at proving the validity of the property as well as finding violations.”

  2. Counterexamples are generated extremely quickly

    “When it finds a counterexample, it does so extremely quickly (always in less than 1 second), and it returns as witness a sequence of transactions that can be replayed in the actual Ethereum, leading to a state from which the desired outcome is unreachable (an example can be found here).”

  3. KindHML is the first tool to verify front-running properties

    “To the best of our knowledge, KindHML is the first tool capable of verifying front-running properties of smart contracts.”

Caveats 4

  • Bank liquidity v1 ✓ ✓(k = 2) 668.7
  • Bank liquidity v4 ✓ ✓(k = 2) 512.1
  • In particular, the current version of KindHML is limited to single-contract properties, whereas many relevant properties involve interactions among multiple contracts: for instance, a user must extract tokens from a contract to enable an action on another.
  • some semantical aspects of Solidity (e.g. reentrancy), it is not guaranteed that, moving to the actual Ethereum blockchain, the property will preserved “as-is”;

What’s new here 4

  • Introduces CHML, a temporal logic extending Hennessy-Milner logic for smart contracts
  • First tool able to verify front-running properties of contracts
  • Automated encoding of Solidity fragments and CHML properties to Lustre for model checking with Kind 2
  • Provides concrete execution traces as counterexamples for detected violations