CRC concatenation: reproducible native-library example ===================================================== Run with Python 3 and a system zlib exposing crc32_combine64: python3 -B probe.py --check python3 -B -m unittest -v test_probe.py This uses the actual zlib combine function through ctypes. It does not implement a competing concatenation algorithm. A separate bit-at-a-time CRC oracle checks every two-byte message. The source API and byte conventions are those of zlib's IEEE CRC-32, not CRC-32C. No Python 3.15 combine wrapper is required. results.json is regenerated by python3 -B probe.py --write. The program reports the loaded library name and zlib version separately, so results can be compared across versions without erasing environment differences. Recorded environment: Linux x86_64, Python 3.12.3, system libz.so.1 reporting zlib 1.3, 2026-11-23. For the nine ASCII bytes 123456789, all 55 ways to form three contiguous parts, including empty parts, produce cbf43926 under either valid grouping. For A=1234 and B=56789, combine needs CRC(A), CRC(B) and the length of B: five bytes. The right child length in A + (B + C) is len(B) + len(C), not just len(C). A parallel reduction may change grouping but must preserve byte order. Five selected wrong constructions differ: plain XOR, a four-byte right length, reversed parts, CRC of big-endian part-digest bytes, and supplying a running CRC where an independently initialized part CRC is required. These are examples, not assertions that every error or reorder is detectable. A same-length five-byte collision is also tested and remains a collision after combination. The finite enumeration has 65,536 two-byte inputs and 55 three-part layouts of one specified message. It is not a statistical sample, device experiment, performance benchmark, cloud upload test or proof of collision freedom. Combining old summaries also does not reread or validate current stored bytes. Sources: - zlib 1.3.1 zlib.h, Checksum Functions: https://github.com/madler/zlib/blob/v1.3.1/zlib.h - Kadatch and Jenkins, Everything we know about CRC but afraid to forget (2010), sections 3.1-3.3: https://github.com/madler/zlib/blob/v1.3.1/doc/crc-doc.1.0.pdf