---
title: "Formal methods"
description: "TLA+, model checking, proofs, deterministic simulation testing"
url: "https://swe.quest/tags/formal-methods?per=96"
---

# Formal methods

Topic in Architecture & design: TLA+, model checking, proofs, deterministic simulation testing

By difficulty: [Easy](https://swe.quest/tags/formal-methods.md?difficulty=easy) · [Medium](https://swe.quest/tags/formal-methods.md?difficulty=medium) · [Hard](https://swe.quest/tags/formal-methods.md?difficulty=hard)

Posts 1–25 of 25, page 1 of 1, newest first.

## 2026-11-24

- [Property Based Thinking](https://swe.quest/articles/property-based-thinking-293866f3c0780857.md): Teleport · 2026-11-24 · Medium · 17 min read · Testing, Formal methods, Go
  Properties come in two flavours: formal safety and liveness properties that constrain a whole system over time, and property-based testing (PBT) properties that relate a function's inputs to its outputs.

## 2026-11-18

- [Mathematical proof, powered by AI. And no hallucinations!](https://swe.quest/articles/mathematical-proof-powered-by-ai-and-no-hallucinations-e33a45325be4fda4.md): Amazon Science · 2026-11-18 · Easy · 7 min read · Formal methods, AI agents, LLMs
  Connecting AI agents to the Isabelle proof assistant over the Model Context Protocol lets a machine check every proof step, which keeps generated mathematical proofs free of hallucinations.

## 2026-11-13

- [Advancing science & engineering with Antigravity’s /teamwork](https://swe.quest/articles/advancing-science-engineering-with-antigravity-s-teamwork-0e40d692e8fc9ab5.md): Google Research · 2026-11-13 · Easy · 14 min read · AI agents, LLMs, Formal methods, Algorithms
  Antigravity's /teamwork multi-agent harness pairs parallel exploration with independent falsifiers (Lean 4, unmodified test suites, simulators, hardware counters) and partitions context so each agent sees only the files and tools it needs, with critics and auditors verifying results from clean contexts.

## 2026-11-11

- [Using mathematics to validate network configurations](https://swe.quest/articles/using-mathematics-to-validate-network-configurations-efd14d1365eac3d0.md): Amazon Science · 2026-11-11 · Easy · 4 min read · Networking, Formal methods, Cloud platforms, Security
  AWS validates Cloud WAN network segmentation statically by translating route tables, attachments and policy documents into logical rules and facts, then querying its automated-reasoning engine Tiros for which attachments can reach which others with which destination IPs.

## 2026-11-05

- [How we continuously validate formal specifications in production](https://swe.quest/articles/how-we-continuously-validate-formal-specifications-in-production-8af79b473bcc3ebf.md): Datadog Engineering · 2026-11-05 · Hard · 16 min read · Formal methods, Testing, Distributed systems, Rust, Observability
  FETCh (Formal Execution Trace Checker) compiles TLA+ specifications into Rust runtime monitors that consume production telemetry and flag any state transition the spec forbids, catching drift between a formal model and the evolving implementation.

## 2026-10-02

- [Results from the ASIC puzzle](https://swe.quest/articles/results-from-the-asic-puzzle-ca06d1b0c156ce5d.md): Jane Street Tech Blog · 2026-10-02 · Hard · 12 min read · Hardware, Debugging, Formal methods
  Jane Street's puzzle chip, shipped as a bare GDS layout, turns out to be a hardware checker for an 11x11 Star Battle ("Two Not Touch") puzzle.

## 2026-09-18

- [Auditing in the age of (good enough) AI](https://swe.quest/articles/auditing-in-the-age-of-good-enough-ai-790bce56b92999e7.md): Trail of Bits · 2026-09-18 · Hard · 10 min read · Static analysis, Formal methods, Cryptography, AI agents, Vulnerability research
  Before auditing the Miden zero-knowledge VM, Trail of Bits spent six months using Claude and Codex agents to build tooling for its custom stack-based assembly language (MASM): an LSP server, a decompiler with a reusable IR, an abstract-interpretation static analysis engine, and a Lean model of the VM executor.

## 2026-09-09

- [A “proof” of Fermat’s Last Theorem that fits the margin](https://swe.quest/articles/a-proof-of-fermat-s-last-theorem-that-fits-the-margin-b44a4aebaeb677ac.md): Trail of Bits · 2026-09-09 · Hard · 2 min read · Vulnerability research, Formal methods, Memory safety, Compilers
  A bug in Lean's String.Pos.Raw.extract let a bogus "proof" of Fermat's Last Theorem typecheck.

## 2026-08-20

- [Protocol-Aware Deterministic Simulation Testing](https://swe.quest/articles/protocol-aware-deterministic-simulation-testing-7f3b613be8faf2a6.md): TigerBeetle · 2026-08-20 · Hard · 10 min read · Formal methods, Testing, Consensus, Replication, Storage engines
  TigerBeetle's deterministic simulator (the VOPR) has full visibility into each replica's consensus and storage state, so it can check invariants that black-box tools like Jepsen or Antithesis cannot see through user-facing APIs.

## 2026-07-07

- [Intelligence is Free, Now What? Data Systems for, of, and by Agents](https://swe.quest/articles/intelligence-is-free-now-what-data-systems-for-of-and-by-agents-98e20761c37c0c4d.md): Berkeley AI Research · 2026-07-07 · Hard · 13 min read · Databases, AI agents, Query engines, Consistency models, Formal methods
  With inference costs falling roughly 50x per year, near-free intelligence creates three research directions for data systems.
- [The final boss of reliability: formal verification](https://swe.quest/articles/the-final-boss-of-reliability-formal-verification-7d09556f91a9c3f0.md): Turso · 2026-07-07 · Medium · 6 min read · Formal methods, Testing, Storage engines, SQLite, Rust
  Turso, a from-scratch SQLite rewrite, is adding formal verification via Aretta AI's Aristo, which turns natural-language intents annotated on code into formally checked properties, to complement its deterministic simulation testing and Antithesis runs.

## 2026-05-18

- [How we used Quint to find over 10 bugs in SQLite while hardening Turso](https://swe.quest/articles/how-we-used-quint-to-find-over-10-bugs-in-sqlite-while-hardening-turso-43686794db9fa980.md): Turso · 2026-05-18 · Medium · 5 min read · Formal methods, SQLite, Testing, Databases
  Modeling individual SQLite C API contracts in Quint, generating small traces, and replaying them as C programs against real SQLite uncovered more than 10 SQLite bugs while also validating Turso's compatible C API.

## 2025-12-03

- [Getting from tested to battle-tested](https://swe.quest/articles/getting-from-tested-to-battle-tested-e1b6bb8c2cdb1387.md): Jane Street Tech Blog · 2025-12-03 · Medium · 13 min read · Testing, Distributed systems, Debugging, Formal methods, Queues & messaging
  Jane Street's Aria, a low-latency message bus with strong ordering guarantees, already had unit, simulated-network, quickcheck, AFL fuzz, version-skew, lab and chaos tests, yet adding Antithesis's deterministic-hypervisor testing surfaced two unknown bugs on the first run.

## 2025-11-28

- [A Tale Of Four Fuzzers](https://swe.quest/articles/a-tale-of-four-fuzzers-88cabf77780814b8.md): TigerBeetle · 2025-11-28 · Hard · 32 min read · Testing, Replication, Distributed systems, Formal methods, Zig
  TigerBeetle's Adaptive Replication Routing (ARR) puts the primary in the middle of a replication ring so no single dropped message is critical.

## 2025-08-28

- [An adventure in writing compatible systems](https://swe.quest/articles/an-adventure-in-writing-compatible-systems-f48d37f87fc6e365.md): Turso · 2025-08-28 · Medium · 4 min read · SQLite, Storage engines, Formal methods, Debugging, Rust
  Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.

## 2025-08-14

- [Kimina-Prover-RL](https://swe.quest/articles/kimina-prover-rl-3205962549f99099.md): Hugging Face · 2025-08-14 · Hard · 8 min read · Model training, LLMs, Formal methods, Evaluation
  Kimina-Prover-RL is an open-source GRPO training pipeline, released as a recipe in a fork of verl, that teaches small LLMs to prove Lean 4 theorems using a think-then-code output format.

## 2025-07-10

- [Kimina-Prover: Applying Test-time RL Search on Large Formal Reasoning Models](https://swe.quest/articles/kimina-prover-applying-test-time-rl-search-on-large-formal-reasoning-models-321ecfd38f3146da.md): Hugging Face · 2025-07-10 · Hard · 38 min read · Model training, LLMs, Formal methods, Evaluation
  Kimina-Prover-72B, trained with the Kimi k1.5 RL pipeline on Qwen2.5-72B, reaches a 92.2% pass rate on miniF2F-test for Lean 4 theorem proving by combining a lemma-enabled RL pattern, a recursive Test-Time RL search over candidate lemmas, and learned error-fixing from Lean feedback.

## 2025-06-06

- [Fuzzer Blind Spots (Meet Jepsen!)](https://swe.quest/articles/fuzzer-blind-spots-meet-jepsen-95901ab1fc56e123.md): TigerBeetle · 2025-06-06 · Hard · 7 min read · Testing, Formal methods, Storage engines, Query engines, Debugging
  Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised.

## 2024-12-10

- [Introducing Limbo: A complete rewrite of SQLite in Rust](https://swe.quest/articles/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust-eb77d828af295b26.md): Turso · 2024-12-10 · Easy · 7 min read · SQLite, Rust, Formal methods, Testing, WebAssembly
  Limbo is Turso's from-scratch rewrite of SQLite in Rust that aims for full language and file-format compatibility, memory safety and a modern architecture.

## 2024-11-20

- [How we use formal modeling, lightweight simulations, and chaos testing to design reliable distributed systems](https://swe.quest/articles/how-we-use-formal-modeling-lightweight-simulations-and-chaos-testing-to-design-aca03cf9b6abf48d.md): Datadog Engineering · 2024-11-20 · Hard · 23 min read · Formal methods, Queues & messaging, Distributed systems, Chaos engineering, Multi-tenancy
  Datadog validated the design of Courier, a multi-tenant message queue built on multiple FoundationDB clusters after its March 2023 outage, by combining TLA+ formal modeling, lightweight simulations and chaos testing.

## 2023-07-11

- [We Put a Distributed Database In the Browser – And Made a Game of It!](https://swe.quest/articles/we-put-a-distributed-database-in-the-browser-and-made-a-game-of-it-0b24aa4c3e59c84b.md): TigerBeetle · 2023-07-11 · Easy · 5 min read · Formal methods, Consensus, Testing, WebAssembly, Zig
  TigerBeetle's deterministic simulator, the VOPR, is compiled to WebAssembly via Zig and wrapped in a playable browser game that runs real TigerBeetle replicas across three levels.

## 2023-07-06

- [Simulation Testing For Liveness](https://swe.quest/articles/simulation-testing-for-liveness-7a5ba398eed57d56.md): TigerBeetle · 2023-07-06 · Hard · 4 min read · Formal methods, Testing, Consensus, Distributed systems, Resilience
  TigerBeetle's VOPR simulator now has a "liveness" mode alongside its "safety" mode, because uniformly random, eventually-healing faults can never surface livelocks such as a permanently asymmetric partition that triggers endless view changes.

## 2023-03-28

- [Random Fuzzy Thoughts](https://swe.quest/articles/random-fuzzy-thoughts-74b3f2f1b21a2499.md): TigerBeetle · 2023-03-28 · Medium · 9 min read · Testing, Formal methods, Distributed systems, Zig
  Treating a fuzzer's byte slice as a finite PRNG unifies coverage-guided fuzzing with structured property-based testing: the entropy length measures input complexity, gives test-case minimization almost for free, and tells interactive simulations when to stop injecting faults.

## 2022-08-02

- [Why does Neon use Paxos instead of Raft, and what’s the difference?](https://swe.quest/articles/why-does-neon-use-paxos-instead-of-raft-and-what-s-the-difference-f6a04ce40b5e85a1.md): Neon · 2022-08-02 · Hard · 14 min read · Consensus, Replication, PostgreSQL, Distributed databases, Formal methods
  Neon replaces Postgres's storage layer with distributed storage, so stateless compute nodes act as Paxos proposers and a fixed set of disk-backed safekeepers act as acceptors.

## 2021-11-11

- [Motivating global stabilization](https://swe.quest/articles/motivating-global-stabilization-bf22ab61d8a73e1a.md): Trail of Bits · 2021-11-11 · Hard · 13 min read · Consensus, Distributed systems, Formal methods
  The global stabilization time (GST) assumption from Dwork, Lynch and Stockmeyer's partial-synchrony paper looks unrealistic, but it is both elegant and practically meaningful.

Same list as RSS: [https://swe.quest/feed.xml?tag=formal-methods](https://swe.quest/feed.xml?tag=formal-methods). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
