Lemma. Finite relations as matrices over the booleans [00IX]

The idempotent {\operatorname {\underline {mat}}_\mathbb {B}\circ \operatorname {\underline {rel}}_\mathbb {B}\colon \mathrm {Mat}_{\mathbb {B}}{\mathopen {}\left (m,n\right )\mathclose {}}\to \mathrm {Mat}_{\mathbb {B}}{\mathopen {}\left (m,n\right )\mathclose {}}} is in fact the identity function on matrices over the boolean semiring \mathbb {B}.