feat(algebra/ring): monoid structure on R →+* R (#2649) Also add comp_id and id_comp
R →+* R
comp_id
id_comp