Definition modulefun_to_monoidfun {R : ring} {M N : module R} (f : R-mod(M, N)) : monoidfun (moduletomonoid M) (moduletomonoid N) := tpair _ (pr1 f) (tpair _ (pr1 (pr2 f)) (modulefun_unel f)).
Require Import UniMath.MoreFoundations.Tactics. Require Import UniMath.Algebra.RigsAndRings. Require Import UniMath.Algebra.Groups. Require Import UniMath.Algebra.Monoids.