nw-tlaplus-verification
FeaturedTLA+ formal verification for design correctness and PBT pipeline integration
AI & Automation 636 stars
68 forks Updated today MIT
Install
Quality Score: 98/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# TLA+ / Formal Verification
When and how to use TLA+ for design verification. Complements PBT (which verifies implementation).
## Decision Tree: When to Use TLA+ vs PBT vs Both
```
Is the risk in the DESIGN or the IMPLEMENTATION?
|
+-- Design risk (protocol correctness, distributed coordination, concurrency)
| -> Does the system involve concurrent or distributed state?
| Yes -> Use TLA+ for design verification
| Then use PBT to verify implementation matches design
| No -> PBT alone is likely sufficient
|
+-- Implementation risk (edge cases, serialization, data transforms)
| -> Use PBT alone
|
+-- Both
-> TLA+ validates design, PBT validates implementation
```
### Use TLA+ When:
- Design bug would cause data loss or significant customer impact
- System involves concurrent or distributed state manipulation
- Subtle interactions between components are hard to reason about informally
- Informal reasoning or testing has already failed to prevent bugs
### Skip TLA+ When:
- Simple CRUD with straightforward business logic
- UI/UX behavior
- Performance optimization (TLA+ models correctness, not performance)
- Design is well-understood; risk is only in implementation bugs
- Rapid prototyping where design changes frequently
## TLA+ in 60 Seconds
TLA+ describes **what** a system should do, not how. A specification consists of:
- **Variables**: State components
- **Init**: Valid starting states
- **Next**: How sys...
Details
- Author
- nWave-ai
- Repository
- nWave-ai/nWave
- Created
- 9 months ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
nw-formal-verification-tlaplus
TLA+ and PlusCal for specifying distributed system invariants. Decision heuristics for when formal verification adds value, key patterns, state explosion management, and alternatives comparison.
636 Updated today
nWave-ai Testing & QA Listed
tla
TLA+ formal verification — extracts invariants, models state machines, checks for race conditions. Use after browser tests or manually. Triggers: verify, formal, invariant, TLA, race condition.
3 Updated today
johanolofsson72 AI & Automation Listed
tla-plus-generator
Generate and analyze TLA+ specifications for distributed systems verification
1,919 Updated 2 weeks ago
a5c-ai