# CRC bursts: the population changes the probability

Worked calculation of established coding theory, prepared 2026-11-20.
No measured device errors, empirical rate estimates or new CRC vulnerability.

## Reproduce

Python 3.10 or later, standard library only. In this directory:

```sh
python3 -B -m unittest -v test_model.py
python3 -B -O -m unittest -v test_model.py
python3 -B model.py --check
```

Regenerate with `python3 -B model.py`. Compare exact numerator/denominator strings,
not the rounded display decimals. All inputs and outputs are deterministic;
no random seed is needed. The date marks preparation, not a claim of deployment.

## Three populations

Fix a 33-bit payload window and its position in processing order. The CRC
reference and all other bits remain unchanged. For a monic degree-32 generator
with constant term one, its own coefficient pattern is the only nonzero
undetectable mask in that window.

- An exact-span burst fixes both endpoints to one. Uniform interiors give
  one missed mask out of 2^31.
- Independent fair flips across the whole window allow the zero mask and give
  one undetected corruption out of 2^33 possible draws.
- Conditioning that window model on any corruption removes zero and gives
  one missed mask out of 2^33-1.

At general degree r and exact span b>=2, the denominator is 2^(b-2). The
numerator is zero for b<=r, one for b=r+1, and 2^(b-r-2) for b>r+1.
For a fixed b-bit window, the nonzero undetectable count is zero for b<=r,
otherwise 2^(b-r)-1. These counts do not require a primitive generator.

## Biased interiors at the threshold

Let w be the generator weight, b=r+1 and p the independent flip probability.
For forced endpoints, the miss probability is p^(w-2)*(1-p)^(b-w).
For independent flips at every window position it is p^w*(1-p)^(b-w).
The conditional window probability divides the latter by 1-(1-p)^b.

At p=0 the forced-endpoint model is defined separately; it must not be called
conditioning on an event of probability zero in the all-bit window model.

The IEEE generator has weight 15 and Castagnoli has weight 18. At p=0.1,
the exact-span IEEE miss probability is 729 times Castagnoli's. At p=0.9
the comparison reverses by the same factor. This is sensitivity to two
hypothetical distributions, not evidence that either describes a device.

## Checks and scope

Nine test methods include 567 exhaustive generator/width pairs (all 63 monic
odd generators of degrees 1 through 6, widths 1 through 9), independently
streamed remainders, exact weighted enumeration, zero-probability boundaries,
reducible generators, invalid inputs, and a zlib payload collision control.
32-bit results use algebraic counting, not enumeration of 2^33 patterns.
The pre-existing CRC experiment separately validates CRC-32C against RFC vectors.

The original 1961 argument is credited in sources.json. Our contribution is
explicit conditioning, reproducible arithmetic and integration into the current
CRC analysis. See the sources and limitations before applying the numbers.
