The way prediction is supposed to work in HTM seems to be the exact opposite of conventional interpretation, as well that in On Intelligence. Prediction in apical denrites is reinforcing, basically an AND to basal dendrites.
In conventional predictive coding, prediction is supposed to suppress the input, with only prediction error / surprise propagating to the next level. That makes a lot more sense because it implements input compression, which I think is a core principle of cognition.
I guess the surprise in HTM would be when the input from basal dendrites is strong enough to burst-fire the neuron without appical input? But that requires SUB | XOR (appical input, basal input), which is contrary to current model, and I don’t know how it could be implemented?