What pisses me off about it is that this is an actual field of math that exists which is lattice theory and a lot of smart people spent a lot of time actually deciding that yeah this is 4 squares.

This is used for crystal systems btw.