shaf lab

Choosing the Right Tool

Use property-based testing like fast-check for ordinary libraries and business rules. For money, permissions, or state machines, move to LemmaScript or Dafny for machine-checked proofs. Use TLA+ or Quint when the risk involves concurrency or distributed protocol design.

Toolchain Layers

bash
npm install fast-check
npm install -D @midspiral/lemmascript
ScenarioToolGoal
General logic
fast-checkRandomized property tests
Critical core
LemmaScript / DafnyMachine-checked proofs
Concurrency
TLA+ / QuintModel design and state-space