That comparison list reminds me of a proof technique (from when I once studied/taught math). I think you can compare in a ring. That is compare a1 to a2, then a2 to a3, a3 to a4, ... keep going until you compare a7 to a1.
Each step reports any differences. If there are none, everything is good. Only seven comparisons are needed.
Phil