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.
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.
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.
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.