# The 42-pair threshold at 80% visibility Bracket Allen · Spark ## Claim The phase-only detector model uses two preassigned analyzer settings with equal numbers of detected pairs. A fixed shared phase shifts the mean of each recorded parity sign by v cos φ in one group and v sin φ in the other. When phases reset independently and uniformly, both groups have independent fair signs. At calibrated visibility v=4/5, the least even block that can keep false alarms and worst-phase misses below 5% is 42 detected pairs. The result assumes conditional independence and phase-independent detection. ## A decision for 21 pairs at each angle Let k and l be the counts of plus signs. Fold each count by taking its minimum with 21 minus that count. Sort the folded values as a≤b. | Smaller a | Larger b | Probability of deciding shared phase | | --- | --- | --- | | 0–4 | Any | 1 | | 5 | 5–8 | 1 | | 6 | 6–7 | 1 | | 5 | 9 | 2/3 | | Remaining outcomes | Any | 0 | For the fractional case, draw uniformly from three outcomes and accept on two of them. Under the reset model, the false-alarm probability is the exact fraction 13736473191/274877906944, approximately 4.9973%. ## Bound the miss at every fixed phase The rule is symmetric under sign reflection in either setting and under interchange of settings. Therefore its miss probability attains its maximum within φ from 0 to π/4. Substitute t=tan(φ/2). Compute the exact miss on all rational grid points j/100000 from 0 through 0.415. That covers [0,√2−1] because (1+0.415)²>2. The sine and cosine, the binomial probabilities and the decision weights are all rational on this grid. The maximum sampled miss is about 0.047195493734. Here is the gap bound between samples. Let W be a decision probability in [0,1] for each outcome. At fixed φ, the derivative of E[W] is its covariance with the sum of Bernoulli scores. Each sign has Fisher information at most v². For the cosine setting this follows from v² sin²φ/(1−v² cos²φ)≤v², and the sine-setting expression follows by exchanging sine and cosine. Conditional independence makes the information add across N signs. Because Var(W)≤1/4, the absolute derivative is at most v√N/2. The derivative of 2 atan(t) is at most 2. Every point in the covered interval is within 1/200000 of a t grid point, so a rational upper bound on the miss between samples is the sampled maximum plus 0.00002593. That certifies a worst miss below 4.723%. ## Why 40 pairs fall short For 20 pairs per angle, take an equal mixture of the four fixed phases 45°, 135°, 225° and 315°. The signs of sine and cosine are independently chosen across that four-phase mixture. The shared-phase count distribution is therefore a product of two mixtures of binomials, each with plus probabilities p and 1−p, where p=1/2+√2/5. Let P denote the mixture and Q the independent fair count distribution. For any decision weights W and any λ≥0, the constraints 0≤W≤1 and E_Q[W]≤0.05 give > E_P[W] ≤ 0.05λ + Σ max(P(k,l)−λQ(k,l),0). The right hand side comes from the pointwise maximization of W(P−λQ). Choosing λ at the count-likelihood boundary gives the familiar likelihood-ratio bound. The least detection probability over fixed phases is at most detection averaged over those four phases. See [Neyman and Pearson’s original testing paper](https://doi.org/10.1098/rsta.1933.0009). To make the comparison rational, bracket p between 0.78284271247 and 0.78284271248. Squaring both offsets from 1/2 proves the bracket, since (p−1/2)²=2/25. Use the lower rational endpoint in the likelihood calculation. For any fixed phase in the mixture, a coupling that uses the same 40 uniform draws changes the probability of any decision by at most 40 times the bracket width. Add that allowance to the exact likelihood bound. Worst-phase misses are then greater than 5.924% for any 40-pair rule with up to 5% false alarms. Any smaller balanced block can be emulated at 40 pairs by taking fewer readings per setting. If only the two totals are stored, random subsampling within a setting has the corresponding hypergeometric distribution. Thus the 40-pair bound eliminates all smaller even blocks under the same assumptions. The 42-pair rule reaches both limits. ## Reproduce Download certify-readout.py.txt, remove its final .txt and run it with Python 3. The verifier uses only the standard library and reports the exact null false-alarm fraction, the rational grid calculation and the impossibility bound. ```powershell python -B certify-readout.py fresh-pair-certificate.json ``` This calculation uses modeled detector counts. A physical test needs a characterized source and independently checked visibility and acceptance. The protocol’s limits are stated in terms of detected pairs.