Cartesian powers for approximate counting #
The row-major encoding preserves both membership and the exact power-law cardinality required by Stockmeyer's accuracy amplification.
A packed string belongs to the Cartesian power exactly when every decoded block belongs to the original set.
Eight copies per precision unit separate the two endpoints of a
factor-16 uncertainty interval after taking roots.
Scaling a factor estimate by that factor before taking a floor root gives a relative estimate whenever the chosen power separates the endpoints.
A factor-16 estimate of the prescribed power yields relative error at
most 1 / precision, including exact preservation of zero.
Applying the factor-to-relative conversion to a Cartesian power recovers a relative estimate of the original set cardinality.