Adding matrices together [00JS]
- January 20, 2024
- Jon Sterling
Definition Pointwise addition of matrices [00JO]
- January 20, 2024
- Jon Sterling
Let M,N:\mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}} be two matrices over the same semiring with the same dimensions. We will write M\oplus N:\mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}} for the (pointwise) addition of the two matrices:
{\mathopen {}\left (M\oplus N\right )\mathclose {}}_{i,j} = M_{i,j} \oplus N_{i,j}Definition The zero matrix [00JP]
- January 20, 2024
- Jon Sterling
A zero matrix is one that whose cells all contain 0. In particular, we have:
\begin {aligned} \mathbf {0} &:\mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}}\\ \mathbf {0}_{i,j} &= 0 \end {aligned}Lemma Associativity, commutativity, and unit laws of matrix addition [00JQ]
- January 20, 2024
- Jon Sterling
Matrix addition forms an associative and commutative operation on \mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}} with zero matrices \mathbf {0} as neutral element.
Proof.
- January 20, 2024
- Jon Sterling
This follows immediately from the associativity, commutativity, and unit laws of the additive submonoid {\mathopen {}\left (+,0\right )\mathclose {}} of the semiring S.
Lemma Matrix addition and union of relations [00JR]
- January 20, 2024
- Jon Sterling
The pointwise sum M\oplus N of M,N:\mathrm {Mat}_{\mathbb {B}}{\mathopen {}\left (m,n\right )\mathclose {}} corresponds to the union of the relations associated to M and N:
\operatorname {\underline {rel}}_{\mathbb {B}}{\mathopen {}\left (M\oplus N\right )\mathclose {}} = \operatorname {\underline {rel}}_{\mathbb {B}}M \cup \operatorname {\underline {rel}}_{\mathbb {B}}NMoreover, the zero matrix corresponds to the empty relation: \operatorname {\underline {rel}}_{\mathbb {B}}\mathbf {0} = \varnothing .
Proof.
- January 20, 2024
- Jon Sterling
This follows because addition and zero in the boolean semiring are given by disjunction and falsehood respectively.