Liber8tion: exact finite checks ============================== This is a teaching and verification model, not a production RAID codec. Run with Python 3.10+ standard library: python3 model.py --check python3 -m unittest test_model.py python3 -O -m unittest test_model.py Regenerate intentionally with python3 model.py --write. The matrix is identified by the eight ordered Q blocks in Plank's NCA 2008 Figure 3 and the pinned Jerasure liber8tion_coding_bitmatrix constructor: https://web.eecs.utk.edu/~jplank/plank/papers/NCA-2008.pdf https://github.com/tsuraan/Jerasure/blob/414c96ef2b9934953b6facb31d803d79b1dd1405/src/liberation.c The data-device index is zero-based. Each device has eight symbol positions. The first 8*k rows copy data, the next eight produce P, the final eight Q. A row is an integer bitset over 8*k data coordinates. Removing two groups of eight rows models known whole-device erasures. Full rank 8*k means every data vector is uniquely recoverable. k=2..8 gives 161 erasure pairs, all checked. Independent dense elimination and all 65,536 k=2 payloads test the checker. At k=8, 57 data coordinates update two parity positions and seven update three. The mean is (57*2+7*3)/64 = 135/64, about 2.11, with equal coordinate weighting. D1[7] affects P7, Q0 and Q4. These are symbol locations, not storage commands. Coalescing, read-modify-write, logs, durability and physical media are not modeled. Deleting Q4's extra D1[7] coefficient at k=2 leaves rank 15 after D0 and D1 are erased; 16 is required. Lower matrix density alone does not preserve MDS. Liber8tion is not the prime-parameter Liberation formula evaluated at w=8. All results are deterministic. There is no sampled population, confidence interval, reliability probability, timing benchmark or claim to reproduce the original search over matrix classes. Surviving values must be correct, properly identified, and from the same codeword version. License: BSD-3-Clause; see LICENSE.txt. Source PDFs are linked, not redistributed.