A General Theory of Correct, Incorrect, and Extrinsic Equivariance