<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>∑idiot&#039;s Blog</title>
	<atom:link href="http://sumidiot.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sumidiot.wordpress.com</link>
	<description>The math fork of sumidiot.blogspot.com</description>
	<lastBuildDate>Sat, 24 Dec 2011 13:04:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sumidiot.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>∑idiot&#039;s Blog</title>
		<link>http://sumidiot.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sumidiot.wordpress.com/osd.xml" title="∑idiot&#039;s Blog" />
	<atom:link rel='hub' href='http://sumidiot.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Printing in foreach&#8217;s dopar</title>
		<link>http://sumidiot.wordpress.com/2011/11/05/printing-in-foreachs-dopar/</link>
		<comments>http://sumidiot.wordpress.com/2011/11/05/printing-in-foreachs-dopar/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 00:55:50 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Play]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=714</guid>
		<description><![CDATA[I&#8217;ve recently been doing some work in R, and using the foreach package for some easy parallelization. I&#8217;d like to be able to spit out logging messages throughout my code, but the print lines always disappear when they are in the code executed by the %dopar% operator. So I&#8217;ve been working on trying to come [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=714&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been doing some work in <a title="The R Project" href="http://www.r-project.org/">R</a>, and using the <a title="CRAN - Package foreach" href="http://cran.r-project.org/web/packages/foreach/index.html">foreach</a> package for some easy parallelization. I&#8217;d like to be able to spit out logging messages throughout my code, but the print lines always disappear when they are in the code executed by the %dopar% operator. So I&#8217;ve been working on trying to come up with a nice way to still capture/print those logging messages without having to change much of my existing code. I think my ultimate goal would be to write another binary operator which I can use as a drop-in replacement for %dopar%, which uses dopar under the covers, and which gets my print lines to the console. I haven&#8217;t quite gotten to that point yet, but I might be close-ish, and, either way, what I&#8217;ve got seems like it could either be useful for others, or something others could suggest how to fix.</p>
<h4>My Setup</h4>
<p>Following <a title="esoteric R | Introducing Closures" href="http://www.lemnica.com/esotericR/Introducing-Closures/">this post</a> on closures in R, I set up most of my code as a bunch of &#8216;objects&#8217; (environments). For example, I construct a logger object by calling the following function:</p>
<p><pre class="brush: r;">
get.logger &lt;- function() {
  logger &lt;- new.env()
  logger$message &lt;- function(str) {
    print(paste(date(), str))
  }
  environment(logger$message) &lt;- logger
  logger
}
</pre></p>
<p>In sort of my &#8216;main&#8217; code, I then do something like logger &lt;- get.logger(), and then pass this logger around to my other objects which do more heavy lifting. For example, I might have a function:</p>
<p><pre class="brush: r;">
guy.using.logger &lt;- function(lgr) {
  guy &lt;- new.env()
  guy$.logger &lt;- lgr
  guy$do.stuff &lt;- function() {
    foreach(i=1:10,
            .inorder=TRUE,
            .export='.logger',
            .init=c(),
            .combine=function(left, right) { c(left, right) }) %dopar% {
      .logger$message(paste('Working on piece', i))
      i^2
    }
  }

  environment(guy$do.stuff) &lt;- guy

  guy
}
</pre></p>
<p>And then I&#8217;d have something like the following in my main code (in addition to setting up the parallel backend and such):</p>
<p><pre class="brush: r;">
logger &lt;- get.logger()
gul &lt;- guy.using.logger(logger)
gul$do.stuff()
</pre></p>
<p>That final line return a vector with 10 elements, the squares of the integers 1 through 10, as expected. However, the thing I&#8217;m trying to overcome is that none of the expected print lines show up on the console.</p>
<h4>Misguided Quest</h4>
<p>I admit that this may be somewhat of a misguided quest. Changing the %dopar% to simply %do%, all of the print lines show up. And maybe I shouldn&#8217;t be doing objects the way I have them. I like to think an argument could be made for still trying to make my logging work within %dopar%. I&#8217;m not going to try to make an argument though. If you think it&#8217;s a useless mission, go find something else to read &#8211; there&#8217;s plenty of other interesting things online. Or stick around anyway, perhaps you&#8217;ll find something interesting here, or be able to help understand whatever it is I&#8217;m missing to make it work the way I want.</p>
<h4>Buffering Messages</h4>
<p>The basic idea I&#8217;ve been working with is to replace the logger with one that doesn&#8217;t actually print lines, but stores them up so they can be retrieved and printed later. So, for starters, I made a buffering logger:</p>
<p><pre class="brush: r;">
get.buffering.logger &lt;- function() {
  logger &lt;- new.env()
  logger$.log &lt;- c()
  logger$message &lt;- function(str) {
    .log &lt;&lt;- c(.log, paste(date(), str))
  }
  logger$get.log &lt;- function() {
    rv &lt;- .log
    .log &lt;&lt;- c()
    rv
  }
  environment(logger$message) &lt;- logger
  environment(logger$get.log) &lt;- logger
  logger
}
</pre></p>
<p>Now, if I just make logger &lt;- get.buffering.logger() and pass that to guy.using.logger, I can&#8217;t successfully ask for the messages after a call to do.stuff(). My guess is that the issue is the lack of thread-safety with vector/c(). This isn&#8217;t too upsetting, because I don&#8217;t really want to be buffering my messages all that long anyway. If I return the logger&#8217;s buffered messages as part of the results at the end of the expression evaluated in %dopar%, then in the .combine of the foreach, I could print those messages there. More explicitly, I could do:</p>
<p><pre class="brush: r;">
complicated.guy.using.logger &lt;- function(lgr) {
  guy &lt;- new.env()
  guy$.logger &lt;- lgr
  guy$do.stuff &lt;- function() {
    combiner &lt;- function(left, right) {
      cat(right$msgs, sep='\n')
      c(left, right$ans)
    }
    foreach(i=1:10,
            .inorder=TRUE,
            .export='.logger',
            .init=c(),
            .combine=combiner) %dopar% {
      .logger$message(paste('Working on piece', i))
      list(ans=i^2, msgs=.logger$get.log())
    }
  }

  environment(guy$do.stuff) &lt;- guy

  guy
}

logger &lt;- get.buffering.logger()
cgul &lt;- complicated.guy.using.logger(logger)
cgul$do.stuff()
</pre></p>
<p>And I get all my print lines, and the same return value from the %dopar% call (the vector of the first ten squares) as before. Admittedly, I&#8217;m a little surprised that this seems to work, now that I think about it. The shared logger is buffering messages for several threads, which seems sort of troublesome. I guess they&#8217;re kept separate enough by the threads, or I&#8217;ve just gotten lucky the twice I&#8217;ve run the code above.</p>
<h4>Jazzing Things Up</h4>
<p>If I only had one or two foreach calls in my code, I&#8217;d probably just fix them as above and be content enough (if the last thread-safety concerns calmed down). However, there&#8217;s clearly room for some automation here. What has to happen?</p>
<ol>
<li>The expression evaluated by %dopar% needs to return whatever it did before, as well as the accumulated messages during the execution.</li>
<li>The combine function needs to return what it did before, and print out the logging messages.</li>
</ol>
<p>The easy part, from my perspective, is the second part. Let&#8217;s assume we can solve number 1, as we did in the previous section. That is, the new block will return a list, with an &#8216;ans&#8217; element which has whatever was returned previously, and a &#8216;msgs&#8217; element. Recall that foreach() actually returns an object of class foreach. Using summary() to get a sense of that object, it seems easy enough to write a function which takes a foreach object and returns a new foreach object which is basically the same as the original, but has a modified .combine function. Let&#8217;s try</p>
<div><pre class="brush: r;">
jazz.fe &lt;- function(fe) {
  r.fe &lt;- fe
  r.fe$combineInfo$fun &lt;- function(left, right) {
    cat(right$msgs, sep='\n')
    fe$combineInfo$fun(left, right$ans)
  }
  r.fe
}
</pre></p>
<p>We need a similar function which modifies the expression to be evaluated (the block of code on the right of %dopar%), so that the return values are manipulated as described above. I messed around a little bit with passing unevaluated expressions around, and came up with the following:</p>
<p><pre class="brush: r;">
jazz.ex &lt;- function(ex) {
  parse(text=c('r&lt;-', deparse(ex), 'list(msgs=.logger$get.log(), ans=r)'))
}
</pre></p>
<p>And then these bits can be used as in the following guy:</p>
<p><pre class="brush: r;">
jazzed.guy.using.logger &lt;- function(lgr) {
  guy &lt;- new.env()
  guy$.logger &lt;- lgr
  guy$do.stuff &lt;- function() {
    jazz.fe(foreach(i=1:10,
            .inorder=TRUE,
            .export='.logger',
            .init=c(),
            .combine=function(left, right) { c(left, right) })) %dopar% eval(jazz.ex(quote({
      .logger$message(paste('Working on piece', i))
      i^2
    })))
  }

  environment(guy$do.stuff) &lt;- guy

  guy
}
</pre></p>
<p>This code should be compared with the very first guy.using.logger. The only difference between the two is that we wrapped the foreach in a function call, and also wrapped the expression in&#8230; a few calls. The ultimate goal of a drop-in %dopar% replacement is tantalizingly close. If all I need to do is call some function on the foreach object, and some other function on the expression, and then I can run %dopar%, that&#8217;s easy:</p>
<p><pre class="brush: r;">
'%jdp%' &lt;- function(fe, ex) {
  jazz.fe(fe) %dopar% eval(jazz.ex(ex))
}
</pre></p>
<p>And then I could just do</p>
<p><pre class="brush: r;">
failing.ultimate.guy.using.logger &lt;- function(lgr) {
  guy &lt;- new.env()
  guy$.logger &lt;- lgr
  guy$do.stuff &lt;- function() {
    foreach(i=1:10,
            .inorder=TRUE,
            .export='.logger',
            .init=c(),
            .combine=function(left, right) { c(left, right) }) %jdp% quote({
      .logger$message(paste('Working on piece', i))
      i^2
    })
  }

  environment(guy$do.stuff) &lt;- guy

  guy
}

logger &lt;- get.buffering.logger()
fgul &lt;- failing.ultimate.guy.using.logger(logger)
fgul$do.stuff()
</pre></p>
<p>No dice:</p>
<pre>&gt; fgul$do.stuff()
Error in e$fun(obj, substitute(ex), parent.frame(), e$data) :
  unable to find variable ".logger"</pre>
<p>Rats. I haven&#8217;t yet found the right combination of quote, eval, substitute, &#8230; to make this work, and I&#8217;ve tried several. I&#8217;ve been reading about environments and frames and lexical scoping and closures, and still haven&#8217;t gotten it right. If I put the definition of %jdp% in the do.stuff function, it actually works. But that&#8217;s ugly. Nothing else I&#8217;ve come up with works and involves as few changes as wrapping the two arguments to the %dopar% operator, as in the jazzed.guy.using.logger above.</p>
<p>So, if anybody&#8217;s got any suggestions, just let me know. In the mean time, I&#8217;ll either poke around in the %dopar% source for inspiration, or move on to other things.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/714/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=714&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2011/11/05/printing-in-foreachs-dopar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
		<item>
		<title>An R Mumble</title>
		<link>http://sumidiot.wordpress.com/2011/09/18/an-r-mumble/</link>
		<comments>http://sumidiot.wordpress.com/2011/09/18/an-r-mumble/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 02:25:02 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=698</guid>
		<description><![CDATA[This weekend I attended beCamp, &#8220;Charlottesville&#8217;s version of the BarCamp unconference phenomenon&#8221;. Basically a tech meetup with talks, talking outside of talks, food, and drinks. All around, a good time. This was my first beCamp, but I enjoyed it, and will probably try to go to others in the future. The way the camp goes, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=698&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This weekend I attended <a title="beCamp" href="http://barcamp.org/w/page/38835401/beCamp2011">beCamp</a>, &#8220;Charlottesville&#8217;s version of the BarCamp unconference phenomenon&#8221;. Basically a tech meetup with talks, talking outside of talks, food, and drinks. All around, a good time. This was my first beCamp, but I enjoyed it, and will probably try to go to others in the future.</p>
<p>The way the camp goes, you show up Friday night and people stand up and say things they <em>could</em> talk about, if there&#8217;s interest. And then people put marks about if they&#8217;d attend or whatever, and a schedule of talks for Saturday comes together. When I signed up for the camp a week beforehand, my intention was to spend some free time during the week preparing a talk about R. Didn&#8217;t happen, but I stood up Friday and said I could maybe say a few words about it anyway. I got a few &#8216;Learn&#8217; checkmarks, indicating a little interest. Lucky for all involved, though, I didn&#8217;t get officially scheduled to talk. Of course, I didn&#8217;t know that until I showed up Saturday, having spent about 2 hours that morning trying to throw something together, just in case. I can&#8217;t say I was too disappointed with not having to talk, though it could have been fun. At lunch, there was about an hour of &#8220;lightning talks&#8221;, just 5 minute talks. While I was sitting there, I figured that would actually be a good amount for me. Just as the line of talkers for that was starting to wind down, and I was thinking about joining it, a handful more queued up. Those talks used all the remaining time, so I was, again, off the hook.</p>
<p>But, hey, I&#8217;ve got this venue, I can talk about stuff whenever I want, right? So here&#8217;s some notes about R I was just about prepared to mumble about Saturday.</p>
<p>According to the <a title="R" href="http://www.r-project.org/">webpage</a>, &#8220;R is a free software environment for statistical computing and graphics.&#8221; It&#8217;s something like an open source clone of the S software for stats processing. The language has some sort of interesting aspects to it, and also some things that really get me sometimes. R has some good built-in &#8220;call for help&#8221; utilities, making it sort of easy to pick up and do fairly interesting things fairly quickly. Perhaps one of the best things is the huge collection of freely available libraries. I&#8217;ll try to talk about some or all of these things, showing by example and not being too formal (me, informal?), but hopefully still fairly close to correct (or, at least, usably incorrect). Folks wishing for more can certainly jump to the official <a title="R introduction" href="http://cran.r-project.org/doc/manuals/R-intro.html">introduction</a>. John D. Cook has some good notes about <a title="Picking up R" href="http://www.johndcook.com/R_language_for_programmers.html">picking up R if you know some programming</a> (I&#8217;m assuming you do), and I also found &#8220;The R Inferno&#8221; [<a title="The R Inferno" href="http://www.burns-stat.com/pages/Tutor/R_inferno.pdf">pdf</a>] informative.</p>
<p>Right, so lets look at some code. I always feel, with a language like R, you don&#8217;t start off with &#8220;Hello World&#8221;, but with calculations. Because it&#8217;s just so novel to have a calculator:</p>
<p><pre class="brush: r;">
&gt; 2+2
[1] 4
&gt; exp(5)
[1] 148.4132
&gt; (1i)^(1i)
[1] 0.2078796+0i
&gt; exp(pi*(1i))
[1] -1+0i
</pre></p>
<p>Those lines with the arrow in front are the input lines, where you type, and the other lines are the output. Anyway, pretty exciting, no?</p>
<p>I should mention that you can reproduce this, or other examples, by running R from the command line, or using R-specific editors (or emacs add-ons). I&#8217;ve been using <a title="RStudio" href="http://rstudio.org/">RStudio</a> recently, and, while it&#8217;s got its issues, it&#8217;s got some nice features too. Worth a check-out.</p>
<p>Ok, so R does the normal hello world too, and has if-statements (imagine!) and for loops (how are you not using it already!?). The &#8216;:&#8217; operator is pretty helpful for making ranges, as the example shows:</p>
<p><pre class="brush: r;">
&gt; print(&quot;hello world&quot;)
[1] &quot;hello world&quot;
&gt; if (TRUE) { print(&quot;yep&quot;) } else { print(&quot;nope&quot;) }
[1] &quot;yep&quot;
&gt; for (n in 1:10) { print(log(n)) }
[1] 0
[1] 0.6931472
[1] 1.098612
[1] 1.386294
[1] 1.609438
[1] 1.791759
[1] 1.94591
[1] 2.079442
[1] 2.197225
[1] 2.302585
</pre></p>
<p>Here&#8217;s an example of writing our own function. Pretty straightforward&#8230; note that &#8216;&lt;-&#8217; is the assignment operator (&#8216;=&#8217; would also work here, but I think &#8216;&lt;-&#8217; is more R-ey). There&#8217;s another assignment operator, &#8216;&lt;&lt;-&#8217;, which, I think, is a little bit of a bad habit to use. It&#8217;s along the lines of making the thing on the left a global variable, but I&#8217;d rather not get too much into that sort of thing (i.e., things I don&#8217;t understand at all, instead of things I can at least pretend a little about). I seem to recall reading somewhere the R using lexical scoping rules. If you know what that means, good for you. I think it applies here, because if we didn&#8217;t assign to <code>fact</code>, then the call to fact at the end of the function would fail. Oh, and note you can return things in R with <code>return()</code>, but more typically results get returned by just having them be the last line of the function (in my (limited) experience).</p>
<p><pre class="brush: r;">
&gt; fact &lt;- function(n) {
+     if (n &lt;= 1) {
+        return(1)
+     }
+     n*fact(n-1)
+ }
&gt; fact(3)
[1] 6
</pre></p>
<p>There&#8217;s a few ways to iterate over a bunch of things and apply a function to each object in turn (i.e., &#8220;map&#8221;). A simple way is with <code>sapply</code>. In the following example, we use <code>sapply</code> to get the factorial of the values 0 to 4, then plot the results with lines connecting the values. We add a title to the plot, and re-plot the points. Note that we pass <code>0:4</code> in to specify the x-coordinates of the values; R indexes from 1 by default (I don&#8217;t hold R personally responsible for this, since they&#8217;re trying to be S-compatible, but still). Anyway, example (run it yourself for the picture):</p>
<p><pre class="brush: r;">
&gt; first.facts &lt;- sapply(0:4, fact)
&gt; plot(0:4, first.facts, xlab=&quot;n&quot;, ylab=&quot;fact(n)&quot;, type=&quot;l&quot;)
&gt; title(&quot;Factorial&quot;)
&gt; points(0:4, first.facts)
</pre></p>
<p>Plotting can get just about as complicated and involved as you&#8217;d like. So now&#8217;s probably a good place to introduce R&#8217;s help system. If you want to find out more about a command, just use &#8216;?&#8217;:</p>
<p><pre class="brush: r;">
&gt; ?plot
</pre></p>
<p>There&#8217;s another help operator, &#8216;??&#8217;, I&#8217;ll use later. (I think I actually saw there&#8217;s a third, &#8216;???&#8217;, but I haven&#8217;t used it). Another cool thing about R is that you can look at the source for functions. Just type the function without the parentheses:</p>
<p><pre class="brush: r;">
&gt; title
function (main = NULL, sub = NULL, xlab = NULL, ylab = NULL,
    line = NA, outer = FALSE, ...)
{
    main &lt;- as.graphicsAnnot(main)
    sub &lt;- as.graphicsAnnot(sub)
    xlab &lt;- as.graphicsAnnot(xlab)
    ylab &lt;- as.graphicsAnnot(ylab)
    .Internal(title(main, sub, xlab, ylab, line, outer, ...))
}
&lt;environment: namespace:graphics&gt;
</pre></p>
<p>Ok, only so informative, since it passes work off with that <code>.Internal</code> call, but the principle is there.</p>
<p>I want to do one more function example, because it shows sort of a fun thing you can do. Most functions allow you to define default values for arguments. R lets you define the value in terms of passed in values. When you call the function, you can pass in values by naming the arguments, so you don&#8217;t have to worry about order. And, when you do, you can actually cheat and use initial substrings of the argument names. An example is in order:</p>
<p><pre class="brush: r;">
&gt; feet.to.yards &lt;- function(feet) {
+   feet/3
+ }
&gt; yards.to.feet &lt;- function(yards) {
+   yards*3
+ }
&gt; feet.to.yards(3)
[1] 1
&gt; yards.to.feet(8)
[1] 24
&gt; convert &lt;- function(feet=yards.to.feet(yards), yards=feet.to.yards(feet)) {
+ 	print(paste(feet, &quot;feet is&quot;, yards, &quot;yards&quot;))
+ }
&gt;
&gt; convert(3)
[1] &quot;3 feet is 1 yards&quot;
&gt; convert(yards=8)
[1] &quot;24 feet is 8 yards&quot;
&gt; convert(y=5)
[1] &quot;15 feet is 5 yards&quot;
</pre></p>
<p>(that example is based on something I read in a blog post, but I can&#8217;t find the link&#8230; it was talking about the things I said in the last paragraph, and did an example of converting polar to cartesian coordinates, if memory serves&#8230;) (Update 20111004 &#8211; <a href="http://blog.moertel.com/articles/2006/01/20/wondrous-oddities-rs-function-call-semantics">found it</a>).</p>
<p>Anyway, I said R was for stats&#8230; we should do some of that.</p>
<p><pre class="brush: r;">
&gt; # random sample of size 100 from normal with mean 7, s.d. 3
&gt; nums &lt;- rnorm(100, 7, 3)
&gt; # calculate sample standard deviation
&gt; sd(nums)
[1] 2.655835
&gt; # plot a histogram
&gt; hist(nums)
&gt; # have a quick look at nums
&gt; summary(nums)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
-0.6268  4.8390  6.8200  6.5500  8.4870 11.8500
</pre></p>
<p>One of the really fun things about R is &#8220;vectorized&#8221; operations (terminology taken from the R Inferno, mentioned above&#8230; could be standard-ish though, I dunno). In particular, the usual arithmetic operations are applied componentwise to vectors (and typing &#8217;2&#8242; is a vector of length one, for example). Shorter vectors are recycled. There&#8217;s lots of ways to make vectors, &#8216;:&#8217; was used above, <code>c()</code> is easy, as is <code>seq()</code>. Anyway, here&#8217;s an example:</p>
<p><pre class="brush: r;">
&gt; (1:10)*c(2,3)
 [1]  2  6  6 12 10 18 14 24 18 30
&gt; c(1*2, 2*3, 3*2, 4*3, 5*2, 6*3, 7*2, 8*3, 9*2, 10*3)
 [1]  2  6  6 12 10 18 14 24 18 30
</pre></p>
<p>Fitting lines to data sounds like a statsy thing to do, and R is for stats, so let&#8217;s do that. Let&#8217;s take the <code>nums</code> we made above and use them as offsets from the line <em>y</em>=5<em>x</em>. Then we&#8217;ll fit a line to that data, and it&#8217;s slope should be pretty close to 5. Note that &#8216;.&#8217; isn&#8217;t special in R like it is in many other languages, so it&#8217;s typically used to separate words in variable names (although, it can be used in formulas, see later). Sort of the equivalent to other languages&#8217; &#8216;.&#8217; is &#8216;$&#8217;, exemplified below.</p>
<p><pre class="brush: r;">
&gt; sloped.nums &lt;- 5*(1:100) + nums
&gt; sloped.line &lt;- lsfit(1:100, sloped.nums)
&gt; print(sloped.line$coefficients)
Intercept         X
 6.256159  5.005810
</pre></p>
<p>I&#8217;ll leave it for the curious to sort out why the intercept is 6ish. Of course, if you&#8217;re running this at home, you&#8217;ll get different numbers, owing to the random sampling. Anyway, we should probably plot the thing and make sure it seems ok:</p>
<p><pre class="brush: r;">
&gt; plot(1:100, sloped.nums)
&gt; abline(sloped.line, col=&quot;RED&quot;)
</pre></p>
<p>Looks fine to me. Of course, it&#8217;d probably be cool to try something with actual data. If you&#8217;ve got a csv sitting around, R is quite good at reading them in. If you don&#8217;t have a csv sitting around, I found some <a title="Census Datasets" href="http://www.census.gov/popest/datasets.html">census data</a>, and it seems R will open csvs across the wire (which is kinda hot).</p>
<p><pre class="brush: r;">
&gt; census &lt;- read.csv(&quot;http://www.census.gov/popest/national/files/NST_EST2009_ALLDATA.csv&quot;)
</pre></p>
<p>So&#8230; what&#8217;d we just get? Well, we could <a title="Census Data Description" href="http://www.census.gov/popest/national/files/NST-EST2009-alldata.pdf">read about it</a>, or just mess with it. We&#8217;ve already seen <code>summary()</code>, so we can try that. Below, I&#8217;ve only shown the top of the output.</p>
<p><pre class="brush: r;">
&gt; summary(census)
     SUMLEV      REGION    DIVISION      STATE               NAME
 Min.   :10.00   0: 1   5      : 9   Min.   : 0.00   Alabama   : 1
 1st Qu.:40.00   1:10   8      : 8   1st Qu.:12.00   Alaska    : 1
 Median :40.00   2:13   4      : 7   Median :27.00   Arizona   : 1
 Mean   :38.07   3:18   1      : 6   Mean   :27.18   Arkansas  : 1
 3rd Qu.:40.00   4:14   0      : 5   3rd Qu.:41.00   California: 1
 Max.   :40.00   X: 1   3      : 5   Max.   :72.00   Colorado  : 1
                        (Other):17                   (Other)   :51
 CENSUS2000POP       ESTIMATESBASE2000   POPESTIMATE2000
 Min.   :   493782   Min.   :   493783   Min.   :   493958
 1st Qu.:  1808344   1st Qu.:  1808344   1st Qu.:  1806962
 Median :  4301261   Median :  4302015   Median :  4328070
 Mean   : 14878497   Mean   : 14878639   Mean   : 14918075
 3rd Qu.:  8186453   3rd Qu.:  8186781   3rd Qu.:  8230161
 Max.   :281421906   Max.   :281424602   Max.   :282171957
</pre></p>
<p>Each of these headers is a name we can use to index into the <code>census</code> object. It&#8217;s technically a &#8220;data frame&#8221;, one of the types in R. That means it&#8217;s basically a (not-necessarily-numeric) matrix (as you might expect from a csv table), each column has the same number of entries, and within a column, all of the entries are the same type (no mixing strings with numbers). The names are the column names, and you can use the &#8216;$&#8217; operator to get at any particular column.</p>
<p><pre class="brush: r;">
&gt; head(census$NAME)
[1] United States Northeast     Midwest       South         West
[6] Alabama
57 Levels: Alabama Alaska Arizona Arkansas California Colorado ... Wyoming
</pre></p>
<p>The last line of output indicates that census$NAME is a &#8220;factor&#8221;, one of the types in R. Basically a list of values all taken from a set. I don&#8217;t want to say too much about it. While I&#8217;m at it, though, we might as well talk about indexing into R objects. It&#8217;s one of the cool things about R. Let&#8217;s grab that NAME column, and convert it to strings:</p>
<p><pre class="brush: r;">
&gt; # $NAME and [['NAME']] do the same thing
&gt; states &lt;- as.character(census[['NAME']])
&gt; states[c(5, 18, 37)]
[1] &quot;West&quot;       &quot;Idaho&quot;      &quot;New Mexico&quot;
&gt; states[-(c(1:10, 15:50))] # negative indices = remove those ones
 [1] &quot;Colorado&quot;                 &quot;Connecticut&quot;
 [3] &quot;Delaware&quot;                 &quot;District of Columbia&quot;
 [5] &quot;Vermont&quot;                  &quot;Virginia&quot;
 [7] &quot;Washington&quot;               &quot;West Virginia&quot;
 [9] &quot;Wisconsin&quot;                &quot;Wyoming&quot;
[11] &quot;Puerto Rico Commonwealth&quot;
&gt; states[c(11:14,51:57)]
 [1] &quot;Colorado&quot;                 &quot;Connecticut&quot;
 [3] &quot;Delaware&quot;                 &quot;District of Columbia&quot;
 [5] &quot;Vermont&quot;                  &quot;Virginia&quot;
 [7] &quot;Washington&quot;               &quot;West Virginia&quot;
 [9] &quot;Wisconsin&quot;                &quot;Wyoming&quot;
[11] &quot;Puerto Rico Commonwealth&quot;
&gt; which(substr(states, 1, 1) == &quot;P&quot;) # substr is, apparently, &quot;vectorized&quot;
[1] 44 57
&gt; states[which(substr(states, 1, 1) == &quot;P&quot;)]
[1] &quot;Pennsylvania&quot;             &quot;Puerto Rico Commonwealth&quot;
</pre></p>
<p>Like I said, <code>census</code> is basically a table. You can pull out rectangular bits of it easily, as the example below shows. And it&#8217;s easy enough to generalize that a little, and start pulling out whatever bits you want. If you leave one of the coordinates in the &#8216;[]&#8216; empty, it means &#8220;everything&#8221;. So <code>census[,]</code> is the same as <code>census</code> (for some definition of &#8220;same as&#8221;).</p>
<p><pre class="brush: r;">
&gt; census[1:6,1:5] # rows 1 to 6, columns 1:5
  SUMLEV REGION DIVISION STATE          NAME
1     10      0        0     0 United States
2     20      1        0     0     Northeast
3     20      2        0     0       Midwest
4     20      3        0     0         South
5     20      4        0     0          West
6     40      3        6     1       Alabama
</pre></p>
<p>Right, we&#8217;re supposed to be doing statsy things. We should be actually playing with the data&#8230; Let&#8217;s pick out some easy bit. Let&#8217;s play with the &#8220;POPESTIMATE2009&#8243;, &#8220;BIRTHS2009&#8243;, and &#8220;DEATHS2009&#8243; values for just the states.</p>
<p><pre class="brush: r;">
&gt; state.rows &lt;- c(6:13, 15:56)
&gt; some.data &lt;- census[state.rows, c(&quot;POPESTIMATE2009&quot;, &quot;BIRTHS2009&quot;, &quot;DEATHS2009&quot;)]
&gt; summary(some.data)
 POPESTIMATE2009      BIRTHS2009       DEATHS2009
 Min.   :  544270   Min.   :  6407   Min.   :  3140
 1st Qu.: 1802408   1st Qu.: 25748   1st Qu.: 14667
 Median : 4403094   Median : 58800   Median : 36536
 Mean   : 6128138   Mean   : 85094   Mean   : 49617
 3rd Qu.: 6647091   3rd Qu.:100143   3rd Qu.: 58657
 Max.   :36961664   Max.   :558912   Max.   :241733
&gt; dim(some.data)
[1] 50  3
&gt; colnames(some.data)
[1] &quot;POPESTIMATE2009&quot; &quot;BIRTHS2009&quot;      &quot;DEATHS2009&quot;
&gt; rownames(some.data)
 [1] &quot;6&quot;  &quot;7&quot;  &quot;8&quot;  &quot;9&quot;  &quot;10&quot; &quot;11&quot; &quot;12&quot; &quot;13&quot; &quot;15&quot; &quot;16&quot; &quot;17&quot; &quot;18&quot; &quot;19&quot; &quot;20&quot; &quot;21&quot;
[16] &quot;22&quot; &quot;23&quot; &quot;24&quot; &quot;25&quot; &quot;26&quot; &quot;27&quot; &quot;28&quot; &quot;29&quot; &quot;30&quot; &quot;31&quot; &quot;32&quot; &quot;33&quot; &quot;34&quot; &quot;35&quot; &quot;36&quot;
[31] &quot;37&quot; &quot;38&quot; &quot;39&quot; &quot;40&quot; &quot;41&quot; &quot;42&quot; &quot;43&quot; &quot;44&quot; &quot;45&quot; &quot;46&quot; &quot;47&quot; &quot;48&quot; &quot;49&quot; &quot;50&quot; &quot;51&quot;
[46] &quot;52&quot; &quot;53&quot; &quot;54&quot; &quot;55&quot; &quot;56&quot;
&gt; rownames(some.data) &lt;- as.character(census$NAME[state.rows])
&gt; head(some.data)
           POPESTIMATE2009 BIRTHS2009 DEATHS2009
Alabama            4708708      62265      47157
Alaska              698473      11307       3140
Arizona            6595778     103956      49657
Arkansas           2889450      40539      28003
California        36961664     558912     241733
Colorado           5024748      72537      31679
</pre></p>
<p>To get an idea how the variables relate to each other, you can plot each of them against each of the others quickly, with <code>pairs()</code>:</p>
<p><pre class="brush: r;">
&gt; pairs(some.data)
</pre></p>
<p><a href="http://sumidiot.files.wordpress.com/2011/09/census-plot.png"><img class="aligncenter size-medium wp-image-707" title="census-plot" src="http://sumidiot.files.wordpress.com/2011/09/census-plot.png?w=300&#038;h=245" alt="" width="300" height="245" /></a></p>
<p>We fit a line to data earlier, and can expand on that here. Let&#8217;s model the population estimate given the births and deaths. I&#8217;m not trying to display some dazzling insight into the data, just show how easy it is in R to do this sort of thing.</p>
<p><pre class="brush: r;">
&gt; l &lt;- lm(POPESTIMATE2009 ~ ., data=some.data
&gt; print(l)

Call:
lm(formula = POPESTIMATE2009 ~ ., data = some.data)

Coefficients:
(Intercept)   BIRTHS2009   DEATHS2009
  -73663.83        42.52        52.07

&gt; summary(l)

Call:
lm(formula = POPESTIMATE2009 ~ ., data = some.data)

Residuals:
     Min       1Q   Median       3Q      Max
-1074015  -205561   -12694   171717   997020

Coefficients:
              Estimate Std. Error t value Pr(&gt;|t|)
(Intercept) -73663.831  70178.173   -1.05    0.299
BIRTHS2009      42.518      1.540   27.62   DEATHS2009      52.075      3.099   16.80   ---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 342400 on 47 degrees of freedom
Multiple R-squared: 0.9976,	Adjusted R-squared: 0.9975
F-statistic:  9652 on 2 and 47 DF,  p-value: &lt; 2.2e-16
</pre></p>
<p>That looks good and statsy.</p>
<p>If you don&#8217;t have your own data, by the way, R comes with some, and many libraries bring in their own, for examples. Just poking around a little (here&#8217;s to tab completion), I found, for example, that R comes with a data frame with state-by-state arrest counts by crime (<code>USArrests&lt;/code). I mentioned earlier that '?' is good for getting help on a command. If you want to find a command to use, use '??'. This frequently returns lists of packages that you can poke at. One of the great things about R is that many of the libraries you can install come with 'vignettes', providing a little tutorial on some of the tools in the package. R makes it very easy to install packages (<code>install.packages()</code>).</code></p>
<p>I&#8217;m sort of running out of steam for the evening, so think I may wrap this up. I had sort of envisioned talking about a couple of fun packages. Guess I&#8217;ll save that for another post (this has gotten long anyway), and try to do some cool examples, with prettier pictures.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/698/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/698/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=698&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2011/09/18/an-r-mumble/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2011/09/census-plot.png?w=300" medium="image">
			<media:title type="html">census-plot</media:title>
		</media:content>
	</item>
		<item>
		<title>The Prime Number Theorem</title>
		<link>http://sumidiot.wordpress.com/2011/07/09/the-prime-number-theorem/</link>
		<comments>http://sumidiot.wordpress.com/2011/07/09/the-prime-number-theorem/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 00:48:16 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[pnt]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=694</guid>
		<description><![CDATA[So one of the few math books I&#8217;m still fairly interested in poking at sooner rather than later, since graduating and moving on to a computer programming job, is &#8220;The Prime Number Theorem&#8221;,  by Jameson. It claims to be accessible at the undergraduate level, so I&#8217;m sort of optimistic I can follow it. When I&#8217;m [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=694&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So one of the few math books I&#8217;m still fairly interested in poking at sooner rather than later, since graduating and moving on to a computer programming job, is &#8220;The Prime Number Theorem&#8221;,  by Jameson. It claims to be accessible at the undergraduate level, so I&#8217;m sort of optimistic I can follow it. When I&#8217;m feeling ambitious, I figure I&#8217;ll read the book and do the exercises, and even write posts about what I learn as I go. And cook more. And eat healthier. And&#8230;</p>
<p>Right, so I started reading, and got to the first set of exercises. I know I&#8217;ve done the second and third before. The second (show there are arbitrarily large gaps between primes) I actually remember doing from my freshman year as an undergraduate, so didn&#8217;t put much into it. The third (show <img src='http://s0.wp.com/latex.php?latex=p_n%5Cleq+2%5E%7B2%5E%7Bn-1%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_n&#92;leq 2^{2^{n-1}}' title='p_n&#92;leq 2^{2^{n-1}}' class='latex' /> and that this implies <img src='http://s0.wp.com/latex.php?latex=%5Cpi%28x%29%5Cgeq+%28%5Clog%5Clog+x%29%2F%28%5Clog+2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi(x)&#92;geq (&#92;log&#92;log x)/(&#92;log 2)' title='&#92;pi(x)&#92;geq (&#92;log&#92;log x)/(&#92;log 2)' class='latex' />) I remembered doing while I was reading Hardy &amp; Wright more recently, and decided to see if I could get the inequalities right again. It took a few minutes, but I think I got there.</p>
<p>The first exercise, though, took me an embarrassing amount of time. Good start, huh? The problem reads:</p>
<p style="padding-left:30px;">Let <em>n </em>≥ 1 and let <em>E </em>= {30<em>n</em>+<em>r</em> : 0 ≤ r ≤ 29}. For which values of <em>r</em> is 30<em>n+r</em> not a multiple of 2, 3, or 5? By considering the possible positions of multiples of 7, show that <em>E</em> contains at most seven primes (seven cases, no short cuts!)</p>
<p>Ok, so the first part of that question I got without much difficulty (actually, I got <em>wrong</em> without much difficulty). It&#8217;s just all the other primes bigger than 5 but less than 30: 7, 11, 13, 17, 19, 23, 29 (see my error yet?). The second part got me though (since I got the first part wrong). There&#8217;s only 7 numbers in that list I just picked out, so what more is there to show? Any 30<em>n+r</em> that&#8217;s prime must have an <em>r</em> from that list, because everybody else is divisible by 2, 3, or 5, right?</p>
<p>Nope. Stupid 1. The case <em>r</em>=1 isn&#8217;t accounted for. So that means that primes could actually show up in any of 8 spots. So that&#8217;s where the hint about multiples of 7 comes in. The first multiple of 7 in the 30 consecutive integers comprising <em>E</em> corresponds to <em>r</em> = 0, 1, &#8230;, 6, and then for any of those choices, you can easily write down what the other multiples of 7 are. For example, if the first multiple of 7 in <em>E</em> is with <em>r</em> = 3, then the other multiples are at 10, 17, and 24. Notice that, in this case, the prime 17 would have to get taken out of the 8 possible spots for primes (since it is now known to be a multiple of 7), and we&#8217;d be down to 7 primes. The same thing happens in the other 6 cases about the multiples of 7, and we obtain the result.</p>
<p>So that slightly rocky start, those 5 pages of reading and 3 exercises, took just under a week, start to finish (not that I was actively working on it that every day). And, in all honestly, I only sorted out that first one when I sat down to start writing, here, that I couldn&#8217;t figure it out. But whatever. There&#8217;s my first post since graduation. Perhaps I&#8217;ll keep learning some math after all (in addition to the math/stats sorts of things I&#8217;m learning for work). Here&#8217;s to fewer errors in section 2!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/694/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/694/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=694&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2011/07/09/the-prime-number-theorem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
		<item>
		<title>A Math Prezi</title>
		<link>http://sumidiot.wordpress.com/2010/11/21/a-math-prezi/</link>
		<comments>http://sumidiot.wordpress.com/2010/11/21/a-math-prezi/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 03:08:00 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Play]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[beamer]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[prezi]]></category>
		<category><![CDATA[pstricks]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=685</guid>
		<description><![CDATA[Recently I had to give a math talk about my work. Previous talks I&#8217;ve given I just did on the chalkboard, but this being my last math talk for a while, I thought I might finally try Beamer (nice quickstart). And then I realized I should try Prezi. I thought I&#8217;d share my exploration with you, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=685&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I had to give a math talk about my work. Previous talks I&#8217;ve given I just did on the chalkboard, but this being my last math talk for a while, I thought I might finally try <a href="http://latex-beamer.sourceforge.net/">Beamer</a> (nice <a href="http://latex-beamer.sourceforge.net/">quickstart</a>). And then I realized I should try <a href="http://prezi.com/index/">Prezi</a>. I thought I&#8217;d share my exploration with you, in case you try to decide about something similar. If you want to just cut to the chase and see the final Beamer work (<a href="http://people.virginia.edu/~nah7n/content/beamer_prezi.pdf">pdf</a> or <a href="http://people.virginia.edu/~nah7n/content/beamer_prezi.tar.gz">source tarball</a>), or <a href="http://prezi.com/lh1dvfpzikzl/">the final Prezi</a>, go for it. If for some strange reason you actually care about the math, you&#8217;re welcome to read the paper (<a href="http://people.virginia.edu/~nah7n/content/phd_thesis.pdf">pdf</a> or <a href="http://people.virginia.edu/~nah7n/content/phd_thesis.tar.gz">source tarball</a>) my presentation was based on. My final recommendation: stick with Beamer (<a href="http://community.prezi.com/prezi/topics/tex_latex_support">until</a> Prezi <a href="http://community.prezi.com/prezi/topics/are_you_going_to_implement_tex_support">starts</a> handling TeX).</p>
<p>I <a href="http://prezi.com/hhnawwlsgnnu/">started off</a> making a Prezi just to see how it worked, how easy it was to use and such. It&#8217;s pretty simple to use, which is nice. Of course, as one comes to expect, it doesn&#8217;t handle LaTeX. Ok, so, no worries, I&#8217;ll just do some TeX to make pictures I need, and insert pictures. Prezi will actually let you put in pdfs. So what you could do is make a beamer presentation, with a very basic template and no titles, and then use &#8220;pdftk&#8221; to &#8220;burst&#8221; the pdf, making a single pdf for each frame, and then use <a href="http://www.imagemagick.org/">ImageMagick</a>&#8216;s &#8220;convert&#8221; to change the file type, do some cropping and trimming and things (if desired), and then load all those little pictures where you want them. You probably won&#8217;t want to use the actual pictures as path steps in your prezi, because it&#8217;ll zoom all the way in, but that&#8217;s ok, because you can just wrap a hidden frame where you want it.</p>
<p>So I then made <a href="http://prezi.com/hotmzyn3o0es/">another prezi</a>, putting text where I wanted, thinking I&#8217;d then go in and make lots of little pictures, and put them where I wanted. This prezi did lots more zooming and twisting, so it was sorta fun, but I did worry a little if it might turn some people off (or make them motion sick <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). And then I realized I didn&#8217;t really want to make all of those little pictures, that the fonts wouldn&#8217;t match, and that I&#8217;d probably still have resolution issues (I couldn&#8217;t find an easy way to make, say, svgs, from tex).</p>
<p>Ok, so, maybe I could cheat a little bit. You can get away with a lot if you just use italics for math. I thought maybe I could use this for most of the math, and then rely on fewer pictures to have to insert. Sadly, prezi won&#8217;t do italics (or underline, or bold!). That was fairly surprising to me. No LaTeX I basically expect, but no italics? Well, ok, maybe I can cheat another way. Surely there&#8217;s Unicode characters for most of what I want, I could just type those in. But no, prezi (I&#8217;d happily blame flash here, I don&#8217;t know what wasn&#8217;t really working) wouldn&#8217;t do that either. I&#8217;d type unicode characters, and nothing would show up. I&#8217;d copy a unicode character typed elsewhere, and try to paste it in, and nothing. Sigh.</p>
<p>I pretty much gave up at that point, and made a beamer presentation. But the prezi urge just wouldn&#8217;t die. I decided that if I took whole frames from my beamer presentation, and added those to my prezi, I would (a) have consistent fonts, (b) wouldn&#8217;t have lots of tiny pictures to upload, and (c) probably wouldn&#8217;t do as much twisting and spinning and zooming, and would maybe, then, end up with a better presentation. One could pdftk burst and convert like I mentioned before, but I think I was having some issues getting good resolution that way (looking back, I question this, so you may want to play around). So I decided I could take screenshots of every frame, when it was in full-screen mode, and use those as my pictures. ImageMagick&#8217;s &#8220;import&#8221; takes screenshots, and with the &#8216;window -root&#8217; option, it grabs full-screen. I don&#8217;t know how to force xpdf to turn the page from outside the program, so I set up a quick little bash script that would beep, sleep 2 seconds, and then import a screenshot. Switch workspace to my full-screened xpdf (put &#8216;xpdf*FullScreenMatteColor: white&#8217; in .Xdefaults and do &#8216;xrdb -merge .Xdefaults&#8217; before running xpdf), and just press the spacebar after every beep. Badabing. 2-3 minutes later, and I&#8217;ve got a 1280&#215;800 image of every frame from my presentation. Upload to prezi, twist, zoom, and you&#8217;re done.</p>
<p>Except, no. Prezi has the dis-fortune of having to work on any screen resolution. I don&#8217;t know what they&#8217;re magic zoomer does to decide how to zoom, but things don&#8217;t go great if you try to present my prezi fullscreen at a different resolution. And, unfortunately, I ended up in a room with a computer whose screen was at a different resolution, and that I wasn&#8217;t allowed to change. So I fell back on my beamer talk. :-/ People said it was good anyway.</p>
<p>According to the <a href="http://community.prezi.com/prezi/topics/are_you_going_to_implement_tex_support">support forums</a> and <a href="http://community.prezi.com/prezi/topics/how_to_latex_in_prezi_while_waiting_for_real_latex_support">associated prezi</a>, I maybe should have been able to figure this out. Perhaps converting to pngs was my downfall. I really thought I tried keeping things as pdfs. I&#8217;ve been wrong before. Oh well, it&#8217;s over now. And I did learn other fun stuff with all this fiddling.</p>
<p>While I was doing all this, I finally figured out how to use pstricks to do text in a circle (or along other paths). I think I&#8217;ve tried before, but never quite figured out what was going on with \PSforPDF, even if I was able to put text on a path. But this time I got it, thanks to <a href="http://www.tn-home.de/Tobias/Soft/TeX/TUG040611/presentation-doc.pdf">this presentation</a> [pdf] (which I probably looked at before, too). If you&#8217;re working on project.tex, put all the pstricks stuff in \PSforPDF blocks, run latex, dvips, and ps2pdf, eventually outputting project-pics.pdf. Then when you run pdflatex project.tex, since you&#8217;re doing pdflatex instead of latex, \PSforPDF probably expands to some sort of \includegraphics[project-pics], and imports the *-pics.pdf (making that -pics assumption about the filename) you just made. Good stuff. LaTeX will probably be one of the things I miss the most about getting out of mathematics in academia.</p>
<div class="prezi-player">
<div class="prezi-player-links"></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/685/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/685/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/685/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=685&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2010/11/21/a-math-prezi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
		<item>
		<title>Palindromes in Python</title>
		<link>http://sumidiot.wordpress.com/2010/10/23/palindromes-in-python/</link>
		<comments>http://sumidiot.wordpress.com/2010/10/23/palindromes-in-python/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 03:49:30 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Play]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=675</guid>
		<description><![CDATA[So you may have noticed my lack of math posts recently. Things change, you know. I might still have a few left in me, at some point. Either way, this blog may start having more programming. I&#8217;m putting this one here instead of at Euler&#8217;s Circus, only because it&#8217;s not a Project Euler problem. Getting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=675&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you may have noticed my lack of math posts recently. Things change, you know. I might still have a few left in me, at some point. Either way, this blog may start having more programming. I&#8217;m putting this one here instead of at <a href="http://eulerscircus.wordpress.com/">Euler&#8217;s Circus</a>, only because it&#8217;s not a <a href="http://projecteuler.net/">Project Euler</a> problem. Getting on toward time to consolidate my blogging&#8230; maybe when I&#8217;m done with grad school (soon!).</p>
<p>Anyway, right. So here&#8217;s a programming post. I&#8217;m not sure how I came across the <a href="http://programmingpraxis.com/">Programming Praxis</a> blog, but one of their recent posts caught my eye: <a href="http://programmingpraxis.com/2010/10/15/find-the-longest-palindrome-in-a-string/">find the longest palindrome in a string</a>. Given a string, what is the longest palindrome contained in that string? I thought about it (<em>actually</em> thought about it, instead of just thinking I would like to think about it) for a few minutes this evening, and came up with a little something that pleased me. <a href="http://python.org/">Python</a>&#8216;ll do that.</p>
<p>So the idea is to build an array whose n-th item is an array of all of the indices in the string where a palindrome of length n begins. I guess that means I think of this array as 1-based, instead of 0-based, but whatever. The reason I like this idea is that if you&#8217;ve found all of the palindromes of length less than n, you can easily pick out the indices where palindromes of length n start as those indices, i, where (1) the string has the same character at i and i+n-1, and (2) i+1 is a palindrome of length n-2. The other reason I like this idea is that it&#8217;s really easy in python:</p>
<p><pre class="brush: python;">
# assume text is a string of only lowercase letters, nothing else
text = &quot;astringiwouldreallyliketofindlongpalindromesin&quot;
tlen = len(text) # convenience, it's a few characters shorter to type
# keep track of where palindromes of all lengths are
# longs[n][m] = 1 if there is an (n+1)-digit pali beginning at index m
# and longs[n][m] is undefined otherwise
# prep longs with the easy cases, 1- and 2-digit palindromes
longs = [ [n for n in xrange(0,tlen)],
          [n for n in xrange(0,tlen-1) if text[n] == text[n+1]] ]

# iterate
while len(longs[-1]) &gt; 0 or len(longs[-2]) &gt; 0:
    curlen = len(longs)
    longs.append([n for n in xrange(0, tlen-curlen)
                  if text[n] == text[n+curlen]
                  and n+1 in longs[-2]])

winners = longs[-3] # [-1] and [-2] are empty, after all
winlen = len(longs)-2
print &quot;\n&quot;.join([text[n:n+winlen] for n in winners])
</pre></p>
<p>So, there&#8217;s that. All of the interesting work gets done in that one line in the loop. You gotta be a little bit careful, watching for off-by-ones, but this seems to work. I thought about trying some other algorithms to compare efficiency. But I like this one, even if I&#8217;d eventually find it isn&#8217;t the best in terms of efficiency. I had another little bit in there that I eventually realized was unnecessary, but I still thought was fun:</p>
<p><pre class="brush: python;">
# build a dictionary, character: array, called locs, with
# locs[c] = [locations of occurences of 'c' in text]
locs = dict([(c,[]) for c in string.lowercase])
map(lambda nc:locs[nc[1]].append(nc[0]), enumerate(text))
</pre></p>
<p>There may be a built-in python-y way to do this, but I like this anyway. I guess I&#8217;m just a sucker for map. And list comprehension.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/675/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=675&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2010/10/23/palindromes-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
		<item>
		<title>A homotopy limit description of the embedding functor</title>
		<link>http://sumidiot.wordpress.com/2010/02/25/a-homotopy-limit-description-of-the-embedding-functor-5/</link>
		<comments>http://sumidiot.wordpress.com/2010/02/25/a-homotopy-limit-description-of-the-embedding-functor-5/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 02:01:25 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=647</guid>
		<description><![CDATA[(Approximate notes for a talk I gave this afternoon.) Setup So according to the title, I should be telling you about , as a functor of manifolds and . That’s perhaps a bit ambitious. I’ll only be thinking about , a disjoint union of closed disks, and I’ll actually fix . And instead of letting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=647&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>(Approximate notes for a talk I gave this afternoon.)</p>
<p><strong>Setup</strong></p>
<p>So according to the title, I should be telling you about <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7BEmb%7D%28M%2CN%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {Emb}(M,N)}' title='{&#92;text {Emb}(M,N)}' class='latex' />, as a functor of manifolds <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BN%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{N}' title='{N}' class='latex' />. That’s perhaps a bit ambitious. I’ll only be thinking about <img src='http://s0.wp.com/latex.php?latex=%7BM%3D%5Ccoprod+_%7Bm%7D+D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M=&#92;coprod _{m} D^{n}}' title='{M=&#92;coprod _{m} D^{n}}' class='latex' />, a disjoint union of closed disks, and I’ll actually fix <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' />. And instead of letting <img src='http://s0.wp.com/latex.php?latex=%7BN%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{N}' title='{N}' class='latex' /> range over any manifolds, it’ll just be <img src='http://s0.wp.com/latex.php?latex=%7BV%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{V}' title='{V}' class='latex' />, ranging over real vector spaces.</p>
<p>By taking derivatives at centers, we obtain a homotopy equivalence from <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7BEmb%7D%28M%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {Emb}(M,V)}' title='{&#92;text {Emb}(M,V)}' class='latex' /> to something I’ll maybe denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7BAffEmb%7D_%7B0%7D%28%5Ccoprod+_%7Bm%7D+%5Cmathbb+%7BR%7D%5E%7Bn%7D%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {AffEmb}_{0}(&#92;coprod _{m} &#92;mathbb {R}^{n},V)}' title='{&#92;text {AffEmb}_{0}(&#92;coprod _{m} &#92;mathbb {R}^{n},V)}' class='latex' />. This is componentwise affine (linear followed by translation) maps <img src='http://s0.wp.com/latex.php?latex=%7B%5Ccoprod+_%7Bm%7D+%5Cmathbb+%7BR%7D%5E%7Bn%7D%5Cto+V%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;coprod _{m} &#92;mathbb {R}^{n}&#92;to V}' title='{&#92;coprod _{m} &#92;mathbb {R}^{n}&#92;to V}' class='latex' /> whose restriction to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cepsilon+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;epsilon }' title='{&#92;epsilon }' class='latex' />-balls around the 0s is an embedding. I may use <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%3D%5C%7B1%2C%5Cldots+%2Cm%5C%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}=&#92;{1,&#92;ldots ,m&#92;}}' title='{&#92;underline{m}=&#92;{1,&#92;ldots ,m&#92;}}' class='latex' />, and write <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%5Ctimes+%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}&#92;times &#92;mathbb {R}^{n}}' title='{&#92;underline{m}&#92;times &#92;mathbb {R}^{n}}' class='latex' />. And I’ll actually send everything to spectra, instead of topological spaces, via <img src='http://s0.wp.com/latex.php?latex=%7B%5CSigma+%5E%7B%5Cinfty+%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Sigma ^{&#92;infty }}' title='{&#92;Sigma ^{&#92;infty }}' class='latex' />.</p>
<p>So really I’ll be talking about</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7BAffEmb%7D_%7B0%7D%28%5Cunderline%7Bm%7D%5Ctimes+%5Cmathbb+%7BR%7D%5E%7Bn%7D%2CV%29++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {AffEmb}_{0}(&#92;underline{m}&#92;times &#92;mathbb {R}^{n},V)  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {AffEmb}_{0}(&#92;underline{m}&#92;times &#92;mathbb {R}^{n},V)  ' class='latex' /></p>
<p>as a functor of <img src='http://s0.wp.com/latex.php?latex=%7BV%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{V}' title='{V}' class='latex' />. I’ll be lazy and write it <img src='http://s0.wp.com/latex.php?latex=%7B%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7BEmb%7D%28M%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)}' title='{&#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)}' class='latex' />, having fixed an <img src='http://s0.wp.com/latex.php?latex=%7Bm%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{m}' title='{m}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7Bn%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{n}' title='{n}' class='latex' /> to give <img src='http://s0.wp.com/latex.php?latex=%7BM%3D%5Cunderline%7Bm%7D%5Ctimes+D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M=&#92;underline{m}&#92;times D^{n}}' title='{M=&#92;underline{m}&#92;times D^{n}}' class='latex' />.</p>
<p><strong>Useful Cases</strong></p>
<p>The first useful case is when <img src='http://s0.wp.com/latex.php?latex=%7BM%3D%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M=&#92;underline{m}}' title='{M=&#92;underline{m}}' class='latex' /> (i.e., <img src='http://s0.wp.com/latex.php?latex=%7Bn%3D0%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{n=0}' title='{n=0}' class='latex' />). Then embeddings are just configuration spaces, <img src='http://s0.wp.com/latex.php?latex=%7BF%28m%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{F(m,V)}' title='{F(m,V)}' class='latex' />. I’ve talked before about a homotopy limit model in this case, but let me remind you about it.</p>
<p>The category I have in mind is something I’ll denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BP%7D+%28m%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{P} (m)}' title='{&#92;mathcal{P} (m)}' class='latex' />. Objects will be non-trivial partitions of <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}}' title='{&#92;underline{m}}' class='latex' />, and I’ll probably denote them <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda }' title='{&#92;Lambda }' class='latex' />, perhaps writing <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%5Cvdash+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda &#92;vdash &#92;underline{m}}' title='{&#92;Lambda &#92;vdash &#92;underline{m}}' class='latex' />. Non-trivial means that some equivalence class is larger than a singleton. I’ll write <img src='http://s0.wp.com/latex.php?latex=%5CLambda%5Cleq+%5CLambda%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Lambda&#92;leq &#92;Lambda&#039;' title='&#92;Lambda&#92;leq &#92;Lambda&#039;' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda }' title='{&#92;Lambda }' class='latex' /> is finer than <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda&#039;}' title='{&#92;Lambda&#039;}' class='latex' />, meaning that whenever <img src='http://s0.wp.com/latex.php?latex=%7Bx%5Cequiv+y%5Cpmod%7B%5CLambda+%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{x&#92;equiv y&#92;pmod{&#92;Lambda }}' title='{x&#92;equiv y&#92;pmod{&#92;Lambda }}' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%7Bx%5Cequiv+y%5Cpmod%7B%5CLambda+%27%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{x&#92;equiv y&#92;pmod{&#92;Lambda &#039;}}' title='{x&#92;equiv y&#92;pmod{&#92;Lambda &#039;}}' class='latex' />.</p>
<p>The functor I want is something I’ll denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28-%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(-,V)}' title='{&#92;text {nlc}(-,V)}' class='latex' /> and call “non-locally constant” maps. So <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28%5CLambda+%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(&#92;Lambda ,V)}' title='{&#92;text {nlc}(&#92;Lambda ,V)}' class='latex' /> is the set (space) of maps <img src='http://s0.wp.com/latex.php?latex=%7Bf%3A%5Cunderline%7Bm%7D%5Cto+V%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:&#92;underline{m}&#92;to V}' title='{f:&#92;underline{m}&#92;to V}' class='latex' /> such that there is an <img src='http://s0.wp.com/latex.php?latex=%7Bx%5Cequiv+y%5Cpmod%7B%5CLambda+%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{x&#92;equiv y&#92;pmod{&#92;Lambda }}' title='{x&#92;equiv y&#92;pmod{&#92;Lambda }}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%7Bf%28x%29%5Cneq+f%28y%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f(x)&#92;neq f(y)}' title='{f(x)&#92;neq f(y)}' class='latex' />. Equivalently, maps which don’t factor through <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%2F%5CLambda+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}/&#92;Lambda }' title='{&#92;underline{m}/&#92;Lambda }' class='latex' />.</p>
<p>Depending on which order you make your poset <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BP%7D+%28m%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{P} (m)}' title='{&#92;mathcal{P} (m)}' class='latex' /> go, <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28-%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(-,V)}' title='{&#92;text {nlc}(-,V)}' class='latex' /> is contravariant, and you can show</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7DF%28m%2CV%29%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BP%7D+%28m%29%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }F(m,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{P} (m)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }F(m,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{P} (m)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' class='latex' /></p>
<p>The second useful case is when <img src='http://s0.wp.com/latex.php?latex=%7BM%3DD%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M=D^{n}}' title='{M=D^{n}}' class='latex' /> (i.e., <img src='http://s0.wp.com/latex.php?latex=%7Bm%3D1%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{m=1}' title='{m=1}' class='latex' />). Then the space of embeddings is homotopy equivalent to the space of injective linear maps. You can obtain a homotopy limit model in this case that looks strikingly similar to the previous case. Namely, you set up a category of “linear” partitions (equivalent to modding out by a linear subspace), and take the holim of the non-locally constant maps functor, as before.</p>
<p>I like to think of both cases as being holims over categories of kernels, and the non-locally constant maps of some kernel are maps that are known to fail to be not-injective for some particular reason. Embeddings fail to be not-injective for every reason.</p>
<p>But there’s another model I want to use in what follows. My category will be denoted <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BL%7D+%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{L} (n)}' title='{&#92;mathcal{L} (n)}' class='latex' />, and objects in the category will be vector spaces <img src='http://s0.wp.com/latex.php?latex=%7BE%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{E}' title='{E}' class='latex' /> with non-zero linear maps <img src='http://s0.wp.com/latex.php?latex=%7Bf%3AE%5Cto+%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:E&#92;to &#92;mathbb {R}^{n}}' title='{f:E&#92;to &#92;mathbb {R}^{n}}' class='latex' />. Morphisms from <img src='http://s0.wp.com/latex.php?latex=%7Bf%3AE%5Cto+%5Cmathcal%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:E&#92;to &#92;mathcal{R}^{n}}' title='{f:E&#92;to &#92;mathcal{R}^{n}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=f%27%3AE%27%5Cto+%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;:E&#039;&#92;to &#92;mathbb{R}^n' title='f&#039;:E&#039;&#92;to &#92;mathbb{R}^n' class='latex' /> will be surjective linear maps <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3AE%5Cto+E%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha:E&#92;to E&#039;' title='&#92;alpha:E&#92;to E&#039;' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=f%3Df%27%5Ccirc+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f=f&#039;&#92;circ &#92;alpha' title='f=f&#039;&#92;circ &#92;alpha' class='latex' />. You might think of the objects as an abstract partition (<img src='http://s0.wp.com/latex.php?latex=%7BE%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{E}' title='{E}' class='latex' />) with a map to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathbb {R}^{n}}' title='{&#92;mathbb {R}^{n}}' class='latex' />, which then determines a partition of <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathbb {R}^{n}}' title='{&#92;mathbb {R}^{n}}' class='latex' />, by taking the image.</p>
<p>The functor out of this category is something I’ll still denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28-%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(-,V)}' title='{&#92;text {nlc}(-,V)}' class='latex' />. On an object <img src='http://s0.wp.com/latex.php?latex=%7Bf%3AE%5Cto+%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:E&#92;to &#92;mathbb {R}^{n}}' title='{f:E&#92;to &#92;mathbb {R}^{n}}' class='latex' /> it gives all non-constant affine maps <img src='http://s0.wp.com/latex.php?latex=%7BE%5Cto+V%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{E&#92;to V}' title='{E&#92;to V}' class='latex' />. Arone has shown</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7BInj%7D%28%5Cmathbb+%7BR%7D%5E%7Bn%7D%2CV%29%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BL%7D+%28n%29%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Inj}(&#92;mathbb {R}^{n},V)&#92;simeq &#92;text {holim}_{&#92;mathcal{L} (n)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Inj}(&#92;mathbb {R}^{n},V)&#92;simeq &#92;text {holim}_{&#92;mathcal{L} (n)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' class='latex' /></p>
<p><strong>Product Structure</strong></p>
<p>The space of embeddings we are considering splits, as</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Ctext+%7BEmb%7D%28M%2CV%29%5Csimeq+F%28m%2CV%29%5Ctimes+%5Ctext+%7BInj%7D%28%5Cmathbb+%7BR%7D%5E%7Bn%7D%2CV%29%5E%7Bm%7D.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;text {Emb}(M,V)&#92;simeq F(m,V)&#92;times &#92;text {Inj}(&#92;mathbb {R}^{n},V)^{m}.  ' title='&#92;displaystyle  &#92;text {Emb}(M,V)&#92;simeq F(m,V)&#92;times &#92;text {Inj}(&#92;mathbb {R}^{n},V)^{m}.  ' class='latex' /></p>
<p>We know a homotopy limit model of each piece of the splitting, and might hope to combine them into a homotopy limit model for the product. This can, in fact, be done, using the following:</p>
<p><strong>Lemma</strong>: If <img src='http://s0.wp.com/latex.php?latex=%7B%5CSigma+%5E%7B%5Cinfty+%7DX_%7Bi%7D%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BC%7D_%7Bi%7D%7D%5CSigma+%5E%7B%5Cinfty+%7DF_%7Bi%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Sigma ^{&#92;infty }X_{i}&#92;simeq &#92;text {holim}_{&#92;mathcal{C}_{i}}&#92;Sigma ^{&#92;infty }F_{i}}' title='{&#92;Sigma ^{&#92;infty }X_{i}&#92;simeq &#92;text {holim}_{&#92;mathcal{C}_{i}}&#92;Sigma ^{&#92;infty }F_{i}}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%7Bi%3D1%2C%5Cldots+%2Ck%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{i=1,&#92;ldots ,k}' title='{i=1,&#92;ldots ,k}' class='latex' />, then</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7D%5Cprod+_%7Bi%7D+X_%7Bi%7D+%5Csimeq+%5Ctext+%7Bholim%7D_%7B%2A_%7Bi%7D%5Cmathcal%7BC%7D_%7Bi%7D%7D%5CSigma+%5E%7B%5Cinfty+%7D%2A_%7Bi%7D+F_%7Bi%7D.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;prod _{i} X_{i} &#92;simeq &#92;text {holim}_{*_{i}&#92;mathcal{C}_{i}}&#92;Sigma ^{&#92;infty }*_{i} F_{i}.  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;prod _{i} X_{i} &#92;simeq &#92;text {holim}_{*_{i}&#92;mathcal{C}_{i}}&#92;Sigma ^{&#92;infty }*_{i} F_{i}.  ' class='latex' /></p>
<p>Here <img src='http://s0.wp.com/latex.php?latex=%7B%2A%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{*}' title='{*}' class='latex' /> denotes the join. For categories, <img src='http://s0.wp.com/latex.php?latex=%7BC%2AD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{C*D}' title='{C*D}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%7B%28C_%7B%2B%7D%5Ctimes+D_%7B%2B%7D%29_%7B-%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(C_{+}&#92;times D_{+})_{-}}' title='{(C_{+}&#92;times D_{+})_{-}}' class='latex' />, obtained by adding a new initial object to each of <img src='http://s0.wp.com/latex.php?latex=%7BC%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{C}' title='{C}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />, taking the product, and removing the initial object of the result.</p>
<p><strong>Proof</strong> (Sketch): Consider the case <img src='http://s0.wp.com/latex.php?latex=%7Bk%3D2%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{k=2}' title='{k=2}' class='latex' />. The idea is to line up the squares:</p>
<p><a href="http://sumidiot.files.wordpress.com/2010/02/diagram1.png"><img class="aligncenter size-full wp-image-668" title="diagram1" src="http://sumidiot.files.wordpress.com/2010/02/diagram1.png?w=450" alt=""   /></a>and</p>
<p><a href="http://sumidiot.files.wordpress.com/2010/02/diagram2.png"><img class="aligncenter size-medium wp-image-669" title="diagram2" src="http://sumidiot.files.wordpress.com/2010/02/diagram2.png?w=300&#038;h=79" alt="" width="300" height="79" /></a>Both of which are homotopy pullbacks. The equivalence of the lower-right corners follows because join is similar enough to smash, which plays nicely with <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bholim%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {holim}}' title='{&#92;text {holim}}' class='latex' />.</p>
<p>So, anyway, applying this lemma and perhaps cleaning things up with some homotopy equivalences, we obtain an equivalence</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7BEmb%7D%28M%2CV%29%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BP%7D+%28m%29%2A%5Cmathcal%7BL%7D+%28n%29%5E%7B%2Am%7D%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{P} (m)*&#92;mathcal{L} (n)^{*m}}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{P} (m)*&#92;mathcal{L} (n)^{*m}}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' class='latex' /></p>
<p>Objects in the category consist of a partition <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%5Cvdash+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda &#92;vdash &#92;underline{m}}' title='{&#92;Lambda &#92;vdash &#92;underline{m}}' class='latex' /> along with, for <img src='http://s0.wp.com/latex.php?latex=%7Bi%5Cin+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{i&#92;in &#92;underline{m}}' title='{i&#92;in &#92;underline{m}}' class='latex' />, linear <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7Bi%7D%3AE_%7Bi%7D%5Cto+%5Cmathbb+%7BR%7D%5E%7Bn%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{i}:E_{i}&#92;to &#92;mathbb {R}^{n}}' title='{f_{i}:E_{i}&#92;to &#92;mathbb {R}^{n}}' class='latex' />. To tidy up a little bit, I’ll denote this category <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%3D%5Cmathcal%7BJ%7D%28M%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}=&#92;mathcal{J}(M)}' title='{&#92;mathcal{J}=&#92;mathcal{J}(M)}' class='latex' />, for join. The functor takes an object as above and returns the set of componentwise affine maps <img src='http://s0.wp.com/latex.php?latex=%7B%5Ccoprod+_%7Bi%7D+E_%7Bi%7D%5Cto+V%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;coprod _{i} E_{i}&#92;to V}' title='{&#92;coprod _{i} E_{i}&#92;to V}' class='latex' /> such that either (a) the map is non-constant on some component, (b) when restricted to the image of <img src='http://s0.wp.com/latex.php?latex=%7B0%3A%5Cunderline%7Bm%7D%5Chookrightarrow+%5Ccoprod+E_%7Bi%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{0:&#92;underline{m}&#92;hookrightarrow &#92;coprod E_{i}}' title='{0:&#92;underline{m}&#92;hookrightarrow &#92;coprod E_{i}}' class='latex' />, the map is non-locally constant with respect to <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda }' title='{&#92;Lambda }' class='latex' />.</p>
<p>There you have it, a homotopy limit description for the embedding functor.</p>
<p>But not a particularly nice one. If we had an embedding <img src='http://s0.wp.com/latex.php?latex=%7BM%5Chookrightarrow+M%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M&#92;hookrightarrow M&#039;}' title='{M&#92;hookrightarrow M&#039;}' class='latex' />, then we’d have map <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7BEmb%7D%28M%2CV%29%5Cleftarrow+%5Ctext+%7BEmb%7D%28M%27%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {Emb}(M,V)&#92;leftarrow &#92;text {Emb}(M&#039;,V)}' title='{&#92;text {Emb}(M,V)&#92;leftarrow &#92;text {Emb}(M&#039;,V)}' class='latex' />. It’d be really swell if this map was modelled by a map <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%28M%29%5Cto+%5Cmathcal%7BJ%7D%28M%27%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}(M)&#92;to &#92;mathcal{J}(M&#039;)}' title='{&#92;mathcal{J}(M)&#92;to &#92;mathcal{J}(M&#039;)}' class='latex' /> of the categories we are taking homotopy limits over. But that’s not going to happen. What can go wrong? Non-trivial partitions of <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' />, when sensibly composed with the map to <img src='http://s0.wp.com/latex.php?latex=%7BM%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M&#039;}' title='{M&#039;}' class='latex' />, may become trivial, and thus not part of the category. This is, essentially, because several components of <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' /> might map to a single component of <img src='http://s0.wp.com/latex.php?latex=%7BM%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M&#039;}' title='{M&#039;}' class='latex' />. If <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' /> has two components, and <img src='http://s0.wp.com/latex.php?latex=%7BM%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M&#039;}' title='{M&#039;}' class='latex' /> one, say, where do you send the object consisting of the non-trivial <img src='http://s0.wp.com/latex.php?latex=%7B%5CLambda+%5Cvdash+%5Cunderline%7B2%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Lambda &#92;vdash &#92;underline{2}}' title='{&#92;Lambda &#92;vdash &#92;underline{2}}' class='latex' /> paired with some 0 vector spaces?</p>
<p><strong>A More Natural Model</strong></p>
<p>We sort of need to expand the category we take the homotopy limit over, and make it a more natural construction. We actually have an indication on how to do this from the discussion, above, in the case of linear injective maps from a single component. Perhaps we can find a proper notion of “abstract partition”, pair such a beast with a map to <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' />, sensibly define non-locally constant, and get what we want. Let’s see how it goes&#8230;</p>
<p>An affine space is, loosely, a vector space that forgot where its 0 was. There is, up to isomorphism, one of any given dimension, just like for vector spaces; I’ll denote the one of dimension <img src='http://s0.wp.com/latex.php?latex=%7Bd%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d}' title='{d}' class='latex' /> by <img src='http://s0.wp.com/latex.php?latex=%7BA%5E%7Bd%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{A^{d}}' title='{A^{d}}' class='latex' />, say. That should be enough of a description for now.</p>
<p>Let me define a Complete Affine Partition (CAP), <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' />, to be a partition of a disjoint union of affine spaces, such that equivalence classes contain components. That is, everybody that’s in the same component is in the same equivalence class. Given a <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' />, I’ll denote by <img src='http://s0.wp.com/latex.php?latex=%7BA%28%5Crho+%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{A(&#92;rho )}' title='{A(&#92;rho )}' class='latex' /> the underlying component-wise affine space. The data that determines a <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' /> is: a finite set <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' /> (the set of components), a partition of <img src='http://s0.wp.com/latex.php?latex=%7Bs%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{s}' title='{s}' class='latex' />, and a dimension function, <img src='http://s0.wp.com/latex.php?latex=%7Bd%3As%5Cto+%5Cmathbb+%7BN%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d:s&#92;to &#92;mathbb {N}_{0}}' title='{d:s&#92;to &#92;mathbb {N}_{0}}' class='latex' /> (non-negative integers). With this information, <img src='http://s0.wp.com/latex.php?latex=%7BA%28%5Crho+%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{A(&#92;rho )}' title='{A(&#92;rho )}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%7B%5Ccoprod+_%7Bi%5Cin+s%7DA%5E%7Bd%28i%29%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;coprod _{i&#92;in s}A^{d(i)}}' title='{&#92;coprod _{i&#92;in s}A^{d(i)}}' class='latex' />.</p>
<p>By a refinement <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha }' title='{&#92;alpha }' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho&#039;}' title='{&#92;rho&#039;}' class='latex' />, denoted <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%3A%5Crho+%5Cto+%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha :&#92;rho &#92;to &#92;rho&#039;}' title='{&#92;alpha :&#92;rho &#92;to &#92;rho&#039;}' class='latex' />, I will mean an affine map <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%3AA%28%5Crho+%29%5Cto+A%28%5Crho%27%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha :A(&#92;rho )&#92;to A(&#92;rho&#039;)}' title='{&#92;alpha :A(&#92;rho )&#92;to A(&#92;rho&#039;)}' class='latex' /> so that the “affine closure” of the partition <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%28%5Crho+%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha (&#92;rho )}' title='{&#92;alpha (&#92;rho )}' class='latex' /> is coarser than <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho&#039;}' title='{&#92;rho&#039;}' class='latex' />. I don’t want to spend too much time talking about the affine closure operation, on partitions of a component-wise affine space. If <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho&#039;}' title='{&#92;rho&#039;}' class='latex' /> have a single component, a refinement is just a surjective affine map (recall before we had surjective linear maps in <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BL%7D+%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{L} (n)}' title='{&#92;mathcal{L} (n)}' class='latex' />). If <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho&#039;}' title='{&#92;rho&#039;}' class='latex' /> have dimension function 0, so basically <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%3D%5CLambda+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho =&#92;Lambda }' title='{&#92;rho =&#92;Lambda }' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho%27%3D%5CLambda%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho&#039;=&#92;Lambda&#039;}' title='{&#92;rho&#039;=&#92;Lambda&#039;}' class='latex' /> (partition of possibly distinct finite sets), a refinement just means <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%28%5CLambda+%29+%5Cgeq+%5CLambda%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha (&#92;Lambda ) &#92;geq &#92;Lambda&#039;}' title='{&#92;alpha (&#92;Lambda ) &#92;geq &#92;Lambda&#039;}' class='latex' />.</p>
<p>We’re now ready to define a category, which I’ll denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BC%7D%3D%5Cmathcal%7BC%7D%28M%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{C}=&#92;mathcal{C}(M)}' title='{&#92;mathcal{C}=&#92;mathcal{C}(M)}' class='latex' />. The objects will be pairs of: a CAP, <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' />, along with a non-locally constant affine <img src='http://s0.wp.com/latex.php?latex=%7Bf%3AA%28%5Crho+%29%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:A(&#92;rho )&#92;to M}' title='{f:A(&#92;rho )&#92;to M}' class='latex' /> (subsequently denoted <img src='http://s0.wp.com/latex.php?latex=%7Bf%3A%5Crho+%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:&#92;rho &#92;to M}' title='{f:&#92;rho &#92;to M}' class='latex' />). A morphism from <img src='http://s0.wp.com/latex.php?latex=%7Bf%3A%5Crho+%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:&#92;rho &#92;to M}' title='{f:&#92;rho &#92;to M}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7Bf%27%3A%5Crho%27%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f&#039;:&#92;rho&#039;&#92;to M}' title='{f&#039;:&#92;rho&#039;&#92;to M}' class='latex' /> will be a refinement <img src='http://s0.wp.com/latex.php?latex=%7B%5Calpha+%3A%5Crho+%5Cto+%5Crho%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;alpha :&#92;rho &#92;to &#92;rho&#039;}' title='{&#92;alpha :&#92;rho &#92;to &#92;rho&#039;}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%7Bf%3Df%27%5Ccirc+%5Calpha+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f=f&#039;&#92;circ &#92;alpha }' title='{f=f&#039;&#92;circ &#92;alpha }' class='latex' />. This should look familiar to the <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BL%7D+%28n%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{L} (n)}' title='{&#92;mathcal{L} (n)}' class='latex' /> construction.</p>
<p>The functor I’ll consider still deserves to be called <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28-%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(-,V)}' title='{&#92;text {nlc}(-,V)}' class='latex' />, and it takes <img src='http://s0.wp.com/latex.php?latex=%7Bf%3A%5Crho+%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f:&#92;rho &#92;to M}' title='{f:&#92;rho &#92;to M}' class='latex' /> to the set of non-locally constant affine maps <img src='http://s0.wp.com/latex.php?latex=%7BA%28%5Crho+%29%5Cto+V%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{A(&#92;rho )&#92;to V}' title='{A(&#92;rho )&#92;to V}' class='latex' />. We’d really like to be able to say</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7BEmb%7D%28M%2CV%29%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BC%7D%28M%29%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{C}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' title='&#92;displaystyle  &#92;Sigma ^{&#92;infty }&#92;text {Emb}(M,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{C}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V).  ' class='latex' /></p>
<p>It seems sensible to try to do so by showing that</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BC%7D%28M%29%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BJ%7D%28M%29%7D%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29%2C++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;text {holim}_{&#92;mathcal{C}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{J}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V),  ' title='&#92;text {holim}_{&#92;mathcal{C}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V)&#92;simeq &#92;text {holim}_{&#92;mathcal{J}(M)}&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V),  ' class='latex' /></p>
<p>since <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%28M%29%5Csubseteq+%5Cmathcal%7BC%7D%28M%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}(M)&#92;subseteq &#92;mathcal{C}(M)}' title='{&#92;mathcal{J}(M)&#92;subseteq &#92;mathcal{C}(M)}' class='latex' />, and we know the homotopy limit over <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%28M%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}(M)}' title='{&#92;mathcal{J}(M)}' class='latex' /> has the right homotopy type. This is our goal.</p>
<p><strong>Semi-direct Product Structure</strong></p>
<p>I’ll use the semi-direct product notation for the Grothendieck construction, as follows. Recall that for a category <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />, and a functor <img src='http://s0.wp.com/latex.php?latex=%7BF%3AD%5Cto+E%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{F:D&#92;to E}' title='{F:D&#92;to E}' class='latex' />, the Grothendieck construction is a category, which I’ll denote <img src='http://s0.wp.com/latex.php?latex=%7BD%5Cltimes+F%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D&#92;ltimes F}' title='{D&#92;ltimes F}' class='latex' />, whose objects are pairs <img src='http://s0.wp.com/latex.php?latex=%7B%28d%2Cx%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(d,x)}' title='{(d,x)}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%7Bx%5Cin+F%28d%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{x&#92;in F(d)}' title='{x&#92;in F(d)}' class='latex' />. Morphisms <img src='http://s0.wp.com/latex.php?latex=%7B%28d%2Cx%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(d,x)}' title='{(d,x)}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%28d%27%2Cx%27%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(d&#039;,x&#039;)}' title='{(d&#039;,x&#039;)}' class='latex' /> are morphisms <img src='http://s0.wp.com/latex.php?latex=%7Bh%3Ad%5Cto+d%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{h:d&#92;to d&#039;}' title='{h:d&#92;to d&#039;}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%7BF%28h%29%28x%29%3Dx%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{F(h)(x)=x&#039;}' title='{F(h)(x)=x&#039;}' class='latex' />. Of course, my functors are all contravariant as defined, so you have to mess about getting your arrows right. Best done in private.</p>
<p>I claim that <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BC%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{C}}' title='{&#92;mathcal{C}}' class='latex' /> can be written as a Grothendieck construction. Actually, it can in a few ways. The obvious way is to set <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}}' title='{&#92;mathcal{U}}' class='latex' /> to be the category of CAPs <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' />, paired with refinements. The functor you need is then <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D%28-%2CM%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}(-,M)}' title='{&#92;text {nlc}(-,M)}' class='latex' />. You find that <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BC%7D%3D%5Cmathcal%7BU%7D%5Cltimes+%5Ctext+%7Bnlc%7D%28-%2CM%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{C}=&#92;mathcal{U}&#92;ltimes &#92;text {nlc}(-,M)}' title='{&#92;mathcal{C}=&#92;mathcal{U}&#92;ltimes &#92;text {nlc}(-,M)}' class='latex' />.</p>
<p>But there’s another way to slice it. Let <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}}' title='{&#92;mathcal{U}_{0}}' class='latex' /> be the category of CAPs <img src='http://s0.wp.com/latex.php?latex=%7B%5Crho+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;rho }' title='{&#92;rho }' class='latex' />, along with functions <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7B0%7D%3A%5Crho+%5Cto+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{0}:&#92;rho &#92;to &#92;underline{m}}' title='{f_{0}:&#92;rho &#92;to &#92;underline{m}}' class='latex' />. Now the functor you need is not all non-locally constant maps to <img src='http://s0.wp.com/latex.php?latex=%7BM%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{M}' title='{M}' class='latex' />, but only those that are lifts of <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{0}}' title='{f_{0}}' class='latex' />. You might denote this set <img src='http://s0.wp.com/latex.php?latex=%7B%5Ctext+%7Bnlc%7D_%7Bf_%7B0%7D%7D%28%5Crho+%2CM%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;text {nlc}_{f_{0}}(&#92;rho ,M)}' title='{&#92;text {nlc}_{f_{0}}(&#92;rho ,M)}' class='latex' />. I’m tired of all the notation, so let me let <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu }' title='{&#92;mu }' class='latex' /> denote this non-locally constant lifts functor. We have, then <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BC%7D%3D%5Cmathcal%7BU%7D_%7B0%7D%5Cltimes+%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{C}=&#92;mathcal{U}_{0}&#92;ltimes &#92;mu }' title='{&#92;mathcal{C}=&#92;mathcal{U}_{0}&#92;ltimes &#92;mu }' class='latex' />.</p>
<p>While I’m simplifying notation, let me also write <img src='http://s0.wp.com/latex.php?latex=%7B%5Cnu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;nu }' title='{&#92;nu }' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%7B%5CSigma+%5E%7B%5Cinfty+%7D%5Ctext+%7Bnlc%7D%28-%2CV%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V)}' title='{&#92;Sigma ^{&#92;infty }&#92;text {nlc}(-,V)}' class='latex' />. Notice that it is actually a functor from <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}}' title='{&#92;mathcal{U}}' class='latex' />, and thus from <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}}' title='{&#92;mathcal{U}_{0}}' class='latex' />.</p>
<p>Let’s return to the category <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%28M%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}(M)}' title='{&#92;mathcal{J}(M)}' class='latex' /> again. It has the same structure. In fact, we just need to pick out of <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}}' title='{&#92;mathcal{U}_{0}}' class='latex' /> the subcategory of CAPs whose set of components is <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}}' title='{&#92;underline{m}}' class='latex' />, and where <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{0}}' title='{f_{0}}' class='latex' /> is the identity on <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}}' title='{&#92;underline{m}}' class='latex' />. Calling this subcategory <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{R}}' title='{&#92;mathcal{R}}' class='latex' />, we have <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BJ%7D%3D%5Cmathcal%7BR%7D%5Cltimes+%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{J}=&#92;mathcal{R}&#92;ltimes &#92;mu }' title='{&#92;mathcal{J}=&#92;mathcal{R}&#92;ltimes &#92;mu }' class='latex' />.</p>
<p>Summarizing all the notation, our goal is to show that</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cltimes+%5Cmu+%7D%5Cnu+%5Csimeq+%5Ctext+%7Bholim%7D_%7B%5Cmathcal%7BR%7D%5Cltimes+%5Cmu+%7D%5Cnu+.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;text {holim}_{&#92;mathcal{U}_{0}&#92;ltimes &#92;mu }&#92;nu &#92;simeq &#92;text {holim}_{&#92;mathcal{R}&#92;ltimes &#92;mu }&#92;nu .  ' title='&#92;displaystyle  &#92;text {holim}_{&#92;mathcal{U}_{0}&#92;ltimes &#92;mu }&#92;nu &#92;simeq &#92;text {holim}_{&#92;mathcal{R}&#92;ltimes &#92;mu }&#92;nu .  ' class='latex' /></p>
<p>The first thing I’d like to do is use twisted arrow categories to re-write things, so perhaps I should tell you about these categories first. If <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' /> is a category, the twisted arrow category, <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7DD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}D}' title='{{}^{a}D}' class='latex' /> has objects the morphisms of <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />. Morphisms from <img src='http://s0.wp.com/latex.php?latex=%7Bd_%7B1%7D%5Cto+d_%7B2%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d_{1}&#92;to d_{2}}' title='{d_{1}&#92;to d_{2}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7Bd_%7B1%7D%27%5Cto+d_%7B2%7D%27%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{d_{1}&#039;&#92;to d_{2}&#039;}' title='{d_{1}&#039;&#92;to d_{2}&#039;}' class='latex' /> are commuting squares</p>
<p><a href="http://sumidiot.files.wordpress.com/2010/02/diagram3.png"><img class="aligncenter size-full wp-image-670" title="diagram3" src="http://sumidiot.files.wordpress.com/2010/02/diagram3.png?w=450" alt=""   /></a>If <img src='http://s0.wp.com/latex.php?latex=%7BF%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{F}' title='{F}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7BG%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G}' title='{G}' class='latex' /> are contravariant functors from <img src='http://s0.wp.com/latex.php?latex=%7BD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{D}' title='{D}' class='latex' />, one can check that <img src='http://s0.wp.com/latex.php?latex=%7B%28d_%7B1%7D%5Cto+d_%7B2%7D%29%5Cmapsto+%5Ctext+%7Bmor%7D%28F%28d_%7B2%7D%29%2CG%28d_%7B1%7D%29%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{(d_{1}&#92;to d_{2})&#92;mapsto &#92;text {mor}(F(d_{2}),G(d_{1}))}' title='{(d_{1}&#92;to d_{2})&#92;mapsto &#92;text {mor}(F(d_{2}),G(d_{1}))}' class='latex' /> is a covariant functor from <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7DD%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}D}' title='{{}^{a}D}' class='latex' />. I’ll denote it <img src='http://s0.wp.com/latex.php?latex=%7BG%5E%7BF%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{G^{F}}' title='{G^{F}}' class='latex' />. One can show that</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Ctext+%7Bholim%7D_%7BD%5Cltimes+F%7DG%5Csimeq+%5Ctext+%7Bholim%7D_%7B%7B%7D%5E%7Ba%7DD%7DG%5E%7BF%7D.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;text {holim}_{D&#92;ltimes F}G&#92;simeq &#92;text {holim}_{{}^{a}D}G^{F}.  ' title='&#92;displaystyle  &#92;text {holim}_{D&#92;ltimes F}G&#92;simeq &#92;text {holim}_{{}^{a}D}G^{F}.  ' class='latex' /></p>
<p>Using this, we’re hoping to show</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Ctext+%7Bholim%7D_%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D%5Cnu+%5E%7B%5Cmu+%7D%5Csimeq+%5Ctext+%7Bholim%7D_%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BR%7D%7D%5Cnu+%5E%7B%5Cmu+%7D.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;text {holim}_{{}^{a}&#92;mathcal{U}_{0}}&#92;nu ^{&#92;mu }&#92;simeq &#92;text {holim}_{{}^{a}&#92;mathcal{R}}&#92;nu ^{&#92;mu }.  ' title='&#92;displaystyle  &#92;text {holim}_{{}^{a}&#92;mathcal{U}_{0}}&#92;nu ^{&#92;mu }&#92;simeq &#92;text {holim}_{{}^{a}&#92;mathcal{R}}&#92;nu ^{&#92;mu }.  ' class='latex' /></p>
<p><strong>Proof Outline</strong></p>
<p>We’ve got <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%5Csupseteq+%7B%7D%5E%7Ba%7D%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{U}_{0}&#92;supseteq {}^{a}&#92;mathcal{R}}' title='{{}^{a}&#92;mathcal{U}_{0}&#92;supseteq {}^{a}&#92;mathcal{R}}' class='latex' />. Between them lies a category I’ll denote <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />, consisting of arrows <img src='http://s0.wp.com/latex.php?latex=%7Bu%5Cto+r%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u&#92;to r}' title='{u&#92;to r}' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=%7Bu%5Cin+%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u&#92;in &#92;mathcal{U}_{0}}' title='{u&#92;in &#92;mathcal{U}_{0}}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%7Br%5Cin+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{r&#92;in &#92;mathcal{R}}' title='{r&#92;in &#92;mathcal{R}}' class='latex' />. Morphisms are “twisted” commuting squares, as they should be, as part of the twisted arrow category. One can reduce the holim over <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{U}_{0}}' title='{{}^{a}&#92;mathcal{U}_{0}}' class='latex' /> to one over <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />, and from there to one over <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{R}}' title='{{}^{a}&#92;mathcal{R}}' class='latex' />.</p>
<p>To reduce from <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{R}}' title='{{}^{a}&#92;mathcal{R}}' class='latex' />, one can show that for all <img src='http://s0.wp.com/latex.php?latex=%7Bu%5Cto+r%5Cin+%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u&#92;to r&#92;in &#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{u&#92;to r&#92;in &#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />, the over-category <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BR%7D%5Cdownarrow+%28u%5Cto+r%29%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{R}&#92;downarrow (u&#92;to r)}' title='{{}^{a}&#92;mathcal{R}&#92;downarrow (u&#92;to r)}' class='latex' /> is contractible. In fact, this result seems to rely very little on our particular <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{R}}' title='{&#92;mathcal{R}}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}}' title='{&#92;mathcal{U}_{0}}' class='latex' />, and doesn’t depend on the functors, <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu }' title='{&#92;mu }' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%7B%5Cnu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;nu }' title='{&#92;nu }' class='latex' />, or <img src='http://s0.wp.com/latex.php?latex=%7B%5Cnu+%5E%7B%5Cmu+%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;nu ^{&#92;mu }}' title='{&#92;nu ^{&#92;mu }}' class='latex' />.</p>
<p>For the reduction from <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{U}_{0}}' title='{{}^{a}&#92;mathcal{U}_{0}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />, one shows that for all <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B1%7D%5Cto+u_%7B2%7D%5Cin+%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{1}&#92;to u_{2}&#92;in {}^{a}&#92;mathcal{U}_{0}}' title='{u_{1}&#92;to u_{2}&#92;in {}^{a}&#92;mathcal{U}_{0}}' class='latex' />, we have</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Ctext+%7Bmor%7D%28%5Cmu+%28u_%7B2%7D%29%2C%5Cnu+%28u_%7B1%7D%29%29%5Cstackrel%7B%5Csim+%7D%7B%5Crightarrow+%7D+%5Ctext+%7Bholim%7D_%7B%5Csubstack+%7B%28u_1%5Cto+u_2%29%5Cto+%28u%5Cto+r%29%5C%5C+%5Cin+%28u_1%5Cto+u_2%29%5Cdownarrow+%28%5Cmathcal%7BU%7D_0%5Cto+%5Cmathcal%7BR%7D%29%7D%7D%5Ctext+%7Bmor%7D%28%5Cmu+%28r%29%2C%5Cnu+%28u%29%29.++&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='&#92;displaystyle  &#92;text {mor}(&#92;mu (u_{2}),&#92;nu (u_{1}))&#92;stackrel{&#92;sim }{&#92;rightarrow } &#92;text {holim}_{&#92;substack {(u_1&#92;to u_2)&#92;to (u&#92;to r)&#92;&#92; &#92;in (u_1&#92;to u_2)&#92;downarrow (&#92;mathcal{U}_0&#92;to &#92;mathcal{R})}}&#92;text {mor}(&#92;mu (r),&#92;nu (u)).  ' title='&#92;displaystyle  &#92;text {mor}(&#92;mu (u_{2}),&#92;nu (u_{1}))&#92;stackrel{&#92;sim }{&#92;rightarrow } &#92;text {holim}_{&#92;substack {(u_1&#92;to u_2)&#92;to (u&#92;to r)&#92;&#92; &#92;in (u_1&#92;to u_2)&#92;downarrow (&#92;mathcal{U}_0&#92;to &#92;mathcal{R})}}&#92;text {mor}(&#92;mu (r),&#92;nu (u)).  ' class='latex' /></p>
<p>Essentially this shows that <img src='http://s0.wp.com/latex.php?latex=%7B%5Cnu+%5E%7B%5Cmu+%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;nu ^{&#92;mu }}' title='{&#92;nu ^{&#92;mu }}' class='latex' />, as a functor from <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7DU_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}U_{0}}' title='{{}^{a}U_{0}}' class='latex' />, is equivalent to the right Kan extension of it’s restriction to a functor from <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />. And the homotopy limit of a right Kan extension is equivalent to the homotopy limit of the restricted functor.</p>
<p>It is in this second reduction, <img src='http://s0.wp.com/latex.php?latex=%7B%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{{}^{a}&#92;mathcal{U}_{0}}' title='{{}^{a}&#92;mathcal{U}_{0}}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BU%7D_%7B0%7D%5Cto+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' title='{&#92;mathcal{U}_{0}&#92;to &#92;mathcal{R}}' class='latex' />, that we rely on information about our categories and functors (<img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu }' title='{&#92;mu }' class='latex' />, in particular). Pick your object <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B1%7D%5Cto+u_%7B2%7D%5Cin+%7B%7D%5E%7Ba%7D%5Cmathcal%7BU%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{1}&#92;to u_{2}&#92;in {}^{a}&#92;mathcal{U}_{0}}' title='{u_{1}&#92;to u_{2}&#92;in {}^{a}&#92;mathcal{U}_{0}}' class='latex' />. You can quickly reduce the crazy over-category above to just <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B2%7D%5Cdownarrow+%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{2}&#92;downarrow &#92;mathcal{R}}' title='{u_{2}&#92;downarrow &#92;mathcal{R}}' class='latex' />. Now remember <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B2%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{2}}' title='{u_{2}}' class='latex' /> is a CAP with a function to <img src='http://s0.wp.com/latex.php?latex=%7B%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;underline{m}}' title='{&#92;underline{m}}' class='latex' />. I’ll denote it <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7B0%7D%3Au_%7B2%7D%5Cto+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{0}:u_{2}&#92;to &#92;underline{m}}' title='{f_{0}:u_{2}&#92;to &#92;underline{m}}' class='latex' />. If this function is locally constant (all objects within an equivalence class get sent to the same point), then you sort of replace <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B2%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{2}}' title='{u_{2}}' class='latex' /> with an object obtained by taking affine and direct sums of it’s components. The result is an object of <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmathcal%7BR%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mathcal{R}}' title='{&#92;mathcal{R}}' class='latex' />, but from the perspective of <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu }' title='{&#92;mu }' class='latex' />, the two objects give equivalent spaces of lifts. Alternatively, if <img src='http://s0.wp.com/latex.php?latex=%7Bf_%7B0%7D%3Au_%7B2%7D%5Cto+%5Cunderline%7Bm%7D%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{f_{0}:u_{2}&#92;to &#92;underline{m}}' title='{f_{0}:u_{2}&#92;to &#92;underline{m}}' class='latex' /> is non-locally constant, then <em>every</em> lift <img src='http://s0.wp.com/latex.php?latex=%7Bu_%7B2%7D%5Cto+M%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{u_{2}&#92;to M}' title='{u_{2}&#92;to M}' class='latex' /> is non-locally constant, and so <img src='http://s0.wp.com/latex.php?latex=%7B%5Cmu+%28u_%7B2%7D%29%5Csimeq+%2A%7D&amp;bg=ffffff&amp;fg=000000&amp;s=0' alt='{&#92;mu (u_{2})&#92;simeq *}' title='{&#92;mu (u_{2})&#92;simeq *}' class='latex' />.</p>
<p>This all works out to be useful in the whole proof. But I’ll maybe save all that for another day.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/647/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=647&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2010/02/25/a-homotopy-limit-description-of-the-embedding-functor-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2010/02/diagram1.png" medium="image">
			<media:title type="html">diagram1</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2010/02/diagram2.png?w=300" medium="image">
			<media:title type="html">diagram2</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2010/02/diagram3.png" medium="image">
			<media:title type="html">diagram3</media:title>
		</media:content>
	</item>
		<item>
		<title>Approximating Functions of Spaces</title>
		<link>http://sumidiot.wordpress.com/2010/02/25/approximating-functions-of-spaces/</link>
		<comments>http://sumidiot.wordpress.com/2010/02/25/approximating-functions-of-spaces/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 01:30:27 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=638</guid>
		<description><![CDATA[The branch of mathematics known as topology is concerned with the study of shapes. Whereas shapes in geometry are fairly rigid objects, shapes in topology are much more flexible; topologists refer to them as &#8220;spaces.&#8221; If one space can be flexed and twisted and not-too-drastically mangled into another space, topology deems them to be the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=638&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The branch of mathematics known as topology is concerned with the study of shapes. Whereas shapes in geometry are fairly rigid objects, shapes in topology are much more flexible; topologists refer to them as &#8220;spaces.&#8221; If one space can be flexed and twisted and not-too-drastically mangled into another space, topology deems them to be the same. It becomes much more difficult, then, to tell if two spaces are different. A primary goal in topology is to find ways to distinguish spaces.</p>
<p>Another fundamental question in topology is concerned with the ways to put one space into another space &#8211; to understand the functions between spaces. Each space is a collection of points. A function from space <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> to space <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> is a way to assign points in <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> to points in <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' />. If <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> is a collection of students, and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> a collection of tables, then a function from <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> is a way to assign each student to a table. In topology, we don&#8217;t allow just any function from <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' />. While the spaces are flexible, we have to be careful not to separate points from <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> that are close to each other. Using the students and tables example, we might think about two students holding hands as being close. These students could be placed at the same table, or perhaps neighboring tables, but cannot be separated across the room. A function that doesn&#8217;t separate points too much is called &#8220;continuous,&#8221; and these are the types of functions topologists consider; topologists tend to call them &#8220;maps.&#8221;</p>
<p>It turns out that these two primary questions of topology are actually related. If one wants to determine how similar shapes <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> are, one might begin by introducing a third space, <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' />, and asking about the maps from <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and from <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' />. If the collection of maps are the same in both cases, one expects that <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> are similar, at least somewhat. More information can be obtained by replacing <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' /> by another space <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' />, and repeating the process. Typically the spaces <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' /> are fairly well-understood spaces, like circles and spheres.</p>
<p>Spaces, and the maps between them, can be quite complicated in general. By restricting to various types of spaces, or types of maps, one is able to make significant progress. One important class of spaces consists of what are called &#8220;manifolds.&#8221; Intuitively, a manifold is a space which, when viewed from quite close, looks flat (like a line, or a plane), and has no corners. If you were a tiny ant, walking along on a mathematician&#8217;s idealized sphere, for example, you might get the impression that you were walking on a giant sheet of paper. Indeed, a similar viewpoint of our own world was common in the not too distant past.</p>
<p>Circles and spheres, and lines and planes themselves, make good examples of manifolds to keep in mind. In fact, lines and planes, and the higher dimensional &#8220;Euclidean&#8221; spaces, are the fundamental building blocks for manifolds. The defining property of a manifold is that when you get close enough, you are looking at a Euclidean space. Manifolds are essentially spaces obtained by gluing together Euclidean spaces. An interesting example, known as the Möbius strip, can be modeled by taking a strip of paper, introducing a half-twist, and taping the ends together. A tiny ant crawling along on the resulting object would have a hard time noticing that it isn&#8217;t just crawling along a strip of paper.</p>
<p>If one&#8217;s attention is restricted to studying manifolds, instead of more general spaces, it makes sense to also restrict the types of maps under consideration. General continuous maps need not respect the information about manifolds that makes manifolds a nice class of spaces (they are reasonably &#8220;smooth&#8221;). We replace, then, all continuous maps with a more restricted class of maps which preserve the structure of manifolds. A particularly nice such class consists of those maps known as &#8220;embeddings.&#8221; An embedding will not introduce corners in manifolds, and also will not send two points to the same point (embeddings would place only one student at each table, in the earlier example).</p>
<p>When studying manifolds, then, a topologist may be concerned with the collection of embeddings between two manifolds. If the manifolds are called <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' />, then we might denote the embeddings of <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> by <img src='http://s0.wp.com/latex.php?latex=E%28M%2CN%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(M,N)' title='E(M,N)' class='latex' />. This is then a function itself &#8211; a function of two variables, <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' />. If we fix one of the variables, say we only think about <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> being a circle, we still have a function of one variable, and have made our study somewhat easier.</p>
<p>Leaving <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> fixed, how do the values <img src='http://s0.wp.com/latex.php?latex=E%28M%2CN%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(M,N)' title='E(M,N)' class='latex' /> change as <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> changes? Said another way, if we modify <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> slightly, what is the effect on <img src='http://s0.wp.com/latex.php?latex=E%28M%2CN%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(M,N)' title='E(M,N)' class='latex' />? If it is difficult to find <img src='http://s0.wp.com/latex.php?latex=E%28M%2CN%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(M,N)' title='E(M,N)' class='latex' />, how can it be approximated? How can the function itself be approximated?</p>
<p>These questions are strikingly similar to questions asked in calculus. Given a function that takes numbers in and spits numbers out (<img src='http://s0.wp.com/latex.php?latex=y%3De%5Ex&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=e^x' title='y=e^x' class='latex' />, for example) what happens to the output values (<img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y' title='y' class='latex' />) if the input value (<img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' />) is changed slightly? If we know about the value at a particular point (<img src='http://s0.wp.com/latex.php?latex=e%5E0%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^0=1' title='e^0=1' class='latex' />), what can be said about values nearby (<img src='http://s0.wp.com/latex.php?latex=e%5E%7B1%2F2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{1/2}' title='e^{1/2}' class='latex' />, say)? The answers to these questions lie with the derivative, and its &#8220;higher&#8221; analogues (the derivative of the derivative, and so on). If one knows about the derivatives of a function at a point, one can create &#8220;polynomial&#8221; approximations to the function, near that point.</p>
<p>It turns out that something quite similar happens when studying the embedding function (and other functions like it). Some sense can be made of derivatives, polynomials, and best approximations, all in the context of functions of spaces (instead of functions of numbers).</p>
<p>I have been studying the embedding function, and its polynomial approximations, when <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> is fixed. I let <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> be a collection of disjoint Euclidean spaces of any dimension; so I might take <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> to be 3 lines and 2 planes, all separate from each other. I also restrict my attention to <img src='http://s0.wp.com/latex.php?latex=E%28M%2CN%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(M,N)' title='E(M,N)' class='latex' /> only when <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> itself is a Euclidean space. Since any manifold is built out of Euclidean spaces, the cases I consider are important building blocks to understanding more general embedding functions.</p>
<p>Previous work has already covered some of the cases I consider. If <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> is a finite collection of points, the collection of embeddings is called a &#8220;configuration space.&#8221; Loosely, this case covers the idea that embedding may not bring two points together, and is somewhat of a &#8220;global&#8221; situation. Another case is when <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> only has one piece, say a single line. Here, one is exploring more the notion that embeddings may not introduce corners, a &#8220;local&#8221; situation. In both of these cases, the best polynomial approximations for the embedding functions have been identified. Moreover, useful descriptions of the approximations have been obtained.</p>
<p>In the more general situation I consider, I have been interacting with both aspects of embeddings. Since my spaces, <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' />, may have many pieces, I am involved in global aspects of embeddings. Since my <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> may have pieces of any dimension, I am involved in local aspects of embeddings. Unifying the description of the approximations in these two cases has been my task.</p>
<p>&#8212;-</p>
<p>A somewhat different, perhaps <a href="http://sumidiot.blogspot.com/2010/02/approximating-functions-of-shapes.html">more elementary version</a> of this is also available.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/638/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=638&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2010/02/25/approximating-functions-of-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
		<item>
		<title>The Steinhaus Conjecture</title>
		<link>http://sumidiot.wordpress.com/2009/12/23/the-steinhaus-conjecture/</link>
		<comments>http://sumidiot.wordpress.com/2009/12/23/the-steinhaus-conjecture/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 20:16:34 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Play]]></category>
		<category><![CDATA[sage]]></category>
		<category><![CDATA[steinhaus]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=627</guid>
		<description><![CDATA[Or, perhaps more appropriately, &#8220;A&#8221; Steinhaus conjecture, he/she (I&#8217;m guessing Hugo, so he. Perhaps I&#8217;ll look into it) seems to have made a couple. This conjecture (theorem) also goes by the name &#8220;The Three Gap Theorem&#8221;, or &#8220;The Three Distance Theorem&#8221;. Which is all a little annoying, I think. It makes looking for references 3 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=627&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Or, perhaps more appropriately, &#8220;A&#8221; Steinhaus conjecture, he/she (I&#8217;m guessing <a href="http://en.wikipedia.org/wiki/Hugo_Steinhaus">Hugo</a>, so he. Perhaps I&#8217;ll look into it) seems to have made a couple. This conjecture (theorem) also goes by the name &#8220;The Three Gap Theorem&#8221;, or &#8220;The Three Distance Theorem&#8221;. Which is all a little annoying, I think. It makes looking for references 3 times as hard, I reckon. But it&#8217;s a pretty cool result, and I&#8217;m glad Dave Richeson brought it to my attention via his blog post on <a href="http://divisbyzero.com/2009/06/18/three-cool-facts-about-rotations-of-the-circle/">Three cool facts about rotations of the circle</a>.</p>
<p>To write down the theorem, I&#8217;ll first introduce the notation <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x&#92;}' title='&#92;{x&#92;}' class='latex' /> for the &#8220;decimal part&#8221; of a real number, defined as <img src='http://s0.wp.com/latex.php?latex=x-%5Clfloor+x%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x-&#92;lfloor x&#92;rfloor' title='x-&#92;lfloor x&#92;rfloor' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Clfloor+x%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lfloor x&#92;rfloor' title='&#92;lfloor x&#92;rfloor' class='latex' /> being the largest integer no bigger than <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' />. Since I&#8217;ll be thinking about positive <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' />, it is the value of <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' /> if you ignore digits to the left of the decimal point. This seems to be fairly common notation. Anyway&#8230;</p>
<p>The theorem goes something like this:</p>
<p style="padding-left:30px;"><strong>Theorem</strong>: Suppose that <img src='http://s0.wp.com/latex.php?latex=0%3C%5Calpha%3C1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0&lt;&#92;alpha&lt;1' title='0&lt;&#92;alpha&lt;1' class='latex' /> is irrational. Let <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> be a positive integer bigger than 1, and consider the <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> points <img src='http://s0.wp.com/latex.php?latex=%5C%7Bm%5Calpha%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{m&#92;alpha&#92;}' title='&#92;{m&#92;alpha&#92;}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=0%5Cleq+m+%3CN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0&#92;leq m &lt;N' title='0&#92;leq m &lt;N' class='latex' />. These points partition the interval <img src='http://s0.wp.com/latex.php?latex=%5B0%2C1%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[0,1]' title='[0,1]' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> subintervals. If the distances of these subintervals are calculated, there will be either 2 or 3 distinct distances.</p>
<p>The circle comes in by thinking of the interval <img src='http://s0.wp.com/latex.php?latex=%5B0%2C1%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[0,1]' title='[0,1]' class='latex' /> as a circle with circumference 1. To help visualize it, Dr. Richeson made a pretty sweet GeoGebra <a href="http://users.dickinson.edu/~richesod/circlerotation/">applet</a>.</p>
<p>I think this is a pretty initially surprising theorem. My initial shock has worn off just slightly, now that I&#8217;ve played with pictures and dug through a proof, but it&#8217;s still a wonderful result. I mean, irrational values are supposed to do weird things, right? Their multiples should bounce all over the place in the unit interval. And yet, they partition the circle into just 2 or 3 differently-sized gaps? Crazy talk. Also, the theorem as stated above isn&#8217;t as strong as it could be&#8230; you can say a bit more about the distances. I think I&#8217;ll talk more about it in another post.</p>
<p>I started reading about this theorem, after Dr. Richeson&#8217;s post, in the <a href="http://anziamj.austms.org.au/JAMSA/V45/Part3/Ravenstein.html">paper</a> by Tony van Ravenstein. As I was reading the proof I got hung up on some details, and found that consulting the <a href="http://arxiv.org/abs/cs/0609124">paper</a> by Micaela Mayero got me over those difficulties. The paper by Mayero is essentially a formal proof written for the <a href="http://coq.inria.fr/">Coq</a> formal proof system, so it sort of makes sense that details will be pretty fully explained in it. Either way though, it&#8217;s really not a long or particularly difficult proof (you mostly play with some inequalities).</p>
<p>I may return, in a future post, to talking about the proof, and I&#8217;ll certainly come back and tell you as I read more about further consequences and generalizations, and whatever else I find in some other papers I&#8217;m planning on looking at. But for now, let me mention a result in van Ravenstein&#8217;s paper. He proves that in going from the picture with <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> points to the picture of <img src='http://s0.wp.com/latex.php?latex=N%2B1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N+1' title='N+1' class='latex' /> points, the <img src='http://s0.wp.com/latex.php?latex=N%2B1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N+1' title='N+1' class='latex' />-th point will break up the oldest of the intervals with the largest length. The &#8220;age&#8221; of an interval is pretty intuitive. If a particular interval, say between multiples <img src='http://s0.wp.com/latex.php?latex=%5C%7Bp%5Calpha%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{p&#92;alpha&#92;}' title='&#92;{p&#92;alpha&#92;}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7Bq%5Calpha%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{q&#92;alpha&#92;}' title='&#92;{q&#92;alpha&#92;}' class='latex' /> comes in when there are <img src='http://s0.wp.com/latex.php?latex=N_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_0' title='N_0' class='latex' /> points, and those two points are still neighbors when there are <img src='http://s0.wp.com/latex.php?latex=N_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1' title='N_1' class='latex' /> points, then the age of that interval, at stage <img src='http://s0.wp.com/latex.php?latex=N_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1' title='N_1' class='latex' />, is <img src='http://s0.wp.com/latex.php?latex=N_1-N_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1-N_0' title='N_1-N_0' class='latex' /> (plus 1, if you want, it doesn&#8217;t matter).</p>
<p>To help picture what&#8217;s going on, I made an interactive <a href="http://sagemath.org">Sage</a> notebook. If you have an account on <a href="http://sagenb.org">sagenb.org</a>, or have Sage installed on your own computer and want to just copy my code over, you can look at <a href="http://sagenb.org/home/pub/1286/">my code</a> and play with the notebook. I had hoped that publishing my notebook there would let you play with the interactive bits without you needing an account, but no dice. Sorry.</p>
<p>To give some sense of my notebook, and the theorem, I&#8217;ve got some pictures for you.</p>
<p>First, let&#8217;s take <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D0.3826&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=0.3826' title='&#92;alpha=0.3826' class='latex' /> or so (basically 1 minus the golden ratio, nice and irrational). I&#8217;ve set up my notebook so that points travel from 0, at the top of the circle, clockwise, because that&#8217;s how it was done in the papers I was reading, and I thought it&#8217;d be less confusing. So here&#8217;s the starting picture, when there&#8217;s just the points 0 and <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />:</p>
<p><a href="http://sumidiot.files.wordpress.com/2009/12/golden_2.png"><img class="aligncenter size-medium wp-image-630" title="Golden, 2 points" src="http://sumidiot.files.wordpress.com/2009/12/golden_2.png?w=286&#038;h=300" alt="" width="286" height="300" /></a></p>
<p>Along the outside of the circle, at each dot, I list which multiple it is. The &#8220;newest&#8221; dot is magenta, instead of red (probably not great color choices&#8230; mess with my code and make your own <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). In the center of the circle I list the lengths of the intervals, in decreasing order. Along each interval, I also write the age of that interval, and color-code the text to the list of distances. I&#8217;ve decided to always have the largest length be red-orangeish, the smallest length blue-ish, and the middle length (if there is one) green-ish.</p>
<p>In the picture above, the interval on the left is clearly the oldest of the longest length intervals, so the theorem is that when we add another point, this interval will get broken up by that point. Which is clearly true in this case.</p>
<p>Here&#8217;s another picture, using the same <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />, but slightly more points, showing that three gaps occur:</p>
<p><a href="http://sumidiot.files.wordpress.com/2009/12/golden_6.png"><img class="aligncenter size-medium wp-image-631" title="Golden, 6 points" src="http://sumidiot.files.wordpress.com/2009/12/golden_6.png?w=288&#038;h=300" alt="" width="288" height="300" /></a></p>
<p>And, finally, 20 points:</p>
<p><a href="http://sumidiot.files.wordpress.com/2009/12/golden_20.png"><img class="aligncenter size-medium wp-image-632" title="Golden, 20 points" src="http://sumidiot.files.wordpress.com/2009/12/golden_20.png?w=298&#038;h=300" alt="" width="298" height="300" /></a></p>
<p>Here&#8217;s a picture using a starting <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> a little bigger than 0.6, showing 20 points:</p>
<p><a href="http://sumidiot.files.wordpress.com/2009/12/0-6_20.png"><img class="aligncenter size-medium wp-image-629" title="0.6, 20 points" src="http://sumidiot.files.wordpress.com/2009/12/0-6_20.png?w=287&#038;h=300" alt="" width="287" height="300" /></a></p>
<p>I like how the points seem to develop in clusters (also evidenced by Dr. Richeson&#8217;s app).</p>
<p>I guess that&#8217;s probably enough for now. Like I said, I&#8217;m hoping to have plenty more to say about things related to all of this soon&#8230;</p>
<p>Postscript: I want to make a few shout-outs. I thought putting them at the end of this post might interrupt any sort of flow of the article (if there is any) a little less.</p>
<ul>
<li>I was inspired to make an interactive sage notebook by Mike Croucher&#8217;s <a href="http://www.walkingrandomly.com/?p=1879">recent</a> <a href="http://www.walkingrandomly.com/?p=2006">posts</a> at Walking Randomly.</li>
<li>I messed with choosing colors, a little bit, using <a href="http://colorschemedesigner.com/">colorschemedesigner.com</a>, mentioned recently in <a href="http://www.smashingapps.com/2009/12/17/50-best-free-tools-to-create-perfect-color-combinations.html">an article at smashingapps.com</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/627/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=627&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2009/12/23/the-steinhaus-conjecture/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2009/12/golden_2.png?w=286" medium="image">
			<media:title type="html">Golden, 2 points</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2009/12/golden_6.png?w=288" medium="image">
			<media:title type="html">Golden, 6 points</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2009/12/golden_20.png?w=298" medium="image">
			<media:title type="html">Golden, 20 points</media:title>
		</media:content>

		<media:content url="http://sumidiot.files.wordpress.com/2009/12/0-6_20.png?w=287" medium="image">
			<media:title type="html">0.6, 20 points</media:title>
		</media:content>
	</item>
		<item>
		<title>Carnival of Mathematics #60</title>
		<link>http://sumidiot.wordpress.com/2009/12/04/carnival-of-mathematics-60/</link>
		<comments>http://sumidiot.wordpress.com/2009/12/04/carnival-of-mathematics-60/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 05:02:35 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=607</guid>
		<description><![CDATA[Welcome to the Carnival of Mathematics! Finding that the 60th is apparently the &#8220;diamond anniversary,&#8221; I was reminded of the symmetry in the Buckyball , which has the shape of a truncated icosahedron. You can make pretty nice ones using modular origami: Before getting to this month&#8217;s links, allow me a diversion to talk about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=607&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to the Carnival of Mathematics! Finding that the 60th is apparently the &#8220;diamond anniversary,&#8221; I was reminded of the symmetry in the <a href="http://en.wikipedia.org/wiki/Buckyball#.22Buckyball.22">Buckyball</a> <img src='http://s0.wp.com/latex.php?latex=C_%7B60%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_{60}' title='C_{60}' class='latex' />, which has the shape of a <a href="http://en.wikipedia.org/wiki/Truncated_icosahedron">truncated icosahedron</a>. You can make pretty nice ones using modular origami:</p>
<p><a href="http://hektor.umcs.lublin.pl/~mikosmul/origami/buckyball120-phizz.jpg"><img class="aligncenter" src="http://hektor.umcs.lublin.pl/~mikosmul/origami/buckyball120-phizz.jpg" alt="" width="318" height="238" /></a></p>
<p>Before getting to this month&#8217;s links, allow me a diversion to talk about some geometry I learned a little of this month.</p>
<p>There are 6!=720 ways to order the letters A, B, E, I, L, and S. If we declare that two orderings are the same if one is obtained from the other by cyclic permutation (for example, ABEILS and ILSABE are the same), there are 6!/6=5!=120 combinations. If we also declare that a word and it&#8217;s reverse are the same (ABEILS = SLIEBA), we have arrived at 6!/(6*2)=60 combinations.</p>
<p>Pick any 6 distinct points on a circle (or any <a href="http://en.wikipedia.org/wiki/Conic_section">conic section</a>). Choose any of the points as a starting point, and draw a line to any of the other points. Then draw a line to one of the remaining 4 points. Continue until all of the points have been hit, and then draw a line back to your starting point. How many different pictures can you make in this process? 60, again, because you could label the points A, B, E, I, L, S, and then pictures correspond to words from the previous calculation.</p>
<p>Each picture you draw is a figure with six edges. These six edges can be put into three set of pairs, where two edges are paired if they are &#8220;opposite.&#8221; In the process of drawing the lines, above, the line opposite the very first line is the fourth line you draw. Similarly, the second and fifth form a pair, and then the third and sixth.</p>
<p>Now, if you extend all of the lines, each pair of opposite edges will determine a point of intersection (or infinity&#8230; maybe try another setup for your original points <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). So each picture you draw determines 3 points in the plane (or infinity). When he was only 16, <a href="http://en.wikipedia.org/wiki/Blaise_Pascal">Pascal</a> <a href="http://en.wikipedia.org/wiki/Pascal%27s_theorem">showed</a> that these three points are always colinear.</p>
<p>So, given 6 points on a conic, the process outlined above determines 60 lines, called Pascal Lines. Mathworld has more on <a href="http://mathworld.wolfram.com/PascalLines.html">Pascal Lines</a>, for the inquisitive, so it&#8217;s probably about time to direct you over there and get on to this month&#8217;s blog posts!</p>
<p>In honor of 60 being both a <a href="http://en.wikipedia.org/wiki/Colossally_abundant_number">colossally abundant number</a> and a <a href="http://en.wikipedia.org/wiki/Superior_highly_composite_number">superior highly composite number</a>, I thought it fitting to include as many links as divisors of 60. I ended up with slightly more links than that, so here are <img src='http://s0.wp.com/latex.php?latex=%5Cphi%2860%29%3D12&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(60)=12' title='&#92;phi(60)=12' class='latex' /> (<a href="http://en.wikipedia.org/wiki/Euler_totient">more on <img src='http://s0.wp.com/latex.php?latex=%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi' title='&#92;phi' class='latex' /></a>) groups of links from the previous month:</p>
<p>1) At the beginning of the month, Charles Siegel, at Rigorous Trivialities decided to parallel the National Novel Writing Month (<a href="http://www.nanowrimo.org/">NaNoWriMo</a>) by introducing Math Blog Writing Month, MaBloWriMo. After putting it to a vote, he wrote a <a href="http://rigtriv.wordpress.com/category/mablowrimo/">series</a> on intersection theory. Also taking up MaBloWriMo were <a href="http://deltaepsilons.wordpress.com/">Akhil Mathew at Delta Epsilons</a>, <a href="http://qchu.wordpress.com/">Qiaochu Yuan at Annoying Precision</a>, <a href="http://harrisonbrown.wordpress.com/">Harrison Brown at Portrait of the Mathematician</a> and, well, <a href="http://sumidiot.wordpress.com/2009/11/03/mablowrimo/">yours truly</a>. I found it to be a great experience, and hope next year brings many more authors. If you like your daily math in bite-size fashion, and not just in MaBloWriMo, you might check out <a href="http://twitter.com/probfact">probfact</a> on twitter for daily probability facts.</p>
<p>2) At approximately halfway through the month, Wednesday the 18th was determined to be the 150th birthday of the Riemann Hypothesis. <a href="http://plus.maths.org/blog/2009/11/happy-150th-birthday-to-riemann.html">Plus Magazine</a> and <a href="http://mathdl.maa.org/mathDL/?pa=mathNews&amp;sa=view&amp;newsId=714">Math In The News</a> both had articles.</p>
<p>3) Riemann&#8217;s zeta function, the lead character in his hypothesis, is connected to primes by <a href="http://en.wikipedia.org/wiki/Euler_product_formula">Euler&#8217;s product formula</a>. If you are interested in the distribution of the primes, Matt Springer at Built on Facts has a post about the function Li(x), as part of his running <a href="http://scienceblogs.com/builtonfacts/2009/11/sunday_function_53.php">Sunday Function</a> series. If natural number primes aren&#8217;t exciting enough for you, Rich Beveridge at Where The Arts Meet The Sciences has a post for you on <a href="http://richbeveridge.wordpress.com/2009/12/01/gaussian-primes/">Gaussian Primes</a>.</p>
<p>4) It would hardly be a month of math posts without some puzzles:</p>
<ul>
<li>Pat B at Pat&#8217;sBlog: <a href="http://pballew.blogspot.com/2009/11/interesting-counting-problem.html">An Interesting Counting Problem</a></li>
<li>Yan at Concrete Nonsense: <a href="http://concretenonsense.wordpress.com/2009/11/30/m-2-forcing-properties-onto-integer-pairs/">M-2: Forcing Properties onto integer pairs</a></li>
<li>JD2718: <a href="http://jd2718.wordpress.com/2009/11/28/puzzle-who-am-i/">Puzzle: Who am I?</a></li>
<li>Sam Shah at Continuous Everywhere but Differentiable Nowhere: <a href="http://samjshah.com/2009/11/25/circles-circles-everywhere/">Circles, circles everywhere</a></li>
</ul>
<p>If you prefer unsolved puzzles, Bill the Lizard has recently written posts about the <a href="http://www.billthelizard.com/2009/11/unsolved-collatz-conjecture.html">Collatz Conjecture</a> and the <a href="http://www.billthelizard.com/2009/11/unsolved-perfect-cuboid-problem.html">Perfect Cuboid Problem</a>. Alternatively, for some behind-the-scenes on the notoriously difficult Putnam exam (and yet more puzzles), head over to Izabella&#8217;s <a href="http://ilaba.wordpress.com/2009/11/22/putnam/">post</a> at The Accidental Mathematician.</p>
<p>5) It&#8217;ll take a while to get to the 3435th Carnival of Math, so I think I&#8217;m not stepping on too many toes if I point you at Mike Croucher&#8217;s <a href="http://www.walkingrandomly.com/?p=1888">quick post</a> at Walking Randomly and Dan MacKinnon&#8217;s <a href="http://mathrecreation.blogspot.com/2009/11/interesting-and-uninteresting-numbers.html">slightly longer post</a> at mathrecreation that talk about what makes 3435 interesting.</p>
<p>6) Brian, at bit-player, finds some interesting math in a collection of staples, as described in <a href="http://bit-player.org/2009/the-birth-of-the-giant-component">The birth of the giant component.</a></p>
<p>10) Fëanor at JOST A MON presents <a href="http://jostamon.blogspot.com/2008/12/accumulated-causes-and-unknowable.html">Accumulated Causes and Unknowable Effects</a>, related to <a href="http://jostamon.blogspot.com/2008/04/blaise-pascal-said-that-you-couldnt.html">Pascal&#8217;s Wager</a>.</p>
<p>12) This month also saw some nice calculus posts. Daniel Colquitt at General Musings <a href="http://danielcolquitt.wordpress.com/2009/11/16/torricellis-trumpet/">describes</a> the fascinating trumpet of Torricelli. Kalid at BetterExplained asked <a href="http://betterexplained.com/articles/why-do-we-need-limits-and-infinitesimals/">Why Do We Need Limits and Infinitesimals?</a> and had <a href="http://betterexplained.com/articles/a-friendly-chat-about-whether-0-999-1/">A Friendly Chat About Whether 0.999&#8230; = 1</a>.</p>
<p>15) Kareem at The Twofold Gaze points out that asking for a <a href="http://twofoldgaze.wordpress.com/2009/11/30/best-proximate-value/">Best Proximate Value</a> has two reasonable answers.</p>
<p>20) Plus Magazine had an article entitled <a href="http://plus.maths.org/latestnews/sep-dec09/mandelbrot/index.html">Pandora&#8217;s 3D Box</a>, talking about a recently discovered fractal inspired by the Mandelbrot set.</p>
<p>30) Dave Richeson at Division By Zero reports on a case of mistaken identity in <a href="http://divisbyzero.com/2009/11/19/legendre-who/">Legendre Who?</a></p>
<p>60) Finally, Samuel at ACME Science discusses the fractured state of the current mathematics community, noting that <a href="http://acmescience.com/mathematics/234">Mathematics Really is Discrete</a>. This post was closely followed by Abstruse Goose&#8217;s <a href="http://abstrusegoose.com/211">Landscape</a>.</p>
<p>That&#8217;s it for now. Look for the next Carnival, <a href="http://blogcarnival.com/bc/cprof_6422.html">Math Teachers at Play</a>, in two weeks!</p>
<h6>I apologize for any omissions or errors.</h6>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=607&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2009/12/04/carnival-of-mathematics-60/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>

		<media:content url="http://hektor.umcs.lublin.pl/~mikosmul/origami/buckyball120-phizz.jpg" medium="image" />
	</item>
		<item>
		<title>A Favorite Theorem</title>
		<link>http://sumidiot.wordpress.com/2009/11/30/a-favorite-theorem/</link>
		<comments>http://sumidiot.wordpress.com/2009/11/30/a-favorite-theorem/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 04:53:37 +0000</pubDate>
		<dc:creator>sumidiot</dc:creator>
				<category><![CDATA[Play]]></category>
		<category><![CDATA[continued fraction]]></category>
		<category><![CDATA[khinchin]]></category>

		<guid isPermaLink="false">http://sumidiot.wordpress.com/?p=589</guid>
		<description><![CDATA[The other day I was hanging out with some math folk, and one asked the group what our favorite theorems are. A tough question, clearly, since there are soo many fantastic theorems to choose from. For me, there&#8217;s a place in my heart for slightly esoteric theorems. They should be surprising and seem to come [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=589&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The other day I was hanging out with some math folk, and one asked the group what our favorite theorems are. A tough question, clearly, since there are soo many fantastic theorems to choose from. For me, there&#8217;s a place in my heart for slightly esoteric theorems. They should be surprising and seem to come from basically nowhere (unless you&#8217;ve been looking at the subject, perhaps). They should be fairly easy to state&#8230; possibly with a few minutes introduction of some easy definitions or results. And I seem to have taken up thinking that <a href="http://en.wikipedia.org/wiki/Continued_fraction">continued fractions</a> are pretty cool. With that in mind, I present one of my favorite theorems:</p>
<p style="padding-left:30px;"><strong>Theorem</strong>: There is a constant, <img src='http://s0.wp.com/latex.php?latex=K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K' title='K' class='latex' />, such that for almost all <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />, if the continued fraction representation of <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5B0%3Ba_1%2Ca_2%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[0;a_1,a_2,&#92;ldots]' title='[0;a_1,a_2,&#92;ldots]' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%5Bn%5D%7Ba_1%5Ccdots+a_n%7D%5Cto+K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sqrt[n]{a_1&#92;cdots a_n}&#92;to K' title='&#92;sqrt[n]{a_1&#92;cdots a_n}&#92;to K' class='latex' /> as <img src='http://s0.wp.com/latex.php?latex=n%5Cto%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;to&#92;infty' title='n&#92;to&#92;infty' class='latex' />.</p>
<p>It turns out the constant, dubbed <a href="http://en.wikipedia.org/wiki/Khinchin%27s_constant">Khinchin&#8217;s constant</a>, is <img src='http://s0.wp.com/latex.php?latex=K%5Capprox+2.685&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K&#92;approx 2.685' title='K&#92;approx 2.685' class='latex' />, according to Wikipedia anyway. An exact expression for <img src='http://s0.wp.com/latex.php?latex=K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K' title='K' class='latex' /> is</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+K%3D%5Cprod_%7Br%3D1%7D%5E%7B%5Cinfty%7D%5Cleft%281%2B%5Cfrac%7B1%7D%7Br%28r%2B2%29%7D%5Cright%29%5E%7B%5Clog_2%28r%29%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle K=&#92;prod_{r=1}^{&#92;infty}&#92;left(1+&#92;frac{1}{r(r+2)}&#92;right)^{&#92;log_2(r)}.' title='&#92;displaystyle K=&#92;prod_{r=1}^{&#92;infty}&#92;left(1+&#92;frac{1}{r(r+2)}&#92;right)^{&#92;log_2(r)}.' class='latex' /></p>
<p>I&#8217;d like to try to give some very brief background on this theorem, along with the &#8220;few minutes introduction of some easy definitions and results&#8221;.</p>
<p>I should mention, first, that I take Khinchin&#8217;s book &#8220;Continued Fractions&#8221; as my primary reference. Hardy and Wright also have some chapters on continued fractions. And, of course, there&#8217;s Wikipedia.</p>
<p>Let&#8217;s begin with the process of constructing the continued fraction for an <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in (0,1)' title='&#92;alpha&#92;in (0,1)' class='latex' />. I&#8217;ll take <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> irrational, for convenience. Since <img src='http://s0.wp.com/latex.php?latex=0%3C%5Calpha%3C1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0&lt;&#92;alpha&lt;1' title='0&lt;&#92;alpha&lt;1' class='latex' />, we have <img src='http://s0.wp.com/latex.php?latex=1%3C1%2F%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&lt;1/&#92;alpha' title='1&lt;1/&#92;alpha' class='latex' />, and we let <img src='http://s0.wp.com/latex.php?latex=a_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1' title='a_1' class='latex' /> be the largest integer less than <img src='http://s0.wp.com/latex.php?latex=1%2F%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/&#92;alpha' title='1/&#92;alpha' class='latex' />, denoted <img src='http://s0.wp.com/latex.php?latex=%5Clfloor+1%2F%5Calpha%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lfloor 1/&#92;alpha&#92;rfloor' title='&#92;lfloor 1/&#92;alpha&#92;rfloor' class='latex' />, and we know that <img src='http://s0.wp.com/latex.php?latex=a_1%5Cgeq+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1&#92;geq 1' title='a_1&#92;geq 1' class='latex' />. That leaves a little bit over, which I&#8217;ll denote <img src='http://s0.wp.com/latex.php?latex=z_1%3D%281%2F%5Calpha%29-a_1%5Cin+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_1=(1/&#92;alpha)-a_1&#92;in (0,1)' title='z_1=(1/&#92;alpha)-a_1&#92;in (0,1)' class='latex' />. We have <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D1%2F%28a_1%2Bz_1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=1/(a_1+z_1)' title='&#92;alpha=1/(a_1+z_1)' class='latex' />, the first step in our continued fraction. You now iterate this process, looking at <img src='http://s0.wp.com/latex.php?latex=1%2Fz_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/z_1' title='1/z_1' class='latex' />, setting <img src='http://s0.wp.com/latex.php?latex=a_2%3D%5Clfloor+1%2Fz_1%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2=&#92;lfloor 1/z_1&#92;rfloor' title='a_2=&#92;lfloor 1/z_1&#92;rfloor' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=z_2%3D%281%2Fz_1%29-a_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_2=(1/z_1)-a_2' title='z_2=(1/z_1)-a_2' class='latex' />, and obtaining</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Calpha%3D%5Ccfrac%7B1%7D%7Ba_1%2B%5Ccfrac%7B1%7D%7Ba_2%2Bz_2%7D%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;alpha=&#92;cfrac{1}{a_1+&#92;cfrac{1}{a_2+z_2}}.' title='&#92;displaystyle &#92;alpha=&#92;cfrac{1}{a_1+&#92;cfrac{1}{a_2+z_2}}.' class='latex' /></p>
<p>Since I picked <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> irrational, this process keeps going &#8211; you keep getting <img src='http://s0.wp.com/latex.php?latex=a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n' title='a_n' class='latex' /> (all positive integers) and <img src='http://s0.wp.com/latex.php?latex=z_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_n' title='z_n' class='latex' /> (all in <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />). And then instead of writing huge nested fractions, you trim it down to <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5B0%3Ba_1%2Ca_2%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=[0;a_1,a_2,&#92;ldots]' title='&#92;alpha=[0;a_1,a_2,&#92;ldots]' class='latex' />. That initial zero is just becuase I started with <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in (0,1)' title='&#92;alpha&#92;in (0,1)' class='latex' />, you could instead let <img src='http://s0.wp.com/latex.php?latex=a_0%3D%5Clfloor+%5Calpha%27%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_0=&#92;lfloor &#92;alpha&#039;&#92;rfloor' title='a_0=&#92;lfloor &#92;alpha&#039;&#92;rfloor' class='latex' />, if you started with an <img src='http://s0.wp.com/latex.php?latex=%5Calpha%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#039;' title='&#92;alpha&#039;' class='latex' /> outside <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />. I&#8217;ll continue assuming my values are in <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />, so I&#8217;ll frequently just write <img src='http://s0.wp.com/latex.php?latex=%5Ba_1%2Ca_2%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[a_1,a_2,&#92;ldots]' title='[a_1,a_2,&#92;ldots]' class='latex' />, dropping the initial zero.</p>
<p>This process gives us, for every <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in(0,1)' title='&#92;alpha&#92;in(0,1)' class='latex' />, a sequence of values <img src='http://s0.wp.com/latex.php?latex=a_1%2Ca_2%2Ca_3%2C%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1,a_2,a_3,&#92;ldots' title='a_1,a_2,a_3,&#92;ldots' class='latex' />. Restated, we have functions <img src='http://s0.wp.com/latex.php?latex=a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n' title='a_n' class='latex' /> (and <img src='http://s0.wp.com/latex.php?latex=z_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_n' title='z_n' class='latex' /> as well) from <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' /> to positive integers. To start getting at Khinchin&#8217;s constant, you think about combinations of <img src='http://s0.wp.com/latex.php?latex=a_n%5E%7B-1%7D%28k%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n^{-1}(k)' title='a_n^{-1}(k)' class='latex' />, for collections of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />s and <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />s. That is, given <img src='http://s0.wp.com/latex.php?latex=n_1%2Cn_2%2C%5Cldots%2Cn_s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n_1,n_2,&#92;ldots,n_s' title='n_1,n_2,&#92;ldots,n_s' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=k_1%2Ck_2%2C%5Cldots%2Ck_s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k_1,k_2,&#92;ldots,k_s' title='k_1,k_2,&#92;ldots,k_s' class='latex' />, all positive integers, what does the set of all <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Ba_1%2Ca_2%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=[a_1,a_2,&#92;ldots]' title='&#92;alpha=[a_1,a_2,&#92;ldots]' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=a_%7Bn_i%7D%3Dk_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_{n_i}=k_i' title='a_{n_i}=k_i' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i%3D1%2C%5Cldots%2Cs&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i=1,&#92;ldots,s' title='i=1,&#92;ldots,s' class='latex' /> look like?</p>
<p>Let&#8217;s start with <img src='http://s0.wp.com/latex.php?latex=a_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1' title='a_1' class='latex' />, since it is the easiest. What does <img src='http://s0.wp.com/latex.php?latex=a_1%5E%7B-1%7D%28k%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1^{-1}(k)' title='a_1^{-1}(k)' class='latex' /> look like? Well, <img src='http://s0.wp.com/latex.php?latex=a_1%28%5Calpha%29%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1(&#92;alpha)=k' title='a_1(&#92;alpha)=k' class='latex' /> means that <img src='http://s0.wp.com/latex.php?latex=%5Clfloor+1%2F%5Calpha%5Crfloor%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lfloor 1/&#92;alpha&#92;rfloor=k' title='&#92;lfloor 1/&#92;alpha&#92;rfloor=k' class='latex' />. Which is to say, <img src='http://s0.wp.com/latex.php?latex=k%5Cleq+1%2F%5Calpha%3Ck%2B1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k&#92;leq 1/&#92;alpha&lt;k+1' title='k&#92;leq 1/&#92;alpha&lt;k+1' class='latex' />, or <img src='http://s0.wp.com/latex.php?latex=1%2F%28k%2B1%29%3C%5Calpha%5Cleq+1%2Fk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/(k+1)&lt;&#92;alpha&#92;leq 1/k' title='1/(k+1)&lt;&#92;alpha&#92;leq 1/k' class='latex' />. So the graph of <img src='http://s0.wp.com/latex.php?latex=a_1%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1(x)' title='a_1(x)' class='latex' /> is a step function, taking the value <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> on the interval <img src='http://s0.wp.com/latex.php?latex=%281%2F%28k%2B1%29%2C1%2Fk%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1/(k+1),1/k]' title='(1/(k+1),1/k]' class='latex' />. I picture this as a staircase descending as you move to the right. Of course, the stairs are pretty narrow on the left&#8230;</p>
<p>As an example, <img src='http://s0.wp.com/latex.php?latex=a_1%5E%7B-1%7D%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1^{-1}(3)' title='a_1^{-1}(3)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%281%2F4%2C1%2F3%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1/4,1/3]' title='(1/4,1/3]' class='latex' />, the third stair from the right.</p>
<p>Now, on to <img src='http://s0.wp.com/latex.php?latex=a_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2' title='a_2' class='latex' />. What does <img src='http://s0.wp.com/latex.php?latex=a_2%5E%7B-1%7D%28k%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2^{-1}(k)' title='a_2^{-1}(k)' class='latex' /> look like? Well, in finding the continued fraction for <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />, we find first <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D1%2F%28a_1%2Bz_1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=1/(a_1+z_1)' title='&#92;alpha=1/(a_1+z_1)' class='latex' />, and if <img src='http://s0.wp.com/latex.php?latex=a_2%28%5Calpha%29%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2(&#92;alpha)=k' title='a_2(&#92;alpha)=k' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Clfloor+1%2Fz_1%5Crfloor+%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lfloor 1/z_1&#92;rfloor =k' title='&#92;lfloor 1/z_1&#92;rfloor =k' class='latex' />, or <img src='http://s0.wp.com/latex.php?latex=1%2F%28k%2B1%29%3Cz_1%3C1%2Fk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/(k+1)&lt;z_1&lt;1/k' title='1/(k+1)&lt;z_1&lt;1/k' class='latex' />. So we find that for any <img src='http://s0.wp.com/latex.php?latex=a_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1' title='a_1' class='latex' />, all values between <img src='http://s0.wp.com/latex.php?latex=1%2F%28a_1%2B1%2Fk%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/(a_1+1/k)' title='1/(a_1+1/k)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=1%2F%28a_1%2B1%2F%28k%2B1%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/(a_1+1/(k+1))' title='1/(a_1+1/(k+1))' class='latex' /> have <img src='http://s0.wp.com/latex.php?latex=a_2%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2=k' title='a_2=k' class='latex' />. That is, in each of the &#8220;stairs&#8221; from the discussion of <img src='http://s0.wp.com/latex.php?latex=a_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1' title='a_1' class='latex' />, the graph of <img src='http://s0.wp.com/latex.php?latex=a_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2' title='a_2' class='latex' /> has another staircase, this time ascending as you move from left to right.</p>
<p>For example, <img src='http://s0.wp.com/latex.php?latex=a_2%5E%7B-1%7D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_2^{-1}(2)' title='a_2^{-1}(2)' class='latex' /> comprises, in the ascending staircases in each interval <img src='http://s0.wp.com/latex.php?latex=%281%2F%28k%2B1%29%2C1%2Fk%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1/(k+1),1/k]' title='(1/(k+1),1/k]' class='latex' />, the second stair from the left. It is an infinite collection of intervals. If you also ask about those where <img src='http://s0.wp.com/latex.php?latex=a_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1' title='a_1' class='latex' /> is some constant, you pick out a single subinterval.</p>
<p>So we&#8217;ve got at least a little idea about how these functions <img src='http://s0.wp.com/latex.php?latex=a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n' title='a_n' class='latex' /> work. Given <img src='http://s0.wp.com/latex.php?latex=n_1%2C%5Cldots%2Cn_s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n_1,&#92;ldots,n_s' title='n_1,&#92;ldots,n_s' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=k_1%2C%5Cldots%2Ck_s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k_1,&#92;ldots,k_s' title='k_1,&#92;ldots,k_s' class='latex' /> as above, the set of all <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=a_%7Bn_i%7D%3Dk_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_{n_i}=k_i' title='a_{n_i}=k_i' class='latex' /> will be an infinite collection of subintervals of <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />. Next you could ask, what is the measure (sum of lengths of intervals) of this set? I&#8217;ll mostly talk about the case when <img src='http://s0.wp.com/latex.php?latex=s%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s=1' title='s=1' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=n_1%3Dn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n_1=n' title='n_1=n' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=k_1%3Dk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k_1=k' title='k_1=k' class='latex' />. I&#8217;ll denote the set of appropriate <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> by <img src='http://s0.wp.com/latex.php?latex=E%5Cbinom%7Bn%7D%7Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E&#92;binom{n}{k}' title='E&#92;binom{n}{k}' class='latex' />, and the measure of that set by <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BM%7D%5Cbinom%7Bn%7D%7Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{M}&#92;binom{n}{k}' title='&#92;mathcal{M}&#92;binom{n}{k}' class='latex' />.</p>
<p>Apparently <a href="http://en.wikipedia.org/wiki/Gauss">Gauss</a> had a go at questions like this. He defined <img src='http://s0.wp.com/latex.php?latex=m_n%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_n(x)' title='m_n(x)' class='latex' /> to be the measure of the set of all <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=z_n%28%5Calpha%29%3Cx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_n(&#92;alpha)&lt;x' title='z_n(&#92;alpha)&lt;x' class='latex' />, and found that</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim_%7Bn%5Cto%5Cinfty%7D+m_n%28x%29%3D%5Cfrac%7B%5Cln%281%2Bx%29%7D%7B%5Cln+2%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty} m_n(x)=&#92;frac{&#92;ln(1+x)}{&#92;ln 2}.' title='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty} m_n(x)=&#92;frac{&#92;ln(1+x)}{&#92;ln 2}.' class='latex' /></p>
<p>Crazy (brilliant) old Gauss (who apparently had an <em>awesome</em> <a href="http://upload.wikimedia.org/wikipedia/commons/3/3f/Carl_Friedrich_Gau%C3%9F_signature.svg">signature</a>). Khinchin suggests that Gauss probably arrived at this result based on a recurrence relation (functional equation, if you&#8217;d rather) among the <img src='http://s0.wp.com/latex.php?latex=m_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_i' title='m_i' class='latex' />. I&#8217;ll let you read about it in Khinchin&#8217;s book. Anyway, in 1928, Kuz&#8217;min came along and found a generalization. Kuz&#8217;min&#8217;s theorem gives a more precise result than Gauss&#8217; (at least, as stated above). Namely:</p>
<p style="padding-left:30px;"><strong>Theorem</strong>: There are positive constants, <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Clambda&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lambda' title='&#92;lambda' class='latex' />, such that</p>
<p style="text-align:center;padding-left:30px;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cleft%7Cm_n%27%28x%29-%5Cfrac%7B1%7D%7B%281%2Bx%29%5Cln+2%7D%5Cright%7C%3CAe%5E%7B-%5Clambda%5Csqrt%7Bn%7D%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;left|m_n&#039;(x)-&#92;frac{1}{(1+x)&#92;ln 2}&#92;right|&lt;Ae^{-&#92;lambda&#92;sqrt{n}}.' title='&#92;displaystyle &#92;left|m_n&#039;(x)-&#92;frac{1}{(1+x)&#92;ln 2}&#92;right|&lt;Ae^{-&#92;lambda&#92;sqrt{n}}.' class='latex' /></p>
<p>On integrating and taking limits, we obtain Gauss&#8217; result. Alternatively, using the relation</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cmathcal%7BM%7D%5Cbinom%7Bn%7D%7Bk%7D%3Dm_%7Bn-1%7D%28%5Ctfrac%7B1%7D%7Bk%7D%29-m_%7Bn-1%7D%28%5Ctfrac%7B1%7D%7Bk%2B1%7D%29%3D%5Cint_%7B1%2F%28k%2B1%29%7D%5E%7B1%2Fk%7Dm_%7Bn-1%7D%27%28x%29%5C+dx%2C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;mathcal{M}&#92;binom{n}{k}=m_{n-1}(&#92;tfrac{1}{k})-m_{n-1}(&#92;tfrac{1}{k+1})=&#92;int_{1/(k+1)}^{1/k}m_{n-1}&#039;(x)&#92; dx,' title='&#92;displaystyle &#92;mathcal{M}&#92;binom{n}{k}=m_{n-1}(&#92;tfrac{1}{k})-m_{n-1}(&#92;tfrac{1}{k+1})=&#92;int_{1/(k+1)}^{1/k}m_{n-1}&#039;(x)&#92; dx,' class='latex' /></p>
<p>one can also obtain</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cleft%7C%5Cmathcal%7BM%7D%5Cbinom%7Bn%7D%7Bk%7D-%5Clog_2%5Cleft%281%2B%5Cfrac%7B1%7D%7Bk%28k%2B2%29%7D%5Cright%29%5Cright%7C+%3C+%5Cfrac%7BA%7D%7Bk%28k%2B1%29%7De%5E%7B-%5Clambda%5Csqrt%7Bn-1%7D%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;left|&#92;mathcal{M}&#92;binom{n}{k}-&#92;log_2&#92;left(1+&#92;frac{1}{k(k+2)}&#92;right)&#92;right| &lt; &#92;frac{A}{k(k+1)}e^{-&#92;lambda&#92;sqrt{n-1}}.' title='&#92;displaystyle &#92;left|&#92;mathcal{M}&#92;binom{n}{k}-&#92;log_2&#92;left(1+&#92;frac{1}{k(k+2)}&#92;right)&#92;right| &lt; &#92;frac{A}{k(k+1)}e^{-&#92;lambda&#92;sqrt{n-1}}.' class='latex' /></p>
<p>Or, taking limits,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim_%7Bn%5Cto%5Cinfty%7D+%5Cmathcal%7BM%7D%5Cbinom%7Bn%7D%7Bk%7D%3D%5Clog_2%5Cleft%281%2B%5Cfrac%7B1%7D%7Bk%28k%2B2%29%7D%5Cright%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty} &#92;mathcal{M}&#92;binom{n}{k}=&#92;log_2&#92;left(1+&#92;frac{1}{k(k+2)}&#92;right).' title='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty} &#92;mathcal{M}&#92;binom{n}{k}=&#92;log_2&#92;left(1+&#92;frac{1}{k(k+2)}&#92;right).' class='latex' /></p>
<p>This, by itself, seems pretty interesting. I find it a hard limit to interpret. After all, <img src='http://s0.wp.com/latex.php?latex=E%5Cbinom%7Bn%7D%7Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E&#92;binom{n}{k}' title='E&#92;binom{n}{k}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=E%5Cbinom%7Bn%2B1%7D%7Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E&#92;binom{n+1}{k}' title='E&#92;binom{n+1}{k}' class='latex' /> have nothing to do with eachother, so the measure that we are calculating is of a completely different set with each <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />. If, instead, we were taking measures of a sequence of nested subsets, or something, I feel like I could get a better handle on this theorem. But we&#8217;re not. If anybody has a nice interpretation of this limit, I&#8217;d love to hear it.</p>
<p>Anyway, it&#8217;s about time for Khinchin&#8217;s theorem:</p>
<p style="padding-left:30px;"><strong>Theorem</strong>: If <img src='http://s0.wp.com/latex.php?latex=f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f' title='f' class='latex' /> is a function from positive integers to positive reals such that <img src='http://s0.wp.com/latex.php?latex=f%28r%29%3CC%5Ccdot+r%5E%7B%5Cfrac%7B1%7D%7B2%7D-%5Cdelta%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r)&lt;C&#92;cdot r^{&#92;frac{1}{2}-&#92;delta}' title='f(r)&lt;C&#92;cdot r^{&#92;frac{1}{2}-&#92;delta}' class='latex' /> for some positive constants <img src='http://s0.wp.com/latex.php?latex=C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C' title='C' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta' title='&#92;delta' class='latex' />, then for almost every <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Ba_1%2Ca_2%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=[a_1,a_2,&#92;ldots]' title='&#92;alpha=[a_1,a_2,&#92;ldots]' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,1)' title='(0,1)' class='latex' />,</p>
<p style="text-align:center;padding-left:30px;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim_%7Bn%5Cto%5Cinfty%7D%5Cfrac%7B1%7D%7Bn%7D%5Csum_%7Bk%3D1%7D%5E%7B%5Cinfty%7Df%28a_k%29%3D%5Csum_%7Br%3D1%7D%5E%7B%5Cinfty%7Df%28r%29%5Clog_2%5Cleft%281%2B%5Cfrac%7B1%7D%7Br%28r%2B2%29%7D%5Cright%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty}&#92;frac{1}{n}&#92;sum_{k=1}^{&#92;infty}f(a_k)=&#92;sum_{r=1}^{&#92;infty}f(r)&#92;log_2&#92;left(1+&#92;frac{1}{r(r+2)}&#92;right).' title='&#92;displaystyle &#92;lim_{n&#92;to&#92;infty}&#92;frac{1}{n}&#92;sum_{k=1}^{&#92;infty}f(a_k)=&#92;sum_{r=1}^{&#92;infty}f(r)&#92;log_2&#92;left(1+&#92;frac{1}{r(r+2)}&#92;right).' class='latex' /></p>
<p>Khinchin&#8217;s constant is obtained from the case when <img src='http://s0.wp.com/latex.php?latex=f%28r%29%3D%5Cln%28r%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r)=&#92;ln(r)' title='f(r)=&#92;ln(r)' class='latex' />, simply messing with the equality using log and exponent rules.</p>
<p>Another interesting case is when you take <img src='http://s0.wp.com/latex.php?latex=f%28r%29%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r)=1' title='f(r)=1' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=r%3D%5Cell&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r=&#92;ell' title='r=&#92;ell' class='latex' /> and 0 otherwise. Then the limit on the left of the equality in Khinchin&#8217;s theorem should be interpreted as the density of <img src='http://s0.wp.com/latex.php?latex=%5Cell&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;ell' title='&#92;ell' class='latex' /> among the values of the <img src='http://s0.wp.com/latex.php?latex=a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n' title='a_n' class='latex' /> in the continued fraction for <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. The expression on the right in the equality simplifies to a single term, instead of an infinite series. For example, with <img src='http://s0.wp.com/latex.php?latex=%5Cell%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;ell=1' title='&#92;ell=1' class='latex' /> we find that approximately 42% of the terms (Khinchin calls them &#8220;elements&#8221;) in the continued fraction for just about any <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> you pick will be 1. Khinchin summarizes the result:</p>
<p style="padding-left:30px;">&#8220;Thus, an arbitrary natural number occurs as an element in the expansion of almost all numbers with equal average frequency.&#8221;</p>
<p>Pretty awesome. Pick a positive integer. Pick any <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> you want (pick several!). Find all of the elements in the continued fraction for <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />, and the percentage that are your chosen integer (it will be a positive percentage!). You&#8217;ll get the same percentage for all of the <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> you pick. Unless, of course, you have terrible luck (or are malicious) in picking <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. When you&#8217;re done with all of that, you might check, as a fun little algebra exercise, that the sum of all of the expected densities, over all choices of <img src='http://s0.wp.com/latex.php?latex=%5Cell&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;ell' title='&#92;ell' class='latex' />, is 1, as it should be.</p>
<p>There are a few other interesting results like this. For some reason I have a harder time remembering them, and so they didn&#8217;t get to be my favorite theorem. But they&#8217;re just as cool, really.</p>
<p>For the first, I should remind you that the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />-th convergent for a continued fraction <img src='http://s0.wp.com/latex.php?latex=%5Ba_1%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[a_1,&#92;ldots]' title='[a_1,&#92;ldots]' class='latex' /> is the fraction <img src='http://s0.wp.com/latex.php?latex=%5Ba_1%2C%5Cldots%2Ca_n%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[a_1,&#92;ldots,a_n]' title='[a_1,&#92;ldots,a_n]' class='latex' />. As this is a finite continued fraction, it represents a rational number, and it is typically denoted <img src='http://s0.wp.com/latex.php?latex=p_n%2Fq_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_n/q_n' title='p_n/q_n' class='latex' /> (relatively prime). The growth of the denominators in the sequence of convergents in a continued fraction is a fairly worthwhile question. Using some elementary relationships among the <img src='http://s0.wp.com/latex.php?latex=a_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_i' title='a_i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q_i' title='q_i' class='latex' />, you can find that <img src='http://s0.wp.com/latex.php?latex=a_1%5Ccdots+a_n%3Cq_n%3C2%5Ena_1%5Ccdots+a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1&#92;cdots a_n&lt;q_n&lt;2^na_1&#92;cdots a_n' title='a_1&#92;cdots a_n&lt;q_n&lt;2^na_1&#92;cdots a_n' class='latex' />. The interesting theorem I have in mind is another &#8220;there is a constant&#8221; theorem:</p>
<p style="padding-left:30px;"><strong>Theorem</strong>: For almost all <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Ba_1%2C%5Cldots%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=[a_1,&#92;ldots]' title='&#92;alpha=[a_1,&#92;ldots]' class='latex' />,</p>
<p style="text-align:center;padding-left:30px;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim_%7Bn%5Cto+%5Cinfty%7D%5Csqrt%5Bn%5D%7Bq_n%7D%3De%5E%7B%5Cpi%5E2%2F%2812%5Cln+2%29%7D.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim_{n&#92;to &#92;infty}&#92;sqrt[n]{q_n}=e^{&#92;pi^2/(12&#92;ln 2)}.' title='&#92;displaystyle &#92;lim_{n&#92;to &#92;infty}&#92;sqrt[n]{q_n}=e^{&#92;pi^2/(12&#92;ln 2)}.' class='latex' /></p>
<p>This constant gets called the <a href="http://en.wikipedia.org/wiki/L%C3%A9vy%27s_constant">Lévy-Khinchin</a> constant on Wikipedia.</p>
<p>Another interesting result, which I stumbled across while preparing a talk about some of these things, is called <a href="http://en.wikipedia.org/wiki/Lochs%27_theorem">Lochs&#8217; theorem</a>. I know even less about this than the previous theorems (it isn&#8217;t in Khinchin&#8217;s book), but apparently it basically says that each time you find a new <img src='http://s0.wp.com/latex.php?latex=a_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_n' title='a_n' class='latex' />, in the process of finding the continued fraction for <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />, the convergent has one better decimal place of accuracy than the previous convergent. So continued fractions are just as expressive as decimals. They just don&#8217;t add together quite so easily <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So anyway, what&#8217;s your favorite theorem?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumidiot.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumidiot.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumidiot.wordpress.com/589/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumidiot.wordpress.com&amp;blog=5520939&amp;post=589&amp;subd=sumidiot&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumidiot.wordpress.com/2009/11/30/a-favorite-theorem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8580d3520f46f19cc7fa4f482b795b0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumidiot</media:title>
		</media:content>
	</item>
	</channel>
</rss>
