---
title: "Property Based Thinking"
description: "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."
url: "https://swe.quest/articles/property-based-thinking-293866f3c0780857"
canonical: "https://goteleport.com/blog/property-based-thinking/"
source: "Teleport"
published: "2026-11-24"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 17
tags: ["testing","formal-methods","go"]
---

# Property Based Thinking

A post on [Teleport](https://swe.quest/sources/teleport.md), published 2026-11-24, 17 min read, Deep dive. Original: [https://goteleport.com/blog/property-based-thinking/](https://goteleport.com/blog/property-based-thinking/)

## Summary

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. Using Teleport's generic \`List\` pagination implementation (\`genericLister\`) as the running example, properties such as page size bound, uniqueness, termination and completeness are derived from design docs and classified as safety, liveness, postcondition, metamorphic or model-based. The PBT side is shown in Go with the \`rapid\` library, including guiding the fuzzer toward boundary values and its lack of coverage-guided feedback. To check system-wide properties under concurrency and faults without building a formal model, Teleport runs a full cluster in Antithesis's deterministic simulation environment. The core recommendation is to define properties at design time, because retrofitting them onto existing code is much harder.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Formal methods](https://swe.quest/tags/formal-methods.md) (Architecture & design)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

- Go testing ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- unit testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- API pagination

## Keywords

rapid, Antithesis, Teleport, property-based testing, deterministic simulation testing, How to Specify It!

## Related posts

- [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.
- [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.
- [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.
- [A Descent Into the Vörtex](https://swe.quest/articles/a-descent-into-the-vortex-6dcd52020263ac13.md): TigerBeetle · 2025-02-13 · Medium · 3 min read · Testing, Chaos engineering, Distributed databases, Zig
  TigerBeetle has added Vortex, a non-deterministic, generative full-system test harness that complements its Deterministic Simulation Testing by exercising real production binaries and client libraries from the outside in.
- [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.

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)
