chnarithmeticdecode decodes bitstreams produced by chnarithmeticencode(1) and outputs a channelfile (CHN format). chnarithmeticdecode figures out the order of the adaptive model from header bytes in infile.
I. A. Witten, R. M. Neal, and J. G. Cleary, "Arithmetic Coding For Data Compression," Communications of the ACM, vol. 30, no. 6, pp. 520-540, June 1987.
T. M. Cover and J. T. Thomas, Elements of Information Theory. New York: John Wiley & Sons, Inc., 1991.