If you have not read it: Why Neurons Have Thousands Of Synapses, A Theory Of Sequence Memory In Neocortex.
Remember many encoders can contribute to the input to the SP. The SP’s relationship to this input consist of proximal dendrites. The axons of the input may not be sensory, they may come from another population of neocortical cells. Minicolumn receptive fields are enforced by inhibitory neurons.
No, the output of the SP are the active minicolumns, not individual pyramidal neurons. The output representation of the SP is an SDR where each bit represents a minicolumn.
Yes. The TM operates within the confines described by the SP. They are the same sheet of cells, but two simultaneously occurring processes. We define them differently in code because it is easier to understand the two distinct processes separately.
There are several hot gym examples. The numbers you’re quoting don’t look right. We usually use 2048 minicolumns, like this. This is a parameter to the SP in all cases. Same with the number of cells in each minicolumn, which is a TM parameter like this. It is usually set to 16 or 32. It is not calculated, it is manually set.