X-code: update units and erasure geometry ======================================== This is a finite algebraic illustration, not a storage implementation. Construction: Xu and Bruck, IEEE TIT 45(1), 272-276 (1999), equation (1). DOI: 10.1109/18.746809 https://authors.library.caltech.edu/records/2s8tf-z1m79 Use Python 3.10 or newer, with no external packages: python3 model.py --check python3 -m unittest discover -s . -p test_model.py python3 -O -m unittest discover -s . -p test_model.py Read results.json for the complete pair counts and explicit ambiguity witness. To regenerate it deterministically: python3 model.py --write Coordinates are zero-based (row, column). For input A with n-2 rows and n columns, the last rows P and Q are: P[i] = XOR over r=0..n-3 of A[r][(i+r+2) mod n] Q[i] = XOR over r=0..n-3 of A[r][(i-r-2) mod n] Each whole column is one erasure unit. Erasing it also erases its parity. At n=5, toggling A[0][0] changes P[3] and Q[2]. There are three changed stored symbols when the input symbol itself is counted. At n=9, the unchanged construction is a deliberately invalid composite-size control: nine of 36 erased-column pairs leave rank 60 instead of 63. A concrete nonzero input difference is 1 at rows 0,3,6 in columns 0,3 and zero elsewhere. Its surviving columns are identical to those of the all-zero input. The encoder gathers source bytes; the equation generator independently scatters symbolic variables to destinations. Binary Gaussian elimination checks whether the surviving symbols uniquely determine the input. Direct encoding validates the nonzero ambiguity witness without relying on rank. The byte test includes all 255 nonzero deltas at every data coordinate for n=3,5,7,9 (29,580 cases). There is also exhaustive binary-message coverage at n=3. All surviving symbols are assumed correct and consistently versioned. No fleet observations, event frequencies, uncertainty estimates or random sampling are involved. Pattern counts are not probabilities. The general prime-size theorem remains the paper's result. This code does not estimate read traffic, network bandwidth, execution time, write amplification or crash consistency. It does not correct unidentified corrupt columns. Public code and prose in this directory are independently written. The paper and its figures are not redistributed.