If R is a binary relation on a set S, then R can be represented by the logical matrix MR whose row and column indices index the elements of S, such that the entries of MR are defined by:
mi,j={10(xi,yj)∈R(xi,yj)∈R
Let ∣S∣=n. If R is a binary relation on a set S , then Rˉ={(x,y)∈S×S ∣ (x,y)∈/R}.
It follows from defenition of Rˉ that mˉi,j={01(xi,yj)∈R(xi,yj)∈R . If the bit matrix MR representing R contains exactly r entries that are 0, then ∣R∣=r. Since ∣Rˉ∣=∣(S×S)∖R∣=n2−r, we conclude that the bit matrix MRˉ representing Rˉ contains exactly n2−r entries that are 0.
Comments