If the Boolean domain is viewed as a semiring, where addition corresponds to logical OR and multiplication to logical AND, the matrix representation of the composition of two relations is equal to the matrix product of the matrix representations of these relation.
اگر دامنه بولی به طریق semi-ring دیده شود به طوریکه جمع با با LOGICAL OR و ضرب با AND LOGICAL و نمایش ماتریس از ترکیب دو رابطه برابر است با ضرب ماتریس ها.