Let be a set, be a commutative monoid, , and . Then the transitive closure of is given by
where is the transitive closure of (i.e. the intersection of all transitive relations containing ). We define , where is the identity of the monoid, and , for all .