<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> 
<div>***I meant the *unit* of the monoid free-forgetful monad, of course.
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Friday, December 08, 2017 at 8:32 AM<br/>
<b>From:</b> "Manny Romero" <mannyromero@mail.com><br/>
<b>To:</b> beginners@haskell.org<br/>
<b>Subject:</b> [Haskell-beginners] Addendum: Monoid algebra</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Clarification: I see now that an algebra is not, in fact, a natural transformation, but rather a single morphism from an object's endofunctor image back to the object itself. But my puzzlement still remains! If X = {a, b, c}, then the monoid free-forgetful monad*** will map X to T X = {[], [a], [b], [c], [a, a], [a,b], ... } in precisely the following way: {a -> [a], b -> [b], c -> [c]}. How might a monoid algebra map TX back to X ?
<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Friday, December 08, 2017 at 8:07 AM<br/>
<b>From:</b> "Manny Romero" <mannyromero@mail.com><br/>
<b>To:</b> beginners@haskell.org<br/>
<b>Subject:</b> [Haskell-beginners] Monoid algebra</div>

<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>I'm having trouble understanding the idea of an algebra using everybody's favorite example, the monoid. What I want, to clarify, is to get some intuition on characterizing the algebra of the free-forgetful monoid adjunction.</div>

<div> </div>

<div>If F is the free monoid functor, and G is its right adjoint, then G . F is our monad on SET; and its unit eta is a natural transformation taking every set X to the set (G . F) X ("set of words on the alphabet X") in such a way that every element x in X is mapped to its "singleton word" [x]. "Insertion of generators."</div>

<div> </div>

<div>I'm having trouble, on the other hand, understanding how an algebra could establish a natural transformation between the set (G . F) X for any set X, back to X itself. How would those morphisms map the elements of (G . F) X ? Aren't these algebras supposed to "represent" the various monoids on X? But it isn't generally true that a monoid operation maps back to the set of *generators*. I know I'm missing something here, but what is it? Clarify these natural transformations for me, in "mundane" "baby" monoid-describing language!</div>

<div> </div>
</div>
</div>
_______________________________________________ Beginners mailing list Beginners@haskell.org <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a></div>
</div>
</div>
</div>
</div>
_______________________________________________ Beginners mailing list Beginners@haskell.org <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a></div>
</div>
</div>
</div></div></body></html>