{
  "schemaVersion": 1,
  "generatedAt": "2026-11-01T13:42:55.472Z",
  "runtime": "v24.22.1",
  "license": "CC0-1.0 for Hesela code and computed results; source publications retain their own rights.",
  "sourceSha256": "582a7f3cb3362d2ceea84fd2307a54d3c2d9ee49f380933ae0cd8ad9fb641e77",
  "method": "Deterministic occupancy-state recurrence with binary64 arithmetic. Finite-model probabilities, not sampled frequencies or benchmarks.",
  "population": "Hypothetical distinct inserted keys and an absent query; every hash address is independent, uniform and sampled with replacement.",
  "blockedModel": "Each inserted key independently selects one of B equal blocks uniformly, then all k addresses stay in that block. Query block selection is independent and uniform.",
  "formulas": {
    "transition": "P_next(x) = P(x)*x/m + P(x-1)*(m-x+1)/m",
    "finite": "sum_x P_after_kn_draws(x)*(x/m)^k",
    "blocked": "P_next_key = (1-1/B)*P + (1/B)*T^k(P)",
    "observed": "sum_j queryWeight_j*(occupied_j/blockBits)^k"
  },
  "units": "Probabilities in [0,1], bit counts, distinct-key counts; not percentages, milliseconds or device reads.",
  "sources": [
    {
      "url": "https://people.scs.carleton.ca/~maheshwa/papers/bloom-ipl.pdf",
      "locator": "Introduction and section 2; the 2-bit counterexample is from Bose et al., not a new discovery.",
      "accessed": "2026-10-17"
    },
    {
      "url": "https://www.eecs.harvard.edu/~michaelm/postscripts/esa2006a.pdf",
      "locator": "Kirsch and Mitzenmacher, ESA 2006, sections 2-5: double-hashing asymptotics do not establish finite independent-address equivalence.",
      "accessed": "2026-10-31"
    },
    {
      "url": "https://repositorio.inesctec.pt/server/api/core/bitstreams/554de794-47be-4eb2-b339-2694236ed935/content",
      "locator": "Almeida, A Case for Partitioned Bloom Filters, accepted manuscript, section 5, DOI 10.1109/TC.2022.3218995: repeated-index and overlap caveats for naive double hashing.",
      "accessed": "2026-10-31"
    },
    {
      "url": "https://parquet.apache.org/docs/file-format/bloomfilter/",
      "locator": "Technical Approach and Sizing an SBBF; contrast only, not the implementation modeled here.",
      "accessed": "2026-11-01"
    }
  ],
  "limitations": [
    "Exact finite probability model evaluated numerically; not arbitrary-precision arithmetic.",
    "No Monte Carlo sampling, confidence intervals, seed, device workload or storage benchmark.",
    "No finite hash fingerprint collisions, double hashing, adaptive queries or concrete hash quality.",
    "Double-hashing asymptotic guarantees do not make this independent-address finite calculation exact for a double-hashed implementation.",
    "A zero double-hash step repeats one address; an odd step for a power-of-two array has full period, but does not establish independent query addresses.",
    "Blocked model is not Parquet's split-block algorithm or a particular RocksDB version.",
    "Independent uniform queries within disjoint words use a product of word fill fractions, not the power of aggregate fill; Parquet salts share an input, so this independent-word product is not its exact FPR.",
    "Observed-state examples are chosen bit counts, not a measured population of filters."
  ],
  "results": {
    "finite": [
      {
        "bits": 2,
        "distinctKeys": 1,
        "hashes": 2,
        "fpr": 0.625,
        "meanOccupied": 1.5,
        "probabilityMass": 1,
        "meanFillPower": 0.5625,
        "exponentialApproximation": 0.39957640089372803
      },
      {
        "bits": 8,
        "distinctKeys": 1,
        "hashes": 2,
        "fpr": 0.056640625,
        "meanOccupied": 1.875,
        "probabilityMass": 1,
        "meanFillPower": 0.054931640625,
        "exponentialApproximation": 0.04892909356982368
      },
      {
        "bits": 64,
        "distinctKeys": 8,
        "hashes": 4,
        "fpr": 0.025354434616435922,
        "meanOccupied": 25.334966658451663,
        "probabilityMass": 1,
        "meanFillPower": 0.024556216427164063,
        "exponentialApproximation": 0.023968650821013612
      },
      {
        "bits": 512,
        "distinctKeys": 64,
        "hashes": 4,
        "fpr": 0.024140302702544726,
        "meanOccupied": 201.60809550983933,
        "probabilityMass": 0.9999999999999997,
        "meanFillPower": 0.0240409720990794,
        "exponentialApproximation": 0.023968650821013612
      },
      {
        "bits": 4096,
        "distinctKeys": 512,
        "hashes": 4,
        "fpr": 0.023990082478463008,
        "meanOccupied": 1611.8020705374215,
        "probabilityMass": 0.9999999999999999,
        "meanFillPower": 0.02397767368142594,
        "exponentialApproximation": 0.023968650821013612
      }
    ],
    "blocked": {
      "global": {
        "bits": 512,
        "distinctKeys": 64,
        "hashes": 4,
        "fpr": 0.024140302702544726,
        "meanOccupied": 201.60809550983933,
        "probabilityMass": 0.9999999999999997,
        "meanFillPower": 0.0240409720990794,
        "exponentialApproximation": 0.023968650821013612
      },
      "fixedEqualLoad": {
        "bits": 64,
        "distinctKeys": 8,
        "hashes": 4,
        "fpr": 0.025354434616435922,
        "meanOccupied": 25.334966658451663,
        "probabilityMass": 1,
        "meanFillPower": 0.024556216427164063,
        "exponentialApproximation": 0.023968650821013612
      },
      "randomBlockLoad": {
        "blockBits": 64,
        "blocks": 8,
        "distinctKeys": 64,
        "hashes": 4,
        "fpr": 0.03256594519173365,
        "meanOccupied": 24.80272883032257,
        "probabilityMass": 1.0000000000000004
      }
    },
    "observed": [
      {
        "occupied": [
          4,
          4
        ],
        "blockBits": 8,
        "hashes": 2,
        "weights": [
          0.5,
          0.5
        ],
        "fpr": 0.25
      },
      {
        "occupied": [
          0,
          8
        ],
        "blockBits": 8,
        "hashes": 2,
        "weights": [
          0.5,
          0.5
        ],
        "fpr": 0.5
      },
      {
        "occupied": [
          0,
          8
        ],
        "blockBits": 8,
        "hashes": 2,
        "weights": [
          0.9,
          0.1
        ],
        "fpr": 0.1
      },
      {
        "occupied": [
          0,
          8
        ],
        "blockBits": 8,
        "hashes": 2,
        "weights": [
          0.1,
          0.9
        ],
        "fpr": 0.9
      }
    ]
  }
}
