Metakit / Verify a state machine

Prove.* fails with SolverUnavailableError

z3-solver is an optional peer, the solver Prove.* hands a goal to when the built-in checks cannot decide it. A goal the built-in checks prove never loads it; one they leave undecided needs it, and without it the Effect fails with SolverUnavailableError. Install it as a dev dependency (pnpm add -D z3-solver, or the same with your package manager).

To use a different solver, pass your SolverBackend to Layer.succeed(Prove.Solver, backend) and apply that layer with Effect.provide to Prove.machine(...). The supplied backend handles escalation in place of Z3. Its solve runs in a scope that closes on completion or interruption. Unsatisfiable results name the backend and its encoding, and MetaKit replays candidate counterexamples.