gdp-wired
Recipes · All recipes

GuideRecipes

Recipes for the rules apps keep most.

The shapes apps keep most often. Each one is proven in examples/guide.ts, except where noted.

On this page
  1. Seven core patterns
  2. More shapes in the README

Seven core patterns#

More shapes in the README#

More shapes, each in the README: sliding-window rate limits over a log of requests, sums over every key of a map (M.sum()), laws over up to 64 steps in a row, “every ticket issued is eventually served” (under weak or strong fairness), an implementation that behaves like a simpler spec, functions defined by a recurrence with lemmas you state, and rules read from your own TypeScript.

What it proves · Writing laws · Checking existing code in 11 languages