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/lemmascriptScenarioToolGoal
General logic
fast-checkRandomized property testsCritical core
LemmaScript / DafnyMachine-checked proofsConcurrency
TLA+ / QuintModel design and state-spaceChoosing 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/lemmascriptScenarioToolGoal
General logic
fast-checkRandomized property testsCritical core
LemmaScript / DafnyMachine-checked proofsConcurrency
TLA+ / QuintModel design and state-space