# Bitmap negation: reproduce the missing-row controls

Explanation: https://hesela.com/analyses/postgresql-toast-read-coverage/#bitmap-negation
Definition: https://hesela.dev/terms/existence-bitmap/

This package separates exact predicate truth from overinclusive positive
candidates and deliberately mismatched snapshot exports. It does not implement
a database bitmap access method or report a SQLite/PostgreSQL defect.

## Contents
- probe.py: synthetic exhaustive set checks and native temporary SQLite controls.
- test_probe.py: independent set oracles, fixed SQL expectations and negative controls.
- evidence.json: exact recorded outputs, SQLite source ID and compile options.
- sources.json: primary-source URLs, scope and capture hashes.

## Run
Place probe.py, test_probe.py and evidence.json in the same directory.

```sh
python3 -B probe.py --verify evidence.json
python3 -B -m unittest discover -s . -p test_probe.py -v
python3 -B -O -m unittest discover -s . -p test_probe.py -v
```

Exact replay also compares Python/SQLite environment metadata. A different
build may produce the same logical result but fail that full equality check.
To retain a separate capture without replacing the reference:

```sh
python3 -B probe.py --output my-build.json
```

No third-party Python dependencies or existing database are used. Temporary
databases are removed when the connections close.

## Scope
The 65,536 truth/universe configurations, 6,561 candidate configurations and
15,625 dual-bound configurations are exhaustive artificial domains, not sampled
failure rates. Native controls use SQLite 3.45.1, seven tiny integer/NULL
predicates with and without an index, application-side candidate tables and
two WAL connections. Index presence does not prove an index plan was selected.
The current-mask/old-mask composition is deliberately wrong application code;
the held SQLite reader correctly retains its snapshot.

No latency, storage-device, production-incidence or PostgreSQL result follows.
Collations, volatile predicates, joins and reused row-version identities are
outside scope. Third-party source documents are linked, not redistributed.
