# Same parity budget, different erasure recovery **Result:** two 3-by-5 array codes over the same GF(32), each with five independent parity constraints, do not recover the same missing-symbol patterns. Our exhaustive reconstruction finds four four-erasure patterns and twenty five-erasure patterns that the selected PMDS matrix recovers but the selected SD matrix cannot uniquely recover. This is a worked verification of a published construction, not a new code, a hardware experiment or an estimate of data-loss probability. ## What This Adds To Hesela The existing [sector-disk code record](https://hesela.dev/terms/sector-disk-code/) states the distinction correctly. The existing [RAID analysis](https://hesela.com/analyses/raid-rebuild-ure-math-and-resilver/#sector-disk-heading) also warns that being outside a declared guarantee does not prove data loss. This packet makes both statements independently checkable. It provides explicit matrices, ranks for every erasure subset, a second arithmetic/rank implementation, and two valid SD codewords that are indistinguishable after the witness erasures. It extends those pages rather than proposing another overview. ## Construction And Scope We reconstruct C and C' from Blaum, Plank, Schwartz and Yaakobi, [arXiv:1401.4715v1](https://arxiv.org/abs/1401.4715v1), equations (1)-(3), (6), Example 3.1 and Theorems 3.1-3.2. SD protects a common missing column plus two additional erased symbols. PMDS also permits the base erasures to occupy different columns in each row. The altered exponent spacing is 7 instead of 5. Both configurations here use the polynomial x^5+x^2+1 (0x25), alpha=2 of multiplicative order 31, three rows and five columns. Stored symbols total 15; matrix rank is 5; code dimension is 10. Redundancy is 5/15 of stored symbols, or 5/10 relative to payload. These are different denominators. The first three check rows contain ones for one array row each. For coordinate (i,j), the fourth check coefficient is alpha^j. The fifth is alpha^(-5i-j) for SD and alpha^(-7i-j) for PMDS. All exponents use order 31. Array coordinates are zero-based. An erased set E is uniquely recoverable from the surviving symbols exactly when the restricted parity-check matrix H_E has column rank |E|. Otherwise its kernel contains a nonzero vector, so at least two compatible complete codewords exist. This checks information-theoretic uniqueness, not a particular decoder's behavior. ## Exhaustive Results Every one of 2^15 = 32,768 masks is evaluated for each matrix, including empty and full erasure. No masks are sampled. | Missing symbols | All placements | SD recoverable | PMDS recoverable | PMDS-only | | ---: | ---: | ---: | ---: | ---: | | 0-3 | 576 | 576 | 576 | 0 | | 4 | 1,365 | 1,346 | 1,350 | 4 | | 5 | 3,003 | 2,230 | 2,250 | 20 | | 6-15 | 27,824 | 0 | 0 | 0 | | Total | 32,768 | 4,152 | 4,176 | 24 | The PMDS counts also have a simple combinatorial check. Among four erasures, only the 3 * C(5,4) = 15 patterns concentrated in one row exceed the row-local plus two-global budget. For five erasures, the allowed row-count distributions are (3,1,1) and (2,2,1): 3*10*5*5 + 3*10*10*5 = 2,250. The selected SD matrix recovers 386 four-erasure placements and 1,900 five-erasure placements outside the common-column envelope. Thus an envelope test alone would substantially undercount this particular matrix's recoverability. Conversely, calling it PMDS because it handles many dispersed erasures is wrong. Counts are cardinalities, not frequencies. Uniform weighting of masks, equal device failure rates or independent sector errors is not assumed. Dividing these counts by 32,768 would not establish operational reliability. ## A Concrete Ambiguity Certificate Erase (0,2), (0,4), (1,0), (1,1). Their columns do not share a common whole-disk loss. The row counts are (2,2,0), so the PMDS budget is respected. The following nonzero word is valid under the selected SD matrix: ```text 0 0 7 0 7 1 1 0 0 0 0 0 0 0 0 ``` Its five parity checks all equal zero. Its four nonzero values occur exactly at the erased coordinates. Therefore it and the all-zero word produce identical surviving data. No decoder can identify which complete SD word was stored from these survivors alone. An external trusted constraint could add information, but that is outside this code's model. The restricted SD matrix has rank 3 for these four unknowns; the PMDS matrix has rank 4. Under the latter, the same nonzero word has syndrome (0,0,0,0,31), so it cannot impersonate the zero codeword. There is also a compact algebraic explanation: the column-pair sums satisfy (2+4)-(0+1)=5. Adjacent SD rows have exponent spacing 5 and the relevant determinant cancels; spacing 7 removes this collision. There are two such column-pair choices per adjacent row pair, giving four minimal ambiguous sets. Adding any one symbol in the remaining row yields the twenty five-erasure differences. This is checked against enumeration, not inferred from code labels. ## Reproduce Python 3.12.3 was used; only the standard library is needed. From this directory: ```sh python3 -B experiment.py --write python3 -B -m unittest -v python3 -B -O -m unittest -v ``` Run tests before regeneration when checking a downloaded packet: they compare committed data to a fresh calculation. Regeneration intentionally replaces only the three generated evidence files beside the script. - `results.json` contains parameters, both matrices, counts and the witness. - `sd-ranks.bin` and `pmds-ranks.bin` contain 32,768 bytes each, one rank per mask. - Mask bit 5*i+j selects coordinate (i,j); ranks are bytes in ascending mask order. - SHA-256 digests of both streams are included in `results.json`. - `test_experiment.py` checks every rank with separate multiplication and division-free elimination, as well as contract envelopes built from maximal sets. - `sources.json` preserves source identity and a hash of the retrieved construction. - `integration.md` supplies a short insertion for the existing publication. No random seed or statistical interval is needed for an exhaustive exact calculation. The independent implementation is a verification path written by the same author, not independent peer review. ## Interpretation Limits A code symbol here is one five-bit field element, not a measured disk sector. Larger storage units require a justified symbol mapping. The matrices are small specific instances, not evidence about every encoder named SD or PMDS. The constructed SD instance's failure on these sets does not imply every SD code fails on them: the SD guarantee is weaker, and some SD codes may also be PMDS. Erasure locations must be known. The earlier [PMDS paper](https://arxiv.org/html/1205.0997v2) explicitly models this assumption. Unknown corruption, torn updates, stale parity, wrong location metadata, decoder bugs, repair cost and device behavior are not modeled. Stronger recoverability here does not establish lower total system cost or a deployment recommendation. The [USENIX source-history memo](https://www.usenix.org/system/files/conference/fast13/fast13_memo_021715.pdf) explains why a different FAST 2013 SD paper is unavailable from its proceedings. We do not treat that removal as a mathematical refutation, redistribute that paper/software, or make claims about present legal rights. The pinned 2014 construction is the mathematical source used here. Status: research packet prepared for review. Existing public pages are unchanged.