There’s no way I could reproduce a calculus textbook verbatim, but I can probably prove all the important theorems in it.
Even then, given half of any sentence in the book, I don’t rate my chances of reproducing the next half. That’s more a question of knowing the author’s style than knowing calculus itself.
Does arithmetic coding capture all of that?