SMT solvers
Automatic solvers for logical formulas used in program verification.
An SMT solver, short for satisfiability modulo theories, is an automatic tool that decides whether a logical formula can be true under theories such as integers, bit vectors, or arrays. Formal tools use solvers behind the scenes to discharge proof obligations, to check refinement types, or to search for a counterexample in a program. You might meet one through Dafny, through a type system, or through a standalone checker on TypeScript or another language.
Use a solver when you can state a precise property about a piece of code or a protocol and you want a machine to search for a violation. This is a natural partner to refinement types and to small, critical functions. It is not a replacement for tests, and it will not guess a specification you did not write.
The practical limits are the size of the formula and the theories you use. A huge heap or an unbounded loop can make the query explode. Keep the verified core small, and be ready to add a hint or a simpler property when the solver times out.
When the solver says unsat, you have a kind of proof. When it says sat, you should get a model or a counterexample you can turn into a test. Either way, keep that artifact in the repo.