Compression/arithmetic library

Simple arithmetic coder (order-0) for demonstration/testing

This implementation uses integer-range arithmetic coding with a fixed-precision (32-bit) range. It's designed for correctness on small inputs and clarity. For production you'd extend with adaptive models and streaming support.

Classes

Arithmetic