<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gyre&#38;Gimble</title>
	<atom:link href="http://www.abstractmath.org/Word%20Press/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.abstractmath.org/Word%20Press</link>
	<description>posts about math, language and other things that may appear in the wabe</description>
	<lastBuildDate>Sat, 08 Jun 2013 22:43:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Function and codomain</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8690</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8690#comments</comments>
		<pubDate>Sat, 08 Jun 2013 22:41:59 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[exposition]]></category>
		<category><![CDATA[language of math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[codomain]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functional property]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8690</guid>
		<description><![CDATA[I recently posted the following information in the talk page of the Wikipedia article on functions, where they were arguing about whether &#34;function&#34; means a set of ordered pairs with the functional property or a structure with a domain $D$, a codomain $C$, and a graph $G$&#160;which is a subset of $D\times C$&#160;with the functional [...]]]></description>
				<content:encoded><![CDATA[<p>
	I recently posted the following information in the talk page of the <a href="http://en.wikipedia.org/wiki/Function_(mathematics)">Wikipedia article on functions</a>, where they were arguing about whether &quot;function&quot; means a set of ordered pairs with the<a href="http://www.abstractmath.org/MM/MMFuncSpec.htm"> functional property</a> or a structure with a domain $D$, a codomain $C$, and a graph $G$&nbsp;which is a subset of $D\times C$&nbsp;with the functional property.
</p>
<p>
	I collected data from some math books published since 2000 that contain a definition of function; they are listed below. &nbsp;In this list, &quot;typed&quot; means &nbsp;function was defined as going from a set A to a set B, A was called the domain, and B was not given a name. If &quot;typed&quot; is followed by a word (codomain, range or target) that was the name given the codomain. One book defined a function essentially as a partial function. Some that did not name the codomain defined &quot;range&quot; in the sense of image. Some of them emphasized that the range/image need not be the same as the codomain.
</p>
<p>
	As far as I know, none of these books said that if two functions had the same domain and the same graph but different codomains they had to be different functions. &nbsp;But I didn&#39;t read any of them extensively.&nbsp;
</p>
<p>
	My impression is that modern mathematical writing at least at college level does distinguish the domain, codomain, and image/range of a function, not always&nbsp;providing a word to refer to the codomain.
</p>
<p>
	If the page number as a question mark after it that means I got the biblio data for the book from Amazon and the page number from Google books, which doesn&#39;t give the edition number, so it might be different.
</p>
<p>
	I did not look for books by logicians or computing scientists. &nbsp;My experience is that logicians tend to use partial functions and modern computing scientists generally require the codomain to be specified.
</p>
<p>
	Opinion: &nbsp;If you don&#39;t distinguish functions as different if they have different codomains, you lose some basic intuition (a function is a map) and you mess up common terminology. &nbsp;For example the only function from {1} to {1} is the identity function, and is surjective. &nbsp;The function from {1} to the set of real numbers (which is a point on the real line) is not the identity function and is not surjective.
</p>
<p>
	THE LIST
</p>
<p>
	Mathematics for Secondary School Teachers<br />
	&nbsp;By Elizabeth G. Bremigan, Ralph J. Bremigan, John D. Lorch, MAA 2011<br />
	p. 6 (typed)
</p>
<p>
	Oxford Concise Dictionary of Mathematics, ed. Christopher Clapham and James Nicholson, &nbsp;Oxford University Press, 4th ed., 2009.<br />
	p. 184, (typed, codomain)
</p>
<p>
	Math and Math-in-school: Changes in the Treatment of the Function Concept in &#8230;<br />
	&nbsp;By Kyle M. Cochran, Proquest, 2011<br />
	p74 &nbsp;(partial function)
</p>
<p>
	&nbsp;Discrete Mathematics: An Introduction to Mathematical Reasoning<br />
	&nbsp;By Susanna S. Epp, 4th edition, Cengage Learning, 2010&nbsp;<br />
	&nbsp;p. 294? (typed, co-domain)
</p>
<p>
	&nbsp;Teaching Mathematics in Grades 6 &#8211; 12: Developing Research-Based &#8230;<br />
	&nbsp;By Randall E. Groth, SAGE, 2011<br />
	&nbsp;p236 (typed, codomain)
</p>
<p>
	Essentials of Mathematics, by Margie Hale, MAA, 2003.<br />
	p. 38 (typed, target).
</p>
<p>
	Elements of Advanced Mathematics<br />
	&nbsp;By Steven G. Krantz, 3rd ed., Chapman and Hall, 2012<br />
	p79? (typed, range)
</p>
<p>
	Bridge to Abstract Mathematics<br />
	&nbsp;By Ralph W. Oberste-Vorth, Aristides Mouzakitis, Bonita A. Lawrence, MAA 2012<br />
	&nbsp;p76 (typed, codomain)
</p>
<p>
	The Road to Reality by Roger Penrose, Knopf, 2005.<br />
	p. 104 (typed, target)
</p>
<p>
	Precalculus: Mathematics for Calculus<br />
	&nbsp;By James Stewart, Lothar Redlin, Saleem Watson, Cengage, 2011<br />
	p. 143. &nbsp;(typed)
</p>
<p>
	The Mathematics that Every Secondary School Math Teacher Needs to Know<br />
	&nbsp;By Alan Sultan, Alice F. Artzt , Routledge, 2010.<br />
	&nbsp;p.400 (typed)<br />
	&nbsp;<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8690</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mathematical definitions &#8212; second attempt</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8680</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8680#comments</comments>
		<pubDate>Wed, 05 Jun 2013 15:04:02 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstractmath.org]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[language of math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[definition]]></category>
		<category><![CDATA[mathematical definition]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8680</guid>
		<description><![CDATA[I have posted a revised version of the abstractmath.org article on mathematical definitions here. I previously attempted to post it on this blog but the addition of the necessary css file had various side effects elsewhere in my Word Press setup, so I deleted the post.]]></description>
				<content:encoded><![CDATA[<p>I have posted a revised version of the abstractmath.org article on <b>mathematical definitions</b><br />
<a href="http://www.abstractmath.org/MM/MMDefs.htm">here</a>. I previously attempted to post it on this blog but the addition of the necessary css file had various side effects elsewhere in my Word Press setup, so I deleted the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8680</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Revision of Diagnostic Examples</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8641</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8641#comments</comments>
		<pubDate>Mon, 20 May 2013 01:08:34 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstractmath.org]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[understanding math]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8641</guid>
		<description><![CDATA[I have posted a revision of the abstractmath entry Diagnostic Examples. &#160;It is not a major revision, but I am mentioning it here because I hope people will suggest other examples. There must be dozens more problems suitable for that article. &#160;Of course, I will give credit for any I use!]]></description>
				<content:encoded><![CDATA[<p>
	I have posted a revision of the abstractmath entry <a href="http://abstractmath.org/MM/MMDiagnostic.htm">Diagnostic Examples</a>. &nbsp;It is not a major revision, but I am mentioning it here because I hope people will suggest other examples. There must be dozens more problems suitable for that article. &nbsp;Of course, I will give credit for any I use!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8641</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conceptual and Computational</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8631</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8631#comments</comments>
		<pubDate>Sat, 18 May 2013 16:49:00 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstracting algebra]]></category>
		<category><![CDATA[abstractmath.org]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[abstract]]></category>
		<category><![CDATA[cdf player]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[conceptual]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8631</guid>
		<description><![CDATA[I have posted a revision of the article Conceptual and Computational on abstractmath.org. It is the result of my first adventure in revising abstractmath.org in accordance with the ideas in my recent Gyre&#038;Gimble post Writing math for the web. One part of the new article incorporates some of the ideas of my post The power [...]]]></description>
				<content:encoded><![CDATA[<p>
 I have posted a revision of the article <a href="http://www.abstractmath.org/MM/MMConceptualComputational.htm">Conceptual and Computational</a> on <a href="http://www.abstractmath.org">abstractmath.org</a>.</p>
<ul>
<li>It is the result of my first adventure in revising abstractmath.org in accordance with the ideas in my recent Gyre&#038;Gimble  post <a href="http://www.abstractmath.org/Word%20Press/?p=8498">Writing math for the web</a>.</li>
<li>One part of the new article incorporates some of the ideas of my  post<br />
<a href="http://www.abstractmath.org/Word%20Press/?p=8501">The power of being naive</a></li>
<li>
I did not use the manipulable diagrams in the Naive post in the abstractmath post.  It&#8217;s not clear to me how many one time drop-ins (which is what I mostly get in abstractmath) will be willing to install Wolfram CDF Player to fiddle with one or two diagrams.
 </li>
<li>
I have been pleased at the way many of the topics  covered in abstractmath come up high when you search for them in Google (including Conceptual Computational, but also things like Mathematical Object and  Language of Math (where I even beat Wikipedia)).  <i>However,</i> it may be that the high rank occurs because Google knows who I am. I will investigate next time I am in a library!
 </li>
<li>
 I expect to post pieces of <a href="http://www.abstractmath.org/Word%20Press/?page_id=7229">Abstracting Algebra</a> on abstractmath when they become decently finished enough.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8631</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The power of being naive</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8501</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8501#comments</comments>
		<pubDate>Sat, 11 May 2013 15:27:19 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[exposition]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[calculus]]></category>
		<category><![CDATA[conceptual]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[derivative]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[intuitive]]></category>
		<category><![CDATA[secant line]]></category>
		<category><![CDATA[slope]]></category>
		<category><![CDATA[tangent line]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8501</guid>
		<description><![CDATA[To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the Wolfram website. The code for the demos is in the Mathematica notebook MM Def Deriv.nb. See How to manipulate the diagrams for more information on what you can do with them. Learning [...]]]></description>
				<content:encoded><![CDATA[<p>
	To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the <a href="http://www.wolfram.com/cdf-player/">Wolfram website</a>. The code for the demos is in the Mathematica notebook <a href="http://www.abstractmath.org/Mathematica/MM Def Deriv.nb"> MM Def Deriv.nb</a>. See <a href="#howto">How to manipulate the diagrams</a> for more information on what you can do with them.
</p>
<h1>
	Learning about the derivative as a concept<br />
</h1>
<blockquote>
<p>
		<b><font color="#800080">The derivative $f&#39;(x)$ of $f(x)$ is the function whose value at $a$ is the slope of the line tangent to the graph $y=f(x)$ at the point $(a,f(a))$.</font></b>
	</p>
</blockquote>
<p>
	To gain understanding of the <i>concept</i> of derivative the student need to <i>see and play with the pictures that illustrate the definition.</i> This can be done in stages:
</p>
<ul>
<li>
		Give an intuitive, pictorial explanation of the tangent line.
	</li>
<li>
		Show in pictures what the <i>slope </i>of a line is.
	</li>
<li>
		Show in pictures how you can approximate the tangent line with secant lines.
	</li>
</ul>
<p>
	Of course, many teachers and textbooks do this. I propose that:
</p>
<blockquote>
<p>
		<b><font color="#800080">The student will benefit in the long run by <i>spending a whole class session on the intuitive ideas I just described</i> and doing a set homework based only on intuition. <i>Then</i> you can start doing the algebraic stuff.</font></b>
	</p>
</blockquote>
<p>
	This post provides some ideas about manipulable diagrams that students can play with to gain intuition about derivatives. Others are possible. There are many on the <a href="http://demonstrations.wolfram.com/topics.html">Mathematica Demonstrations website</a>. There are others written in Java and other languages, but I don&#39;t know of a site that tries to collect them in one place.
</p>
<p>
	My claim that the student will benefit in the long run is not something I can verify, since I no longer teach.
</p>
<h2>
	Present the tangent line conceptually<br />
</h2>
<p>
	The tangent line to a curve
</p>
<ul>
<li>
		is a straight line that touches the curve at a point on the curve,
	</li>
<li>
		and it goes in the same direction that the curve is going, like the red line in the picture below. (See <a href="#howto">How to manipulate the diagrams</a>.)
	</li>
</ul>
<p>
	&nbsp;
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="Naive Tangent.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/Naive Tangent.cdf', 285, 357);
</script>
</p>
<p>
	My recommendation is that you <i>let the students bring up some of the fine points.</i>
</p>
<ul>
<li>
		The graph of $y=x^3-x$ has places where the tangent line cuts the curve at another point <i>without being parallel to the curve there</i>. Move the slider to find these places.
	</li>
<li>
		The graph of $y=\cos(\pi x)$ has places where the same line is tangent at more than one point on the curve. (This may requre stepping the slider using the incrementers.)
	</li>
<li>
		Instigate a conversation about the tangent line to a given <i>straight line.</i>
	</li>
<li>
		My post <a href="http://www.abstractmath.org/Word%20Press/?p=2711">Tangents</a> has other demos intended to bother the students.
	</li>
<li>
		Show the unit circle with some tangent lines and make them stare at it until they notice something peculiar.
	</li>
<li>
		&quot;This graph shows the tangent line but <i>how do you calculate it</i>?&quot; You can point out that if you draw the curve carefully and then slide a ruler around it so that it is tangent at the point you are interested in, then you can draw the tangent carefully and measure the rise and run with the ruler. <i>This is a perfectly legitimate way to estimate the value of the slope there.</i>
	</li>
</ul>
<h2>
	Slope of the tangent line conceptually<br />
</h2>
<p>
	This diagram shows the slope of the tangent line as height over width.
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="Deriv is Slope of Tan Line.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/Deriv is Slope of Tan Line.cdf', 600, 359);
</script>
</p>
<ul>
<li>
		Slide the $x$ slider back and forth. The width does not change. The height is measured <i>from</i> the tangent line <i>to</i> the corner, so the height does change; in particular, it changes sign appropriately.
	</li>
<li>
		This shows that the standard formula for the derivative of the curve gives the same value as the calculated slope of the tangent. (If you are careful you can find a place where the last decimal places differ.) You may want to omit the &quot;derivative value&quot; info line, but most students in college calculus already know how to calculate the formulas for the derivative of a polynomial&#8211; or you can just tell them what it is in this case and promise to show how to calculate the formula later.
	</li>
<li>
		Changing the width while leaving $x$ fixed does not change the slope of the tangent line (up to roundoff error).
	</li>
<li>
		In fact I could add another parameter that allows you to calculate height over width at other places on the tangent line. But that is probably excessive. (You could do that in a <i>separate </i> demo that shows that basic property that the slope of a straight line does not change depending on where you measure it &#8212; that is what a curve being a straight line <i>means</i>.)
	</li>
<li>
		<i>This graph provides a way to estimate the slope, but does not suggest a way to come up with a formula for the slope, in other words, a formula for the derivative.</i>
	</li>
</ul>
<h2>
	Conceptual calculation of the slope<br />
</h2>
<p>
	This diagram shows how to calculate the value of the slope at a point using secant lines to approximate the tangent line. If you have a formula for the function, you can calculate the limit of the slope of the secant line and get a formula for the derivative.
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="Calc Val Deriv.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/Calc Val Deriv.cdf', 650, 417);
</script>
</p>
<p>
	&nbsp;
</p>
<ul>
<li>
		The function $f(x)=x^3-x$.
	</li>
<li>
		The secant points are $(x-h,f(x-h))$ and $(x+h, f(x+h))$. $h$ is called &quot;width&quot; in the diagram.
	</li>
<li>
		Moving $x$ with the slider shows how the tangent line and secant line have similar slopes.
	</li>
<li>
		Moving the width to the left, to $0$ (almost), makes the secant line coincide with the tangent line. So intuitively the limit of the slope of the secant line is the slope of the tangent line.
	</li>
<li>
		The distance between the secant points is the Euclidean distance. (It may be that including this information does not help, so maybe it should be left out.)
	</li>
<li>
		The slope of the secant line is $\frac{f(x+h)-f(x-h)}{(x+h)-(x-h)}$ when $h\neq0$. This simplifies to $3x^2+h^2-1$, so the limit when $h\to0$ is $3x^2-1$, which is therefore a formula for the derivative function.
	</li>
</ul>
<p>
	&nbsp;
</p>
<h2>
	Testing intuitive concepts<br />
</h2>
<p>
	Most of the work students do when studying derivatives is to solve some word problems (rate of change, maximization) <i>in which the student is expected to come up with an appropriate function $f(x)$ and then know or find out the formula for $f&#39;(x)$ in the process of solving the problem.</i> In other words there is a heavy emphasis on <i>computation</i> and much less on <i>concept</i>.
</p>
<p>
	The student in the past has had to do very few homework problems that <i>test for understanding the concept</i>. Lately some texts do have problems that test the concept, for example:
</p>
<p>
	<i>This is the graph of a function and its derivative. Which one is the function and which is its derivative?</i>
</p>
<p>
	<a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/05/Concept-Prob.jpg"><img alt="Concept Prob" class="aligncenter size-full wp-image-8623" height="247" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/05/Concept-Prob.jpg" width="200" /></a>
</p>
<p>
	Note that the problem <i>does not give you the formula for the function, nor does it have to</i>.
</p>
<p>
	Many variations are possible, all involving calculating parameters directly from the graph:
</p>
<ul>
<li>
		&quot;These are the first and second derivatives of a function. Where (within the bounds of the graph) is the function concave up?&quot;
	</li>
<li>
		&quot;These are the first and second derivatives of a function. Where (within the bounds of the graph) are its maxima and minima?&quot;
	</li>
<li>
		&quot;This straight line is the derivative of a function. Show that the function is a quadratic function and measure the slope of the line in order to estimate some of the coefficients of the quadratic.&quot;
	</li>
</ul>
<p>
	&nbsp;
</p>
<h3>
	<a name="howto">How</a> to manipulate the diagrams<br />
</h3>
<p>
	&nbsp;
</p>
<ul>
<li>
		You can move the sliders back and forth to to move to different points on the curve.
	</li>
<li>
		In the first diagram, you can click on one of the four buttons to see how it works for various curves.
	</li>
<li>
		The arrow at the upper right makes it run automatically in a not very useful sort of way.
	</li>
<li>
		The little plus sign below the arrow opens up some other controls and a box showing the value of $a$, including step by step operation (plus and minus signs).
	</li>
<li>
		If you are using Mathematica, you can enter values into the box, but if you are using CDF Player, you can only manipulate the number using the slider or the plus and minus incrementers.
	</li>
</ul>
<p>
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8501</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing math for the web</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8498</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8498#comments</comments>
		<pubDate>Thu, 02 May 2013 16:35:14 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstractmath.org]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[cdf player]]></category>
		<category><![CDATA[CKEdit]]></category>
		<category><![CDATA[Coffee Cup]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html editor]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[mathematica]]></category>
		<category><![CDATA[mathjax]]></category>
		<category><![CDATA[Microsoft Word]]></category>
		<category><![CDATA[WinEdt]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WPEditor]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8498</guid>
		<description><![CDATA[Abstractmath I built my website abstractmath.org during the years 2002 through 2006. After that I made sporadic changes, but medical operations and then teaching courses as an adjunct for a couple of years kept me from making much progress until 2010. This post is an explanation of the tools I used for abstractmath, what went [...]]]></description>
				<content:encoded><![CDATA[<h2>Abstractmath</h2>
<p>I built my website <a href="http://www.abstractmath.org">abstractmath.org</a> during the years 2002 through 2006. After that I made sporadic changes, but medical operations and then teaching courses as an adjunct for a couple of years kept me from making much progress until 2010. </p>
<p>This post is an explanation of the tools I used for abstractmath, what went right and what went wrong, and my plans for redoing the website.
</p>
<h2>Methodology</h2>
<p>My previous experience in publishing math was entirely with TeX. When I began work on abstractmath, I wanted to produce html files, primarily because they refloated the text when the window width changed. I was thinking of small screens <i>and</i> people wanting to look at several windows at once.</p>
<p>In those days, there was no method of starting with a LaTeX input file and producing an html file that preserved <i>all</i> the math and <i>all</i> the formatting. I have over the years spent many hours trying out various systems that claimed to do it and not found one that did not require major massaging to get the look I wanted. Most of them can cannot implement all LaTeX commands, or even <i>most</i> of the LaTeX formatting commands. (I have not looked at any of these since 2011.) </p>
<p>In contrast, systems such as PDFTeX turn even very complicated (in formatting <i>and</i> in math) LaTeX files into nearly perfect PDF files. Unfortunately, <i>PDF files are a major impediment to having several windows open at once.</i>
</p>
<h3>Word and MathType</h3>
<p>
My solution was to write abstractmath articles using Microsoft Word with <a href="http://www.dessci.com/en/products/mathtype/">MathType</a>, which provides a plugin for Word.</p>
<p>The MathType interface was a very useful expansion of the Equation Editor in Word, and it produced little .gif files that were automatically inserted into the text. MathType also provided a command to create an html file.  This file was produced with the usual &#8220;_files&#8221; folder that contained all the illustrations I had included as well as all the .gif files that MathType created.  The html file contained code that put each .gif file in the right place in the typeset text.
</p>
<p>That combination worked well. Using Word allowed me tight control over formatting and allowed <i>floating textboxes</i>, which I used freely.  They very nicely moved around when you changed the width of the window.</p>
<p>I had used textboxes in my book <i>A Handbook of Mathematical Discourse</i> for apt quotations, additional comments, and (very clever if I say so myself) page indexes. The Handbook is available in several ways:</p>
<ul>
<li><a href="http://www.amazon.com/Handbook-Mathematical-Discourse-Charles-Wells/dp/0741416859/ref=sr_1_1?ie=UTF8&#038;qid=1367510923&#038;sr=8-1&#038;keywords=handbook+of+mathematical+discourse">Amazon</a>.  The citations are not included.</li>
<li><a href="http://www.abstractmath.org/Handbook/handbooktotal.pdf">The Handbook in paper form.</a> A pdf file showing the book as it appears on paper (all the illos, textboxes and page indexes, no hyperlinks), <i>plus</i> all the citations. (This paragraph was modified on 2013-05-02). </li>
<li><a href="http://www.abstractmath.org/Handbook/handbook.pdf">A version with hyperlinks,</a> This <i>includes</i> the citations but omits the boxes and the illustrations, and it has hyperlinks to the citations.  The page indexes are replaced by internal hyperlinks.</li>
<li><a href="http://www.abstractmath.org/Handbook/citations.pdf">The citations.</a></li>
</ul>
<p>That book was written in TeX with much massaging using AWK commands.  Boxes are <i>much</i> easier to do in Word than they are in TeX, and the html files produced by MathType preserved them quite well.  The <a href="http://www.abstractmath.org/MM/MMDefs.htm">abmath article on definitions</a> shows boxes used both for side comments and for quotations.
</p>
<p>
There were <i>some</i> problems with using MathType and Word together.  In particular, a longish article would have dozens or hundreds of .gif files, which greatly slowed down uploading via ftp.  I now have WebDrive (thanks to CWRU) and that may make it quicker.</p>
<h2>Rot sets in</h2>
<p>Without my doing anything at all, <i>the articles on abstractmath began deteriorating.</i> This had several main causes.</p>
<ul>
<li>Html was revised over time.  Currently it is HTML5.0.</li>
<li>Browsers changed way they rendered the html. And they had always differed among themselves in some situations. </li>
<li>Microsoft Word changed the way it generated html.</li>
</ul>
<p>
Two of the more discouraging instances of rot were:</p>
<ul>
<li><i>Many instances of math formulas are now out of line with the surrounding text.</i>  This happened without my doing <i>anything</i>. It varies by browser and by when I last revised the article.
</li>
<li><i>Some textboxes deteriorated. </i>In particular, textboxes generated by newer versions of Word were sometimes nearly illegible. Part of the reason for this is that Word started saving them as images.
</li>
</ul>
<h2>Failed Forays</h2>
<p>The main consequence of all this was that I was <i>afraid of trying to revise articles</i> (or complete them) because it would make them harder to read or ugly.  So I set out to find new ways to produce abmath articles. This has taken a couple of years, while abmath is a big mess sprawling there on its website. A mostly legible big mess, and most of the links work, but frustrating to its appearance-sensitive author.</p>
<h3>Automatically convert to a new system</h3>
<p>My first efforts were to find another system with the property that I could convert my present Word files or html files to the new system without much hand massaging.
</p>
<p>I tried converting the Word files to LaTeX input.  This was made easier (I thought) because MathType now provided a means for turning all the MathType itty bitty .gif files into LaTeX expressions.  I wrote Word macros to convert much of the formatting (italics, bold, subheads, <a href="http://abstractmath.org/MM/MMIntro.htm#_Toc212557929">purple prose</a>, and so on) into LaTeX formatting &#8212; although I did have to go through the Word text, select each specially formatted piece, and apply the correct macro.</p>
<p>But I had other problems.</p>
<ul>
<li>Converting the Mathype images files to LaTeX caused problems because it messed up the spaces before and after the formulas.
</li>
<li>I worked with great sweat and tears to write a macro to extract the addresses from the links &#8212; and failed. If I had presevered I probably would have learned how to do it, and learned a lot of Word macros programming in the process.
</li>
</ul>
<p><i>The automatic conversion process appeared to require more and more massaging.</i></p>
<p>I made some attempts at automatically converting the html files that Word generates (instead of the doc files), but they are an enormous mess.  They insert a huge amount of code (especialy spans) into the text, making it next to impossible to read the code or find anything.</p>
<p>It was beginning to look like I would have to go to an entirely new system and rewrite all the articles from scratch.  This was attractive in one respect: in writing this blog my style has changed and I was seeing lots of things I would say or do differently. I have also changed my mind about the importance of some things, and abmath now has stubs and incomplete articles that ought to be eliminated with references to Wikipedia.
</p>
<h2>Go for rewriting</h2>
<p>
Meanwhile, I was having trouble with Gyre&#038;Gimble.  The <a href="http://wordpress.org/extend/plugins/wp-editor/">WordPress editor</a> works pretty well, but two new products came along:</p>
<ul>
<li>
<a href="http://www.mathjax.org/">MathJax</a> was introduced, providing a much better way to use TeX to insert formulas. (Note: MathType recently implemented the use of MathJax into its html output.)  </p>
</li>
<li><a href="http://www.wolfram.com/cdf-player/">Mathematica CDF</a> files, which are interactive diagrams that can be inserted directly into html.  (My post <a href="http://www.abstractmath.org/Word%20Press/?p=4532">Improved Clouds</a> has examples.)
</li>
</ul>
<p>Both MathJax and CDF Player require entering links directly in the html code the WordPress editor produces. The WordPress editor trashed the html code I had entered every time I switched back and forth between &#8220;visual&#8221; (wysiwyg) and html.</p>
<p>
I switched to <a href="http://wordpress.org/extend/plugins/ckeditor-for-wordpress/">CKEdit</a>, which preserved the html but has a lot of random behavior.  I learned to understand some of the behavior but finally gave up.  I started writing my blogs in html using the <a href="http://www.coffeecup.com/html-editor/">Coffee Cup HTML Editor</a> &#8212; that is how I am writing this.  Then I paste it into the WordPress editor.
</p>
<p>My current plan is to start revising each abmath article in this way:</p>
<ul>
<li>
Write html code for the special formatting I want, mostly the code that produces the header, but also purple prose and other things.  Once done I can use this code for all the abmath articles with little massaging.
</li>
<li>
Start with the Word doc file for an article and use MathType to toggle all the MathType-generated gif files into TeX.
</li>
<li>
Generate the html file in a way that preserves the TeX code with dollar signs.  (There are two ways to do this and I have not made up my mind which to use.)
</li>
<li>
Start revising!
</li>
</ul>
<p>I have already begun doing this.  My intention is to revise each abstractmath article, post it, and announce the posting on Gyre&#038;Gimble or on Google+.  If an article is heavily revised I expect to <i>post</i> it (or parts of it) on Gyre&#038;Gimble.  Some of these things will be ready soon.
</p>
<h2>Last minute notes</h2>
<ul>
<li>I used <a href="http://www.winedt.com/">WinEdt</a>, a text editor, to write the Handbook of Mathematical Discourse.  It is a powerful html editor, with an extensive macro language that in particular allows rearranging the menus and adding new code to call other applications.  It is especially designed for TeX, so is not as convenient as it stands for html.  However, its macro language would allow me to convert it to a system that will do most of what Coffee Cup can do.  I might do this because Coffee Cup has no macro language and (as far as I can tell) has no way to revise or add to menus.</li>
<li>
<p>It is early days yet, but I am thinking of including pieces of <a href=http://www.abstractmath.org/Word%20Press/?page_id=7229>Abstracting Algebra</a> into abstractmath.org.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8498</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monads for High School III: Algebras</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8205</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8205#comments</comments>
		<pubDate>Mon, 15 Apr 2013 16:43:16 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstracting algebra]]></category>
		<category><![CDATA[category theory]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[associative]]></category>
		<category><![CDATA[commutative]]></category>
		<category><![CDATA[concatenation]]></category>
		<category><![CDATA[idempotent]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[monad]]></category>
		<category><![CDATA[monad algebra]]></category>
		<category><![CDATA[plus]]></category>
		<category><![CDATA[times]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8205</guid>
		<description><![CDATA[This is a continuation of Monads for high school I and Monads for High School II: Lists. This post covers the concept of algebras for the monad for lists. To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the Wolfram website. The [...]]]></description>
				<content:encoded><![CDATA[<p>This is a continuation of <a href="http://www.abstractmath.org/Word%20Press/?p=7204">Monads for high school I</a> and <a href="http://www.abstractmath.org/Word%20Press/?p=6840">Monads for High School II: Lists</a>. This post covers the concept of <b>algebras</b> for the monad for lists.
</p>
<p>
    To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the <a href="http://www.wolfram.com/cdf-player/">Wolfram website</a>. The code for the demos is in the Mathematica notebook <a href="http://www.abstractmath.org/Mathematica/MonadAlg.nb"> MonadAlg.nb</a>
</p>
<h1>
    Lists<br />
</h1>
<p>
    $\textrm{Lists}(S)$ is the set of all<strong> lists of finite length</strong> whose entries are elements of $S$.
</p>
<ul>
<li>
        $\boxed{2\; 2\; 4}$ is the way I denote the list of length $3$ whose first and second entries are each $2$ and whose third entry is $4$.
    </li>
<li>
        A list with only one entry, such as $\boxed{2}$, is called a <b>singleton list.</b>
    </li>
<li>
        The <b>empty list</b> $\boxed{\phantom{2}}$ has <i>no</i> entries.</li>
<li>$\textrm{Lists}^*(S)$ is the set of all <em>nonempty </em>lists of finite length whose entries are elements of $S$. </li>
<li>$\textrm{Lists}(\textrm{Lists}(S))$ is the list whose entries are <i>lists with entries from $S$</i>.</li>
<li>For example, $\boxed{\boxed{5\; 7}\; \boxed{2\; 12\; 7}}$ and $\boxed{\boxed{5\; 7\; 2\; 12\; 7}}$ are both entries in $\textrm{Lists}^*(\textrm{Lists}^*(\mathbb{Z}))$.  The second one is a singleton list!    </li>
<li> $\boxed{\boxed{\phantom{3}}\; \boxed{2}}<br />
$ and $\boxed{\boxed{\phantom{3}}}$ are entries in $\textrm{Lists}^*(\textrm{Lists}(\mathbb{Z}))$. </li>
<li>The <b>empty list</b> $\boxed{\phantom{2}}$ is an entry in $\textrm{Lists}(\mathbb{Z})$, in $\textrm{Lists}(\textrm{Lists}^*(\mathbb{Z}))$ <i>and</i> in $\textrm{Lists}(\textrm{Lists}(\mathbb{Z}))$. If you have stared at this for more than ten minutes, do something else and come back to it later.</li>
</ul>
<p>
    The star notation is used widely in math and computing science to imply that you are including everything except some insignificant shrimp of a thing such as the empty list, the empty set, or $0$. For example, $\mathbb{R}^*$ denotes the set of all <i>nonzero</i> real numbers.
</p>
<p>
    More details about lists are in <a href="http://www.abstractmath.org/Word%20Press/?p=6840">Monads for High School II: Lists</a>.
</p>
<h1>
    Join<br />
</h1>
<p>
    The function <strong>join</strong> (or <b>concatenation</b>) takes two lists and creates a third list. For example, if you join $\boxed{5\; 7}$ to $\boxed{2\; 12\; 7 }$ <em>in that order </em>you get $\boxed{5\; 7\; 2\; 12\; 7}$.
</p>
<ul>
<li>I will use this notation: <strong>join</strong>$\boxed{\boxed{5\; 7}\; \boxed{2\; 12\; 7}}=\boxed{5\; 7\; 2\; 12\; 7}$.</li>
<li>This notation means that I am regarding <strong>join</strong> as a <i>function that takes a two-element list in $\textrm{Lists}(\textrm{Lists}(S))$ to an element of $\textrm{Lists}(S)$.</i></li>
<li>
        <strong>join </strong>removes one level of lists
    </li>
<li>
        <strong>join </strong>is not commutative: <strong>join</strong>$\boxed{\boxed{2\; 12\; 7}\; \boxed{5\; 7}}=\boxed{2\; 12\; 7\; 5\; 7}$
    </li>
<li>
        <strong>Join </strong>is <strong>associative</strong>, and as for any associative binary operation, <strong>join</strong><em> </em>is defined on <em>any finite list of lists of elements of $S$. </em> So for example, <strong>join</strong>$\boxed{\boxed{5\; 7}\; \boxed{2\; 12\; 7}\; \boxed{1}}=\boxed{5\; 7\; 2\; 12\; 7\; 1}$.
    </li>
<li>
        For any single list $\boxed{a\; b\; c}$, <b>join</b>$\boxed{\boxed{a\; b\; c}}=\boxed{a\; b\; c}$. This is required to make the theory work. It is called the <b>oneidentity</b> property.
    </li>
<li>
        If the empty list $\boxed{\phantom{2}}$ occurs in a list of lists, it disappears when <b>join</b> is applied: <strong>join </strong>$\boxed{\boxed{2\; 3}\; \boxed{\phantom{2}}\; \boxed{4\; 5\; 6}}=\boxed{2\; 3\; 4\; 5\; 6}$.
    </li>
</ul>
<p>
    More details about <b>join</b> in <a href="http://www.abstractmath.org/Word%20Press/?p=6840">Monads for High School II: Lists</a>.
</p>
<h1>
    The main monad diagram<br />
</h1>
<p>
    When you have a <em>list of lists of lists</em>, <strong>join</strong> can be applied in two different ways, &quot;inside&quot; and &quot;outside&quot; as illustrated in the diagram below. It gives you several different inputs to try out as a way to understand what is happening.
</p>
<p>
    <script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="MainMonadDiag.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/MainMonadDiag.cdf', 661, 322,{fullscreen:'true'});
</script>
</p>
<p>
   This is the special case of the <b>main diagram<em> </em>for all monads </b>as it applies to the List monad.</p>
<p>As you can see, after doing either of &quot;inside&quot; and &quot;outside&quot;, if you then apply <strong>join</strong>, you get the <i>same list</i>. That list is simply the list of entries in the beginning list (and the two intermediate ones) in the same order, disregarding groupings.
</p>
<p>
    From what I have just written, you must depend on your <a href="http://abstractmath.org/MM/MMPatternRecognition.htm" title="abmath article on Pattern Recognition">pattern recognition</a> abilities to learn what <q>inside</q> and <q>outside</q> mean. But both can also be described in <i>words</i>.  </p>
<ul>
<li>
The lists outlined in black are lists of elements of $\mathbb{Z}$. In other words, they are elements of $\textrm{Lists}(\mathbb{Z})$.
</li>
<li>The lists outlined in <font color="#0000FF">blue</font> are lists of elements of $\textrm{Lists}(\mathbb{Z})$. In other words, they are <i>list of lists</i> of elements of $\mathbb{Z}$. Those are the kinds of things you can apply <b>join</b> to.
</li>
<li>The leftmost list in the diagram, outlined in <font color="#00D736">green</font>, is a list in $\textrm{Lists}(\textrm{Lists}(\mathbb{Z}))$. This means you can apply <b>join</b> <i>in two different ways:</i>
</li>
<li>
Each list boxed in <font color="#000FF">blue</font> is a list of lists of integers (two of the are singletons!) so you can apply <b>join</b> to <i>each</i> of them. This is <b>joining inside first</b>.
</li>
<li>
You can apply <b>join</b><i> directly to the leftmost list</i>, which is a list of lists (of lists, but forget that for the moment), so you can apply <b>join</b> <i>to the blue lists.</i>  This is <b>join outside first.</b>
</li>
</ul>
<p>To understand this diagram, staring at the diagram (for most people) uses the visual pattern recognition part of your brain (which uses over a fifth of the energy used by your brain) to understand what <q>inside<q> and </q>outside</q> mean, and then <i>check your understanding by reading the verbal description.</i>  Starting by reading the verbal description first does not work as well for most people.  </p>
<h1>
    The unit monad diagram<br />
</h1>
<p>
    There is a second <strong>unitary diagram </strong>for all monads:
</p>
<p>
    <script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="MonadUnitDiag.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/MonadUnitDiag.cdf', 555, 279,{fullscreen:'true'});
</script>
</p>
<p>
    The two right hand entries are always the same.  Again, I am asking you to use your pattern recognition abilities to learn what <q>singleton list</q> and <q>singleton each</q> mean.
</p>
<p>
    The main and unit monad diagrams will be <i>used as axioms to give the general definition of monad. </i>To give those axioms, we also need the concepts of <a href="http://en.wikipedia.org/wiki/Functor">functor</a> <span>and </span><a href="http://en.wikipedia.org/wiki/Natural_transformation">natural transformation</a>, <span>which I will define later after I have finished the <strong>monad algebra </strong>diagrams for Lists and several other examples. </span>
</p>
<h1>
    Algebras for the List monad<br />
</h1>
<p>
    If you have <em>any </em>associative binary operation on a set $S$, its definition can be extended to<strong> any nonempty list of elements</strong>  (see <a href="http://www.abstractmath.org/Word%20Press/?p=7204">Monads for High School I</a>.)</p>
<p><b>Plus</b> and <b>Times</b> are like that:
</p>
<ul>
<li>
        $(3+2)+4$ and $3+(2+4)$ have the same value $9$, so you can write $3+2+4$ and it means $9$ no matter how you calculate it.
    </li>
<li>
        I will be using the notation <strong>Plus</strong>$\boxed{3\; 2\; 4}$ instead of $3+2+4$.
    </li>
<li>
        <strong>Times </strong> is also associative, so for example we can write <strong>Times</strong><span>$\boxed{3\; 2\; 4}=24$. </span>
    </li>
<li>
        Like <strong>join</strong>, we require that these operations satisfy <strong><a name="oneidentity">oneidentity</a></strong>, so we know <strong>Plus</strong>$\boxed{3}=3$ and <strong>Times</strong>$\boxed{3}=3$.
    </li>
<li>
        When the associative binary operation has an identity element, you can also define its value on the empty list as the identity element: <strong>Plus</strong>$\boxed{\phantom{3}}=0$ and <strong>Times</strong>$\boxed{\phantom{3}}=1$. I recommend that you experiment with examples to see why it works.
    </li>
</ul>
<p>
    An <strong>algebra</strong> for the List monad is a function <strong>algop:</strong>$\textrm{Lists}(S)\to S$ with certain properties: It must satisfy the <b>Main Monad Algebra Diagram</b> and the <b>Unit Monad Algebra Diagram</b>, discussed below. </p>
<h2>
    The main monad algebra diagram<br />
</h2>
<h3>Example using Plus and Times</h3>
</p>
<p>The following interactive diagram allows you to see what happens with <b>Plus</b> and <b>Times.</b>  Afterwards, I will give the general definition.</p>
<p>   <b>Plus insides</b> replaces each inside list with the result of applying <b>Plus</b> to it, and the other operation <b>Join</b> is the same operation I have used before.
</p>
<p>
    <script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="AlgopDiag.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/AlgopDiag.cdf', 449, 250,{fullscreen:'true'});
</script></p>
<h3><a name="MMAD">Another example</a></h3>
<p>The main monad algebra diagram requires that if you have a <i>list of lists of numbers</i> such as the one below, you can add up each list (<b>Plus insides</b>) and then add up the list of totals (top list in diagram), you must get the same answer that you get when you join all the lists of numbers together into one list (bottom list in the diagram) and then add up <i>that</i> list.
</p>
<p>
<a href="http://www.abstractmath.org/Mathematica/Subtotals.jpg"><img src="http://www.abstractmath.org/Mathematica/Subtotals.jpg" width="140" height="340" alt="" title="" border="0" /></a>
</p>
<p>This is illustrated by this special case of the main monad algebra diagram for <b>Plus</b>:</p>
<p><img src="http://www.abstractmath.org/Mathematica//AlgDiagSubtotals.jpg" width="600" height="195" alt="" title="" border="0" /></p>
<h3>
General statement of the main monad algebra diagram<br />
</h3>
<p>Suppose we have any function $\blacksquare$ $:\textrm{Lists}(S)\to S$ for any set $S$.<br />
If we want to give the main monad algebra diagram for $\blacksquare$ we have a problem. We know for example that <b>Plus</b>$\boxed{1\; 2}=3$.  But for some elements $a  $ and $b$ of $S$, we <i>don&#8217;t</i> know what $\blacksquare\boxed{a\; b}$ is.  One way to write it is simply to write $\blacksquare\boxed{a\; b}$ (the usual way we write a function). Or we could use tree notation and write </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopdouble.jpg"><img alt="newalopdouble" class="aligncenter size-full wp-image-8464" height="40" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopdouble.jpg" width="30" /></a>.</p>
<p>I will use tree notation mostly, but it is a good exercise to redraw the diagrams with functional notation.
</p>
<h3>Main monad diagram in prose</h3>
<p>Below is a presentation of the general main monad algebra diagram using (gasp!) <i>English phrases</i> to describe the nodes.</p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/genalgdiag.jpg"><img alt="genalgdiag" class="alignnone size-full wp-image-8467" height="139" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/genalgdiag.jpg" width="300" /></a> </p>
<h2>
    The unit monad algebra diagram<br />
</h2>
<p>Suppose <b>$\blacksquare$</b> is <i>any</i> function from $\textrm{Lists}(S)$ to $S$ for <i>any</i> set $S$.  Then the diagram is</p>
<p>
    <a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/UnitMAdiag.jpg"><img alt="UnitMAdiag" class="aligncenter size-full wp-image-8469" height="34" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/UnitMAdiag.jpg" width="200" /></a>
</p>
<p>
    This says that if you apply <b>$\blacksquare$</b> to a singleton you get the unique entry of the singleton. This is not surprising: I defined <a href="#oneidentity"> above</a> what it means when you apply an operation to a singleton just so this would happen!
</p>
<h2>A particular example</h2>
<p>These are specific examples of the general main monad algebra diagram for an arbitrary operation $\blacksquare$: </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/stalgdiagleft2.jpg"><img alt="stalgdiagleft" class="aligncenter size-full wp-image-8457" height="242" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/stalgdiagleft2.jpg" width="400" /></a></p>
<p>     <a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/staldiagright.jpg"><img alt="staldiagright" class="aligncenter size-full wp-image-8458" height="242" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/staldiagright.jpg" width="400" /></a>
</p>
<p>These examples show that if $\blacksquare$ is any function from $\textrm{Lists}(S)$ to $S$ for any set $S$, then</p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopleft.jpg"><img alt="newalopleft" class="aligncenter size-full wp-image-8461" height="70" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopleft.jpg" width="60" /></a> </p>
<p>   equals    </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newaloptriple.jpg"><img alt="newaloptriple" class="aligncenter size-full wp-image-8459" height="60" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newaloptriple.jpg" width="50" /></a></p>
<p>   and    </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopright.jpg"><img alt="newalopright" class="aligncenter size-full wp-image-8460" height="70" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopright.jpg" width="60" /></a></p>
<p>   equals   </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newaloptriple.jpg"><img alt="newaloptriple" class="aligncenter size-full wp-image-8459" height="60" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newaloptriple.jpg" width="50" /></a>
</p>
<p>Well, according to some ancient Greek guy, <i>that</i> means </p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopleft.jpg"><img alt="newalopleft" class="aligncenter size-full wp-image-8461" height="70" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopleft.jpg" width="60" /></a> </p>
<p>equals</p>
<p><a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopright.jpg"><img alt="newalopright" class="aligncenter size-full wp-image-8460" height="70" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopright.jpg" width="60" /></a></p>
<p>which says that<br />
<a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopdouble.jpg"><img alt="newalopdouble" class="aligncenter size-full wp-image-8464" height="40" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/04/newalopdouble.jpg" width="30" /></a><br />
<b>is an <font color="#8000FF">associative binary operation!</font></b></p>
<h1>The mother of all associative operations</h1>
<p>We also know that <i>any</i> associative binary   <strong>$\blacksquare$</strong> on any set $S$ can be extended to a function on <i>all finite nonempty lists of elements of</i> $S$. This is the <b>general associative law</b> and was discussed (without using that name) in <a href="http://www.abstractmath.org/Word%20Press/?p=7204">Monads fo High School I</a>.
</p>
<p>Let&#8217;s put what we&#8217;ve done together into one statement:</p>
<blockquote><p><font size="4"></font><font color="#8000FF">Every associative binary operation $\blacksquare$ on a set $S$ can be extended uniquely to a function $\blacksquare:\textrm{Lists}^*(S)\to S$ that satisfies both the <b>main monad algebra diagram</b> and the <b>unit monad algebra diagram</b>.  Furthermore, any function $\blacksquare:\textrm{Lists}^*(S)\to S$ that satisfies both the <b>main monad algebra diagram</b> and the <b>unit monad algebra diagram</b> is an <b>asssociative binary operation</b> when applied to lists of length $2$ of elements of $S$</font>.</p>
</blockquote>
<p>That is why I claim that the NonemptyList monad is the <font color="#8000FF">mother of all associative binary operations</font>.</p>
<p>I have not proved this, but the work in this and preceding posts provide (I think) a good intuitive understanding of this fundamental relationship between lists and associative binary operations. </p>
<h1>Things to do in upcoming posts</h1>
<ul>
<li>
I have to give a proper definition of monads using the concepts of functor and natural transformation.  I expect to do this 	<i>just for set functors</i>, not mentioning categories.
</li>
<li>
Every type of binary operation that is defined by equations corresponds to a monad which is the mother of all binary operations of that type.  I will give examples, but not prove the general case.
</li>
</ul>
<h2>Other examples of monads</h2>
<ul>
<li>
Associative binary operations on $S$ with identity element (monoids) corresponds to all lists, including the empty list, with entries from $S$.
</li>
<li>
Commutative, associative and <i>idempotent</i> binary operations, like <b>and</b> and <b>or </b>in Boolean algebra, correspond to the <b>set</b> monad: $\text{Sets}(S)$ is the set of all finite and countably infinite sets of elements of $S$.  (You can change the cardinality restrictions, but you have to have <i>some</i> cardinality restrictions.) <b>Join</b> is simply union.
</li>
<li>Commutative and associative binary operations corresponds <b>to the </b><b>multiset</b> monad (with a proper definition of join) and appropriate cardinality restrictions.  You have to fuss about identity elements here, too.</li>
<li>
Various kinds of nonassociative operations get much more complicated, involving tree structures with equivalence relations on them.  I expect to work out a few of them.
</li>
<li>
There are lots of monads in computing science that you never heard of (unless you are a computing scientist).  I will mention a few of them.</p>
</li>
<li>
Every type of binary operation defined by equations corresponds to a monad.  But some of them are <i>unsolvable</i>, meaning <i>you cannot describe the monad precisely</i>.
</li>
</ul>
<p>There will probably be long delay before I get back to this project.  There are too many other things I want to do!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8205</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Explaining math</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=8036</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=8036#comments</comments>
		<pubDate>Tue, 26 Mar 2013 19:53:54 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[exposition]]></category>
		<category><![CDATA[language of math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[algebra]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[equation]]></category>
		<category><![CDATA[explicit]]></category>
		<category><![CDATA[operation]]></category>
		<category><![CDATA[pattern recognition]]></category>
		<category><![CDATA[solve]]></category>
		<category><![CDATA[symbolic math]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=8036</guid>
		<description><![CDATA[To manipulate the&#160;demos&#160;in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the&#160;Wolfram website. The source for the demos is the Mathematica notebook SolvEq.nb. This post explains some basic distinctions that need to be made about the process of writing and explaining math. &#160;Everyone who teaches math [...]]]></description>
				<content:encoded><![CDATA[<p>
	<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    jax: ["input/TeX","output/NativeMML"],
    extensions: ["tex2jax.js"],
    tex2jax: {
      inlineMath: [ ['$','$'] ],
      processEscapes: true
    }
  });</script><span style="font-size:9px;">To manipulate the&nbsp;<strong>demos</strong>&nbsp;in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the&nbsp;<a href="http://www.wolfram.com/cdf-player/">Wolfram website</a>. The source for the demos is the Mathematica notebook <a href="http://www.abstractmath.org/Mathematica/SolvEq.nb">SolvEq.nb</a>.</span>
</p>
<p>
	This post explains some basic distinctions that need to be made about the process of writing and explaining math. &nbsp;Everyone who teaches math knows&nbsp;<em>subconsciously&nbsp;</em>what is happening here; I am trying to&nbsp;<em>raise your consciousness. &nbsp;</em>For simplicity,<em>&nbsp;</em>I have chosen a technique used in&nbsp;elementary&nbsp;algebra, but much of what I suggest also applies to more abstract college level math.
</p>
<h2>
	An algebra problem<br />
</h2>
<blockquote>
<p>
		Solve the equation &quot;$ax=b$&quot; ($a\neq0$).
	</p>
</blockquote>
<p>
	<span>Understanding the statement of this problem requires a lot of Secret Knowledge (the language of ninth grade algebra)&nbsp;that most people don&#39;t have.</span>
</p>
<ul>
<li>
<p>
			<span>The expression &quot;$ax$&quot; means that $a$ and $x$ are numbers and $ax$ is their product. It is not the word &quot;ax&quot;. You have to know that writing two symbols next to each other means multiply them, except when it <em>doesn&#39;t </em>mean multiply them as in &quot;$\sin\,x$&quot;.</span>
		</p>
</li>
<li>
<p>
			The whole expression&nbsp;&quot;$ax=b$&quot; ostensibly says that the number&nbsp;$ax$ is the same number as $b$. &nbsp;In fact, it means more than that.&nbsp;The phrase &quot;solve the equation&quot; tells you that in fact you are supposed to<em> find the value of </em>$x$ that makes $ax$ the same number as $b$.
		</p>
</li>
<li>
<p>
			How do you know that &quot;solve the equation&quot;&nbsp;doesn&#39;t mean find the value of $a$ that makes&nbsp;$ax$ the same number as $b$?&nbsp;<em>Answer</em>: The word &quot;solve&quot;<em>&nbsp;triggers a <a href="http://www.abstractmath.org/MM/MMVarMeanings.htm#convention">convention</a> </em>that $x$, $y$ and $z$ are numbers you are trying to find and $a$, $b$, $c$ stand for numbers that you are allowed to plug in to the equation.
		</p>
</li>
<li>
<p>
			The conventions of symbolic math require that you give a solution for&nbsp;<em>any nonzero&nbsp;value</em> of $a$ and<em>&nbsp;any&nbsp;value </em>of $b$. &nbsp;You specifically are&nbsp;<em>not&nbsp;</em>allowed to pick $a=1$ and $b=33$ and find the value just for those numbers. &nbsp;(Some college calculus students do this with problems involving literal coefficients.)
		</p>
</li>
<li>
<p>
			The little thingy &quot;$(a\neq0)$&quot; must be read as a&nbsp;<em>constraint&nbsp;</em>on $a$. &nbsp;It does not mean that&nbsp;$a\neq0$ is a&nbsp;<em>fact that you ought to know. </em>(&nbsp;I&#39;ve seen college math students make this mistake, admittedly in more complex situations).&nbsp;Nor does it mean that you&nbsp;<em>can&#39;t&nbsp;</em>solve the problem if $a=0$ (you can if $b$ is also zero!).
		</p>
</li>
</ul>
<p>
	So understanding what this&nbsp;problem asks, as given, requires (fairly sophisticated in some cases)&nbsp;<a href="http://abstractmath.org/MM/MMPatternRecognition.htm">pattern recognition</a>&nbsp;both to understand the&nbsp;<a href="http://abstractmath.org/MM/MMSymLang.htm">symbolic language</a>&nbsp;it uses, and also to understand the special conventions of the&nbsp;<a href="http://abstractmath.org/MM/MMMathEnglish.htm">mathematical English</a>&nbsp;that it uses.
</p>
<h3>
	Explicit descriptions<br />
</h3>
<p>
	This problem could be reworded so that it gives an&nbsp;<a href="http://abstractmath.org/MM/MMPatternRecognition.htm#_Toc228171022">explicit description</a>&nbsp;of the problem, not requiring pattern recognition. &nbsp;(Warning: &quot;Not requiring pattern recognition&quot; is a fuzzy concept.) &nbsp;Something like this: &nbsp;
</p>
<blockquote>
<p>
		You have two numbers $a$ and $b$. &nbsp;Find a number $c$ for which if you multiply $a$ by $c$ you get $b$.
	</p>
</blockquote>
<p>
	This version is not completely explicit. &nbsp;It&nbsp;still requires&nbsp;understanding the idea of referring to a number by a letter, and it still requires pattern recognition to catch on that the two occurrences of each letter means that their meanings have to match. Also, I know from experience that some&nbsp;American first year college students have trouble with the syntax of the sentence (&quot;for which&#8230;&quot;, &quot;if&#8230;&quot;).
</p>
<p>
	The following&nbsp;version is more explicit, but it cheats by creating an ad hoc way to distinguish the numbers.
</p>
<blockquote>
<p>
		Alice and Bob each give you a number. &nbsp;How do you find a number with the property that Alice&#39;s number times your number is equal to Bob&#39;s number?&nbsp;
	</p>
</blockquote>
<p>
	If the problem had a couple more variables it would be so difficult to understand in an explicit form&nbsp;that most people would have to draw a picture of the relationships between them. &nbsp;That is why algebraic notation was invented.
</p>
<h3>
	Visual descriptions<br />
</h3>
<p>
	<strong><span style="color:#800080;">Algebra is a difficult foreign language. </span></strong>&nbsp;<em>Showing the problem visually&nbsp;</em>makes it easier to understand for most people. Our brain&#39;s visual processing unit is the most powerful tool the brain has to understand things. &nbsp;There are various ways to do this. &nbsp;
</p>
<p>
	Visualization can help someone <em>understand algebraic notation better</em>. &nbsp;
</p>
<p>
	You can&nbsp;<em>state&nbsp;</em>the problem by producing examples such as
</p>
<ul>
<li>
		$\boxed{3}\times\boxed{\text{??}}=\boxed{6}$&nbsp;
	</li>
<li>
		$\boxed{5}\times\boxed{\text{??}}=\boxed{2}$&nbsp;
	</li>
<li>
		$\boxed{42}\times\boxed{\text{??}}=\boxed{24}$
	</li>
</ul>
<p>
	where the reader has to know the multiplication symbol and, one hopes, will recognize &quot;$\boxed{\text{??}}$&quot;&nbsp;as &quot;What&#39;s the value?&quot;. But the reader does not have to understand what it means to use letters for numbers, or that &quot;$x$ means you are suppose to discover what it is&quot;. &nbsp;This way of writing an algebra problem is used in some software aimed at K-12 students. &nbsp;Some of them use a blank box instead of&nbsp;&quot;$\boxed{\text{??}}$&quot;.
</p>
<p>
	Such software often shows the algorithm for solving the problem visually, using algebraic notation like this: <script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="visualsolvealgnotat.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/visualsolvealgnotat.cdf', 237, 155);
</script>
</p>
<p>
	I have put in some buttons to show numbers as well as $a$ and $b$. &nbsp;If you have access to Mathematica instead of just to CDF player, you can load&nbsp;<a href="http://www.abstractmath.org/Mathematica/SolvEq.nb">SolvEq.nb</a>&nbsp;and put in any numbers you want, but CDF&#39;s don&#39;t allow input data.&nbsp;
</p>
<p>
	You can also illustrate the algorithm using the <em>tree notation for algebra</em> I used in <a href="http://www.abstractmath.org/Word%20Press/?p=7204">Monads for high school I </a>&nbsp;(and other posts). The demo below shows how to depict the value-preserving transformation given by the algorithm. &nbsp;(In this case the value is the <em>truth&nbsp;</em>since the root operation is equals.)
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="VisualSolveTreeNotat.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/VisualSolveTreeNotat.cdf', 131, 194);
</script>
</p>
<p>
	This demo is not as visually satisfactory as the one illustrating the use of the associative law in&nbsp;<a href="http://www.abstractmath.org/Word%20Press/?p=7204" style="font-size: 12.727272033691406px;">Monads for high school I</a>. &nbsp;For one thing, I had to cheat by reversing the placement of $a$ and $x$. &nbsp;Note that I put labels for the numerator and denominator legs, a practice I have been using in demos for a while for noncommutative operations. &nbsp;I await a new inspiration for a better presentation of this and other equation-solving algorithms.
</p>
<p>
	Another advantage of using pictures is that you can often avoid having to code things as letters which then has to be remembered. &nbsp;In Monads for high school I, I used&nbsp;<em>drawings&nbsp;</em>of the four functions from a two-element set to itself instead of assigning them letters. &nbsp;Even mnemonic letters such as $s$ for &quot;switch&quot; and $\text{id}$ for the identity element carry a burden that the picture dispenses with.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=8036</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Naming mathematical objects</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=7871</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=7871#comments</comments>
		<pubDate>Sun, 10 Mar 2013 03:20:49 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[category theory]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[language of math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[algebra]]></category>
		<category><![CDATA[associative]]></category>
		<category><![CDATA[binary operation unary operation]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[commutative]]></category>
		<category><![CDATA[equational logic]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[idempotent]]></category>
		<category><![CDATA[inverse]]></category>
		<category><![CDATA[magma]]></category>
		<category><![CDATA[monoid]]></category>
		<category><![CDATA[nullary operation]]></category>
		<category><![CDATA[semigroup]]></category>
		<category><![CDATA[underlying set]]></category>
		<category><![CDATA[unity element]]></category>
		<category><![CDATA[universal algebra]]></category>
		<category><![CDATA[universe]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=7871</guid>
		<description><![CDATA[Commonword names confuse Many technical words and phrases in math are ordinary English words (&#34;commonwords&#34;) that are assigned a different and precisely defined mathematical meaning. &#160; Group&#160; This sounds to the &#34;layman&#34; as if it ought to mean the same things as &#34;set&#34;. &#160;You get no clue from the name that it involves a binary [...]]]></description>
				<content:encoded><![CDATA[<p>
	<span style="font-size: 11px;"><script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    jax: ["input/TeX","output/NativeMML"],
    extensions: ["tex2jax.js"],
    tex2jax: {
      inlineMath: [ ['$','$'] ],
      processEscapes: true
    }
  });</script></span>
</p>
<h3>
	Commonword names confuse<br />
</h3>
<p>
	Many technical words and phrases in math are ordinary English words (&quot;<a href="http://www.abstractmath.org/Word%20Press/?p=643">commonwords</a>&quot;) that are assigned a different and precisely defined mathematical meaning. &nbsp;
</p>
<ul>
<li>
		<strong>Group</strong>&nbsp; This sounds to the &quot;layman&quot; as if it ought to mean the same things as &quot;set&quot;. &nbsp;You get no clue from the name that it involves a binary operation with certain properties. &nbsp;
	</li>
<li>
		<strong>Formula</strong> &nbsp;In some texts on logic, a formula is a precisely defined expression that becomes a true-or-false sentence (in the semantics) when all its variables are instantiated. &nbsp;So $(\forall x)(x&gt;0)$ is a formula. &nbsp;The word &quot;formula&quot; in ordinary English makes you think of things like &quot;$\textrm{H}_2\textrm{O}$&quot;, which has no semantics that makes it true or false &#8212; it is a symbolic expression for a <i>name.</i>
	</li>
<li>
		<b>Simple group </b>This has a technical meaning: a group with no nontrivial normal subgroup. &nbsp;The <a href="http://en.wikipedia.org/wiki/Monster_group">Monster Group</a> is &quot;simple&quot;. &nbsp;Yes, the technical meaning is motivated by the usual concept of &quot;simple&quot;, but to say the Monster Group is simple causes&nbsp;<a href="http://www.abstractmath.org/MM/MMCognitiveDissonance.htm">cognitive dissonance</a>.
	</li>
</ul>
<p>
	Beginning students come with the (generally subconscious) expectation that they will pick up clues about the meanings of words from connotations they are already familiar with, plus things the teacher says using those words. &nbsp;They think in terms of&nbsp;<em>refining an understanding they already have. &nbsp;</em>This is more or less what happens in most non-math classes. &nbsp;They need to be taught what&nbsp;<strong><a href="http://www.abstractmath.org/MM/MMDefs.htm">definition</a>&nbsp;</strong>means to a mathematician.
</p>
<h3>
	Names that don&#39;t confuse but may intimidate<br />
</h3>
<p>
	Other technical names in math don&#39;t cause the problems that commonwords cause.
</p>
<p>
	<strong>Named after somebody</strong> The phrase &quot;Hausdorff space&quot; leads a math student to understand that it has a technical meaning. &nbsp;They may not even know it is named after a person, but it screams &quot;geek word&quot; and &quot;you don&#39;t know what it means&quot;. &nbsp;That is a signal that you can&nbsp;<em>find out&nbsp;</em>what it means. &nbsp;You don&#39;t&nbsp;<em>assume&nbsp;</em>you know its meaning.&nbsp;
</p>
<p>
	<strong>New made-up words &nbsp;</strong><span>Words such as &quot;affine&quot;, &quot;gerbe&quot; &nbsp;and&nbsp;&quot;logarithm&quot; are made up of words from other languages and don&#39;t have an ordinary English meaning. &nbsp;Acronyms such as&nbsp;&quot;QED&quot;, &quot;RSA&quot; and &quot;FOIL&quot;&nbsp;don&#39;t occur often. &nbsp;I don&#39;t know of any math<em>&nbsp;</em>objects other than &quot;RSA algorithm&quot;&nbsp;that have an acronymic name. &nbsp;(No doubt I will think of one the minute I click the Publish button.) &nbsp;Whole-cloth words such as &quot;googol&quot; are also rare. &nbsp;All these sorts of words would be good to name new things since they do not fool the readers into thinking they know what the words mean. </span>
</p>
<p>
	Both types of words avoid fooling the student into thinking they know what the words mean, but some students are&nbsp;<em>intimidated&nbsp;</em>by the use of words they haven&#39;t seen before. &nbsp;They seem to come to class&nbsp;<em>ready to be snowed. &nbsp;</em>A minority of my students over my 35&nbsp;years of teaching were like that, but that attitude was a real problem for them.
</p>
<h2>
	Audience<br />
</h2>
<p>
	You can write for several different audiences.
</p>
<p>
	<strong>Math fans</strong>&nbsp;(non-mathematicians who are interested in math and read books about it occasionally)&nbsp;<span>In my posts&nbsp;<a href="http://www.abstractmath.org/Word%20Press/?p=5666">Explaining higher math to beginners</a>&nbsp;and in&nbsp;</span><a href="http://www.abstractmath.org/Word%20Press/?p=56">Renaming technical concepts</a><span>,&nbsp;</span>I wrote about several books aimed at explaining some fairly deep math to interested people who are not mathematicians.&nbsp; They <em>renamed </em>some things.&nbsp;<span>For example, Mark Ronan in <a href="http://www.amazon.com/Symmetry-Monster-Greatest-Quests-Mathematics/dp/0192807234">Symmetry and the Monster</a>&nbsp;used the phrase &quot;atom&quot; for &quot;simple group&quot; presumably to get around the cognitive dissonance. &nbsp;There are other examples in my posts. &nbsp;</span>
</p>
<p>
	<strong>Math newbies&nbsp;</strong>&nbsp;(<span>math majors and other students&nbsp;who want to&nbsp;</span><em>understand</em><span style="font-size: 13px; line-height: 1.6em;">&nbsp;some aspect of mathematics).</span>&nbsp; <span style="font-size: 13px; line-height: 1.6em;">These are the people&nbsp;</span><a href="http://www.abstractmath.org/" style="font-size: 13px; line-height: 1.6em;">abstractmath.org</a><span style="font-size: 13px; line-height: 1.6em;"> is aimed at.&nbsp;</span><span style="font-size: 13px; line-height: 1.6em;">For such an audience you generally&nbsp;</span><em style="font-size: 13px; line-height: 1.6em;">don&#39;t&nbsp;</em><span style="font-size: 13px; line-height: 1.6em;">want to rename mathematical objects.&nbsp;In fact, you need to give them a </span>glossary<span style="font-size: 13px; line-height: 1.6em;"> to explain the words and phrases used by people in the subject area. &nbsp;</span><span style="display: none;">&nbsp;</span>
</p>
<p>
	<strong><span style="font-size: 13px; line-height: 1.6em;">Postsecondary math students&nbsp;</span></strong>These people, especially the math majors, have many tasks:
</p>
<ul>
<li>
		Gain an&nbsp;<em>intuitive&nbsp;</em>understanding of the subject matter.
	</li>
<li>
		Understand <em>in practice </em>the logical role of definitions.
	</li>
<li>
		Learn&nbsp;how to come up with&nbsp;proofs.
	</li>
<li>
		Understand the ins and outs of mathematical English, particularly the presence of ordinary English words with technical definitions.
	</li>
<li>
		Understand and master the appropriate parts of the symbolic language of math &#8212; not just what the symbols mean but how to tell a statement from a symbolic name.
	</li>
</ul>
<p>
	It is appropriate for books for math fans and math newbies&nbsp;to try to&nbsp;give an understanding of concepts without necessary proving theorems. &nbsp;That is the aim of much of my work, which has more an emphasis on newbies than on fans. But math majors need <em>as well</em>&nbsp;the traditional emphasis on theorem and proof and clear correct explanations.
</p>
<p>
	Lately, books such as <a href="http://web.bentley.edu/empl/c/ncarter/vgt/">Visual Group Theory</a>&nbsp;have addressed beginning math majors, trying for&nbsp;much more effective ways to help the students develop good intuition, as well as getting into proofs and rigor. <em>Visual Group Theory</em> uses standard terminology. &nbsp;You can contrast it with&nbsp;<a href="http://www.amazon.com/Symmetry-Monster-Greatest-Quests-Mathematics/dp/0192807234" style="font-size: 12.727272033691406px;">Symmetry and the Monster</a>&nbsp;and&nbsp;<a href="http://www.amazon.com/The-Mystery-Prime-Numbers-Creation/dp/0956487904">The Mystery of the Prime Numbers</a>&nbsp;(read the excellent&nbsp;reviews on Amazon) which are clearly aimed at math fans and use nonstandard terminology. &nbsp;
</p>
<h2>
	Terminology for algebraic structures<br />
</h2>
<p>
	I have been thinking about&nbsp;the section of Abstracting Algebra on binary operations. &nbsp;Notice this terminology:
</p>
<h2>
	<a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/03/boptable.jpg"><img alt="boptable" class="alignnone size-full wp-image-7959" height="136" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/03/boptable.jpg" width="525" /></a><br />
</h2>
<h2>
	<span style="font-size: 13px; line-height: 1.6em;">The &quot;standard names&quot; are those in Wikipedia. &nbsp;They give little clue to the meaning, but at least most of them, except &quot;magma&quot; and &quot;group&quot;,&nbsp;</span><em style="font-size: 13px; line-height: 1.6em;">sound technical</em><span style="font-size: 13px; line-height: 1.6em;">, cluing the reader in to the fact that they&#39;d better learn the definition.</span><br />
</h2>
<p>
	I came up with the names in the right column in an attempt to make some sense out of them. &nbsp;The design is somewhat like the names of some chemical compounds. &nbsp;This would be appropriate for a text aimed at <strong>math fans, </strong>but for them you probably wouldn&#39;t want to get into such an exhaustive list.
</p>
<p>
	I wrote various pieces meant to be part of Abstracting Algebra using the terminology on the right, but thought better of it. I realized that I have been vacillating between thinking of AbAl as for math fans and thinking of it as for newbies. I guess I am plunking for newbies.
</p>
<p>
	I will call groups groups, but for the other structures I will use&nbsp;the phrases in the middle column. &nbsp;Since the book is for newbies I will include a table like the one above. &nbsp;I also expect to use tree notation as I did in <a href="http://www.abstractmath.org/Word%20Press/?p=5428">Visual Algebra II</a>, and other graphical devices and interactive diagrams.
</p>
<h3>
	Magmas<br />
</h3>
<p>
	In the sixties magmas were called groupoids or monoids, both of which now mean something else.&nbsp;&nbsp;I was really irritated when the word &quot;magma&quot; started showing up all over Wikipedia. It was the name given by Bourbaki, but it is a&nbsp;<em>bad&nbsp;</em>name because it means something else that is irrelevant. &nbsp;<span style="color:#800080;"><strong>A magma is just&nbsp;<em>any binary operation. </em></strong></span>Why not just call it that? &nbsp;
</p>
<p>
	Well, I will tell you why, based on my experience in Ancient Times (the sixties and seventies) in math. (I started as an assistant&nbsp;professor at Western Reserve University in 1965). In those days people made a distinction between a binary operation and a &quot;set with a binary operation on it&quot;. &nbsp;Nowadays,<em> the concept of&nbsp;function carries with it an implied domain and codomain. &nbsp;</em>So a binary operation is a <strong>function </strong>$m:S\times S\to S$. &nbsp;Thinking of a binary operation this way was just beginning to appear in the common mathematical culture in the late 60&#39;s, and at least one person remarked to me: &quot;I really like this new idea of thinking of &#39;plus&#39;&nbsp;and &#39;times&#39;&nbsp;as functions.&quot; &nbsp;I was startled and thought (but did not say), &quot;Well&nbsp;<em>of course&nbsp;</em>it is a function&quot;. &nbsp;But then, in the late sixties I was being indoctrinated/perverted into&nbsp;category theory by the likes of <a href="http://en.wikipedia.org/wiki/John_Isbell">John Isbell</a> and&nbsp;<a href="http://en.wikipedia.org/wiki/Peter_Hilton">Peter Hilton</a>, both of whom were briefly at Case Western Reserve University. &nbsp;(Also <a href="http://ncatlab.org/nlab/show/Paul+Dedecker">Paul Dedecker</a>, who gave me a glimpse of Grothendieck&#39;s ideas).
</p>
<p>
	Now, the idea that a binary operation is a&nbsp;<em>function&nbsp;</em>comes with the fact that it has a domain and a codomain, and specifically that the domain is the Cartesian square of the codomain. &nbsp;People who&nbsp;<em>didn&#39;t&nbsp;</em>think that a binary operation was a function had to introduce the idea of the&nbsp;<strong>universe</strong> (universal algebraists)<strong>&nbsp;</strong>or the&nbsp;<strong>underlying set </strong>(category theorists): you had to specify it separately and introduce terminology such as $(S,\times)$ to denote the structure. &nbsp; Wikipedia still does it mostly this way, and I am not about to start a revolution to get it to change its ways.
</p>
<h3>
	Groups<br />
</h3>
<p>
	<span style="font-size: 13px; line-height: 1.6em;">In the olden days, people thought of groups in this way:</span>
</p>
<ul>
<li>
		A group is a&nbsp;<strong>set $G$&nbsp;</strong>with a binary operation denoted by juxtaposition<strong>&nbsp;</strong>that is <strong>closed on</strong> $G$,&nbsp;meaning that if $a$ and $b$ are any elements of $G$, then $ab$ is in $G$.
	</li>
<li>
		The operation is&nbsp;<strong>associative,&nbsp;</strong>meaning that if $a,\ b,\ c\in G$, then $(ab)c=a(bc)$.
	</li>
<li>
		The operation has a&nbsp;<strong>unity&nbsp;</strong>element, meaning an element $e$ for which for any element $a\in G$, $ae=ea=a$.
	</li>
<li>
		For each element $a\in G$, there is an element $b$ for which $ab=ba=e$.
	</li>
</ul>
<p>
	This is a better way to describe a group:
</p>
<ul>
<li>
		A <strong>group&nbsp;</strong>consist of&nbsp;a nullary operation&nbsp;<strong>e</strong>, a unary operation&nbsp;<strong>inv,&nbsp;</strong>&nbsp;and a binary operation denoted by juxtaposition, all with the same codomain $G$. (A nullary operation is a map from a singleton set to a set and a unary operation is a map from a set to itself.)
	</li>
<li>
		The value of&nbsp;<strong>e</strong> is denoted by $e$ and the value of <strong>inv</strong>$(a)$ is denoted by $a^{-1}$.
	</li>
<li>
		These operations are subject to the following equations, true for all $a,\ b,\ c\in G$:</p>
<p>
			&nbsp;
		</p>
<ul>
<li>
				<span>$ae=ea=a$.</span>
			</li>
<li>
				<span>$aa^{-1}=a^{-1}a=e$.</span>
			</li>
<li>
				<span>$(ab)c=a(bc)$.</span>
			</li>
</ul>
</li>
</ul>
<p>
	This definition makes it clear that a group is a structure consisting of a set&nbsp;and three operations whose axioms are all equations.&nbsp;<span>&nbsp;It was formulated by people in </span><a href="http://en.wikipedia.org/wiki/Universal_algebra">universal algebra</a><span>&nbsp;but you still see the older form in texts. </span>
</p>
<p>
	<span>The old form is&nbsp;</span><em>not wrong</em><span>, it is merely inelegant.&nbsp; With the old form, you have to prove the unity and inverses are unique before you can introduce notation, and more important, by making it clear that groups satisfy equational logic you get a lot of theorems for free: you construct products on the cartesian power of the underlying set, quotients by congruence relations, and other things. (Of course, in AbAl those theorem will be stated&nbsp;<em>later&nbsp;</em>than when groups are defined&nbsp;<em>because&nbsp;</em>the book is for newbies and you want lots of examples before theorems.)</span>
</p>
<h2>
	References<br />
</h2>
<ol>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=1352">Three kinds of mathematical thinkers</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=1682">Technical meanings clash with everyday meanings</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=643">Commonword names for technical concepts</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=56">Renaming technical concepts</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=5666">Explaining higher math to beginners</a> (G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=5428" style="font-size: 12.727272033691406px;">Visual Algebra II</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=6840">Monads for high school II: Lists</a>&nbsp;(G&amp;G post)
	</li>
<li>
		<a href="http://www.abstractmath.org/Word%20Press/?p=4935">The mystery of the prime numbers: a review</a>&nbsp;(G&amp;G post)
	</li>
<li>
		Hersh, R. (1997a), &quot;Math lingo vs. plain English: Double entendre&quot;. American Mathematical Monthly, volume&nbsp;104, pages 48&ndash;51.
	</li>
<li>
		<a href="http://www.abstractmath.org/MM/MMNames.htm">Names</a> (in abmath)
	</li>
<li>
		<a href="http://www.abstractmath.org/MM/MMCognitiveDissonance.htm">Cognitive dissonance</a> (in abmath)
	</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=7871</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monads for high school II: Lists</title>
		<link>http://www.abstractmath.org/Word%20Press/?p=6840</link>
		<comments>http://www.abstractmath.org/Word%20Press/?p=6840#comments</comments>
		<pubDate>Sun, 03 Mar 2013 01:52:26 +0000</pubDate>
		<dc:creator>SixWingedSeraph</dc:creator>
				<category><![CDATA[abstracting algebra]]></category>
		<category><![CDATA[category theory]]></category>
		<category><![CDATA[exposition]]></category>
		<category><![CDATA[language of math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[representations]]></category>
		<category><![CDATA[understanding math]]></category>
		<category><![CDATA[associative]]></category>
		<category><![CDATA[cartouche]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[monad]]></category>
		<category><![CDATA[sequence]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[triple]]></category>
		<category><![CDATA[tuple]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://www.abstractmath.org/Word%20Press/?p=6840</guid>
		<description><![CDATA[To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the&#160;Wolfram website. The code for the demos is in the Mathematica notebook&#160;Monad.nb. &#160; Introduction This is the second part of a series of posts describing how I will lead up to introducing monads [...]]]></description>
				<content:encoded><![CDATA[<p>
	<span style="font-size: 11px;"><script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    jax: ["input/TeX","output/NativeMML"],
    extensions: ["tex2jax.js"],
    tex2jax: {
      inlineMath: [ ['$','$'] ],
      processEscapes: true
    }
  });</script></span>
</p>
<p>
	<span style="font-family: Helvetica; font-size: 12.800000190734863px;">To manipulate the demos in this post, you must have Wolfram CDF Player installed on your computer. It is available free from the&nbsp;</span><a href="http://www.wolfram.com/cdf-player/" style="font-family: Helvetica; font-size: 12.800000190734863px;">Wolfram website</a><span style="font-family: Helvetica; font-size: 12.800000190734863px;">. The code for the demos is in the Mathematica notebook&nbsp;</span><a href="http://www.abstractmath.org/Mathematica/Monad.nb" style="font-family: Helvetica; font-size: 12.800000190734863px;">Monad.nb</a><span style="font-family: Helvetica; font-size: 12.800000190734863px;">. &nbsp;</span>
</p>
<h2>
	Introduction<br />
</h2>
<p>
	This is the second part of a series of posts describing how I will lead up to introducing monads in my proposed e-book&nbsp;<em style="font-size: 12.800000190734863px;"><a href="http://www.abstractmath.org/Word%20Press/?page_id=7229">Abstracting Algebra</a>&nbsp;</em>(AbAl). It follows <a href="http://www.abstractmath.org/Word%20Press/?p=7204">Monads for high school I</a>. Comments in red are meta and mostly will not be included in the book. &nbsp;
</p>
<h2>
	Lists&nbsp;<br />
</h2>
<p>
	A <strong>list </strong>is a specific kind of&nbsp;<a href="http://www.abstractmath.org/MM/MMMathObj.htm">mathematical object</a>. This is a reasonable <a href="http://www.abstractmath.org/MM/MMDefs.htm#specification">specification </a>for lists:
</p>
<p style="text-align: center;">
	A<span style="font-weight: bold; color: rgb(128, 0, 128);"> list of length&nbsp;$n$ determines and is determined by what its first, second, $\ldots$, $n$th entries are.</span><b>&nbsp;</b>
</p>
<p>
	In this post, lists will always be finite in length.
</p>
<p>
	<span style="color:#B22222;"><span style="font-size:10px;">For doing rigorous proofs you need a precise definition of a list, such as a function from $\{1,2,&#8230;,n\}$ to a set, or a recursive definition. &nbsp;This book is not about proofs.</span></span>
</p>
<h3>
	Terminology and representation<br />
</h3>
<p>
	The most common way in the <a href="http://www.abstractmath.org/MM/MMSymLang.htm">symbolic language of math</a> to represent a finite list is to use a <strong>comma-delimited expression in parentheses.</strong> &nbsp;For example, \[(4,4,2,8)\] is the list of <strong>length&nbsp;</strong>4&nbsp;whose first and second entries are both $4$, third entry $2$ and fourth entry $8$.
</p>
<ul>
<li>
		The&nbsp;<strong>order matters&nbsp;</strong>and&nbsp;<strong>repetitions are allowed.&nbsp;</strong>For example, $(4,4,2,8)$, $(4,2,8)$ and $(4,2,4,8)$ are&nbsp;<em>all different lists.</em>
	</li>
<li>
		Other words for lists are (finite)&nbsp;<strong>sequence</strong>,&nbsp;<strong>word</strong>,<strong> tuple</strong>&nbsp;and&nbsp;<strong>string.</strong>
	</li>
<li>
		Many mathematicians would call $(4,4,2,8)$ an&nbsp;<em>$4$</em>-<strong>tuple</strong>.
	</li>
<li>
		<span style="font-size:10px;"><span style="color:#b22222;">My&nbsp;</span><a href="http://www.abstractmath.org/MM/dm.pdf"><span style="color:#b22222;">Discrete math classnotes</span></a><span style="color:#b22222;">&nbsp;discusses the specification and the definition of lists&nbsp;called&nbsp;<strong>tuples&nbsp;</strong>there)&nbsp;at length on pages 50ff.&nbsp;This section of AbAl will incorporate some of the information there. </span></span>
	</li>
<li>
		Some computer languages represent our list without the commas: $(4\,\,4\,\,2\,\,8)$.
	</li>
<li>
		<a href="http://en.wikipedia.org/wiki/Mathematica">Mathematica</a> represents it this way: $\{4,4,2,8\}$. &nbsp;This conflicts with the usual set notation, where the order does&nbsp;<em>not&nbsp;</em>matter and where repetitions are ignored &nbsp;&#8211; the&nbsp;<em>set&nbsp;</em>$\{4,4,2,8\}$ has&nbsp;<em>three&nbsp;</em>elements. &nbsp;But if you type Length[$\{4,4,2,8\}$] in Mathematica, you get the answer 4.
	</li>
<li>
		A<strong> </strong>list of <a href="http://en.wikipedia.org/wiki/Character_(computing)">characters</a><strong> </strong>(alphabetical, numerical, or other symbols) can be represented <strong>&nbsp;</strong>by writing the characters down in order without spaces between them. &nbsp;For example $(a,a,c,d)$ would be written &quot;aacd&quot;. &nbsp;This representation is referred to as a&nbsp;<strong>string&nbsp;</strong>or as a&nbsp;<strong>word&nbsp;</strong>in computing science. &nbsp;The string &quot;4428&quot; is the base-10 representation of the integer $4,428$. &nbsp;Of course, it is also the hexadecimal representation of the integer $17,448$.&nbsp;
	</li>
<li>
		In the text, I will mostly use a<strong> cartouche&nbsp;</strong>representation: for example, $\boxed{1\ 2\ 3\ 4}$ is the list consisting of the first four positive integers in order.
	</li>
<li>
		<span style="font-size:10px;"><span style="color:#b22222;">The cartouche is more in-your-face than the other representations I&#39;ve listed and as far&nbsp;as I know is not used to mean anything else. &nbsp;I&#39;m not sure I can give any better explanation for why I prefer it than that. &nbsp;Math is supposed to be explicit and precisely defined and justified by clear reasoning, but after all</span> <strong><span style="color:#800080;">deciding which representation to use is&nbsp;not math, it is&nbsp;art.</span></strong></span>
	</li>
</ul>
<h3>
	<span>Lists with entries from a given set</span><br />
</h3>
<p>
	<span>If $S$ is any set, finite or infinite, $\textrm{Lists}(S)$ denotes the set of all lists&nbsp;<em>of finite length</em> whose entries come from $S$. &nbsp;Thus the set&nbsp;$\textrm{Lists}(\{1,\ &nbsp;2,\ &nbsp;3\})$ contains:</span>
</p>
<ul>
<li>
		$\boxed{2\ 2\ 4\ 2\ 2\ 1}$,
	</li>
<li>
		<span>$\boxed{3\ &nbsp;3\ &nbsp;3\ &nbsp;3}$, </span>
	</li>
<li>
		<span>the list of length $42$ whose first entry is $3$ and every other entry is $1$,</span>
	</li>
<li>
		<span>the empty list </span><span style="font-size: 12.800000190734863px;">$\boxed{\vphantom{n}}$,</span>
	</li>
<li>
		<span>the singleton lists $\boxed{1}$,&nbsp;&nbsp;$\boxed{2}$ and&nbsp;&nbsp;$\boxed{3}$, and</span>
	</li>
<li>
		<span>an infinite number of other lists,&nbsp;</span>
	</li>
<li>
		but the list&nbsp;$\boxed{4\ &nbsp;2\ &nbsp;3}$ is<em> not</em> an&nbsp;element of&nbsp;$\textrm{Lists}(\{1,\ &nbsp;2,\ &nbsp;3\})$.
	</li>
</ul>
<p>
	$\textrm{Lists}$<i>&nbsp;</i>is a&nbsp;<strong>function from sets to sets. &nbsp;</strong>Its input is <em>any</em> set and its output is the set of all finitely-long lists whose entries are from the input set. We will also use the similar function&nbsp;<span style="font-size: 12.800000190734863px;">$\textrm{Lists}^+$ which takes a set to the set of&nbsp;<em>nonempty&nbsp;</em>lists with entries from the set.</span>
</p>
<h3 style="color: rgb(178, 34, 34);">
	<span style="color:#000000;">Associativity</span><br />
</h3>
<p>
	(Review from <a href="http://www.abstractmath.org/Word%20Press/?p=7204" style="font-size: 12.800000190734863px;">Monads for high school I</a>.)&nbsp;&nbsp;If a binary operation is associative, then&nbsp;<strong><span style="color:#800080;">the operation is defined on any (finite) list of inputs in its underlying set. </span></strong>&nbsp;For example, the sum of the list&nbsp;$\boxed{4\ 4\ 2\ 8}$ &nbsp;is 18. &nbsp;It follows from associativity that you can add it up as $(4+4)+(2+8)$, $4+(4+(2+8))$, $4+((4+2)+8)$, $(4+(4+2))+8$ or as $((4+4)+2)+8$. &nbsp;They all give the same answer. In other words, Plus is in fact an&nbsp;<strong>operation on lists of numbers.&nbsp;</strong> It is customary to extend associative binary operations to lists of length $0$ and $1$ by setting the value at the empty list to be the identity element of the operation, and the value at a one element list to be its&nbsp;only entry. &nbsp;Thus&nbsp;Plus($\boxed{4\ 4\ 2\ 8}$)$=18$, Plus($\boxed{\ \vphantom{0} }$)$=0$,&nbsp;<span>Times($\boxed{\ \vphantom{0} }$)$=1$</span> and&nbsp;<span>Plus($\boxed{3 }$)$=3$.</span>
</p>
<h2>
	Operations defined on finite lists<br />
</h2>
<h3>
	&nbsp;<span style="font-size: 13px; line-height: 1.6em;">You can join two lists together in order to make one list. &nbsp;</span><br />
</h3>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img src="joinexample1.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/joinexample1.cdf', 258, 149);
</script>
</p>
<p>
	<span><em>The order matters.</em> &nbsp;If you join&nbsp;$\boxed{5\ 7}$ to&nbsp;$\boxed{2\ 12\ 7 }$&nbsp;<em>in that order&nbsp;</em>you get&nbsp;$\boxed{5\ 7\ 2\ 12\ 7}$. &nbsp;</span>
</p>
<p>
	<span>Join is in fact an <strong>associative&nbsp;</strong>binary operation on lists. &nbsp;Example:&nbsp;</span>
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img  src="Joinassoc.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/Joinassoc.cdf', 538, 184);
</script>
</p>
<p>
	This means we can define an operation on&nbsp;<strong>lists of lists</strong> that joins all the lists inside together to make&nbsp;<em>one&nbsp;</em>list.&nbsp;
</p>
<p>
	<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">
var cdf = new cdfplugin();
cdf.setDefaultContent('<a href="http://www.wolfram.com/cdf-player/"><img  src="muexample.png"/></a>');
cdf.embed('http://www.abstractmath.org/Mathematica/muexample.cdf', 343, 110);
</script>
</p>
<p>
	<span>&nbsp;Notice&nbsp;</span><em>the blue rectangle disappears</em><span>&nbsp;when you do the operation.&nbsp;</span>What I have defined here is a function that has a&nbsp;<strong>list of lists&nbsp;</strong>as input and a&nbsp;<strong>list of numbers&nbsp;</strong>as output.
</p>
<p>
	<span>The operation of joining lists to get a single list has a property shown by the drawing below (which will be interactive when I work on it some more). &nbsp;Start on the left with a&nbsp;</span><strong>list of lists of lists.</strong><span style="line-height: 1.6em;">&nbsp; The border colors distinguish the&nbsp;<strong>innermost lists</strong>, bordered in black, from the&nbsp;<strong>second level lists,&nbsp;</strong>in blue, and the&nbsp;<strong>outside list</strong>, bordered in green. </span>
</p>
<ul>
<li>
		<span>There is only one outside list: It is a list of (blue) lists. &nbsp;That is the kind of list you can apply<strong> join</strong> to, so when you do you get a&nbsp;<em>single&nbsp;</em>blue list with five lists inside it (on the bottom of the diagram).</span><span style="font-size:10px;"><span style="color:#B22222;"> &quot;Join outside first&quot; means &quot;apply join to the outside list first&quot;.&nbsp;</span></span>
	</li>
<li>
		<span>The single blue list on the bottom is&nbsp;<em>again</em> the kind of list you can apply join to, and when you do you get the lower list on the right end of the diagram.</span>
	</li>
<li>
		However, the green list also contains two lists each of which is a list of lists that you can apply&nbsp;<strong>join</strong> to. &nbsp;Apply it to&nbsp;<em>both&nbsp;</em>of them and you get the list at the top of the diagram. &nbsp;
	</li>
<li>
		Again, that list is the kind you can apply&nbsp;<strong>join&nbsp;</strong>to and when you do you get the upper list on the right.
	</li>
</ul>
<p>
	<a href="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/03/JoinDiagram.jpg"><img alt="JoinDiagram" class="alignnone size-full wp-image-7801" height="287" src="http://www.abstractmath.org/Word%20Press/wp-content/uploads/2013/03/JoinDiagram.jpg" style="opacity: 0.9;" width="700" /></a>
</p>
<p>
	The two lists on the right are the same. <span style="color:#800080;"><strong>&nbsp;That always happens, whatever lists you start with.</strong></span> &nbsp;(Try it with others, and include some singleton and empty lists while you are at it.)&nbsp;
</p>
<p>
	You might not have thought of this property, and&nbsp;now that you see it, it may look like some sort of second-rate phenom to take note of. &nbsp;Or not. &nbsp;But in fact, it turns out that it means that our modest function&nbsp;<span>&nbsp;$\textrm{Lists}^+$, that takes a set to the nonempty set of lists of its elements&nbsp;is a&nbsp;<strong>monad. &nbsp;</strong>(So is&nbsp;</span><span style="font-size: 12.800000190734863px;">$\textrm{Lists}$.)&nbsp;</span><span>In order to say this we must define some other concepts: <strong>functor</strong> and<strong> natural transformation,</strong> and<strong>&nbsp;</strong>we have to verify a number of </span><span style="font-size: 12.800000190734863px;">other properties of the $\textrm{List}^+$&nbsp;function:</span><span>&nbsp; It is not just a function, it is a&nbsp;functor on the category of sets, the&nbsp;<strong>join&nbsp;</strong>function is a&nbsp;natural transformation, and some other technicalities.</span>
</p>
<p>
	Once we do that, we can define what the&nbsp;<strong>algebras of the join monad</strong> are, and it turns out that they are&nbsp;<em>exactly all the associative binary operations. &nbsp;</em>
</p>
<p>
	In other words:
</p>
<p style="text-align: center;">
	<span><span style="color:#800080;"><strong>The binary operation of join on nonempty lists is the mother of all associative binary operations</strong></span></span>.
</p>
<p>
	But that will have to wait for the next post.
</p>
<h2>
	References<br />
</h2>
<ul>
<li>
		<a href="http://en.wikipedia.org/wiki/Associative_property">Associative</a>&nbsp;in Wikipedia.
	</li>
<li>
		<a href="http://en.wikipedia.org/wiki/Binary_operation">Binary operation</a> in Wikipedia.
	</li>
<li>
		<a href="http://www.abstractmath.org/MM/dm.pdf">Discrete math classnotes</a>, by Charles Wells.
	</li>
<li>
		<a href="http://www.case.edu/artsci/math/wells/pub/pdf/ttt.pdf">Toposes, triples and theories</a>, by Michael Barr and Charles Wells.
	</li>
</ul>
<p>
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abstractmath.org/Word%20Press/?feed=rss2&#038;p=6840</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
