Matrices Equal Theorem

  • The “for every ” part is important cuz the products can be equal for certain ‘s without the matrices actually being equal.
  • Since the entries of the resultant matrix are basically dot product between rows and another vector, and we know that dot products can be equal even when the two vectors are not actually equal.

Proof

See reference for full proof.

  • They go from left to right, i.e., they assume the products are equal for all .
  • So now we are free to choose any , and this should still hold.
  • So we choose columns of the identity matrix . Each column has 1 at only one location, acting like the AND bitmask.
  • Since the equality should hold for all vectors, we cycle through the different columns of such that we are selecting the corresponding entries in the matrices .
  • When the corresponding entries for are equal, the matrices themselves are equal.