Property Based Thinking
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.
Topics Architecture & design
TLA+, model checking, proofs, deterministic simulation testing.
Search within Formal methods, or combine it with other topics →
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.
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.
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.
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.
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.
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.
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.
A bug in Lean's String.Pos.Raw.extract let a bogus "proof" of Fermat's Last Theorem typecheck.
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.
With inference costs falling roughly 50x per year, near-free intelligence creates three research directions for data systems.
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.
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.
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.
TigerBeetle's Adaptive Replication Routing (ARR) puts the primary in the middle of a replication ring so no single dropped message is critical.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.