You can use 'lightweight' formal methods too like Alloy or Forge https://forge-fm.github.io/book/2026/index.html