composition of relations

Composition of relations relates the elements in a first set to elements in a third set that are mutually related to a same element in a second set. Informally, it "carries" relationship across a mutual pair.

Formally,
if RX×Y and SY×Z are two binary relations, then their composition SR is the relation

SR={(x,z)X×Z:yY such that (x,y)R and (y,z)S}

If the two relations are functions with f:XY and g:YZ,
then gf:XZ,
and in the way we might write y=f(x) and z=g(y),
(gf)(x)=g(f(x)).


Powered by Forestry.md