The branch histories has lean code that matches the writeup in the document. However, since the probability definitions have changed, it is no longer compatible.
It would be good to adapt this code to the new results in the probability space. We do not want to be too hasty if we want to change the basic probability results.