DEV Community

Cover image for Formal Methods Workshop: Finding concurrency bugs using TLA+
Scidonia
Scidonia

Posted on

Formal Methods Workshop: Finding concurrency bugs using TLA+

As AI models write more and more of our code, human review simply can't keep up. Traditional testing only catches what you write tests for.

That's why formal methods, using mathematics to definitively prove that your code is free of deadlocks, race conditions, and specific bugs, are having a major renaissance (we should also mention the collapse in the cost of proof). Instead of just testing for the expected, formal verification proves the absence of the unexpected.

We are seeing the biggest players in the AI space adopting this right now:

Anthropic is leveraging Claude to write formal proofs, ensuring memory safety for RISC-V binaries and finding a way to scale software verification without endless manual review.

NVIDIA is using formal methods to control autonomous AI agents, relying on SAT solvers to mathematically prove security boundaries so an agent can never execute an unintended or dangerous action.

Verification is the safety net for AI-generated code. To help engineers get hands-on with these concepts, we are hosting a practical workshop on using TLA+ to find and fix concurrency bugs, and we'd love you to come along. There is a nominal fee, only 5 euros, which is there to deter no-shows :)

The Workshop: TLA+ for Concurrency

If you work on distributed systems, asynchronous schedulers, or multi-threaded code, this session is useful for you. We will follow a check-then-act race condition from Python into TLA+ and check that our repair actually holds.

What we'll cover:

  • Reproducing a check-then-act race in Python to see exactly where a task suspends.
  • Translating the code into a guarded TLA+ action.
  • Checking an invariant with TLC and tracing the counterexample back to the code.
  • Repairing the atomicity boundary.
  • Reviewing an LLM-generated model to spot where it hallucinates a guard the code doesn't actually have.

The Details:

  • Date & Time: Tuesday, 8 December 2026, at 4:00 PM CET.
  • Format: Live online (2 hours of workshop + 45 minutes for Q&A).
  • Prerequisites: Just a baseline comfort with Python, functions, and shared state (we'll teach the Asyncio parts).
  • Cost: €5. We set a nominal fee strictly to deter no-shows and keep the session focused for those who attend.

If you’re writing code and want more safeguards in place, come learn how to prove your code works.

Secure your spot here
Formal Methods Workshop: Finding concurrency bugs using TLA+

Top comments (0)