<?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>XOR's Hammer</title>
	<atom:link href="http://xorshammer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://xorshammer.com</link>
	<description>Some things in mathematical logic that I find interesting</description>
	<lastBuildDate>Thu, 19 Jan 2012 02:10:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xorshammer.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>XOR's Hammer</title>
		<link>http://xorshammer.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xorshammer.com/osd.xml" title="XOR&#039;s Hammer" />
	<atom:link rel='hub' href='http://xorshammer.com/?pushpress=hub'/>
		<item>
		<title>Generating Functions as Cardinality of Set Maps</title>
		<link>http://xorshammer.com/2011/12/24/generating-functions-as-cardinality-of-set-maps/</link>
		<comments>http://xorshammer.com/2011/12/24/generating-functions-as-cardinality-of-set-maps/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 18:57:28 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=712</guid>
		<description><![CDATA[There is a class of all cardinalities , and it has elements , and operations , , and so forth defined on it. Furthermore, there is a map which takes sets to cardinalities such that (and so on). Ordinary generating &#8230; <a href="http://xorshammer.com/2011/12/24/generating-functions-as-cardinality-of-set-maps/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=712&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is a class of all cardinalities <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BCard%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Card}' title='&#92;mathbf{Card}' class='latex' />, and it<br />
has elements <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> and operations <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccdot&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cdot' title='&#92;cdot' class='latex' />, and so forth defined on it.  Furthermore, there is a map<br />
<img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcard%7D%5Ccolon%5Cmathbf%7BSet%7D%5Cto%5Cmathbf%7BCard%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{card}&#92;colon&#92;mathbf{Set}&#92;to&#92;mathbf{Card}' title='&#92;mathrm{card}&#92;colon&#92;mathbf{Set}&#92;to&#92;mathbf{Card}' class='latex' /> which takes<br />
sets to cardinalities such that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcard%7D%28A%5Ctimes++B%29%3D%5Cmathrm%7Bcard%7D%28A%29%5Ccdot%5Cmathrm%7Bcard%7D%28B%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{card}(A&#92;times  B)=&#92;mathrm{card}(A)&#92;cdot&#92;mathrm{card}(B)' title='&#92;mathrm{card}(A&#92;times  B)=&#92;mathrm{card}(A)&#92;cdot&#92;mathrm{card}(B)' class='latex' /> (and so on).</p>
<p>Ordinary generating functions can be thought of entirely analogously<br />
with set maps <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BSet%7D%5Cto%5Cmathbf%7BSet%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Set}&#92;to&#92;mathbf{Set}' title='&#92;mathbf{Set}&#92;to&#92;mathbf{Set}' class='latex' /> replacing sets:<br />
There is a class <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BGenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{GenFunc}' title='&#92;mathbf{GenFunc}' class='latex' /> with elements <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' />,<br />
<img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' />, and operations <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccdot&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cdot' title='&#92;cdot' class='latex' />.  Furthermore,<br />
there is a (partial) map <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BgenFunc%7D%5Ccolon+%28%5Cmathbf%7BSet%7D%5Cto%5Cmathbf%7BSet%7D%29%5Cto%5Cmathbf%7BGenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{genFunc}&#92;colon (&#92;mathbf{Set}&#92;to&#92;mathbf{Set})&#92;to&#92;mathbf{GenFunc}' title='&#92;mathrm{genFunc}&#92;colon (&#92;mathbf{Set}&#92;to&#92;mathbf{Set})&#92;to&#92;mathbf{GenFunc}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BgenFunc%7D%28F%5Ctimes+G%29%3D%5Cmathrm%7BgenFunc%7D%28F%29%5Ccdot%5Cmathrm%7BgenFunc%7D%28G%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{genFunc}(F&#92;times G)=&#92;mathrm{genFunc}(F)&#92;cdot&#92;mathrm{genFunc}(G)' title='&#92;mathrm{genFunc}(F&#92;times G)=&#92;mathrm{genFunc}(F)&#92;cdot&#92;mathrm{genFunc}(G)' class='latex' /> (and so on).  Here, <img src='http://s0.wp.com/latex.php?latex=F%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#92;times G' title='F&#92;times G' class='latex' /> is defined by <img src='http://s0.wp.com/latex.php?latex=%28F%5Ctimes+G%29%28S%29%3DF%28S%29%5Ctimes+G%28S%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(F&#92;times G)(S)=F(S)&#92;times G(S)' title='(F&#92;times G)(S)=F(S)&#92;times G(S)' class='latex' />.  Other operations on set maps (like disjoint union) are similarly defined pointwise.</p>
<p>(This is probably obvious and trivial to anyone who actually works<br />
with generating functions, but it only occurred to me recently, so I<br />
thought I&#8217;d write a blog post about it.)</p>
<p>The class <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BGenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{GenFunc}' title='&#92;mathbf{GenFunc}' class='latex' /> is in fact a set, and is just the set of formal power series <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Csum_%7Bi%5Cgeq+0%7D+a_i+z%5Ei%5Cmid+a_i%5Cin%5Cmathbb%7BN%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;sum_{i&#92;geq 0} a_i z^i&#92;mid a_i&#92;in&#92;mathbb{N}&#92;}' title='&#92;{&#92;sum_{i&#92;geq 0} a_i z^i&#92;mid a_i&#92;in&#92;mathbb{N}&#92;}' class='latex' />.  The partial map <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BgenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{genFunc}' title='&#92;mathrm{genFunc}' class='latex' /> takes <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' /> to <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%5Cgeq+0%7D+a_i+z%5Ei&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i&#92;geq 0} a_i z^i' title='&#92;sum_{i&#92;geq 0} a_i z^i' class='latex' /> just in case <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 &#8220;canonically isomorphic&#8221; (a notion I&#8217;ll leave slippery and undefined but that can be made precise) to the map <img src='http://s0.wp.com/latex.php?latex=Z%5Cmapsto+%5Ccoprod_%7Bi%5Cgeq+0%7D+%5C%7B1%2C2%2C%5Cldots%2Ca_i%5C%7D%5Ctimes+Z%5Ei&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z&#92;mapsto &#92;coprod_{i&#92;geq 0} &#92;{1,2,&#92;ldots,a_i&#92;}&#92;times Z^i' title='Z&#92;mapsto &#92;coprod_{i&#92;geq 0} &#92;{1,2,&#92;ldots,a_i&#92;}&#92;times Z^i' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Ccoprod&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;coprod' title='&#92;coprod' class='latex' /> indicates disjoint union.</p>
<p>That provides a semantics for ordinary generating functions.  Furthermore, this semantics has a number of features beyond those of cardinality.  For example, in addition to respecting <img src='http://s0.wp.com/latex.php?latex=%5Ccoprod&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;coprod' title='&#92;coprod' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctimes&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;times' title='&#92;times' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BgenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{genFunc}' title='&#92;mathrm{genFunc}' class='latex' /> represents composition.</p>
<p>A similar semantics can be provided for exponential generating functions, but it takes a little more work.  In particular, we have to single out <img src='http://s0.wp.com/latex.php?latex=%5Clbrack0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack0,1&#92;rbrack' title='&#92;lbrack0,1&#92;rbrack' class='latex' /> as a distinguished set.  Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Meas}' title='&#92;mathbf{Meas}' class='latex' /> be the smallest set containing all measurable subsets of <img src='http://s0.wp.com/latex.php?latex=%5Clbrack0%2C1%5Crbrack%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack0,1&#92;rbrack^n' title='&#92;lbrack0,1&#92;rbrack^n' class='latex' /> for any finite <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' /> and which is closed under finite products, countable disjoint unions, and products with sets <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2C%5Cldots%2Cn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1,&#92;ldots,n&#92;}' title='&#92;{1,&#92;ldots,n&#92;}' class='latex' /> for finite <img src='http://s0.wp.com/latex.php?latex=n%5Cgeq+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;geq 1' title='n&#92;geq 1' class='latex' />.  </p>
<p>We can define the measure <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' /> of all sets in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Meas}' title='&#92;mathbf{Meas}' class='latex' /> by extending Lebesgue measure in the obvious way (taking the product of a set with <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2C%5Cldots%2Cn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1,&#92;ldots,n&#92;}' title='&#92;{1,&#92;ldots,n&#92;}' class='latex' /> will multiply the measure by <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' />).  Furthermore, notice that, by construction, every element of every set <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' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Meas}' title='&#92;mathbf{Meas}' class='latex' /> is a tuple which (after flattening) has all of its elements either natural numbers or elements of <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /> and has at least one element of <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />.  Therefore, we can define a pre-ordering on <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' /> by comparing the corresponding first elements that are in <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />.</p>
<p>The point of all that is that, for <img src='http://s0.wp.com/latex.php?latex=M%5Cin%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M&#92;in&#92;mathbf{Meas}' title='M&#92;in&#92;mathbf{Meas}' class='latex' />, we can form the set <img src='http://s0.wp.com/latex.php?latex=M%5En_%7B%3C%7D%3D%5C%7B%5Clangle+m_1%2C%5Cldots%2Cm_n%5Crangle%5Cmid+m_1+%3C+%5Ccdots+%3C+m_n%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M^n_{&lt;}=&#92;{&#92;langle m_1,&#92;ldots,m_n&#92;rangle&#92;mid m_1 &lt; &#92;cdots &lt; m_n&#92;}' title='M^n_{&lt;}=&#92;{&#92;langle m_1,&#92;ldots,m_n&#92;rangle&#92;mid m_1 &lt; &#92;cdots &lt; m_n&#92;}' class='latex' /> which will again be in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Meas}' title='&#92;mathbf{Meas}' class='latex' /> and its measure will be <img src='http://s0.wp.com/latex.php?latex=%5Cmu%28M%29%5En%2Fn%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu(M)^n/n!' title='&#92;mu(M)^n/n!' class='latex' />.  The corresponding statement with cardinality is not true since you have to worry about the case when elements in the tuple are equal (<img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcard%7D%28X%5En_%7B%3C%7D%29+%3D+%5Cmathrm%7Bcard%7D%28X%29%28%5Cmathrm%7Bcard%7D%28X%29-1%29%5Ccdots%28%5Cmathrm%7Bcard%7D%28X%29-n%2B1%29%2Fn%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{card}(X^n_{&lt;}) = &#92;mathrm{card}(X)(&#92;mathrm{card}(X)-1)&#92;cdots(&#92;mathrm{card}(X)-n+1)/n!' title='&#92;mathrm{card}(X^n_{&lt;}) = &#92;mathrm{card}(X)(&#92;mathrm{card}(X)-1)&#92;cdots(&#92;mathrm{card}(X)-n+1)/n!' class='latex' />) but the set of tuples that have duplicates has measure 0, so by working with measure, we can get the equality we want.</p>
<p>Finally, let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BExpGenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{ExpGenFunc}' title='&#92;mathbf{ExpGenFunc}' class='latex' /> be the set of formal power series <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Csum_%7Bi%5Cgeq+0%7D+a_i%2Fi%21+z%5Ei%5Cmid+a_i%5Cin%5Cmathbb%7BN%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;sum_{i&#92;geq 0} a_i/i! z^i&#92;mid a_i&#92;in&#92;mathbb{N}&#92;}' title='&#92;{&#92;sum_{i&#92;geq 0} a_i/i! z^i&#92;mid a_i&#92;in&#92;mathbb{N}&#92;}' class='latex' />.  The partial map <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BexpGenFunc%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{expGenFunc}' title='&#92;mathrm{expGenFunc}' class='latex' /> takes <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' /> to <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%5Cgeq+0%7D+a_i%2Fi%21+z_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i&#92;geq 0} a_i/i! z_i' title='&#92;sum_{i&#92;geq 0} a_i/i! z_i' class='latex' /> just in case <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 &#8220;canonically isomorphic&#8221; to the map <img src='http://s0.wp.com/latex.php?latex=Z%5Cmapsto+%5Ccoprod_%7Bi%5Cgeq+0%7D+%5C%7B1%2C2%2C%5Cldots%2Ca_i%5C%7D%5Ctimes+Z%5Ei_%7B%3C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z&#92;mapsto &#92;coprod_{i&#92;geq 0} &#92;{1,2,&#92;ldots,a_i&#92;}&#92;times Z^i_{&lt;}' title='Z&#92;mapsto &#92;coprod_{i&#92;geq 0} &#92;{1,2,&#92;ldots,a_i&#92;}&#92;times Z^i_{&lt;}' class='latex' /> for all <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' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BMeas%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{Meas}' title='&#92;mathbf{Meas}' class='latex' />.  Just as before, this map respects <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccdot&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cdot' title='&#92;cdot' class='latex' />, composition, etc.</p>
<p>Note that the exponential generating functions are usually explained via labeled objects and some sort of relabeling operation.  This approach weasels out of that by observing that the event that there was a label collision has probability 0, so you can just ignore it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/712/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=712&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2011/12/24/generating-functions-as-cardinality-of-set-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Mathematica and Quantifier Elimination</title>
		<link>http://xorshammer.com/2011/12/15/mathematica-and-quantifier-elimination/</link>
		<comments>http://xorshammer.com/2011/12/15/mathematica-and-quantifier-elimination/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 05:38:22 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=678</guid>
		<description><![CDATA[In 1931, Alfred Tarski proved that the real ordered field allows quantifier elimination: i.e., every first-order formula is equivalent to one with no quantifiers.  This is implemented in Mathematica&#8217;s &#8220;Resolve&#8221; function. The Resolve function is called like Resolve[formula,domain] where domain &#8230; <a href="http://xorshammer.com/2011/12/15/mathematica-and-quantifier-elimination/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=678&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In 1931, Alfred Tarski proved that the real ordered field <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathbb%7BR%7D%2C+0%2C+1%2C+%2B%2C%5Ctimes%2C+%3C%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathbb{R}, 0, 1, +,&#92;times, &lt;)' title='(&#92;mathbb{R}, 0, 1, +,&#92;times, &lt;)' class='latex' /> allows quantifier elimination: i.e., every first-order formula is equivalent to one with no quantifiers.  This is implemented in Mathematica&#8217;s <a href="http://mathworld.wolfram.com/QuantifierElimination.html">&#8220;Resolve&#8221;</a> function.</p>
<p>The <code>Resolve</code> function is called like <code>Resolve[formula,domain]</code> where <code>domain</code> gives the domain for the quantifiers in formula.  Since we&#8217;ll always be working over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> in this blog post, let&#8217;s set that to be the default at the start.</p>
<p><code>In[1]:= Unprotect[Resolve]; Resolve[expr_] := Resolve[expr, Reals]; Protect[Resolve]; </code></p>
<p>Now let&#8217;s see what quantifier elimination lets you do!</p>
<p>(A couple of caveats first though: First, many of these algorithms are extremely inefficient.  Second, I had some trouble exporting the Mathematica notebook, so I basically just copy-and-pasted the text.  Apologies if it&#8217;s unreadable.)</p>
<h2>How many solutions?</h2>
<p>Let&#8217;s start with just existential formulas.  By eliminating quantifiers from <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5C%2C+%5Cphi%28x%2Ca%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;, &#92;phi(x,a)' title='&#92;exists x&#92;, &#92;phi(x,a)' class='latex' />, we can tell what the conditions are on a such that there&#8217;s at least one solution <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' />.  For example: </p>
<p><code>In[2]:= Resolve[Exists[x, x^2 + b x + c == 0]]<br />
Out[2]= -b^2 + 4 c &lt;= 0 </code></p>
<p>This just tells you that there&#8217;s a solution to the quadratic if the discriminant is non-negative.  Let&#8217;s turn this into a function: </p>
<p><code>In[3]:= atLeastOneSolution[formula_, variable_] := Resolve[Exists[variable, formula]]<br />
</code></p>
<p>Now we can verify that cubics always have solutions: </p>
<p><code>In[4]:= atLeastOneSolution[x^3 + b x^2 + c x + d == 0, x]<br />
Out[4]= True<br />
</code><br />
Now suppose we wanted to find when something has at least two solutions.  Just like resolving <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5C%2C%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;,&#92;phi(x)' title='&#92;exists x&#92;,&#92;phi(x)' class='latex' /> told us when there was at least one, <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x_1%2Cx_2%5C%2Cx_1%5Cne+x_2%5Cwedge+%5Cphi%28x_1%29%5Cwedge%5Cphi%28x_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x_1,x_2&#92;,x_1&#92;ne x_2&#92;wedge &#92;phi(x_1)&#92;wedge&#92;phi(x_2)' title='&#92;exists x_1,x_2&#92;,x_1&#92;ne x_2&#92;wedge &#92;phi(x_1)&#92;wedge&#92;phi(x_2)' class='latex' /> will be true exactly when there are at least two.</p>
<p>This is just as easy to program as <code>atLeastOneSolution</code> was, except that when we create the variables <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1' title='x_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_2' title='x_2' class='latex' /> we have to be careful to avoid capture (what if one of those two already appeared in <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' />?).  Mathematica provides a function called <code>Unique</code> where if you call <code>Unique[]</code>, you&#8217;re guaranteed to get back a variable that&#8217;s never been used before.  With that we can define <code>atLeastTwoSolutions</code> correctly (edit: actually, this isn&#8217;t right if the passed-in variable is also bound in the passed-in formula):</p>
<p><code>In[5]:= atLeastTwoSolutions[formula_, v_] :=<br />
With[{s1 = Unique[], s2 = Unique[]},<br />
Resolve[<br />
Exists[{s1, s2},<br />
s1 != s2 &amp;&amp; (formula /. v -&gt; s1) &amp;&amp; (formula /. v -&gt; s2)]]]<br />
</code><br />
We can check this by verifying that quadratics have two solutions when the discriminant is strictly positive:</p>
<p><code>In[6]:= atLeastTwoSolutions[x^2 + b x + c == 0, x]<br />
Out[6]= -b^2 + 4 c &lt; 0</code></p>
<p>Here&#8217;s the condition for the cubic to have at least two solutions:</p>
<p><code>In[7]:= atLeastTwoSolutions[x^3 + b x^2 + c x + d == 0, x]<br />
Out[7]= c &lt; b^2/3 &amp;&amp;<br />
1/27 (-2 b^3 + 9 b c) - 2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3] &lt;=<br />
d &lt;= 1/27 (-2 b^3 + 9 b c) + 2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3]<br />
</code><br />
Note that (and I believe <code>Resolve</code> always does this) the <img src='http://s0.wp.com/latex.php?latex=c%3Cb%5E2%2F3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c&lt;b^2/3' title='c&lt;b^2/3' class='latex' /> condition given first is sufficient that the later square root is well-defined:<br />
<code>In[8]:= Resolve[ForAll[{b, c}, c &lt; b^2/3 ⇒ b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3 &gt; 0]]<br />
Out[8]= True</code><br />
It&#8217;s clear that we can determine when there at least n solutions by a very similar trick: just resolve <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x_1%2C%5Cldots%2Cx_n+%28x_i%5Cne+x_j%2Ci%5Cne+j%29%5Cwedge+%28%5Cphi%28x_i%29%2C%5Cforall+i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x_1,&#92;ldots,x_n (x_i&#92;ne x_j,i&#92;ne j)&#92;wedge (&#92;phi(x_i),&#92;forall i)' title='&#92;exists x_1,&#92;ldots,x_n (x_i&#92;ne x_j,i&#92;ne j)&#92;wedge (&#92;phi(x_i),&#92;forall i)' class='latex' />.</p>
<p>We&#8217;ll first write a helper function to produce the conjunction of inequalities we&#8217;ll need:</p>
<p><code>In[9]:= noneEqual[vars_] :=<br />
And @@ Flatten[Table[If[s1 === s2, True, s1 != s2], {s1, vars}, {s2, vars}]]<br />
In[10]:= noneEqual[{x, y, z}]<br />
Out[10]= x != y &amp;&amp; x != z &amp;&amp; y != x &amp;&amp; y != z &amp;&amp; z != x &amp;&amp; z != y<br />
</code></p>
<p>And now we&#8217;ll write <code>atLeastNSolutions</code>:</p>
<p><code>In[11]:= atLeastNSolutions[formula_, v_, n_] := With[{sList = Array[Unique[] &amp;, n]},<br />
Resolve[<br />
Exists[sList,<br />
noneEqual[sList] &amp;&amp; (And @@ Table[formula /. v -&gt; s, {s, sList}])]]]</code></p>
<p>Given <code>atLeastNSolutions</code>, we can easily write <code>exactlyNSolutions</code>:</p>
<p><code>In[12]:= exactlyNSolutions[formula_, v_, n_] :=<br />
BooleanConvert[<br />
atLeastNSolutions[formula, v, n] &amp;&amp; ! atLeastNSolutions[formula, v, n + 1]]</code></p>
<p>I used <code>BooleanConvert</code> instead of <code>Resolve</code> since there won&#8217;t be any quantifiers left in the formula, so we just have to do Boolean simplifications.</p>
<p><code>In[13]:= exactlyNSolutions[x^3 + b x^2 + c x + d == 0, x, 2]<br />
Out[13]= ! 1/27 (-2 b^3 + 9 b c) - 2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3] &lt; d &lt;<br />
1/27 (-2 b^3 + 9 b c) + 2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3] &amp;&amp;<br />
1/27 (-2 b^3 + 9 b c) - 2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3] &lt;=<br />
d &lt;= 1/27 (-2 b^3 + 9 b c) +<br />
2/27 Sqrt[b^6 - 9 b^4 c + 27 b^2 c^2 - 27 c^3] &amp;&amp; c &lt; b^2/3<br />
In[14]:= exactlyNSolutions[x^2 + b x + c == 0, x, 1]<br />
Out[14]= -b^2 + 4 c &lt;= 0 &amp;&amp; -b^2 + 4 c &gt;= 0</code></p>
<p>This last calculation shows that a quadratic has exactly one solution exactly when the discriminant is both nonnegative and nonpositive (as you can see, there is no guarantee that the formula will be in it&#8217;s simplest form).<br />
We now have a way to test whether a formula with one free variable has <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' /> solutions for specific values 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' />, since <code>exactlyNSolutions</code> will return either <code>True</code> or <code>False</code> if you quantify out the only variable.  For example:</p>
<p><code>In[15]:= p = x^4 - 3 x^3 + 1<br />
Out[15]= 1 - 3 x^3 + x^4<br />
In[16]:= Plot[Evaluate[p], {x, -3, 3}]</code><br />
<a href="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_30.gif"><img src="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_30.gif?w=500&#038;h=317" alt="" title="qelimBlogShort_30" width="500" height="317" class="alignnone size-full wp-image-688" /></a></p>
<p><code>In[17]:= exactlyNSolutions[p == 0, x, 2]<br />
Out[17]= True</code></p>
<p>It would be nice, however, to have a function which will just tell you how many solutions such a formula has.</p>
<p>In the single-variable polynomial case, we could just try <code>exactlyNSolutions</code> for <img src='http://s0.wp.com/latex.php?latex=n%3D0%2C1%2C2%2C%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=0,1,2,&#92;ldots' title='n=0,1,2,&#92;ldots' class='latex' /> until we find the right <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' />.  However, there might not be finitely many solutions if the formula involves inequalities or higher-dimension polynomials (e.g., <img src='http://s0.wp.com/latex.php?latex=x%5E2+%2B+y%5E2+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x^2 + y^2 = 1' title='x^2 + y^2 = 1' class='latex' /> has infinitely many solutions).</p>
<p>How can we tell if a formula has infinitely many solutions?  Well, the fact that <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> has quantifier elimination implies that <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx%5Cin%5Cmathbb%7BR%7D%5Cmid+%5Cphi%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x&#92;in&#92;mathbb{R}&#92;mid &#92;phi(x)&#92;}' title='&#92;{x&#92;in&#92;mathbb{R}&#92;mid &#92;phi(x)&#92;}' class='latex' /> for <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' /> with just <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' /> free must be a finite union of points and open intervals (since the only quantifier free terms are <img src='http://s0.wp.com/latex.php?latex=t_1%3Dt_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t_1=t_2' title='t_1=t_2' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=t_1%3Ct_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t_1&lt;t_2' title='t_1&lt;t_2' class='latex' />.  Therefore <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx%5Cin%5Cmathbb%7BR%7D%5Cmid%5Cphi%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x&#92;in&#92;mathbb{R}&#92;mid&#92;phi(x)&#92;}' title='&#92;{x&#92;in&#92;mathbb{R}&#92;mid&#92;phi(x)&#92;}' class='latex' /> is infinite iff it contains a non-empty open interval, i.e., iff <img src='http://s0.wp.com/latex.php?latex=%5Cexists+a%2Cb%5C%2Ca%3Cb%5Cwedge%5Cforall+x%5C%2C%28a%3Cx%3Cb%5Cimplies%5Cphi%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists a,b&#92;,a&lt;b&#92;wedge&#92;forall x&#92;,(a&lt;x&lt;b&#92;implies&#92;phi(x))' title='&#92;exists a,b&#92;,a&lt;b&#92;wedge&#92;forall x&#92;,(a&lt;x&lt;b&#92;implies&#92;phi(x))' class='latex' />.</p>
<p><code>In[18]:= infinitelyManySolutions[formula_, v_] := With[{a = Unique[], b = Unique[]},<br />
Resolve[Exists[{a, b}, a &lt; b &amp;&amp; ForAll[v, a &lt; v &lt; b ⇒ formula]]]]</code></p>
<p>To test:</p>
<p><code>In[19]:= infinitelyManySolutions[Exists[y, x^2 + y^2 == 1], x]<br />
Out[19]= True</code></p>
<p>Now we can write <code>numberOfSolutions</code> and be assured that it will always (theoretically) terminate for any formula with a single free variable:</p>
<p><code>In[20]:= numberOfSolutions[formula_, v_] :=<br />
If[infinitelyManySolutions[formula, v], Infinity,<br />
Block[{n = 0},<br />
While[! exactlyNSolutions[formula, v, n], n++];<br />
n]]</code></p>
<p>A few examples:</p>
<p><code>In[21]:= numberOfSolutions[p == 0, x]<br />
Out[21]= 2<br />
In[22]:= numberOfSolutions[p &gt; x^2, x]<br />
Out[22]= ∞<br />
In[23]:= numberOfSolutions[p &gt; x^6 + 5, x]<br />
Out[23]= ∞<br />
In[24]:= numberOfSolutions[p &gt; x^6 + 6, x]<br />
Out[24]= 0<br />
In[26]:= Plot[{p, x^6 + 5, x^6 + 6}, {x, -1.6, -1},<br />
PlotLegend -&gt; {HoldForm[p], x^6 + 5, x^6 + 6}, LegendPosition -&gt; {1, 0},<br />
ImageSize -&gt; Large]</code><br />
<a href="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_49.gif"><img src="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_49.gif?w=500&#038;h=265" alt="" title="qelimBlogShort_49" width="500" height="265" class="alignnone size-full wp-image-689" /></a></p>
<p>Up to now, all our functions have taken single variables, but we can accomodate tuples of variables as well.  First, we&#8217;ll define the analogue of <code>noneEqual</code> to produce the formula asserting that none of the given tuples are equal (recall that two tuples are unequal iff a pair of corresponding components is unequal):</p>
<p><code>In[27]:= noTuplesEqual[tuples_] := And @@ Flatten[Table[If[t1 === t2, True,<br />
Or @@ MapThread[#1 != #2 &amp;, {t1, t2}]], {t1, tuples}, {t2, tuples}]]<br />
In[28]:= noTuplesEqual[{{x[1], y[1]}, {x[2], y[2]}}]<br />
Out[28]= (x[1] != x[2] || y[1] != y[2]) &amp;&amp; (x[2] != x[1] || y[2] != y[1])</code></p>
<p>Now we can add rules to our old function to deal with tuples of variables as well:</p>
<p><code>In[29]:= atLeastNSolutions[formula_, variables_List, n_] := With[<br />
{sList = Array[Unique[] &amp;, {n, Length[variables]}]},<br />
Resolve[<br />
Exists[Evaluate[Flatten[sList]],<br />
noTuplesEqual[sList] &amp;&amp;</p>
<p>And @@<br />
Table[<br />
formula /. MapThread[Rule, {variables, tuple}], {tuple, sList}]]]];<br />
</code></p>
<p>We can extend <code>infinitelyManySolutions</code> by observing that a formula <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x_1%2C%5Cldots%2Cx_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x_1,&#92;ldots,x_n)' title='&#92;phi(x_1,&#92;ldots,x_n)' class='latex' /> has infinitely many solutions iff some projection <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x_1%2C%5Cldots%2Cx_%7Bi-1%7D%2Cx_%7Bi%2B1%7D%2C%5Cldots%2Cx_n+%5Cphi%28x_1%2C%5Cldots%2Cx_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x_1,&#92;ldots,x_{i-1},x_{i+1},&#92;ldots,x_n &#92;phi(x_1,&#92;ldots,x_n)' title='&#92;exists x_1,&#92;ldots,x_{i-1},x_{i+1},&#92;ldots,x_n &#92;phi(x_1,&#92;ldots,x_n)' class='latex' /> does.</p>
<p><code>In[30]:= infinitelyManySolutions[formula_, variables_List] := Or @@ Table[<br />
infinitelyManySolutions[Exists[Select[variables, ! (# === v) &amp;], formula],<br />
v], {v, variables}]<br />
In[33]:= ContourPlot[{x^2 + y^3 - 2, x^2 + y^2/4 - 2}, {x, -3, 3}, {y, -3, 3}]</code><br />
<a href="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_58.gif"><img src="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_58.gif?w=500&#038;h=497" alt="" title="qelimBlogShort_58" width="500" height="497" class="alignnone size-full wp-image-690" /></a></p>
<p><code>In[34]:= exactlyNSolutions[x^2 + y^3 == 2 &amp;&amp; x^2 + y^2/4 == 2, {x, y}, 2]<br />
Out[34]= False</code></p>
<p>(There are actually four solutions.  This example of a set equations for which it&#8217;s difficult to tell how many solutions there are by graphing is from <a href="http://www.amazon.com/Mathematica-Action-Stan-Wagon/dp/071672202X">Stan Wagon</a>)</p>
<h2>Solving Polynomial Equations</h2>
<p>In the last section, we saw how to use quantifier elimination to find out how many roots there are.  But how can you actually find the roots?</p>
<p>In a certain sense, you&#8217;ve already found them just when you identified how many there are!  To &#8220;find&#8221; a root in this sense, you just introduce a new symbol for it, and have some means for answering questions about its properties.  Given some property <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' />, if you want to determine if it holds of the 6th root of some polynomial <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> with 17 roots, then you just have to decide <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x_1%2C%5Cldots%2Cx_%7B17%7D%5C%2C%28x_i%3Cx_j%2Ci%3Cj%29%5Cwedge%28p%28x_i%29%2C%5Cforall+i%29%5Cwedge%5Cphi%28x_6%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x_1,&#92;ldots,x_{17}&#92;,(x_i&lt;x_j,i&lt;j)&#92;wedge(p(x_i),&#92;forall i)&#92;wedge&#92;phi(x_6)' title='&#92;exists x_1,&#92;ldots,x_{17}&#92;,(x_i&lt;x_j,i&lt;j)&#92;wedge(p(x_i),&#92;forall i)&#92;wedge&#92;phi(x_6)' class='latex' />.</p>
<p>We can implement this by a function <code>withSpecificRoot</code>, that takes a variable, the formula it&#8217;s supposed to be a solution to, which of the roots it&#8217;s a solution to, and a formula in which you want to use this root:</p>
<p><code>In[35]:= withSpecificRoot[variable_, rootFormula_, whichRoot_, totalRoots_, formula_] :=</p>
<p>With[{roots = Array[Unique[] &amp;, totalRoots]},<br />
Resolve[<br />
Exists[Evaluate[roots~Join~{variable}],<br />
Less[Sequence @@ roots] &amp;&amp;<br />
variable ==<br />
roots[[whichRoot]] &amp;&amp;<br />
(And @@<br />
Table[(rootFormula /. variable -&gt; root), {root, roots}]) &amp;&amp; formula]]]<br />
</code></p>
<p>We can tell where various roots are with respect to already-known real numbers:<br />
<code>In[36]:= withSpecificRoot[x, x^2 - 3 == 0, 1, 2, x &lt; 3]<br />
Out[36]= True<br />
In[37]:= withSpecificRoot[x, p == 0, 1, 2, x &lt; 1]<br />
Out[37]= True<br />
In[38]:= withSpecificRoot[x, p == 0, 2, 2, x &lt; 1]<br />
Out[38]= False<br />
</code></p>
<p>We can also compute relationships between roots like <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%7B2%7D%2B%5Csqrt%7B3%7D%3D%5Csqrt%7B5%2B2%5Csqrt%7B6%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sqrt{2}+&#92;sqrt{3}=&#92;sqrt{5+2&#92;sqrt{6}}' title='&#92;sqrt{2}+&#92;sqrt{3}=&#92;sqrt{5+2&#92;sqrt{6}}' class='latex' />:</p>
<p><code>In[39]:= withSpecificRoot[sqrt6, sqrt6^2 == 6, 2, 2,<br />
withSpecificRoot[lhs, lhs^2 == 5 + 2 sqrt6, 2, 2,<br />
withSpecificRoot[sqrt3, sqrt3^2 == 3, 2, 2,<br />
withSpecificRoot[sqrt2, sqrt2^2 == 2, 2, 2,<br />
lhs == sqrt3 + sqrt2<br />
]]]]<br />
Out[39]= True</code></p>
<p>That&#8217;s all I have time for now, but I hope to write another blog post on the subject soon!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/678/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=678&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2011/12/15/mathematica-and-quantifier-elimination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_30.gif" medium="image">
			<media:title type="html">qelimBlogShort_30</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_49.gif" medium="image">
			<media:title type="html">qelimBlogShort_49</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2011/12/qelimblogshort_58.gif" medium="image">
			<media:title type="html">qelimBlogShort_58</media:title>
		</media:content>
	</item>
		<item>
		<title>A Logical Interpretation of Some Bits of Topology</title>
		<link>http://xorshammer.com/2011/07/09/a-logical-interpretation-of-some-bits-of-topology/</link>
		<comments>http://xorshammer.com/2011/07/09/a-logical-interpretation-of-some-bits-of-topology/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 09:26:56 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=531</guid>
		<description><![CDATA[Edit: These ideas are also discussed here and here (thanks to Qiaochu Yuan: I found out about those links by him linking back to this post). Although topology is usually motivated as a study of spatial structures, you can interpret &#8230; <a href="http://xorshammer.com/2011/07/09/a-logical-interpretation-of-some-bits-of-topology/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=531&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Edit:</b> These ideas are also discussed <a href="http://math.stackexchange.com/questions/31859/what-concept-does-an-open-set-axiomatise">here</a> and <a href="http://mathoverflow.net/questions/19152/why-is-a-topology-made-up-of-open-sets">here</a> (thanks to Qiaochu Yuan: I found out about those links by him linking back to this post).</p>
<p>Although topology is usually motivated as a study of spatial structures, you can interpret topological spaces as being a particular type of logic, and give a purely logical, non-spatial interpretation to a number of bits of topology.</p>
<p>This seems like one of those facts that was obvious to everyone else already, but I&#8217;ll write a quick blog post about it anyway.<br />
<span id="more-531"></span><br />
As you&#8217;re probably aware, a set <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> of natural numbers is called semi-decidable if there is a computer program which, given any <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' />, will eventually terminate and return &#8220;Yes&#8221; if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in S' title='n&#92;in S' class='latex' />. If <img src='http://s0.wp.com/latex.php?latex=n%5Cnotin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;notin S' title='n&#92;notin S' class='latex' />, the program is not required to ever return and you may never learn whether or not <img src='http://s0.wp.com/latex.php?latex=n%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in S' title='n&#92;in S' class='latex' />.</p>
<p>There are many such &#8220;semi-decidable&#8221; propositions <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> unrelated to natural numbers which intuitively have the same property: i.e., there is some test you can perform such that, if <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is true, you will eventually find out, but if it&#8217;s false, you may never learn that fact. For example, consider the proposition <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> that you are (strictly) taller than 6 feet. To test <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' />, you could measure your height with ever-finer rulers. If your height <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> is actually strictly greater than 6 feet, you will eventually find out when you use a ruler with granularity finer than <img src='http://s0.wp.com/latex.php?latex=h-6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h-6' title='h-6' class='latex' /> to measure your height. On the other hand if <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is false and you are unfortunate enough that <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> is exactly 6, you will never learn whether or not <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is true no matter how fine a ruler you use.</p>
<h3>Semi-Decidable Logic</h3>
<p>Let&#8217;s come up with a logic for such semi-decidable propositions. We&#8217;ll keep it a propositional logic to keep things simple. First off, notice that we shouldn&#8217;t allow negation: if <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is semi-decidable, it&#8217;s not necessarily the case that <img src='http://s0.wp.com/latex.php?latex=%5Cneg+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg P' title='&#92;neg P' class='latex' /> is. On the other hand, we can allow conjunction: if <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> are semi-decidable, then you can test <img src='http://s0.wp.com/latex.php?latex=P%5Cwedge+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;wedge Q' title='P&#92;wedge Q' class='latex' /> by testing <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> separately and stopping if and when both the tests for <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> stop.</p>
<p>Furthermore, we can allow <em>arbitrary</em> disjunctions: given <img src='http://s0.wp.com/latex.php?latex=%5C%7BP_i%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{P_i&#92;}' title='&#92;{P_i&#92;}' class='latex' />, we can test <img src='http://s0.wp.com/latex.php?latex=%5Cbigvee+%5C%7BP_i%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bigvee &#92;{P_i&#92;}' title='&#92;bigvee &#92;{P_i&#92;}' class='latex' /> by running all the tests in parallel and stopping when any of them stop. Note that even given that we can arbitrarily many tests at the same time, it still doesn&#8217;t follow that arbitrary conjunctions of semi-decidable propositions are semi-decidable: if the first one terminates after 1 minute, the second after 2, etc., we&#8217;ll never be able to stop the test of the conjunction even though all tests terminate eventually.</p>
<p>Implication is a bit tricky: <img src='http://s0.wp.com/latex.php?latex=P%5Crightarrow+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;rightarrow Q' title='P&#92;rightarrow Q' class='latex' /> isn&#8217;t necessarily semi-decidable for the same reason that <img src='http://s0.wp.com/latex.php?latex=%5Cneg+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg P' title='&#92;neg P' class='latex' /> isn&#8217;t, but we still want to reason about the case where <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> implies <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' />. Therefore, we&#8217;ll allow the formation of the statement <img src='http://s0.wp.com/latex.php?latex=P%5Cvdash+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vdash Q' title='P&#92;vdash Q' class='latex' /> with the meaning that <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> implies <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' />, but only at the &#8220;top level&#8221;, i.e., you can&#8217;t nest this connective.</p>
<p>Finally, both <img src='http://s0.wp.com/latex.php?latex=%5Ctop&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;top' title='&#92;top' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbot&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bot' title='&#92;bot' class='latex' /> are semi-decidable.</p>
<p>Now we need rules to tell us when a set of statements implies another statement. First off, there are some boring structural rules that I&#8217;ll omit (e.g., <img src='http://s0.wp.com/latex.php?latex=P%5Cvdash+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vdash Q' title='P&#92;vdash Q' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q%5Cvdash+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q&#92;vdash R' title='Q&#92;vdash R' class='latex' /> imply <img src='http://s0.wp.com/latex.php?latex=P%5Cvdash+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vdash R' title='P&#92;vdash R' class='latex' /> and so on).</p>
<p>There are rules that give the two connectives their meaning:</p>
<ul>
<li>For any <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=P%5Cwedge+Q%5Cvdash+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;wedge Q&#92;vdash P' title='P&#92;wedge Q&#92;vdash P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%5Cwedge+Q%5Cvdash+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;wedge Q&#92;vdash Q' title='P&#92;wedge Q&#92;vdash Q' class='latex' /> hold.</li>
<li>For any <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />, the statements <img src='http://s0.wp.com/latex.php?latex=R%5Cvdash+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R&#92;vdash P' title='R&#92;vdash P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=R%5Cvdash+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R&#92;vdash Q' title='R&#92;vdash Q' class='latex' /> together imply <img src='http://s0.wp.com/latex.php?latex=R%5Cvdash+P%5Cwedge+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R&#92;vdash P&#92;wedge Q' title='R&#92;vdash P&#92;wedge Q' class='latex' />.</li>
<li>For any <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7BQ_i%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{Q_i&#92;}' title='&#92;{Q_i&#92;}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=P%5Cvdash+%5Cbigvee+%5Cleft%28%5C%7BP%5C%7D%5Ccup%5C%7BQ_i%5C%7D%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vdash &#92;bigvee &#92;left(&#92;{P&#92;}&#92;cup&#92;{Q_i&#92;}&#92;right)' title='P&#92;vdash &#92;bigvee &#92;left(&#92;{P&#92;}&#92;cup&#92;{Q_i&#92;}&#92;right)' class='latex' /> holds.</li>
<li>For any <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7BQ_i%5Cmid+i%5Cin+%5Cmathcal%7BI%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{Q_i&#92;mid i&#92;in &#92;mathcal{I}&#92;}' title='&#92;{Q_i&#92;mid i&#92;in &#92;mathcal{I}&#92;}' class='latex' />, the set of statements <img src='http://s0.wp.com/latex.php?latex=%5C%7BQ_i+%5Cvdash+P%5Cmid+i%5Cin%5Cmathcal%7BI%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{Q_i &#92;vdash P&#92;mid i&#92;in&#92;mathcal{I}&#92;}' title='&#92;{Q_i &#92;vdash P&#92;mid i&#92;in&#92;mathcal{I}&#92;}' class='latex' /> implies the statement <img src='http://s0.wp.com/latex.php?latex=%5Cbigvee+%5C%7BQ_i%5C%7D%5Cvdash+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bigvee &#92;{Q_i&#92;}&#92;vdash P' title='&#92;bigvee &#92;{Q_i&#92;}&#92;vdash P' class='latex' />.</li>
</ul>
<p>Finally, there&#8217;s a distributivity rule:</p>
<ul>
<li>For any <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7BQ_i%5Cmid+i%5Cin%5Cmathcal%7BI%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{Q_i&#92;mid i&#92;in&#92;mathcal{I}&#92;}' title='&#92;{Q_i&#92;mid i&#92;in&#92;mathcal{I}&#92;}' class='latex' /> the statements <img src='http://s0.wp.com/latex.php?latex=P%5Cwedge+%5Cbigvee+%5C%7BQ_i%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;wedge &#92;bigvee &#92;{Q_i&#92;}' title='P&#92;wedge &#92;bigvee &#92;{Q_i&#92;}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbigvee+%5C%7BP%5Cwedge+Q_i%5Cmid+i%5Cin%5Cmathcal%7BI%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bigvee &#92;{P&#92;wedge Q_i&#92;mid i&#92;in&#92;mathcal{I}&#92;}' title='&#92;bigvee &#92;{P&#92;wedge Q_i&#92;mid i&#92;in&#92;mathcal{I}&#92;}' class='latex' /> are equivalent (each implies the other).</li>
</ul>
<h3>Topology</h3>
<p>As you&#8217;ve probably guessed, there is a close connection between semi-decidable logics and topological spaces. In fact, given a topological space, you can form a semi-decidable logic by making a propositional symbol <img src='http://s0.wp.com/latex.php?latex=P_U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P_U' title='P_U' class='latex' /> for each open set <img src='http://s0.wp.com/latex.php?latex=U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='U' title='U' class='latex' />. You can then interpret all propositional formulas as open sets by interpreting <img src='http://s0.wp.com/latex.php?latex=%5Cbigvee&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bigvee' title='&#92;bigvee' class='latex' /> as union and <img src='http://s0.wp.com/latex.php?latex=%5Cwedge&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;wedge' title='&#92;wedge' class='latex' /> as intersection. Finally, take as a set of axioms the set of all statements <img src='http://s0.wp.com/latex.php?latex=P%5Cvdash+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vdash Q' title='P&#92;vdash Q' class='latex' /> where the open set corresponding to <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is a subset of the open set corresponding to <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' />. This set is closed under the inference rules given.</p>
<p>You can also start with a semi-decidable logic and generate a topology; this is a form of <a href="http://en.wikipedia.org/wiki/Stone_duality#Duality_of_sober_spaces_and_spatial_locales">Stone duality</a>. &nbsp;In general, if you start with a topological space, translate to a semi-decidable logic, then translate back, you might not get your original space back. &nbsp;However, you will if the space you start with is sufficiently nice (e.g., Hausdorff).</p>
<p>With that out of the way, let&#8217;s interpret some topological concepts in our new logical framework!</p>
<ul>
<li>Topologically, a <em>neighborhood</em>&nbsp;is any set which contains a non-empty open set. Logically, these correspond to propositions that are <em>possible to learn</em>.  In the height example, the proposition that your height <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> is in <img src='http://s0.wp.com/latex.php?latex=%5B5%5Ctext%7B+ft%7D%2C+6%5Ctext%7B+ft%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[5&#92;text{ ft}, 6&#92;text{ ft}]' title='[5&#92;text{ ft}, 6&#92;text{ ft}]' class='latex' /> is a neighborhood since you might happen to learn it by learning some stronger fact, but you can&#8217;t run a semi-decidable test for exactly that proposition. &nbsp;In contrast, the proposition that your height is exactly 6 ft is not even a neighborhood.</li>
<li>Topologically, an open covering <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}' title='&#92;mathcal{O}' class='latex' /> is a set of open sets whose union covers the whole space. &nbsp;Logically, this corresponds to a <em>deterministic experiment</em>. If you run the tests in parallel, you are guaranteed that eventually (at least) one of them will stop, since the sets cover the whole space. &nbsp;In the height example, the open covering of all open intervals of diameter <img src='http://s0.wp.com/latex.php?latex=1%5Ctext%7B+cm%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;text{ cm}' title='1&#92;text{ cm}' class='latex' /> corresponds to measuring your height to a granularity of&nbsp;<img src='http://s0.wp.com/latex.php?latex=1%5Ctext%7B+cm%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;text{ cm}' title='1&#92;text{ cm}' class='latex' /> &nbsp;and recording the results.</li>
<li>Topologically, an open covering <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_1' title='&#92;mathcal{O}_1' class='latex' /> is a <em>refinement </em>of an open covering <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_2' title='&#92;mathcal{O}_2' class='latex' /> if every element of <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_1' title='&#92;mathcal{O}_1' class='latex' /> is a subset of some element of <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_2' title='&#92;mathcal{O}_2' class='latex' />. &nbsp;Logically, this corresponds to experiment <img src='http://s0.wp.com/latex.php?latex=%7BO%7D_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{O}_1' title='{O}_1' class='latex' /> being <em>more informative </em>than experiment <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_2' title='&#92;mathcal{O}_2' class='latex' />. &nbsp;Whatever answer you get from experiment <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_1' title='&#92;mathcal{O}_1' class='latex' />, you will be able to answer the question asked by experiment <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BO%7D_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{O}_2' title='&#92;mathcal{O}_2' class='latex' />.</li>
<li>Topologically, a space is <em>compact </em>if every open cover has a finite refinement. &nbsp;Logically, this means that anything about the space that you could find out by any experiment at all is actually discoverable by an experiment that runs only finitely many tests and hence is (maybe) doable in real life.</li>
<li>Topologically, a space has <em><a href="http://en.wikipedia.org/wiki/Lebesgue_covering_dimension">Lebesgue covering dimension</a> </em><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 all open covers have a refinement with no <img src='http://s0.wp.com/latex.php?latex=n%2B2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n+2' title='n+2' class='latex' /> of the open sets having non-empty intersection. &nbsp;Logically, this corresponds to something like a bound on the amount of information you can get from one experiment. &nbsp;The information you get from running an experiment is just the list of propositions (open sets) which you&#8217;ve learned are true. &nbsp;The condition guarantees that that list will be no longer than <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' />, bounding the information received from the experiment. &nbsp;This makes spatial sense too: a measurement on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> in general yields less information than a single measurement on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^2' title='&#92;mathbb{R}^2' class='latex' />.</li>
</ul>
<p>Actually, that last correspondence was the whole impetus for me writing this blog post: I never really understood the definition of Lebesgue covering dimension from a spatial perspective, but it makes perfect sense to me from a logical perspective.</p>
<h3>Miscellaneous</h3>
<p>Here are a few more random facts which may or may not be accurate and/or make sense.</p>
<h4>Geometric Logic</h4>
<p>I believe that &#8220;semi-decidable logic&#8221; as I presented it is in fact the propositional version of <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.24.8261&amp;rep=rep1&amp;type=pdf">geometric logic</a>.  Geometric logic also has a higher-order form: just as the propositional form corresponds to topologies, I believe the full higher-order form corresponds to <a href="http://en.wikipedia.org/wiki/Topos">toposes</a>.</p>
<h4>Sheaves</h4>
<p>I think you can extend this interpretation of topological spaces to an analogous one for sheaves.  I believe it&#8217;s something like: a sheaf corresponds to a set of solutions to some problem that you learn more about as you learn more semi-decidable propositions.  In particular, the gluing property corresponds to the fact that: if you can determine via an experiment which of <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> holds, and you have a solution given <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and a solution given <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> that are compatible, then you have a solution: run the experiment, then use the solution of whichever of <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> turns out to be true.</p>
<p>Making sense of this is left as an exercise to the reader.</p>
<h4>Grothendieck Topologies</h4>
<p>I said above that I&#8217;d address the assumption that you can run arbitrarily many tests at once.  I believe that, among many other things, <a href="http://en.wikipedia.org/wiki/Grothendieck_topology">Grothendieck topologies</a> remove this restriction.</p>
<p>Regular topologies have the sort-of-odd property that the open covering relation is completely determined by the partial ordering on open sets given by inclusion.  Grothendieck topologies do away with this: in a Grothendieck topology, there is in addition to the partial order an assignment for every open set of which sets of open sets are deemed to define &#8220;open covers&#8221;.  Grothendieck topologies also remove the restriction that the &#8220;partial order&#8221; on open sets is a partial order; it&#8217;s allowed to be a more general category.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=531&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2011/07/09/a-logical-interpretation-of-some-bits-of-topology/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>The Spectrum From Logic to Probability</title>
		<link>http://xorshammer.com/2010/09/18/the-spectrum-from-logic-to-probability/</link>
		<comments>http://xorshammer.com/2010/09/18/the-spectrum-from-logic-to-probability/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 22:36:29 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=494</guid>
		<description><![CDATA[Let be the set of propositions considered by some rational logician (call her Sue).  Further, suppose that is closed under the propositional connectives , , .  Here are two related but different preorders on : if logically entails . if &#8230; <a href="http://xorshammer.com/2010/09/18/the-spectrum-from-logic-to-probability/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=494&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> be the set of propositions considered by some rational logician (call her Sue).  Further, suppose that <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> is closed under the propositional connectives <img src='http://s0.wp.com/latex.php?latex=%5Cvee&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vee' title='&#92;vee' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cwedge&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;wedge' title='&#92;wedge' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cneg&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg' title='&#92;neg' class='latex' />.  Here are two related but different preorders on <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' />:</p>
<ol>
<li><img src='http://s0.wp.com/latex.php?latex=p%5Cleq+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;leq q' title='p&#92;leq q' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> logically entails <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=p+%5Cpreceq+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;preceq q' title='p &#92;preceq q' class='latex' /> if Sue considers <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> at least as likely to be true as <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is.</li>
</ol>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> be the equivalence relation defined by <img src='http://s0.wp.com/latex.php?latex=p+%5Csim+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;sim q' title='p &#92;sim q' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=p+%5Cleq+q+%5Cwedge+q+%5Cleq+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;leq q &#92;wedge q &#92;leq p' title='p &#92;leq q &#92;wedge q &#92;leq p' class='latex' /> and let <img src='http://s0.wp.com/latex.php?latex=%5Capprox&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;approx' title='&#92;approx' class='latex' /> similarly be defined by <img src='http://s0.wp.com/latex.php?latex=p+%5Capprox+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;approx q' title='p &#92;approx q' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=p%5Cpreceq+q%5Cwedge+q%5Cpreceq+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;preceq q&#92;wedge q&#92;preceq p' title='p&#92;preceq q&#92;wedge q&#92;preceq p' class='latex' />.</p>
<p>Then we know what type of structure <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Csim%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;sim}' title='&#92;Omega/{&#92;sim}' class='latex' /> is: since we&#8217;re assuming classical logic in this article, it&#8217;s a Boolean algebra.  What type of structure is <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Capprox%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;approx}' title='&#92;Omega/{&#92;approx}' class='latex' />?</p>
<p>We can at least come up with a couple of examples.  Since Sue is a perfect logician, it must be that if <img src='http://s0.wp.com/latex.php?latex=p%5Cleq+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;leq q' title='p&#92;leq q' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=p%5Cpreceq+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;preceq q' title='p&#92;preceq q' class='latex' />.  If Sue is extremely conservative, she may decline to offer opinions about whether one proposition is more likely to be true than another except when she&#8217;s forced to by logic.  In this case, <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Capprox%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;approx}' title='&#92;Omega/{&#92;approx}' class='latex' /> is equal to <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Csim%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;sim}' title='&#92;Omega/{&#92;sim}' class='latex' /> and therefore again a Boolean algebra.</p>
<p>In the other extreme, Sue may have opinions about <em>every</em> pair of propositions, making <img src='http://s0.wp.com/latex.php?latex=%5Cpreceq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;preceq' title='&#92;preceq' class='latex' /> a total ordering.  A principal example of this is where <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Capprox%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;approx}' title='&#92;Omega/{&#92;approx}' class='latex' /> is isomorphic to a subset of <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' /> and Sue&#8217;s opinions about the propositions were generated by her assigning a probability <img src='http://s0.wp.com/latex.php?latex=P%28p%29%5Cin+%5B0%2C1%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(p)&#92;in [0,1]' title='P(p)&#92;in [0,1]' class='latex' /> to every proposition <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.</p>
<p>What&#8217;s in between on the spectrum from logic to probability?  Are there totally ordered structures <em>not</em> isomorphic to <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' /> or a subset? More ambitiously: every Boolean algebra has operations <img src='http://s0.wp.com/latex.php?latex=%5Cvee&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vee' title='&#92;vee' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cwedge&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;wedge' title='&#92;wedge' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cneg&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg' title='&#92;neg' class='latex' />, while <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' /> has operations <img src='http://s0.wp.com/latex.php?latex=%7B%2B%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{+}' title='{+}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ctimes&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;times' title='&#92;times' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%28x%5Cmapsto+1-x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x&#92;mapsto 1-x)' title='(x&#92;mapsto 1-x)' class='latex' /> which play similar roles in the computation of probabilities (note that <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' /> is partial on <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' />).  How are these related and does every structure on the spectrum from logic to probability have analogous operations?</p>
<p>These structures (i.e., structures of the form <img src='http://s0.wp.com/latex.php?latex=%5COmega%2F%7B%5Capprox%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega/{&#92;approx}' title='&#92;Omega/{&#92;approx}' class='latex' /> for some acceptable <img src='http://s0.wp.com/latex.php?latex=%5Cpreceq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;preceq' title='&#92;preceq' class='latex' /> in a sense to be defined below) were called <strong>scales</strong> and defined and explored in a very nice <a href="http://arxiv.org/abs/math.PR/0203249">paper</a> by Michael Hardy.</p>
<p><span id="more-494"></span></p>
<h3>The Definition of a Scale</h3>
<p>Modding out by the equivalence relations once and for all, the general setup is that we have a map <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> (induced by the identity function on <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> in the above setup) from a Boolean algebra <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' /> to a poset <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' />.  What should be true of <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />?</p>
<p>Since if a proposition <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> logically entails a proposition <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />, Sue will consider <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> at least as likely to be true as <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, we should have that <img src='http://s0.wp.com/latex.php?latex=x+%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;leq y' title='x &#92;leq y' class='latex' /> implies <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%5Cleq+%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) &#92;leq &#92;rho(y)' title='&#92;rho(x) &#92;leq &#92;rho(y)' class='latex' /> (<img src='http://s0.wp.com/latex.php?latex=%5Cleq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;leq' title='&#92;leq' class='latex' /> will now be the ordering in either <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' />, depending on context).  In fact, we should have that <img src='http://s0.wp.com/latex.php?latex=x+%3C+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &lt; y' title='x &lt; y' class='latex' /> implies <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%3C+%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) &lt; &#92;rho(y)' title='&#92;rho(x) &lt; &#92;rho(y)' class='latex' />.</p>
<p>Actually we should have more: For example, it should be the case that if <img src='http://s0.wp.com/latex.php?latex=x+%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;leq y' title='x &#92;leq y' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cneg+y%29+%5Cleq+%5Crho%28%5Cneg+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;neg y) &#92;leq &#92;rho(&#92;neg x)' title='&#92;rho(&#92;neg y) &#92;leq &#92;rho(&#92;neg x)' class='latex' />.  In general, if <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> is a propositional formula where <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' /> appears negatively (that is, all occurrences 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' /> are negated in a normal form of <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' />), then <img src='http://s0.wp.com/latex.php?latex=x+%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;leq y' title='x &#92;leq y' class='latex' /> should imply <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cphi%28%5Cneg+y%29%29+%5Cleq+%5Crho%28%5Cphi%28%5Cneg+x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;phi(&#92;neg y)) &#92;leq &#92;rho(&#92;phi(&#92;neg x))' title='&#92;rho(&#92;phi(&#92;neg y)) &#92;leq &#92;rho(&#92;phi(&#92;neg x))' class='latex' /> and the reverse is true 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' /> appears positively in <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' />.  Furthermore, if <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29%5Cne+%5Cphi%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)&#92;ne &#92;phi(y)' title='&#92;phi(x)&#92;ne &#92;phi(y)' class='latex' /> we can require that the inequality be strict.</p>
<p>Finally, we should require that <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cneg+y%29%5Cleq%5Crho%28%5Cneg+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;neg y)&#92;leq&#92;rho(&#92;neg x)' title='&#92;rho(&#92;neg y)&#92;leq&#92;rho(&#92;neg x)' class='latex' /> not just if <img src='http://s0.wp.com/latex.php?latex=x+%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;leq y' title='x &#92;leq y' class='latex' />, but even if it only holds that <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29%5Cleq%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x)&#92;leq&#92;rho(y)' title='&#92;rho(x)&#92;leq&#92;rho(y)' class='latex' />.  That is, even if <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> doesn&#8217;t logically entail <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />, if you consider <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> more likely to be true than <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, you should consider <img src='http://s0.wp.com/latex.php?latex=%5Cneg+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg p' title='&#92;neg p' class='latex' /> more likely to be true than <img src='http://s0.wp.com/latex.php?latex=%5Cneg+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg q' title='&#92;neg q' class='latex' />.  A similar generalization to <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> holds as above.</p>
<p>These considerations are equivalent to Hardy&#8217;s definition:</p>
<blockquote><p>Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' /> be a Boolean algebra, <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' /> be a poset, and <img src='http://s0.wp.com/latex.php?latex=%5Crho+%5Ccolon+%5Cmathbb%7BA%7D%5Cto%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho &#92;colon &#92;mathbb{A}&#92;to&#92;mathcal{R}' title='&#92;rho &#92;colon &#92;mathbb{A}&#92;to&#92;mathcal{R}' class='latex' />.  Then <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> is called a <strong>basic scaling</strong> if:</p>
<ol>
<li><img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> is strictly increasing, so that <img src='http://s0.wp.com/latex.php?latex=x+%3C+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &lt; y' title='x &lt; y' class='latex' /> implies <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%3C+%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) &lt; &#92;rho(y)' title='&#92;rho(x) &lt; &#92;rho(y)' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> preserves relative complementation, so that if <img src='http://s0.wp.com/latex.php?latex=x%2Cy+%5Cin+%5Ba%2Cb%5D%5Csubseteq+%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x,y &#92;in [a,b]&#92;subseteq &#92;mathbb{A}' title='x,y &#92;in [a,b]&#92;subseteq &#92;mathbb{A}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%3C+%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) &lt; &#92;rho(y)' title='&#92;rho(x) &lt; &#92;rho(y)' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cneg+y_%7B%5Ba%2Cb%5D%7D%29+%3C+%5Crho%28%5Cneg+x_%7B%5Ba%2Cb%5D%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;neg y_{[a,b]}) &lt; &#92;rho(&#92;neg x_{[a,b]})' title='&#92;rho(&#92;neg y_{[a,b]}) &lt; &#92;rho(&#92;neg x_{[a,b]})' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Cneg+x_%7B%5Ba%2Cb%5D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg x_{[a,b]}' title='&#92;neg x_{[a,b]}' class='latex' /> is the relative complement <img src='http://s0.wp.com/latex.php?latex=a%5Cvee+%28b%5Cwedge+%5Cneg+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;vee (b&#92;wedge &#92;neg x)' title='a&#92;vee (b&#92;wedge &#92;neg x)' class='latex' />.</li>
</ol>
</blockquote>
<p>Hardy proves that the relative complement operation is well-defined on <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' />, that is, that <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cneg+x_%7B%5Ba%2Cb%5D%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;neg x_{[a,b]})' title='&#92;rho(&#92;neg x_{[a,b]})' class='latex' /> depends only on <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x)' title='&#92;rho(x)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Crho%28a%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(a)' title='&#92;rho(a)' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Crho%28b%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(b)' title='&#92;rho(b)' class='latex' />.  Note however, that it is a partial operation: even if <img src='http://s0.wp.com/latex.php?latex=%5Ctheta+%3C+%5Ceta+%3C+%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta &lt; &#92;eta &lt; &#92;mu' title='&#92;theta &lt; &#92;eta &lt; &#92;mu' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' />, there is no guarantee that there <img src='http://s0.wp.com/latex.php?latex=x%2C+a%2C+b%5Cin%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x, a, b&#92;in&#92;mathbb{A}' title='x, a, b&#92;in&#92;mathbb{A}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%3D+%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) = &#92;eta' title='&#92;rho(x) = &#92;eta' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Crho%28a%29+%3D+%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(a) = &#92;theta' title='&#92;rho(a) = &#92;theta' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Crho%28b%29+%3D+%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(b) = &#92;mu' title='&#92;rho(b) = &#92;mu' class='latex' />.</p>
<p>A <strong>scale</strong> is then defined as a poset together with a partial relative complement operation which is the range of a basic scaling.</p>
<h3>An Example</h3>
<p>Hardy&#8217;s paper gives many examples of scales, including a few pretty wild ones.  Here&#8217;s one:  Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' /> be the boolean algebra of subsets of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=%5Crho%28S%29+%3D+%5Crho%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(S) = &#92;rho(T)' title='&#92;rho(S) = &#92;rho(T)' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=S+%3D+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = T' title='S = T' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%7CS%5Csetminus+T%7C+%3D+%7CT+%5Csetminus+S%7C+%3C+%5Caleph_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|S&#92;setminus T| = |T &#92;setminus S| &lt; &#92;aleph_0' title='|S&#92;setminus T| = |T &#92;setminus S| &lt; &#92;aleph_0' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=%5Crho%28S%29+%3C+%5Crho%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(S) &lt; &#92;rho(T)' title='&#92;rho(S) &lt; &#92;rho(T)' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=%7CS%5Csetminus+T%7C+%3C+%7CT%5Csetminus+S%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|S&#92;setminus T| &lt; |T&#92;setminus S|' title='|S&#92;setminus T| &lt; |T&#92;setminus S|' class='latex' />.  This defines a basic scaling to a scale <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' />.</p>
<p>What does it look like? Every element except for <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cemptyset%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;emptyset)' title='&#92;rho(&#92;emptyset)' class='latex' /> has an immediate predecessor, and every element except for <img src='http://s0.wp.com/latex.php?latex=%5Crho%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(&#92;mathbb{N})' title='&#92;rho(&#92;mathbb{N})' class='latex' /> has an immediate successor.  Therefore, it is partitioned into &#8220;galaxies&#8221; <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Cldots%2C%5Calpha+-+1%2C+%5Calpha%2C+%5Calpha+%2B+1%2C+%5Cldots%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;ldots,&#92;alpha - 1, &#92;alpha, &#92;alpha + 1, &#92;ldots&#92;}' title='&#92;{&#92;ldots,&#92;alpha - 1, &#92;alpha, &#92;alpha + 1, &#92;ldots&#92;}' class='latex' /> together with in initial galaxy <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Crho%28%5Cemptyset%29%2C+%5Crho%28%5Cemptyset%29+%2B+1%2C+%5Cldots%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;rho(&#92;emptyset), &#92;rho(&#92;emptyset) + 1, &#92;ldots&#92;}' title='&#92;{&#92;rho(&#92;emptyset), &#92;rho(&#92;emptyset) + 1, &#92;ldots&#92;}' class='latex' /> and a final galaxy <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Cldots%2C+%5Crho%28%5Cmathbb%7BN%7D%29+-+1%2C%5Crho%28%5Cmathbb%7BN%7D%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;ldots, &#92;rho(&#92;mathbb{N}) - 1,&#92;rho(&#92;mathbb{N})&#92;}' title='&#92;{&#92;ldots, &#92;rho(&#92;mathbb{N}) - 1,&#92;rho(&#92;mathbb{N})&#92;}' class='latex' />.  Between any two galaxies that are comparable, there are uncountably many galaxies and infinite antichains of galaxies.</p>
<h3>Analogues of <img src='http://s0.wp.com/latex.php?latex=%5Cvee&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vee' title='&#92;vee' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cwedge&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;wedge' title='&#92;wedge' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cneg&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg' title='&#92;neg' class='latex' /></h3>
<p>We already know that there are appropriate analogues of <img src='http://s0.wp.com/latex.php?latex=%5Cneg&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg' title='&#92;neg' class='latex' /> in all scales, since we know that relative complementation carries over in a well-defined way from the domain Boolean algebra.</p>
<p>What about <img src='http://s0.wp.com/latex.php?latex=%5Cvee&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vee' title='&#92;vee' class='latex' />?  Hardy proves the following:</p>
<blockquote>
<ol>
<li>If <img src='http://s0.wp.com/latex.php?latex=x+%5Cwedge+y+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;wedge y = 0' title='x &#92;wedge y = 0' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x+%5Cvee+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x &#92;vee y)' title='&#92;rho(x &#92;vee y)' class='latex' /> depends only on <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x)' title='&#92;rho(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(y)' title='&#92;rho(y)' class='latex' />.  In this case we define <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%29+%2B+%5Crho%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x) + &#92;rho(y)' title='&#92;rho(x) + &#92;rho(y)' class='latex' /> to be <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%5Cvee+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x&#92;vee y)' title='&#92;rho(x&#92;vee y)' class='latex' />.</li>
<li>For <img src='http://s0.wp.com/latex.php?latex=%5Ctheta%2C+%5Ceta%5Cin+%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta, &#92;eta&#92;in &#92;mathcal{R}' title='&#92;theta, &#92;eta&#92;in &#92;mathcal{R}' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=%5Ctheta+%2B+%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta + &#92;eta' title='&#92;theta + &#92;eta' class='latex' /> exists then <img src='http://s0.wp.com/latex.php?latex=%5Ctheta%5Cleq+%5Cneg%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta&#92;leq &#92;neg&#92;eta' title='&#92;theta&#92;leq &#92;neg&#92;eta' class='latex' />.</li>
</ol>
</blockquote>
<p>It turns out that, for any <img src='http://s0.wp.com/latex.php?latex=%5Ctheta+%5Cin%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta &#92;in&#92;mathcal{R}' title='&#92;theta &#92;in&#92;mathcal{R}' class='latex' />, the operation <img src='http://s0.wp.com/latex.php?latex=%5Ceta%5Cmapsto+%5Ctheta+%2B+%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;eta&#92;mapsto &#92;theta + &#92;eta' title='&#92;eta&#92;mapsto &#92;theta + &#92;eta' class='latex' /> is a partial injective map.  Let <img src='http://s0.wp.com/latex.php?latex=-&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-' title='-' class='latex' /> be its inverse.</p>
<p>Hardy calls a scale <strong>divided</strong> if the necessary condition for <img src='http://s0.wp.com/latex.php?latex=%5Ctheta+%2B+%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta + &#92;eta' title='&#92;theta + &#92;eta' class='latex' /> existing given by (2) above is also sufficient. He proves:</p>
<blockquote><p>For any divided scale, and <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' />, <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' /> in Boolean algebra <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{A}' title='&#92;mathbb{A}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Crho%28x%5Cvee+y%29+%3D+%5Crho%28x%29+%2B+%28%5Crho%28y%29+-+%5Crho%28x%5Cwedge+y%29%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;rho(x&#92;vee y) = &#92;rho(x) + (&#92;rho(y) - &#92;rho(x&#92;wedge y)).' title='&#92;rho(x&#92;vee y) = &#92;rho(x) + (&#92;rho(y) - &#92;rho(x&#92;wedge y)).' class='latex' /></p></blockquote>
<p>In other words, all divided scales do have a <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' /> operation, which satisfies the appropriate law from probability theory.</p>
<p>Finding an analogue of <img src='http://s0.wp.com/latex.php?latex=%5Cwedge&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;wedge' title='&#92;wedge' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Ctimes&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;times' title='&#92;times' class='latex' /> is trickier, and, when he wrote the paper, Hardy only knew how to do it in the case that the scale is linearly ordered and Archimedean, defined as follows:</p>
<blockquote><p>Let <img src='http://s0.wp.com/latex.php?latex=%5Cdelta%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta&#92;in&#92;mathbb{R}' title='&#92;delta&#92;in&#92;mathbb{R}' class='latex' />.  Then <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' /> is called <strong>infinitesimal</strong> if there is an infinite subset <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BX%7D%5Csubseteq+%5Cmathbb%7BA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{X}&#92;subseteq &#92;mathbb{A}' title='&#92;mathbb{X}&#92;subseteq &#92;mathbb{A}' class='latex' />  such that <img src='http://s0.wp.com/latex.php?latex=x%5Cwedge+y+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;wedge y = 0' title='x&#92;wedge y = 0' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=x%2C+y%5Cin%5Cmathbb%7BX%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x, y&#92;in&#92;mathbb{X}' title='x, y&#92;in&#92;mathbb{X}' class='latex' /> such that  <img src='http://s0.wp.com/latex.php?latex=%5Cdelta+%3C+%5Crho%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta &lt; &#92;rho(x)' title='&#92;delta &lt; &#92;rho(x)' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+%5Cmathbb%7BX%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in &#92;mathbb{X}' title='x&#92;in &#92;mathbb{X}' class='latex' />.</p>
<p>A scale is called <strong>Archimedean</strong> if it is divided and has no nonzero infinitesimals.</p></blockquote>
<p>The  idea behind the definition of infinitesimal is that, assigning the  Boolean algebra a total measure of 1, the measures of the elements of  <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BX%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{X}' title='&#92;mathbb{X}' class='latex' /> must approach 0.</p>
<p>In that case, you can define a division <img src='http://s0.wp.com/latex.php?latex=%5Ctheta%2F%5Ceta+%5Cin+%5B0%2C%5Cinfty%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta/&#92;eta &#92;in [0,&#92;infty)' title='&#92;theta/&#92;eta &#92;in [0,&#92;infty)' class='latex' /> as follows:  Let <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' /> be the maximum number of times <img src='http://s0.wp.com/latex.php?latex=%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;eta' title='&#92;eta' class='latex' /> can be subtracted from <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, let <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' /> be the maximum number of times that result can be subtracted from <img src='http://s0.wp.com/latex.php?latex=%5Ceta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;eta' title='&#92;eta' class='latex' />, and so on.  The quotient is then defined as the continued fraction:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7Bn_0+%2B+%5Cfrac%7B1%7D%7Bn_1%2B%5Cfrac%7B1%7D%7Bn_2%2B%5Ccdots%7D%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{n_0 + &#92;frac{1}{n_1+&#92;frac{1}{n_2+&#92;cdots}}}' title='&#92;displaystyle{n_0 + &#92;frac{1}{n_1+&#92;frac{1}{n_2+&#92;cdots}}}' class='latex' /></p>
<p>Then the map <img src='http://s0.wp.com/latex.php?latex=%5Ctheta+%5Cmapsto+%5Ctheta%2F1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta &#92;mapsto &#92;theta/1' title='&#92;theta &#92;mapsto &#92;theta/1' class='latex' /> maps the scale injective to a subscale of <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' /> (in particular, preserving <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />).  Thus, <img src='http://s0.wp.com/latex.php?latex=%5Ctimes&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;times' title='&#92;times' class='latex' /> can be pulled back from its definition on <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' />.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=494&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2010/09/18/the-spectrum-from-logic-to-probability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Topology and First-Order Modal Logic</title>
		<link>http://xorshammer.com/2010/03/13/topology-and-first-order-modal-logic/</link>
		<comments>http://xorshammer.com/2010/03/13/topology-and-first-order-modal-logic/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 07:23:02 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=433</guid>
		<description><![CDATA[The normal square root function can be considered to be multi-valued. Let&#8217;s momentarily accept the heresy of saying that the square root of a negative number is , so that our function will be total. How can we represent the &#8230; <a href="http://xorshammer.com/2010/03/13/topology-and-first-order-modal-logic/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=433&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The normal square root function can be considered to be multi-valued.</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sqrt.png"><img class="alignnone size-full wp-image-435" title="sqrt" src="http://xorshammer.files.wordpress.com/2010/03/sqrt.png?w=500" alt=""   /></a></p>
<p>Let&#8217;s momentarily accept the heresy of saying that the square root of a negative number is <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' />, so that our function will be total.</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sqrt_zero.png"><img class="alignnone size-full wp-image-437" title="sqrt_zero" src="http://xorshammer.files.wordpress.com/2010/03/sqrt_zero.png?w=500" alt=""   /></a></p>
<p>How can we represent the situation of this branching &#8220;function&#8221; topologically?</p>
<p><span id="more-433"></span>One thing we could do is just take the graph of the multivalued &#8220;function&#8221; itself in the subspace topology of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^2' title='&#92;mathbb{R}^2' class='latex' />, which is topologically just like this:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/y.png"><img class="alignnone size-full wp-image-439" title="y" src="http://xorshammer.files.wordpress.com/2010/03/y.png?w=500" alt=""   /></a></p>
<p>This has the downside that, at the origin (the place where all three lines meet), it doesn&#8217;t really represent the fact that the graph of the original multivalued &#8220;function&#8221; was the union of two genuine single-valued functions:  There is no neighborhood of the origin which is functional in any way.</p>
<p>But what about this topological space?  (The two filled-in dots represent points which are present in the space, the non-filled-in dot represents a point missing from the space.  The border is not part of the space.)</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf11.png"><img class="alignnone size-full wp-image-445" style="border:1px solid black;" title="sheaf1" src="http://xorshammer.files.wordpress.com/2010/03/sheaf11.png?w=500" alt=""   /></a></p>
<p>Here, the open sets are given by a basis consisting of: open sets on either of the three branches: i.e., like this</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch1.png"><img class="alignnone size-full wp-image-446" style="border:1px solid black;" title="sheaf1_branch" src="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch1.png?w=500" alt=""   /></a></p>
<p>and this:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch21.png"><img class="alignnone size-full wp-image-448" style="border:1px solid black;" title="sheaf1_branch2" src="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch21.png?w=500" alt=""   /></a></p>
<p>and this:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch31.png"><img class="alignnone size-full wp-image-449" style="border:1px solid black;" title="sheaf1_branch3" src="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch31.png?w=500" alt=""   /></a></p>
<p>as well as open sets of this form:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open1.png"><img class="alignnone size-full wp-image-452" style="border:1px solid black;" title="sheaf1_open1" src="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open1.png?w=500" alt=""   /></a></p>
<p>and this form:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open2.png"><img class="alignnone size-full wp-image-453" style="border:1px solid black;" title="sheaf1_open2" src="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open2.png?w=500" alt=""   /></a></p>
<p>(Note that this space isn&#8217;t Hausdorff!).</p>
<p>This space (call it <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />) <em>represents</em> the fact that the original graph was the union of two genuine single-valued functions in the following sense:  There is a function, <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, from <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> to the <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' />-axis (i.e., <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />) such that for all points <img src='http://s0.wp.com/latex.php?latex=y%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in T' title='y&#92;in T' class='latex' />, there is an open set <img src='http://s0.wp.com/latex.php?latex=y%5Cin+U%5Csubset+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in U&#92;subset T' title='y&#92;in U&#92;subset T' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> restricted to <img src='http://s0.wp.com/latex.php?latex=U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='U' title='U' class='latex' /> is a homeomorphism to an open set in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  That is, every point in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> has a neighborhood such that the inverse of <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> restricted to that neighborhood <em>is </em>a function.</p>
<p>The space <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> as defined above is (sort of) a sheaf over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  More precisely, it&#8217;s an <a href="http://ncatlab.org/nlab/show/etale+space">étalé space</a>:  To restate the definition above more generally, an étalé space over a topological space <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is a topological space <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> together with a function <img src='http://s0.wp.com/latex.php?latex=p%5Ccolon+T%5Cto+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;colon T&#92;to S' title='p&#92;colon T&#92;to S' class='latex' /> such that, for all <img src='http://s0.wp.com/latex.php?latex=y%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in T' title='y&#92;in T' class='latex' />, there is an open set <img src='http://s0.wp.com/latex.php?latex=y%5Cin+U%5Csubset+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in U&#92;subset S' title='y&#92;in U&#92;subset S' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p%28U%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(U)' title='p(U)' class='latex' /> is open and <img src='http://s0.wp.com/latex.php?latex=p%7C_U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p|_U' title='p|_U' class='latex' /> is a homeomorphism.  In general, for any <img src='http://s0.wp.com/latex.php?latex=x%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in S' title='x&#92;in S' class='latex' />, the set <img src='http://s0.wp.com/latex.php?latex=p%5E%7B-1%7D%28x%29%5Csubset+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p^{-1}(x)&#92;subset T' title='p^{-1}(x)&#92;subset T' class='latex' /> is called the <em>stalk</em> over <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' />.  Note that, as a subspace of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />, any stalk is discrete.</p>
<p>As another example along similar lines, gluing the domains of the different branches of the complex logarithm gives rise to a sheaf over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />: (This image is from Wikipedia and is by <a href="http://commons.wikimedia.org/wiki/User:Jan_Homann">Jan Homann</a>.)</p>
<p><a href="http://en.wikipedia.org/wiki/File:Riemann_surface_log.jpg"><img class="alignnone" title="logarithm" src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Riemann_surface_log.jpg/220px-Riemann_surface_log.jpg" alt="" width="220" height="259" /></a></p>
<p>In this case, <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is the space pictured, <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' /> (or <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5E%2A+%3D+%5Cmathbb%7BC%7D-%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}^* = &#92;mathbb{C}-&#92;{0&#92;}' title='&#92;mathbb{C}^* = &#92;mathbb{C}-&#92;{0&#92;}' class='latex' />), and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is projection along the depicted vertical direction.  Note that this represents how the domains of the various branches of the complex logarithm fit together; this graph is <em>not</em> a depiction of the complex logarithm or any branch of the complex logarithm, which is a function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />, and thus hard to draw!</p>
<p>The two examples I gave were of natural functions which happen to be multivalued, but there are much more general examples of étalé spaces.  For example, for any topological spaces <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=S%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#039;' title='S&#039;' class='latex' />, there is a sheaf of <em>all</em> continuous functions from <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=S%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#039;' title='S&#039;' class='latex' />!  The étalé space corresponding to this sheaf would have, for each <img src='http://s0.wp.com/latex.php?latex=x%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in S' title='x&#92;in S' class='latex' />, the stalk <img src='http://s0.wp.com/latex.php?latex=p%5E%7B-1%7D%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p^{-1}(x)' title='p^{-1}(x)' class='latex' /> equal to the set of <a href="http://en.wikipedia.org/wiki/Germ_%28mathematics%29">germs</a> of continuous functions from <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=S%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#039;' title='S&#039;' class='latex' /> at <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' />. (See <a href="http://en.wikipedia.org/wiki/Sheaf_%28mathematics%29#The_.C3.A9tal.C3.A9_space_of_a_sheaf">here</a> for more).</p>
<h2>First-Order Modal Logic</h2>
<p>And now we&#8217;ll switch to a seemingly totally different topic.</p>
<p>A modal logic is a logic that contains an operator <img src='http://s0.wp.com/latex.php?latex=%5CBox&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box' title='&#92;Box' class='latex' />, representing necessity, and <img src='http://s0.wp.com/latex.php?latex=%5CDiamond&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond' title='&#92;Diamond' class='latex' />, representing possibility.  If <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is a proposition, then <img src='http://s0.wp.com/latex.php?latex=%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p' title='&#92;Box p' class='latex' /> should be interpreted as the proposition &#8220;It is necessary that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />&#8221;, or &#8220;<img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is necessarily true&#8221;, and <img src='http://s0.wp.com/latex.php?latex=%5CDiamond+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond p' title='&#92;Diamond p' class='latex' /> should be interpreted as the proposition &#8220;It is possible that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is true&#8221;.</p>
<p>The operators <img src='http://s0.wp.com/latex.php?latex=%5CBox&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box' title='&#92;Box' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5CDiamond&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond' title='&#92;Diamond' class='latex' /> are dual to each other: <img src='http://s0.wp.com/latex.php?latex=%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p' title='&#92;Box p' class='latex' /> is equivalent to <img src='http://s0.wp.com/latex.php?latex=%5Cneg%5CDiamond%5Cneg+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg&#92;Diamond&#92;neg p' title='&#92;neg&#92;Diamond&#92;neg p' class='latex' /> and similarly <img src='http://s0.wp.com/latex.php?latex=%5CDiamond+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond p' title='&#92;Diamond p' class='latex' /> is equivalent to <img src='http://s0.wp.com/latex.php?latex=%5Cneg%5CBox%5Cneg+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg&#92;Box&#92;neg p' title='&#92;neg&#92;Box&#92;neg p' class='latex' /> (if you think about it, this actually makes real-life sense, as well as just sense in logic-land!).</p>
<p>There are a number of different <a href="http://en.wikipedia.org/wiki/Modal_logic#Axiomatic_systems">axiomatic systems</a> for propositional modal logic; here we&#8217;ll just consider S4, which was invented by <a href="http://en.wikipedia.org/wiki/C._I._Lewis">C. I. Lewis</a> in the early 20th century. It has the following rules:</p>
<ol>
<li>For all propositions <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5CBox+p%5Crightarrow+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p&#92;rightarrow p' title='&#92;Box p&#92;rightarrow p' class='latex' /> is a theorem.</li>
<li>For all propositions <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5CBox+p%5Crightarrow+%5CBox%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p&#92;rightarrow &#92;Box&#92;Box p' title='&#92;Box p&#92;rightarrow &#92;Box&#92;Box p' class='latex' /> is a theorem.</li>
<li>For all propositions <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5CBox+%28p%5Crightarrow+q%29%5Crightarrow+%28%5CBox+p+%5Crightarrow+%5CBox+q%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box (p&#92;rightarrow q)&#92;rightarrow (&#92;Box p &#92;rightarrow &#92;Box q)' title='&#92;Box (p&#92;rightarrow q)&#92;rightarrow (&#92;Box p &#92;rightarrow &#92;Box q)' class='latex' /> is a theorem.</li>
<li>For any proposition <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is a theorem, then <img src='http://s0.wp.com/latex.php?latex=%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p' title='&#92;Box p' class='latex' /> is a theorem.  (Note that this does <em>not </em>say that <img src='http://s0.wp.com/latex.php?latex=p%5Crightarrow+%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;rightarrow &#92;Box p' title='p&#92;rightarrow &#92;Box p' class='latex' /> is a theorem; if it did, the whole thing would be trivial!).</li>
</ol>
<p>In the middle of the 20th century, <a href="http://en.wikipedia.org/wiki/Saul_Kripke">Saul Kripke</a> invented possible-worlds semantics for modal logics.  The idea is that there is a set <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' /> of possible worlds and at each possible world <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' />, each atomic proposition <img src='http://s0.wp.com/latex.php?latex=A%2C+B%2C%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A, B,&#92;ldots' title='A, B,&#92;ldots' class='latex' /> may hold or not, independently of the other possible worlds.  Furthermore, there is a relation <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> between possible worlds; <img src='http://s0.wp.com/latex.php?latex=wRw%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='wRw&#039;' title='wRw&#039;' class='latex' /> should be interpreted as &#8220;World <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' /> considers world <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' /> possible&#8221;.  The whole setup is called a <em>Kripke frame</em>.</p>
<p>This gives a semantics for modal logic: For any proposition <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5CDiamond+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond p' title='&#92;Diamond p' class='latex' /> holds at a world <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' /> if there is some world <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' /> that <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' /> considers possible such that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> holds at <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' />.  Similarly, <img src='http://s0.wp.com/latex.php?latex=%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p' title='&#92;Box p' class='latex' /> holds at a world <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' /> if <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> holds at <em>every</em> world <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' /> that <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' /> considers possible.</p>
<p>Somebody showed (probably Kripke, but I&#8217;m not sure) that the class of Kripke frames where <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> is reflexive and transitive corresponds to S4, in the sense that all theorems of S4 hold in all such Kripke frames, and everything which holds in all such Kripke frames holds in S4.</p>
<p>Note that the accessibility relation is completely clear-cut and discrete: given a world <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' />, you know exactly what worlds <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' /> it considers possible.  But, interpreting <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> as a measure of &#8220;closeness&#8221; of two worlds, observe that topology gives us a more nuanced version of what &#8220;closeness&#8221; means: we think of the topology on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />, for example, as defining what &#8220;closeness&#8221; means on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />, even though no two fixed real numbers are actually close to one another!  (At least, they&#8217;re not close to one another in any absolute sense.)</p>
<p>It turns out we can incorporate this sense of &#8220;closeness&#8221; into the semantics for modal logic as well.  We&#8217;ll define a topological Kripke model this way: We again have a set <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' /> of possible worlds, but instead of defining a relation <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> between them, we define a topology  on <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' />.  As above, we say, for each possible world <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' />, which of the atomic propositions <img src='http://s0.wp.com/latex.php?latex=A%2CB%2C%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A,B,&#92;ldots' title='A,B,&#92;ldots' class='latex' /> hold at that world.  Note that this is equivalent to defining arbitrary subsets <img src='http://s0.wp.com/latex.php?latex=%5BA%5D%2C%5BB%5D%2C%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[A],[B],&#92;ldots' title='[A],[B],&#92;ldots' class='latex' /> of <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' />.  In general, we&#8217;ll let <img src='http://s0.wp.com/latex.php?latex=%5Bp%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[p]' title='[p]' class='latex' /> be the set of worlds at which proposition <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> holds.  Then we can define <img src='http://s0.wp.com/latex.php?latex=%5B%5CBox+p%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[&#92;Box p]' title='[&#92;Box p]' class='latex' /> to be the interior of <img src='http://s0.wp.com/latex.php?latex=%5Bp%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[p]' title='[p]' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5B%5CDiamond+p%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[&#92;Diamond p]' title='[&#92;Diamond p]' class='latex' /> to be the closure of <img src='http://s0.wp.com/latex.php?latex=%5Bp%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[p]' title='[p]' class='latex' />.  In other worlds, <img src='http://s0.wp.com/latex.php?latex=%5CBox+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box p' title='&#92;Box p' class='latex' /> holds at a world <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' /> there is some open set <img src='http://s0.wp.com/latex.php?latex=w%5Cin+U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#92;in U' title='w&#92;in U' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> holds at every world <img src='http://s0.wp.com/latex.php?latex=w%27%5Cin+U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;&#92;in U' title='w&#039;&#92;in U' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5CDiamond+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond p' title='&#92;Diamond p' class='latex' /> holds at a world <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' /> if for all open sets <img src='http://s0.wp.com/latex.php?latex=w%5Cin+U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#92;in U' title='w&#92;in U' class='latex' /> there is some <img src='http://s0.wp.com/latex.php?latex=w%27%5Cin+U&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;&#92;in U' title='w&#039;&#92;in U' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> holds at <img src='http://s0.wp.com/latex.php?latex=w%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w&#039;' title='w&#039;' class='latex' />.</p>
<p>It turns out that this semantics, too corresponds to S4, in the sense that all theorems of S4 hold in all topological Kripke models and all propositions which hold in all topological Kripke models are theorems of S4.  (I&#8217;m not exactly sure who first came up with this.  I looked at the Wikipedia article and some of its links, but I couldn&#8217;t quite figure out who was the first.  It seems Tarski was involved somehow anyway.)</p>
<p>So far, the logics we&#8217;ve considered have all been propositional, but you can easily add first-order logic to S4 to get FOS4.  There have been a number of proposals for how to define a semantics for FOS4.  In <a href="http://www.andrew.cmu.edu/user/awodey/preprints/FoS4.phil.pdf">2008</a>, <a href="http://www.andrew.cmu.edu/user/awodey/">Steve Awodey</a> and <a href="http://www.pitt.edu/~kok6/">Kohei Kishida</a> proposed that the right generalization of topological semantics for S4 to first-order semantics for FOS4 was to use étalé spaces!</p>
<p>Here&#8217;s an example of how it works.  Consider the following étalé space:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf2.png"><img class="alignnone size-full wp-image-474" title="sheaf2" src="http://xorshammer.files.wordpress.com/2010/03/sheaf2.png?w=500" alt=""   /></a></p>
<p>The top space, <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />, is homeomorphic to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2B+%3D+%5C%7By%5Cin%5Cmathbb%7BR%7D%5Cmid+y+%3E+0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^+ = &#92;{y&#92;in&#92;mathbb{R}&#92;mid y &gt; 0&#92;}' title='&#92;mathbb{R}^+ = &#92;{y&#92;in&#92;mathbb{R}&#92;mid y &gt; 0&#92;}' class='latex' />.  The bottom space, <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />, is the circle <img src='http://s0.wp.com/latex.php?latex=S%5E1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^1' title='S^1' class='latex' />.  The projection <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is given by <img src='http://s0.wp.com/latex.php?latex=p%28y%29+%3D+%5Clangle+%5Ccos%282%5Cpi+y%29%2C%5Csin%282%5Cpi+y%29%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y) = &#92;langle &#92;cos(2&#92;pi y),&#92;sin(2&#92;pi y)&#92;rangle' title='p(y) = &#92;langle &#92;cos(2&#92;pi y),&#92;sin(2&#92;pi y)&#92;rangle' class='latex' />.</p>
<p>We can put a first-order structure on this étalé space by considering each stalk <img src='http://s0.wp.com/latex.php?latex=p%5E%7B-1%7D%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p^{-1}(x)' title='p^{-1}(x)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=x%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in S' title='x&#92;in S' class='latex' /> to be a first-order universe, just as when defining regular semantics for first-order logic.</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line.png"><img class="alignnone size-full wp-image-476" title="sheaf2_line" src="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line.png?w=500" alt=""   /></a></p>
<p>We can define the interpretation of relation symbols, function symbols, and constant symbols more or less arbitrarily:  The only restrictions are that the selection of the interpretation of any particular constant symbol from each stalk must be done in a continuous manner, and there is a similar continuity condition on the interpretation of function symbols.</p>
<p>It will turn out that the interpretation of a formula <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' /> with free variables <img src='http://s0.wp.com/latex.php?latex=v_1%2C%5Cldots%2Cv_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_1,&#92;ldots,v_n' title='v_1,&#92;ldots,v_n' class='latex' /> will be a subset of <img src='http://s0.wp.com/latex.php?latex=T%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T^n' title='T^n' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=T%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T^n' title='T^n' class='latex' /> is 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 fibered product over <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> with itself.  (This just means that, e.g., <img src='http://s0.wp.com/latex.php?latex=T%5Ctimes+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T&#92;times T' title='T&#92;times T' class='latex' /> is the étalé space where the stalk of any <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 <img src='http://s0.wp.com/latex.php?latex=p%5E%7B-1%7D%28x%29%5Ctimes+p%5E%7B-1%7D%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p^{-1}(x)&#92;times p^{-1}(x)' title='p^{-1}(x)&#92;times p^{-1}(x)' class='latex' />.).  In particular, as in the regular topological semantics, the interpretation of a sentence will be a subset of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.</p>
<p>The crucial step, as before, is that the interpretation of <img src='http://s0.wp.com/latex.php?latex=%5CBox+%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Box &#92;phi' title='&#92;Box &#92;phi' class='latex' /> is the interior of the interpretation of <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' />, and the interpretation of <img src='http://s0.wp.com/latex.php?latex=%5CDiamond+%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Diamond &#92;phi' title='&#92;Diamond &#92;phi' class='latex' /> is the closure of the interpretation of <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' />, although now the interiors and closures are being taken in the topology of <img src='http://s0.wp.com/latex.php?latex=T%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T^n' title='T^n' class='latex' />.</p>
<p>To see how this works, suppose that in our example we define the relation <img src='http://s0.wp.com/latex.php?latex=%5Cleq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;leq' title='&#92;leq' class='latex' /> on each stalk by restricting the usual ordering <img src='http://s0.wp.com/latex.php?latex=%5Cleq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;leq' title='&#92;leq' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^+' title='&#92;mathbb{R}^+' class='latex' />.  Then it is true in our model that <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5Cforall+y%5C%2C+x%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;forall y&#92;, x&#92;leq y' title='&#92;exists x&#92;forall y&#92;, x&#92;leq y' class='latex' /> (since it is true in every stalk), but it is not true that <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5CBox%5Cforall+y%5C%2C+x%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;Box&#92;forall y&#92;, x&#92;leq y' title='&#92;exists x&#92;Box&#92;forall y&#92;, x&#92;leq y' class='latex' />.  The reason is that in this stalk:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line2.png"><img class="alignnone size-full wp-image-480" title="sheaf2_line2" src="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line2.png?w=500" alt=""   /></a></p>
<p>the red dot is the minimum element of the stalk, but if you push it to the right just a little bit, that&#8217;s no longer true.  Intuitively, it&#8217;s the minimum element, but not <em>necessarily </em>so.</p>
<p>Awodey and Kishida prove that, as in the other cases, this sheaf semantics corresponds to FOS4 in that every theorem of FOS4 holds in all sheaf models, and everything which holds in all sheaf models is a theorem of FOS4.  (They actually prove something a bit stronger than that.)</p>
<h3>Other Uses of Sheaves in Logic</h3>
<p>This relationship between sheaves and logic came up relatively recently, but there is a longer and more well-known relationship which I&#8217;ll just mention briefly, namely through <a href="http://en.wikipedia.org/wiki/Topos#Elementary_toposes_.28toposes_in_logic.29">toposes</a>.  Using topos theory, you can interpret the class of sheaves over a topological space <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> as a category similar to the category of sets.  The interpretation is actually fairly similar to the interpretation here, but instead of interpreting modal logic, higher-order (non-modal) logic is interpreted.  It turns out that the set of truth values in this interpretation is the set of open subsets of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> (whereas in the modal interpretation just given, the truth values could be arbitrary subsets of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />).  One of the remarkable things about this is that the set of open subsets of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> can <em>itself </em>be interpreted as an étalé space over <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />, which is what allows the equivalent of power sets to be taken in this category.</p>
<p>For more information on this, see <a href="http://ncatlab.org/nlab/show/Sheaves+in+Geometry+and+Logic">Sheaves in Geometry and Logic</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/433/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=433&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2010/03/13/topology-and-first-order-modal-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sqrt.png" medium="image">
			<media:title type="html">sqrt</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sqrt_zero.png" medium="image">
			<media:title type="html">sqrt_zero</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/y.png" medium="image">
			<media:title type="html">y</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf11.png" medium="image">
			<media:title type="html">sheaf1</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch1.png" medium="image">
			<media:title type="html">sheaf1_branch</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch21.png" medium="image">
			<media:title type="html">sheaf1_branch2</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf1_branch31.png" medium="image">
			<media:title type="html">sheaf1_branch3</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open1.png" medium="image">
			<media:title type="html">sheaf1_open1</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf1_open2.png" medium="image">
			<media:title type="html">sheaf1_open2</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Riemann_surface_log.jpg/220px-Riemann_surface_log.jpg" medium="image">
			<media:title type="html">logarithm</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf2.png" medium="image">
			<media:title type="html">sheaf2</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line.png" medium="image">
			<media:title type="html">sheaf2_line</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2010/03/sheaf2_line2.png" medium="image">
			<media:title type="html">sheaf2_line2</media:title>
		</media:content>
	</item>
		<item>
		<title>Two Interesting Observations about Voting I Hadn&#8217;t Seen Until Recently</title>
		<link>http://xorshammer.com/2010/02/22/two-interesting-observations-about-voting-i-hadnt-seen-until-recently/</link>
		<comments>http://xorshammer.com/2010/02/22/two-interesting-observations-about-voting-i-hadnt-seen-until-recently/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 01:32:43 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=424</guid>
		<description><![CDATA[By &#8220;voting&#8221;, I mean the following general problem:  Suppose there are candidates and voters.  Each voter produces a total ordering of all candidates.  A voting procedure is a function which takes as input all orderings, and produces an output ranking &#8230; <a href="http://xorshammer.com/2010/02/22/two-interesting-observations-about-voting-i-hadnt-seen-until-recently/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=424&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By &#8220;voting&#8221;, I mean the following general problem:  Suppose there are <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' /> candidates and <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' /> voters.  Each voter produces a total ordering of all <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' /> candidates.  A voting procedure is a function which takes as input all <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' /> orderings, and produces an output ranking of all <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' /> candidates.  <a href="http://en.wikipedia.org/wiki/Arrow%27s_impossibility_theorem">Arrow&#8217;s impossibility theorem</a> states that there is really no satisfactory voting procedure when the number of candidates is greater than 2 (majority rule is a good voting procedure when there are two candidates).</p>
<p><span id="more-424"></span></p>
<p><strong>Observation #1</strong> (which I read in Chapter 23 of David Easley and Jon Kleinberg&#8217;s book <a href="http://www.cs.cornell.edu/home/kleinber/networks-book/">Networks, Crowds, and Markets</a>): <strong>Voters will vote strategically (i.e., they will lie) even when they have a common goal.</strong></p>
<p>In the setup above where each voter has a set of personal preferences and voters are essentially competing with other voters who have different preferences, it is easy to come up with situations where it would be advantageous for a voter to lie.  For example, if a voter&#8217;s true rankings are <img src='http://s0.wp.com/latex.php?latex=A+%3E+B+%3E+C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A &gt; B &gt; C' title='A &gt; B &gt; C' class='latex' /> where <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' />, <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />, and <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' /> are candidates, but <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> has a much better chance of winning than <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' /> does, it may be advantageous for the voter to submit a ranking of <img src='http://s0.wp.com/latex.php?latex=A+%3E+C+%3E+B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A &gt; C &gt; B' title='A &gt; C &gt; B' class='latex' /> if she wants to maximize the chance that <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' /> comes out on top.</p>
<p>However, in a situation where every voter has the same goals, but they have different private information (and it&#8217;s impossible or infeasible for them to share their private information with each other), it seems like there&#8217;s never a reason for a voter to lie.  But there is, even when there are only two alternatives that are being voted on.</p>
<p>Consider the following game:  There is a vase filled with marbles.  Either it has 10 white marbles (call this state <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' />) or 5 white marbles and 5 green marbles (call this state <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />).  Which of state <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' /> or state <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> holds was determined by flipping a fair coin before the game started (and this fact is common knowledge).  Each of three voters independently and without communication draws one marble at random from the vase, observes its color, puts it back, and then votes on whether or not <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' /> or <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> holds.  The voters win if a majority guesses right and lose otherwise.</p>
<p>As you can work out: if you draw a white marble, you believe state <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' /> holds with probability <img src='http://s0.wp.com/latex.php?latex=2%2F3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2/3' title='2/3' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> holds with probability <img src='http://s0.wp.com/latex.php?latex=1%2F3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/3' title='1/3' class='latex' />.  If you draw a green marble, you believe state <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' /> holds with probability <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> holds with probability <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> (you are sure that state <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> holds).</p>
<p>However, voters will not vote their true beliefs:  Suppose they did, and consider whether a fixed voter has an incentive to deviate from this strategy (i.e., consider whether all voters voting their true beliefs is a Nash equilibrium).  When you draw a green marble, you should definitely vote for state <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />.  But what should you do when you draw a white marble?  The key question is: when will your vote make a difference?  Only when one other voter votes <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 the other voter votes <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />.  But because they are voting sincerely, the voter who voted <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> must have drawn a green marble and, therefore she must be right!  So, you should vote <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> as well.  That is, if you think that the other two voters are voting sincerely, you should disregard the information you get from observing a marble, and always vote <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />!</p>
<p>In the Easley-Kleinberg chapter, the authors also demonstrate a version of this with juries, where the vote must be unanimous to convict a defendant, and otherwise she will be acquitted.  A similar situation happens: assume that you are thinking of voting to acquit.  Under what circumstances will your vote make a difference?  Only when every other juror has voted to convict.  In that circumstance, it is quite likely that you are wrong, and the defendant was guilty, and thus you should have voted to convict no matter what!   (This shows that everyone voting sincerely is not an equilibrium but doesn&#8217;t show what the equilibria of this game are.  According to the authors, finding the equilibria is quite difficult.)</p>
<p><strong>Observation #2 </strong>(which I saw in a <a href="http://www.votingmatters.org.uk/ISSUE26/I26P3.pdf">paper</a> by Roger Sewell, <a href="http://www.inference.phy.cam.ac.uk/mackay/Decision.html">David Mackay</a>, and Ian McLean): <strong>Maximizing the Entropy of the Outcome of Voting Leads to Good Results</strong></p>
<p>As I alluded to above, Arrow&#8217;s impossibility theorem says that there&#8217;s no satisfactory way to provide an output ranking of candidates given the input rankings from each voter (here we will assume that we simply know each voter&#8217;s true ranking and not consider strategic voting).  However, this just applies to <em>deterministic </em>voting procedures: it is, in fact, quite easy to come up with a <em>probabilistic </em>voting procedure satisfying all of the hypotheses of Arrow&#8217;s impossibility theorem: just pick a voter uniformly at random and take their preferences to be the output ranking!</p>
<p>Aside from the fact that it seems unlikely that the general public would accept such explicit randomization in the voting procedure any time soon, this process (which is called Random Dictator) has a couple of other negative aspects.  First of all, it can easily lead to extreme outcomes:  Suppose that there are 20 candidates, and the top 10 in the output ranking will be given various positions in the government.  Suppose 10 candidates are from one political party, and 10 are from the other, and further that the populace is highly polarized: everyone ranks their party&#8217;s 10 candidates strictly better than each of the 10 candidates of the other party.  Then it is guaranteed that a single-party government will be the result. What might be better is 10 officials chosen from a mix of the two parties according to each party&#8217;s representation in the voting public.</p>
<p>Another way in which Random Dictator doesn&#8217;t compromise very well is the following:  Suppose there is heavy contention between candidates <img src='http://s0.wp.com/latex.php?latex=A_1%2C%5Cldots%2C+A_%7B20%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_1,&#92;ldots, A_{20}' title='A_1,&#92;ldots, A_{20}' class='latex' /> from the top rank among voters, but there is a candidate <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> that is everyone&#8217;s second choice.   Then under Random Dictator there is zero chance that <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> will be top-ranked in the output-ranking, even though it intuitively seems that <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> is more generally liked by the population than any of <img src='http://s0.wp.com/latex.php?latex=A_1%5Cldots%2CA_%7B20%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_1&#92;ldots,A_{20}' title='A_1&#92;ldots,A_{20}' class='latex' />.</p>
<p>The authors of the paper fix these problems by proposing the following procedure:  For each pair of candidates <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=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />, record the proportion <img src='http://s0.wp.com/latex.php?latex=p_%7BA%2CB%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_{A,B}' title='p_{A,B}' class='latex' /> of the voting population which prefers <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' /> to <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />.  Now, from all probability distributions over output rankings such that, for each pair of candidates <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' />, <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' />, the probability of <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' /> being ranked higher than <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> in the output ranking is <img src='http://s0.wp.com/latex.php?latex=p_%7BA%2CB%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_{A,B}' title='p_{A,B}' class='latex' />, choose the one that has <a href="http://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution">maximum entropy</a>.  Then choose an output ranking according to that distribution.</p>
<p>I won&#8217;t define maximum entropy here, but I will give a few examples.  The idea that there is a number called the entropy associated with every probability distribution, and furthermore that if you are looking for a probability distribution in a certain class, but don&#8217;t know anything about it except that it is in that class, then the &#8220;right&#8221; distribution to take is the one that maximizes the entropy (obviously this is an unprovable assertion).  In some sense, choosing the maximum entropy distribution from a class codifies the fact that you know nothing about it except that it is in that class.</p>
<p>For example, the maximum entropy probability distribution over the set <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2C2%2C3%2C4%2C5%2C6%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1,2,3,4,5,6&#92;}' title='&#92;{1,2,3,4,5,6&#92;}' class='latex' /> is the uniform distribution, which assigns probability <img src='http://s0.wp.com/latex.php?latex=1%2F6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/6' title='1/6' class='latex' /> to each number.  Fixing a <img src='http://s0.wp.com/latex.php?latex=%5Cmu%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu&#92;in&#92;mathbb{R}' title='&#92;mu&#92;in&#92;mathbb{R}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csigma%5E2+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma^2 &gt; 0' title='&#92;sigma^2 &gt; 0' class='latex' />, the maximum entropy probability distribution in the set of probability distributions over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> with mean <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' /> and variance <img src='http://s0.wp.com/latex.php?latex=%5Csigma%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma^2' title='&#92;sigma^2' class='latex' /> is a Gaussian distribution.  Fixing <img src='http://s0.wp.com/latex.php?latex=%5Cmu+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu &gt; 0' title='&#92;mu &gt; 0' class='latex' />, the maximum entropy distribution over the positive reals with mean <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' /> is the exponential distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' />.</p>
<p>Basically, what the authors have proposed is that the actual total ranking of each voter are not important (or else we would have the first problem mentioned above), and in particular which candidate each voter happened to place in the top rank is not important (or else we would have the second problem mentioned above); the only thing that&#8217;s really important is getting the correct proportions of the pairwise rankings right.  And the way to get a distribution on output rankings which reflects nothing except for the constraints on the pairwise rankings is to pick the maximum entropy distribution satisfying those constraints.</p>
<p>The beauty of this is that if you disagree with them, that&#8217;s fine: all you have to do is figure out what <em>you </em>think is the important information to preserve from the voters&#8217; rankings, then pick the output distribution which maximizes entropy among those satisfying those rankings, and that will be the &#8220;right&#8221; output for your choice of what&#8217;s important, in the sense that it will not &#8220;take into account&#8221; anything that you don&#8217;t think is important.  To take a trivial example, if you decide that the total ranking of each voter is important, then the maximum entropy distribution on output rankings will degenerate into the Random Dictator process.</p>
<p>The authors additionally ran simulations of elections using various voting procedures in order to verify that the maximum entropy voting scheme they propose is &#8220;better&#8221; (in some senses they define) than others.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/424/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=424&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2010/02/22/two-interesting-observations-about-voting-i-hadnt-seen-until-recently/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Quantish Physics: A Discrete Model of Quantum Physics</title>
		<link>http://xorshammer.com/2010/02/17/quantish-physics-a-discrete-model-of-quantum-physics/</link>
		<comments>http://xorshammer.com/2010/02/17/quantish-physics-a-discrete-model-of-quantum-physics/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 05:11:12 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=373</guid>
		<description><![CDATA[In the book Good and Real, author Gary Drescher, who received his PhD from MIT&#8217;s AI lab, defends the view that determinism is a consistent and coherent view of the world.   In doing so, he enters many different arenas: ethics, &#8230; <a href="http://xorshammer.com/2010/02/17/quantish-physics-a-discrete-model-of-quantum-physics/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=373&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the book <a href="http://books.google.com/books?id=3wrXAAAAMAAJ&amp;q=good+and+real&amp;dq=good+and+real&amp;cd=1">Good and Real</a>, author Gary Drescher, who received his PhD from MIT&#8217;s AI lab, defends the view that determinism is a consistent and coherent view of the world.   In doing so, he enters many different arenas: ethics, decision theory, and physics.</p>
<p>In his chapter on quantum mechanics, he defends the &#8220;many-worlds&#8221; interpretation (although he doesn&#8217;t think the term accurately describes the concept) versus the Copenhagen interpretation.  In the process of doing so, he does something I thought was extraordinary:  he comes up with a simple model of quantum mechanics in which all of the standard concepts you read about: the two-slit experiment, the Heisenberg uncertainty principle, etc., are represented.  This model requires no prerequisites from physics and actually uses almost totally discrete mathematics!</p>
<p>(Edit: I somehow missed this when originally writing this post, but Drescher also outlines quantish physics in an <a href="http://dspace.mit.edu/bitstream/handle/1721.1/6486/AIM-1026a.pdf?sequence=2">online paper</a>.)</p>
<p>I&#8217;ll sketch it below.</p>
<p><span id="more-373"></span></p>
<p>The first step is to define the &#8220;classical&#8221; version of our physics, which we will then tweak to get the quantum version.  The &#8220;topology&#8221; of our universe will be given by a finite directed graph <img src='http://s0.wp.com/latex.php?latex=%28V%2CE%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(V,E)' title='(V,E)' class='latex' /> where each vertex has three edges coming in, and three edges going out.  There is given a bijection <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+E%5Cto+E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon E&#92;to E' title='f&#92;colon E&#92;to E' class='latex' /> such that if edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> is directed in to vertex <img src='http://s0.wp.com/latex.php?latex=v&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v' title='v' class='latex' />, edge <img src='http://s0.wp.com/latex.php?latex=f%28e%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(e)' title='f(e)' class='latex' /> is directed out of vertex <img src='http://s0.wp.com/latex.php?latex=v&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v' title='v' class='latex' />.  Given this bijection, you can think of each edge as actually a piece of a wire: a directed loop in the graph.  Finally, we require that each edge is labeled either <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcontrol%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{control}' title='&#92;mathrm{control}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bswitch%7D%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{switch}(1)' title='&#92;mathrm{switch}(1)' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bswitch%7D%28-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{switch}(-1)' title='&#92;mathrm{switch}(-1)' class='latex' /> so that each triple of in-edges to a given vertex gets a distinct label.</p>
<p>We can picture vertices like this:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish1.png"><img class="alignnone size-medium wp-image-400" title="quantish" src="http://xorshammer.files.wordpress.com/2010/02/quantish1.png?w=300&#038;h=132" alt="" width="300" height="132" /></a></p>
<p>The vertex is represented by the big box in the center.  We will always put the control edge at the top, and the two switch edges at the bottom.  Note that the edge <img src='http://s0.wp.com/latex.php?latex=f%28e%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(e)' title='f(e)' class='latex' /> need not have the same label as <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' />.</p>
<p>Particles inhabit edges.  If <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is the set of particles and <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> is the set of edges, then a point in <img src='http://s0.wp.com/latex.php?latex=E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E^P' title='E^P' class='latex' /> determines the position of each particle.  The set <img src='http://s0.wp.com/latex.php?latex=E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E^P' title='E^P' class='latex' /> is thus called (classical) configuration space.  Time in this universe is discrete; to describe how the system evolves, we just have to define the successor function <img src='http://s0.wp.com/latex.php?latex=S%5Ec%5Ccolon+E%5EP%5Cto+E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^c&#92;colon E^P&#92;to E^P' title='S^c&#92;colon E^P&#92;to E^P' class='latex' /> which tells how the system progresses one time step (the <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' /> superscript stands for &#8220;classical&#8221;).</p>
<blockquote><p>For any edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> and label <img src='http://s0.wp.com/latex.php?latex=l%5Cin%5C%7B%5Cmathrm%7Bcontrol%7D%2C%5Cmathrm%7Bswitch%7D%281%29%2C%5Cmathrm%7Bswitch%7D%28-1%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='l&#92;in&#92;{&#92;mathrm{control},&#92;mathrm{switch}(1),&#92;mathrm{switch}(-1)&#92;}' title='l&#92;in&#92;{&#92;mathrm{control},&#92;mathrm{switch}(1),&#92;mathrm{switch}(-1)&#92;}' class='latex' />, we let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bedge%7D%28e%2Cl%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{edge}(e,l)' title='&#92;mathrm{edge}(e,l)' class='latex' /> be the edge with same destination vertex as <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> and with label <img src='http://s0.wp.com/latex.php?latex=l&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='l' title='l' class='latex' />.</p>
<p>For a configuration <img src='http://s0.wp.com/latex.php?latex=s%5Cin+E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#92;in E^P' title='s&#92;in E^P' class='latex' /> and edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' />, we let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bhas%5C_particle%7D%28s%2Ce%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{has&#92;_particle}(s,e) = 1' title='&#92;mathrm{has&#92;_particle}(s,e) = 1' class='latex' /> if edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> does not have a particle in configuration <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />, and we let it be <img src='http://s0.wp.com/latex.php?latex=-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-1' title='-1' class='latex' /> if it does.</p>
<p>Now we define <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> as follows: For every edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> labeled <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcontrol%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{control}' title='&#92;mathrm{control}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=S%28e%29+%3D+f%28e%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S(e) = f(e)' title='S(e) = f(e)' class='latex' />.  For every edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> labeled <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bswitch%28i%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{switch(i)}' title='&#92;mathrm{switch(i)}' class='latex' />,</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7BS%28e%29+%3D+f%28%5Cmathrm%7Bedge%7D%28e%2C%5Cmathrm%7Bswitch%7D%28i%5Ccdot%5Cmathrm%7Bhas%5C_particle%7D%28%5Cmathrm%7Bedge%7D%28e%2C%5Cmathrm%7Bcontrol%7D%29%29%29%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{S(e) = f(&#92;mathrm{edge}(e,&#92;mathrm{switch}(i&#92;cdot&#92;mathrm{has&#92;_particle}(&#92;mathrm{edge}(e,&#92;mathrm{control}))))}' title='&#92;displaystyle{S(e) = f(&#92;mathrm{edge}(e,&#92;mathrm{switch}(i&#92;cdot&#92;mathrm{has&#92;_particle}(&#92;mathrm{edge}(e,&#92;mathrm{control}))))}' class='latex' /></p></blockquote>
<p>In other words, particles on a control edge always go straight along whatever loop they are on.  However, particles on a switch edge may or may not cross over to the loop of the other switch edge, depending on whether or not there is a particle on the control edge (hence the names).</p>
<p>For example, this configuration:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish2.png"><img class="alignnone size-medium wp-image-402" title="quantish2" src="http://xorshammer.files.wordpress.com/2010/02/quantish2.png?w=300&#038;h=132" alt="" width="300" height="132" /></a></p>
<p>turns into this configuration:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish3.png"><img class="alignnone size-medium wp-image-403" title="quantish3" src="http://xorshammer.files.wordpress.com/2010/02/quantish3.png?w=300&#038;h=132" alt="" width="300" height="132" /></a></p>
<p>and this configuration:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish4.png"><img class="alignnone size-medium wp-image-404" title="quantish4" src="http://xorshammer.files.wordpress.com/2010/02/quantish4.png?w=300&#038;h=132" alt="" width="300" height="132" /></a></p>
<p>turns into this configuration:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish5.png"><img class="alignnone size-medium wp-image-405" title="quantish5" src="http://xorshammer.files.wordpress.com/2010/02/quantish5.png?w=300&#038;h=132" alt="" width="300" height="132" /></a></p>
<p>Now for the &#8220;quantum&#8221; variation, which Drescher calls quantish physics.  In this case, each particle now has a <em>sign</em> (<img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />/<img src='http://s0.wp.com/latex.php?latex=-&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-' title='-' class='latex' />) attached to it.  Furthermore, each vertex <img src='http://s0.wp.com/latex.php?latex=v&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v' title='v' class='latex' /> has an angle <img src='http://s0.wp.com/latex.php?latex=v_%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_&#92;theta' title='v_&#92;theta' class='latex' /> associated with it, called <img src='http://s0.wp.com/latex.php?latex=v&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v' title='v' class='latex' />&#8216;s <em>measurement angle</em>.  The classical configuration space was <img src='http://s0.wp.com/latex.php?latex=E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E^P' title='E^P' class='latex' />; the quantum configuration space <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> will be the set of all formal linear combinations <img src='http://s0.wp.com/latex.php?latex=%5Csum_i+z_i+s_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_i z_i s_i' title='&#92;sum_i z_i s_i' class='latex' /> of states <img src='http://s0.wp.com/latex.php?latex=s_i+%5Cin+E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_i &#92;in E^P' title='s_i &#92;in E^P' class='latex' />.  Given a state <img src='http://s0.wp.com/latex.php?latex=%5Csum_i+z_i+s_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_i z_i s_i' title='&#92;sum_i z_i s_i' class='latex' />, the number <img src='http://s0.wp.com/latex.php?latex=%7Cz_i%7C%5E2+%2F+%5Csum_j+%7Cz_j%7C%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|z_i|^2 / &#92;sum_j |z_j|^2' title='|z_i|^2 / &#92;sum_j |z_j|^2' class='latex' /> can reasonably be interpreted as the probability of being in state <img src='http://s0.wp.com/latex.php?latex=s_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_i' title='s_i' class='latex' /> (see Drescher for more comment on this).</p>
<p>The task now is to describe the successor function <img src='http://s0.wp.com/latex.php?latex=S%5Eq%5Ccolon+Q%5Cto+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^q&#92;colon Q&#92;to Q' title='S^q&#92;colon Q&#92;to Q' class='latex' /> describing how the universe evolves through time. First some preliminary definitions:</p>
<blockquote><p>Given a nonzero complex number <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' />, an angle <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=i%5Cin%5C%7B-1%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i&#92;in&#92;{-1,1&#92;}' title='i&#92;in&#92;{-1,1&#92;}' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{split}(&#92;theta,z,i)' title='&#92;mathrm{split}(&#92;theta,z,i)' class='latex' /> be the component of <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' /> which is parallel to <img src='http://s0.wp.com/latex.php?latex=%5Carg%28z%29+%2B+%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;arg(z) + &#92;theta' title='&#92;arg(z) + &#92;theta' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=i+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i = 1' title='i = 1' class='latex' /> and the component of <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' /> which is perpendicular to <img src='http://s0.wp.com/latex.php?latex=%5Carg%28z%29+%2B+%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;arg(z) + &#92;theta' title='&#92;arg(z) + &#92;theta' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=i+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i = -1' title='i = -1' class='latex' />.</p>
<p>Note that <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%5Cin%5C%7B-1%2C1%5C%7D%7D%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29+%3D+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i) = z' title='&#92;sum_{i&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i) = z' class='latex' /> and, due to the Pythagorean theorem, <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%5Cin%5C%7B-1%2C1%5C%7D%7D%7C%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29%7C%5E2+%3D+%7Cz%7C%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i)|^2 = |z|^2' title='&#92;sum_{i&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i)|^2 = |z|^2' class='latex' />.</p>
<p>If, furthermore, <img src='http://s0.wp.com/latex.php?latex=j%5Cin%5C%7B-1%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&#92;in&#92;{-1,1&#92;}' title='j&#92;in&#92;{-1,1&#92;}' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%2Cj%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{split}(&#92;theta,z,i,j)' title='&#92;mathrm{split}(&#92;theta,z,i,j)' class='latex' /> be the component of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{split}(&#92;theta,z,i)' title='&#92;mathrm{split}(&#92;theta,z,i)' class='latex' /> which is parallel to <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' /> (note: <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' />, not <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> as above) if <img src='http://s0.wp.com/latex.php?latex=j+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j = 1' title='j = 1' class='latex' /> and perpendicular to <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' /> if <img src='http://s0.wp.com/latex.php?latex=j+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j = -1' title='j = -1' class='latex' />.</p>
<p>As above <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%2Cj%5Cin%5C%7B-1%2C1%5C%7D%7D%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%2Cj%29+%3D+w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i,j&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i,j) = w' title='&#92;sum_{i,j&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i,j) = w' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%2Cj%5Cin%5C%7B-1%2C1%5C%7D%7D%7C%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%2Cj%29%7C%5E2+%3D+%7Cw%7C%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i,j&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i,j)|^2 = |w|^2' title='&#92;sum_{i,j&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i,j)|^2 = |w|^2' class='latex' />.  Similarly, <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bj%5Cin%5C%7B-1%2C1%5C%7D%7D%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%2Cj%29+%3D+%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{j&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i,j) = &#92;mathrm{split}(&#92;theta,z,i)' title='&#92;sum_{j&#92;in&#92;{-1,1&#92;}}&#92;mathrm{split}(&#92;theta,z,i,j) = &#92;mathrm{split}(&#92;theta,z,i)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bj%5Cin%5C%7B-1%2C1%5C%7D%7D%7C%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%2Cj%29%7C%5E2+%3D+%7C%5Cmathrm%7Bsplit%7D%28%5Ctheta%2Cz%2Ci%29%7C%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{j&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i,j)|^2 = |&#92;mathrm{split}(&#92;theta,z,i)|^2' title='&#92;sum_{j&#92;in&#92;{-1,1&#92;}}|&#92;mathrm{split}(&#92;theta,z,i,j)|^2 = |&#92;mathrm{split}(&#92;theta,z,i)|^2' class='latex' />.</p>
<p>Finally, note that for a given <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />, the split function is simply multiplication by a complex number independent of <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 similarly for the two-argument split function).</p></blockquote>
<p>First off, <img src='http://s0.wp.com/latex.php?latex=S%5Eq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^q' title='S^q' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />-linear; it therefore suffices to define <img src='http://s0.wp.com/latex.php?latex=S%5Eq%28s%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^q(s)' title='S^q(s)' class='latex' /> for classical configurations <img src='http://s0.wp.com/latex.php?latex=s%5Cin+E%5EP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#92;in E^P' title='s&#92;in E^P' class='latex' />.</p>
<p>If a particle is on edge <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> labeled <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bcontrol%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{control}' title='&#92;mathrm{control}' class='latex' />, it always passes straight through to <img src='http://s0.wp.com/latex.php?latex=f%28e%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(e)' title='f(e)' class='latex' />.</p>
<p>If a particle is on a switch edge, the successor state will be the sum of (up to) 4 non-zero classical configurations corresponding to whether or not it stays on its loop or crosses over to the loop of the other switch edge, and whether or not it changes sign.  Let <img src='http://s0.wp.com/latex.php?latex=s%28i%2Cj%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(i,j)' title='s(i,j)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i%2Cj%5Cin%5C%7B-1%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i,j&#92;in&#92;{-1,1&#92;}' title='i,j&#92;in&#92;{-1,1&#92;}' class='latex' /> denote the classical state where the particle stays on its own loop iff <img src='http://s0.wp.com/latex.php?latex=i+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i = 1' title='i = 1' class='latex' /> and the particle keeps the same sign iff <img src='http://s0.wp.com/latex.php?latex=j+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j = 1' title='j = 1' class='latex' />.  Then the weight given to <img src='http://s0.wp.com/latex.php?latex=s%28i%2Cj%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(i,j)' title='s(i,j)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bsplit%7D%28v_%5Ctheta%2C1%2Cij%2Cj%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{split}(v_&#92;theta,1,ij,j)' title='&#92;mathrm{split}(v_&#92;theta,1,ij,j)' class='latex' /> (the <img src='http://s0.wp.com/latex.php?latex=ij&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ij' title='ij' class='latex' /> is not a typo).  The use of <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> is just because we are assuming that we are starting from a pure classical configuration; if it&#8217;s a classical configuration time a weight <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' />, the <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> would be replaced with <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' />.</p>
<p>When there are <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' /> particles in the classical configuration <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' />, each is split separately; <img src='http://s0.wp.com/latex.php?latex=S%5Eq%28s%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^q(s)' title='S^q(s)' class='latex' /> may be the sum of up to <img src='http://s0.wp.com/latex.php?latex=4%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='4^n' title='4^n' class='latex' /> classical configurations.  Since the splitting is simply multiplication by a complex number, it doesn&#8217;t matter in what order the splittings are performed.</p>
<p>I&#8217;ll now briefly describe some quantum phenomena which can be interpreted in the quantish world.  For much more insight, meaning, and many more examples, please see Drescher&#8217;s book!</p>
<p><strong>The Two-Slit Experiment</strong></p>
<p>Suppose we have the following configuration:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish63.png"><img class="alignnone size-full wp-image-414" title="quantish6" src="http://xorshammer.files.wordpress.com/2010/02/quantish63.png?w=500&#038;h=118" alt="" width="500" height="118" /></a></p>
<p>where the measurement angles of <img src='http://s0.wp.com/latex.php?latex=v_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_0' title='v_0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=v_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_1' title='v_1' class='latex' /> are equal and oblique to the measurement angle of <img src='http://s0.wp.com/latex.php?latex=v_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_2' title='v_2' class='latex' />, and the sign of the particle is positive.  Then, it is always the case that after three timesteps, the particle is in the middle rightmost edge (i.e., <img src='http://s0.wp.com/latex.php?latex=S%5Eq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^q' title='S^q' class='latex' /> applied three times to the initial state yields the linear combination consisting of the sum of the single classical state where the particle is in the middle rightmost edge).  It is never in the bottom rightmost edge.</p>
<p>However, if we <em>remove</em> one of the ways the particle can get to the bottom edge:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish72.png"><img class="alignnone size-full wp-image-415" title="quantish7" src="http://xorshammer.files.wordpress.com/2010/02/quantish72.png?w=500&#038;h=152" alt="" width="500" height="152" /></a></p>
<p>now the particle arrives at the bottom rightmost edge with positive probability (i.e., nonzero weight).  (The ellipsis simply means that this edge goes somewhere else; we don&#8217;t care what happens there.)  This is because of destructive interference in the first case, which was removed in the second.</p>
<p>Suppose we try to investigate what&#8217;s going on, and <em>observe</em> if the particle is on one particular edge:</p>
<p><a href="http://xorshammer.files.wordpress.com/2010/02/quantish8.png"><img class="alignnone size-full wp-image-418" title="quantish8" src="http://xorshammer.files.wordpress.com/2010/02/quantish8.png?w=500&#038;h=203" alt="" width="500" height="203" /></a></p>
<p>What&#8217;s going on here?  Well first of all, the way we observe things is by, e.g., having the particles we want to observe interact with particles in our eye.  In this example, we&#8217;ll take the red particle at the bottom to be a particle &#8220;in our eye&#8221; and observe the blue particle by having it interact with the red.  Second of all, there are various &#8220;delay&#8221; gates throughout (at the bottom left, the delay gate is explicit, at the top, two wires are labeled &#8220;delay&#8221;, which means that they pass through a delay gate, although I haven&#8217;t drawn it).  These aren&#8217;t really significant; they&#8217;re just to synchronize things.</p>
<p>Note that this gate has exactly the same behavior as our first setup, except that we are observing when the blue particle is on the bottom edge by having it interact with the red particle (and syncing things up).  However, the results are as in the second case: with nonzero probability, the red particle appears on the bottom rightmost edge!  The observation blocks the destructive interference of the first case.</p>
<p><strong>Heisenberg Uncertainty</strong></p>
<p>Say that a particle in a quantish state is definite with respect to a measurement angle <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> if passing it through a switch wire of a vertex with measurement angle <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> and no other particles entering the vertex will yield the particle always emerging on one specific edge.  Heisenberg uncertainty is represented in quantish physics by the fact that whenever a particle is definite with respect to some measurement angle <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, it is always indefinite with respect to measurement angles oblique to <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />.</p>
<p><strong>The Einstein-Podolsky-Rosen Experiment</strong></p>
<p>Unfortunately, the diagrams for this setup are beyond my poor figure-making abilities.  However, I can substitute a poor description for poor figure-making.  It is possible to entangle two quantish particles by sending both of them through gates which have related measurement angles, then setting up two further gates through which a third particle is sent.  In the first of these gates, one of the switch wires from the first particle&#8217;s measurement is the control wire, and in the second of these gates, one of the switch wires from the second particle&#8217;s measurement is the control wire.  You then observe if the third particle emerges from the second of the two gates at the same place where it entered.</p>
<p>In that case, you can then measure the two particles both with respect to any fixed angle, and you will get the same results for both.  (Let me reiterate that this was a terrible description; see Drescher&#8217;s book for more).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/373/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=373&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2010/02/17/quantish-physics-a-discrete-model-of-quantum-physics/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

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

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

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

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

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

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

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

		<media:content url="http://xorshammer.files.wordpress.com/2010/02/quantish8.png" medium="image">
			<media:title type="html">quantish8</media:title>
		</media:content>
	</item>
		<item>
		<title>Functions with Very Low Symmetry and the Continuum Hypothesis</title>
		<link>http://xorshammer.com/2009/07/19/functions-with-very-low-symmetry-and-the-continuum-hypothesis/</link>
		<comments>http://xorshammer.com/2009/07/19/functions-with-very-low-symmetry-and-the-continuum-hypothesis/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 20:32:03 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=353</guid>
		<description><![CDATA[A function from to is called even if for all , .  We might call it even about the point if, for all , . Conversely, we can call a function strongly non-even if for all , , . Finding &#8230; <a href="http://xorshammer.com/2009/07/19/functions-with-very-low-symmetry-and-the-continuum-hypothesis/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=353&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> is called <em>even</em> if for all <img src='http://s0.wp.com/latex.php?latex=h%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h&#92;in&#92;mathbb{R}' title='h&#92;in&#92;mathbb{R}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28-h%29+%3D+f%28h%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(-h) = f(h)' title='f(-h) = f(h)' class='latex' />.  We might call it <em>even about the point</em> <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, for all <img src='http://s0.wp.com/latex.php?latex=h%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h&#92;in&#92;mathbb{R}' title='h&#92;in&#92;mathbb{R}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28x-h%29+%3D+f%28x+%2Bh%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x-h) = f(x +h)' title='f(x-h) = f(x +h)' class='latex' />.</p>
<p>Conversely, we can call a function <em>strongly non-even</em> if for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in&#92;mathbb{R}' title='x&#92;in&#92;mathbb{R}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=h%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h&gt;0' title='h&gt;0' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28x-h%29%5Cne+f%28x%2Bh%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x-h)&#92;ne f(x+h)' title='f(x-h)&#92;ne f(x+h)' class='latex' />.</p>
<p>Finding strongly non-even functions is easy, as any injective function provides a trivial example.  We can make things harder for ourselves by considering only functions from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />.  But now, it is just as easy to show that there are no strongly non-even functions.</p>
<p>Therefore, let&#8217;s make the following definition: Let a function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BR%7D%5Cto%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{R}&#92;to&#92;mathbb{N}' title='f&#92;colon &#92;mathbb{R}&#92;to&#92;mathbb{N}' class='latex' /> be <em>non-even of order</em> <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, for all <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' />, <img src='http://s0.wp.com/latex.php?latex=%7C%5C%7Bh%3E0%5Cmid+f%28x-h%29+%3D+f%28x+%2B+h%29%5C%7D%7C%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|&#92;{h&gt;0&#92;mid f(x-h) = f(x + h)&#92;}|&#92;leq n' title='|&#92;{h&gt;0&#92;mid f(x-h) = f(x + h)&#92;}|&#92;leq n' class='latex' />.  Thus, a strongly non-even function is non-even of order <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' />, and a function being non-even of order <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' /> implies that it&#8217;s non-even of order <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' /> for all <img src='http://s0.wp.com/latex.php?latex=m%5Cgeq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;geq n' title='m&#92;geq n' class='latex' />.</p>
<p>In <a href="http://front.math.ucdavis.edu/math.LO/9308222">this paper</a>, the set theorists Peter Komjáth and Saharon Shelah proved:</p>
<blockquote><p>The existence of a non-even function of order 1 is equivalent to the Continuum Hypothesis (i.e., the statement that <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D+%3D+%5Caleph_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0} = &#92;aleph_1' title='2^{&#92;aleph_0} = &#92;aleph_1' class='latex' />).</p></blockquote>
<p>Thus, if we assume that there is a non-even function of order 1, then we can conclude that <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D+%3D+%5Caleph_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0} = &#92;aleph_1' title='2^{&#92;aleph_0} = &#92;aleph_1' class='latex' />.  Can we weaken the hypothesis and still conclude something interesting?  We can, as they also proved:</p>
<blockquote><p>For any <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 there is a non-even function of order <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 <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D%5Cleq+%5Caleph_%7B%5Clceil%5Clog_2%7B%28n%2B1%29%7D%5Crceil%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0}&#92;leq &#92;aleph_{&#92;lceil&#92;log_2{(n+1)}&#92;rceil}' title='2^{&#92;aleph_0}&#92;leq &#92;aleph_{&#92;lceil&#92;log_2{(n+1)}&#92;rceil}' class='latex' />.</p></blockquote>
<p><span id="more-353"></span>They showed this by showing the following (the statement above follows directly from this, given just a bit of thought):</p>
<blockquote><p>For any vector space <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}' title='&#92;mathbb{Q}' class='latex' /> of cardinality <img src='http://s0.wp.com/latex.php?latex=%5Caleph_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;aleph_n' title='&#92;aleph_n' class='latex' />, and any function <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' /> from <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />, there is an <img src='http://s0.wp.com/latex.php?latex=x%5Cin+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in V' title='x&#92;in V' class='latex' /> and a set <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> of unordered pairs <img src='http://s0.wp.com/latex.php?latex=%28y%2Cz%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(y,z)' title='(y,z)' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=y%2Bz+%3D+2x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y+z = 2x' title='y+z = 2x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f%28y%29+%3Df%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(y) =f(z)' title='f(y) =f(z)' class='latex' />, where the cardinality of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=2%5En+-+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^n - 1' title='2^n - 1' class='latex' />.</p></blockquote>
<p>I&#8217;ll show here how to prove the weaker statement obtained by replacing <img src='http://s0.wp.com/latex.php?latex=2%5En+-+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^n - 1' title='2^n - 1' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=2%5E%7Bn-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{n-1}' title='2^{n-1}' class='latex' />.</p>
<p>Fix <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> and <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' />.  We will construct a set of basis elements <img src='http://s0.wp.com/latex.php?latex=b_1%5E0%2C%5Cldots%2Cb_n%5E0%2Cb_1%5E1%2C%5Cldots%2Cb%5E1_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b_1^0,&#92;ldots,b_n^0,b_1^1,&#92;ldots,b^1_1' title='b_1^0,&#92;ldots,b_n^0,b_1^1,&#92;ldots,b^1_1' class='latex' /> with the property that for every set <img src='http://s0.wp.com/latex.php?latex=S%5Csubseteq+%5C%7B1%2C%5Cldots%2Cn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subseteq &#92;{1,&#92;ldots,n&#92;}' title='S&#92;subseteq &#92;{1,&#92;ldots,n&#92;}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28%5Csum_%7Bi%5Cin+S%7Db_i%5E0+%2B+%5Csum_%7Bi%5Cnotin+S%7Db_i%5E1%29+%3D+f%28%5Csum_%7Bi%5Cin+S%7Db_i%5E1+%2B+%5Csum_%7Bi%5Cnotin+S%7Db_i%5E0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;sum_{i&#92;in S}b_i^0 + &#92;sum_{i&#92;notin S}b_i^1) = f(&#92;sum_{i&#92;in S}b_i^1 + &#92;sum_{i&#92;notin S}b_i^0)' title='f(&#92;sum_{i&#92;in S}b_i^0 + &#92;sum_{i&#92;notin S}b_i^1) = f(&#92;sum_{i&#92;in S}b_i^1 + &#92;sum_{i&#92;notin S}b_i^0)' class='latex' />.  Taking <img src='http://s0.wp.com/latex.php?latex=2x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2x' title='2x' class='latex' /> to be <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%5Cin%5C%7B0%2C1%5C%7D%2C+j%5Cin%5C%7B1%2C%5Cldots%2Cn%5C%7D%7D+b%5Ei_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i&#92;in&#92;{0,1&#92;}, j&#92;in&#92;{1,&#92;ldots,n&#92;}} b^i_j' title='&#92;sum_{i&#92;in&#92;{0,1&#92;}, j&#92;in&#92;{1,&#92;ldots,n&#92;}} b^i_j' class='latex' />, this will provide the required number <img src='http://s0.wp.com/latex.php?latex=2%5E%7Bn-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{n-1}' title='2^{n-1}' class='latex' /> of unordered pairs.  (As a slight bit of notational convenience, if <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is a set of basis elements, I will write <img src='http://s0.wp.com/latex.php?latex=f%28S%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(S)' title='f(S)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=f%28%5Csum+S%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;sum S)' title='f(&#92;sum S)' class='latex' />.)</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5C%7Bc_%5Calpha%5C%7D_%7B%5Calpha%3C%5Comega_n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{c_&#92;alpha&#92;}_{&#92;alpha&lt;&#92;omega_n}' title='&#92;{c_&#92;alpha&#92;}_{&#92;alpha&lt;&#92;omega_n}' class='latex' /> be a basis for <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' />. For <img src='http://s0.wp.com/latex.php?latex=1%5Cleq+i%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;leq i&#92;leq n' title='1&#92;leq i&#92;leq n' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=%5C%7Bc_%5Calpha+%5Cmid+%5Comega_%7Bi-1%7D+%3C+%5Calpha+%3C+%5Comega_i%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{c_&#92;alpha &#92;mid &#92;omega_{i-1} &lt; &#92;alpha &lt; &#92;omega_i&#92;}' title='&#92;{c_&#92;alpha &#92;mid &#92;omega_{i-1} &lt; &#92;alpha &lt; &#92;omega_i&#92;}' class='latex' /> be called the <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />th slice of basis elements.  For each <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> between <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' 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' /> and <img src='http://s0.wp.com/latex.php?latex=j%5Cin%5C%7B0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&#92;in&#92;{0,1&#92;}' title='j&#92;in&#92;{0,1&#92;}' class='latex' />, we will pick <img src='http://s0.wp.com/latex.php?latex=b_i%5Ej&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b_i^j' title='b_i^j' class='latex' /> to be in the <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />th slice of basis elements.</p>
<p>Given <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />, suppose that we have defined <img src='http://s0.wp.com/latex.php?latex=b%5E0_%7Bi%27%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^0_{i&#039;}' title='b^0_{i&#039;}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i+%2B+1+%5Cleq+i%27+%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i + 1 &#92;leq i&#039; &#92;leq n' title='i + 1 &#92;leq i&#039; &#92;leq n' class='latex' /> and we will define <img src='http://s0.wp.com/latex.php?latex=b%5E0_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^0_i' title='b^0_i' class='latex' /> as follows: pick it so that it is in the <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />th slice of basis elements but is not any singleton set of the form: <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx+%5Cmid+f%28s_1%5Ccup+%5C%7Bx%5C%7D%5Ccup%5C%7Bb_%7Bi%2B1%7D%5E0%2C%5Cldots%2C+b_%7Bn%7D%5E0%5C%7D%29+%3D+m_1%2C%5Cldots%2C+f%28s_t%5Ccup+%5C%7Bx%5C%7D%5Ccup%5C%7Bb_%7Bi%2B1%7D%5E0%2C%5Cldots%2Cb_n%5E0%5C%7D%29%3Dm_t%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x &#92;mid f(s_1&#92;cup &#92;{x&#92;}&#92;cup&#92;{b_{i+1}^0,&#92;ldots, b_{n}^0&#92;}) = m_1,&#92;ldots, f(s_t&#92;cup &#92;{x&#92;}&#92;cup&#92;{b_{i+1}^0,&#92;ldots,b_n^0&#92;})=m_t&#92;}' title='&#92;{x &#92;mid f(s_1&#92;cup &#92;{x&#92;}&#92;cup&#92;{b_{i+1}^0,&#92;ldots, b_{n}^0&#92;}) = m_1,&#92;ldots, f(s_t&#92;cup &#92;{x&#92;}&#92;cup&#92;{b_{i+1}^0,&#92;ldots,b_n^0&#92;})=m_t&#92;}' class='latex' /> for any finite sets <img src='http://s0.wp.com/latex.php?latex=s_1%2C%5Cldots%2Cs_t%5Csubset+%5Comega_%7Bi-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_1,&#92;ldots,s_t&#92;subset &#92;omega_{i-1}' title='s_1,&#92;ldots,s_t&#92;subset &#92;omega_{i-1}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=m_1%2C%5Cldots%2Cm_t%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_1,&#92;ldots,m_t&#92;in &#92;mathbb{N}' title='m_1,&#92;ldots,m_t&#92;in &#92;mathbb{N}' class='latex' />.  Since there are only <img src='http://s0.wp.com/latex.php?latex=%5Caleph_%7Bi-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;aleph_{i-1}' title='&#92;aleph_{i-1}' class='latex' /> such singleton sets, and <img src='http://s0.wp.com/latex.php?latex=%5Caleph_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;aleph_i' title='&#92;aleph_i' class='latex' /> elements of the <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />th slice of basis elements, we can find such a <img src='http://s0.wp.com/latex.php?latex=b_i%5E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b_i^0' title='b_i^0' class='latex' />.</p>
<p>Now we define the <img src='http://s0.wp.com/latex.php?latex=b%5E1_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^1_i' title='b^1_i' class='latex' />.  Given <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />, assume that <img src='http://s0.wp.com/latex.php?latex=b%5E1_1%2C%5Cldots%2C+b%5E1_%7Bi-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^1_1,&#92;ldots, b^1_{i-1}' title='b^1_1,&#92;ldots, b^1_{i-1}' class='latex' /> have already been defined and we will define <img src='http://s0.wp.com/latex.php?latex=b%5E1_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^1_i' title='b^1_i' class='latex' />: pick it from the <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />th slice so that for all subsets <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> of <img src='http://s0.wp.com/latex.php?latex=%5C%7Bb%5E0_1%2C+b%5E1_1%2C%5Cldots%2C+b%5E0_%7Bi-1%7D%2Cb%5E1_%7Bi-1%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{b^0_1, b^1_1,&#92;ldots, b^0_{i-1},b^1_{i-1}&#92;}' title='&#92;{b^0_1, b^1_1,&#92;ldots, b^0_{i-1},b^1_{i-1}&#92;}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28S+%5Ccup+%5C%7Bb%5E0_i%5C%7D%5Ccup+%5C%7Bb%5E0_%7Bi%2B1%7D%2C%5Cldots%2Cb%5E0_n%5C%7D%29+%3D+f%28S%5Ccup+%5C%7Bb%5E1_i%5C%7D%5Ccup+%5C%7Bb%5E0_%7Bi%2B1%7D%2C%5Cldots%2Cb%5E0_n%5C%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(S &#92;cup &#92;{b^0_i&#92;}&#92;cup &#92;{b^0_{i+1},&#92;ldots,b^0_n&#92;}) = f(S&#92;cup &#92;{b^1_i&#92;}&#92;cup &#92;{b^0_{i+1},&#92;ldots,b^0_n&#92;})' title='f(S &#92;cup &#92;{b^0_i&#92;}&#92;cup &#92;{b^0_{i+1},&#92;ldots,b^0_n&#92;}) = f(S&#92;cup &#92;{b^1_i&#92;}&#92;cup &#92;{b^0_{i+1},&#92;ldots,b^0_n&#92;})' class='latex' /> (this is possible by the defining condition of <img src='http://s0.wp.com/latex.php?latex=b%5E0_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^0_i' title='b^0_i' class='latex' />.</p>
<p>It is now easy to prove the following proposition by induction on <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' />:</p>
<blockquote><p>For any set <img src='http://s0.wp.com/latex.php?latex=S%5Csubseteq+%5C%7B1%2C%5Cldots%2Cm%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subseteq &#92;{1,&#92;ldots,m&#92;}' title='S&#92;subseteq &#92;{1,&#92;ldots,m&#92;}' class='latex' /> (where <img src='http://s0.wp.com/latex.php?latex=m%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;leq n' title='m&#92;leq n' class='latex' />), <img src='http://s0.wp.com/latex.php?latex=f%28%5C%7Bb%5E0_i+%5Cmid+i%5Cin+S%5C%7D%5Ccup+%5C%7Bb%5E1_i+%5Cmid+i%5Cnotin+S%5C%7D+%5Ccup+%5C%7Bm_1%2C%5Cldots%2C+n%5C%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;{b^0_i &#92;mid i&#92;in S&#92;}&#92;cup &#92;{b^1_i &#92;mid i&#92;notin S&#92;} &#92;cup &#92;{m_1,&#92;ldots, n&#92;})' title='f(&#92;{b^0_i &#92;mid i&#92;in S&#92;}&#92;cup &#92;{b^1_i &#92;mid i&#92;notin S&#92;} &#92;cup &#92;{m_1,&#92;ldots, n&#92;})' class='latex' /> equals <img src='http://s0.wp.com/latex.php?latex=f%28%5C%7Bb%5E1_i%5Cmid+i+%5Cin+S%5C%7D%5Ccup+%5C%7Bb%5E1_i%5Cmid+i%5Cnotin+S%5C%7D%5Ccup+%5C%7Bm_1%5Cldots%2Cn%5C%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;{b^1_i&#92;mid i &#92;in S&#92;}&#92;cup &#92;{b^1_i&#92;mid i&#92;notin S&#92;}&#92;cup &#92;{m_1&#92;ldots,n&#92;})' title='f(&#92;{b^1_i&#92;mid i &#92;in S&#92;}&#92;cup &#92;{b^1_i&#92;mid i&#92;notin S&#92;}&#92;cup &#92;{m_1&#92;ldots,n&#92;})' class='latex' />.</p></blockquote>
<p>(The proof simply uses the defining property of the <img src='http://s0.wp.com/latex.php?latex=b%5E1_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^1_i' title='b^1_i' class='latex' />.)  Now, taking <img src='http://s0.wp.com/latex.php?latex=m%3Dn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m=n' title='m=n' class='latex' />, the result follows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/353/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=353&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2009/07/19/functions-with-very-low-symmetry-and-the-continuum-hypothesis/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>A Suite of Cool Logic Programs</title>
		<link>http://xorshammer.com/2009/05/14/a-suite-of-cool-logic-programs/</link>
		<comments>http://xorshammer.com/2009/05/14/a-suite-of-cool-logic-programs/#comments</comments>
		<pubDate>Fri, 15 May 2009 00:24:49 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=320</guid>
		<description><![CDATA[You may have heard about the Tarski-Seidenberg theorem, which says that the first-order theory of the reals is decidable, that the first-order theory of the complex numbers is similarly decidable, or that the first order theory of the integers without &#8230; <a href="http://xorshammer.com/2009/05/14/a-suite-of-cool-logic-programs/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=320&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may have heard about the <a href="http://en.wikipedia.org/wiki/Tarski%E2%80%93Seidenberg_theorem">Tarski-Seidenberg theorem</a>, which says that the first-order theory of the reals is decidable, that the first-order theory of the complex numbers is similarly decidable, or that the first order theory of the integers without multiplication is <a href="http://en.wikipedia.org/wiki/Presburger_arithmetic">decidable</a>.</p>
<p>In the course of <a href="http://www.cl.cam.ac.uk/~jrh13/">John Harrison</a>&#8216;s logic textbook <a href="http://www.cambridge.org/9780521899574">Handbook of Practical Logic and Automated Reasoning</a>, all three of these algorithms (and many more) are implemented.  Furthermore, you can download and play with them for free.  (However, I still recommend checking out the book: especially if you are looking for a good textbook for a course on logic with a concrete, computational bent.)</p>
<p>Below, I&#8217;ll describe how to install the programs and try them out.  There are many more interesting functions in this suite that I haven&#8217;t described.</p>
<h4><span id="more-320"></span>Installation:</h4>
<p>The software is written in OCaml and can be run interactively in an OCaml toplevel (don&#8217;t worry, you won&#8217;t actually need to know any OCaml).  Download and install <a href="http://caml.inria.fr/download.en.html">OCaml</a> as well as its preprocessor <a href="http://pauillac.inria.fr/~ddr/camlp5/">Camlp5</a> (which is used for formatting formulas nicely).</p>
<p>Then, download the code from <a href="http://www.cl.cam.ac.uk/~jrh13/atp/index.html">here</a> (under &#8220;All the code together&#8221;) and unzip it somewhere.</p>
<p>To run it, go to wherever you unzipped it and type <code>make interactive</code> in a shell.</p>
<p>(At least, that&#8217;s what worked for me on a Mac OSX.  Other systems may be different.)</p>
<h4>The Tarski-Seidenberg Theorem.</h4>
<p>The Tarski-Seidenberg theorem implies that there is a decision procedure which, given a first-order sentence over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> using plus, times, 0, and 1, will tell you if it&#8217;s true or not.  The function <code>real_qelim</code> implements this.  Let&#8217;s try it out.  (The symbol # indicates the beginning of the prompt; don&#8217;t type that, just type in what&#8217;s after it.)</p>
<p>This function knows that not all quadratic polynomials have roots, but all cubics do.</p>
<pre># real_qelim &lt;&lt;forall b c. exists x. x^2 + b*x + c = 0&gt;&gt;;;
- : fol formula = &lt;&lt;false&gt;&gt;
# real_qelim &lt;&lt;forall b c d. exists x. x^3 + b*x^2 + c*x + d = 0&gt;&gt;
  ;;
- : fol formula = &lt;&lt;true&gt;&gt;</pre>
<p>Many geometric puzzles can, in theory, be solved automatically by this function.  Unfortunately, it is too slow for most interesting ones.  Harrison notes that there are open problems about kissing numbers of high-dimensional spheres which could be solved in theory by this algorithm, although in practice it is an unworkable approach.</p>
<p>This algorithm actually does something stronger than decide the truth of first-order sentences: it does quantifier-elimination, which means that if you give it a formula with free variables, it will give you a quantifier-free formula in those same free variables (in the case of a sentence, which has no free variables, that means either the formula &#8220;true&#8221; or the formula &#8220;false&#8221;).</p>
<p>For example, if you&#8217;ve forgotten the quadratic formula and want to know what the condition is for a quadratic polynomial to have a root:</p>
<pre># real_qelim &lt;&lt;exists x. x^2 + b*x + c = 0&gt;&gt;;;
- : fol formula =
&lt;&lt;(0 + c * 4) + b * (0 + b * -1) = 0 \/
 ~(0 + c * 4) + b * (0 + b * -1) = 0 /\
 ~(0 + c * 4) + b * (0 + b * -1) &gt; 0&gt;&gt;</pre>
<p>Note that there is no claim that the formula it gives you will be completely simplified, only that it will be correct.</p>
<h4>Deciding Sentences over the Complex Numbers</h4>
<p>We can similarly use the function <code>complex_qelim</code> to do quantifier elimination over the complexes.  The fact that this possible is easier to prove than the corresponding fact for the reals, and the algorithm is similarly faster.</p>
<pre># complex_qelim &lt;&lt;forall x. x^3 = 1 ==&gt; x = 1&gt;&gt;;;
- : fol formula = &lt;&lt;false&gt;&gt;</pre>
<p>The following sentence is also true over the reals (although for a different reason than why it&#8217;s true over the complexes), but it takes significantly longer for the real quantifier elimination algorithm to decide it.</p>
<pre># complex_qelim &lt;&lt;forall x1 x2 x3. (x1^3 = 1 /\ x2^3 = 1 /\
  x3^3 = 1 /\ ~(x1 = x2) /\ ~(x1 = x3) /\ ~(x2 = x3))
  ==&gt; x1 + x2 + x3 = 0&gt;&gt;;;
- : fol formula = &lt;&lt;true&gt;&gt;</pre>
<p>Suppose we read on wikipedia that the translation of the limaçon <img src='http://s0.wp.com/latex.php?latex=r+%3D+b+%2B+a%5Ccos%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r = b + a&#92;cos&#92;theta' title='r = b + a&#92;cos&#92;theta' class='latex' /> to rectangular coordinates is <img src='http://s0.wp.com/latex.php?latex=%28x%5E2+%2B+y%5E2+-+ax%29%5E2+%3D+b%5E2%28x%5E2+%2B+y%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x^2 + y^2 - ax)^2 = b^2(x^2 + y^2)' title='(x^2 + y^2 - ax)^2 = b^2(x^2 + y^2)' class='latex' />.  We can verify this (I&#8217;ve used <code>s</code> to represent <img src='http://s0.wp.com/latex.php?latex=%5Csin%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin&#92;theta' title='&#92;sin&#92;theta' class='latex' /> and <code>c</code> to represent <img src='http://s0.wp.com/latex.php?latex=%5Ccos%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cos&#92;theta' title='&#92;cos&#92;theta' class='latex' />):</p>
<pre># complex_qelim &lt;&lt; forall r s c x y. (x^2 + y^2 = r^2
  /\ r * c = x /\ r * s = y ==&gt;
  forall a b. (r = b + a * c ==&gt;
  (x^2 + y^2 - a * x)^2 = b^2 * (x^2 + y^2)))&gt;&gt;;;
- : fol formula = &lt;&lt;true&gt;&gt;</pre>
<h4>Presburger Arithmetic</h4>
<p>Finally, first-order sentences with plus and less-than over the integers and over the natural numbers are decidable.  The relevant functions are <code>integer_qelim</code> and <code>natural_qelim</code>.  Even though multiplication of variables is prohibited, we can still multiply by constants (since for example, instead of <img src='http://s0.wp.com/latex.php?latex=2x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2x' title='2x' class='latex' /> we could have written <img src='http://s0.wp.com/latex.php?latex=x+%2B+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x + x' title='x + x' class='latex' /> anyway).</p>
<p>An example Harrison gives is:  There is an old (easy) puzzle which is to show that, with 3- and 5-cent stamps, you can make an <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' />-cent stamp for any <img src='http://s0.wp.com/latex.php?latex=n%5Cgeq+8&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;geq 8' title='n&#92;geq 8' class='latex' />.</p>
<pre># natural_qelim &lt;&lt;forall n. n &gt;= 8 ==&gt;
  exists x y. 3 * x + 5 * y = n&gt;&gt;;;
- : fol formula = &lt;&lt;true&gt;&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=320&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2009/05/14/a-suite-of-cool-logic-programs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>An Interesting Puzzle in Propositional Logic</title>
		<link>http://xorshammer.com/2009/04/09/an-interesting-puzzle-in-propositional-logic/</link>
		<comments>http://xorshammer.com/2009/04/09/an-interesting-puzzle-in-propositional-logic/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:47:48 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.com/?p=299</guid>
		<description><![CDATA[Suppose that you&#8217;re translating an ancient text, and in this text you come across three words whose meaning you are unsure of: , , and .  So, you head down to the ancient language department of your local university. The &#8230; <a href="http://xorshammer.com/2009/04/09/an-interesting-puzzle-in-propositional-logic/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=299&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose that you&#8217;re translating an ancient text, and in this text you come across three words whose meaning you are unsure of: <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Blot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{lot}' title='&#92;mathit{lot}' class='latex' />.  So, you head down to the ancient language department of your local university.</p>
<p>The first professor you come across, <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+Bal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. Bal}' title='&#92;hbox{Prof. Bal}' class='latex' />, knows what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> means, the second professor you come across, <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+Kat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. Kat}' title='&#92;hbox{Prof. Kat}' class='latex' />, knows what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> means, and the third professor you come across, <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+Lot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. Lot}' title='&#92;hbox{Prof. Lot}' class='latex' />, knows what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Blot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{lot}' title='&#92;mathit{lot}' class='latex' /> means.  So you have fortunately solved your problem.</p>
<p>But you&#8217;re now curious and decide to meet some other professors in the department.  The next professor you come across is named <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' class='latex' />.  He doesn&#8217;t know what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> means or what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> means, but if you told him what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> meant, he would be able to tell you what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> means (for example, maybe he knows that <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> is the noun form of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />).</p>
<p>The next professor you meet is named <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%5Cmathrm%7BBal%7D%5Crightarrow%28%5Cmathrm%7BKat%7D%5Crightarrow%5Cmathrm%7BLot%7D%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow(&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Lot}))' title='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow(&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Lot}))' class='latex' />.  If you told him what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> meant and what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> meant, he would be able to tell you what <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Blot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{lot}' title='&#92;mathit{lot}' class='latex' /> means.</p>
<p>The next professor you meet is named <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29%5Crightarrow%5Cmathrm%7BLot%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Lot})' title='&#92;hbox{Prof. }((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Lot})' class='latex' />.  If you told him a <em>method</em> for finding out the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> given the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />, he would be able to tell you the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Blot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{lot}' title='&#92;mathit{lot}' class='latex' />.</p>
<p>In general, for any two professors <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }P' title='&#92;hbox{Prof. }P' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }Q' title='&#92;hbox{Prof. }Q' class='latex' />, there is a professor <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DP%5Crightarrow+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }P&#92;rightarrow Q' title='&#92;hbox{Prof. }P&#92;rightarrow Q' class='latex' /> with the property that if you told him what <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DP&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }P' title='&#92;hbox{Prof. }P' class='latex' /> knew, he would be able to tell you what <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }Q' title='&#92;hbox{Prof. }Q' class='latex' /> knows (but <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7DP%5Crightarrow+Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }P&#92;rightarrow Q' title='&#92;hbox{Prof. }P&#92;rightarrow Q' class='latex' /> doesn&#8217;t know any more than that).</p>
<p>Notice that some professors have essentially the same state of knowledge.  For example, <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+Bal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. Bal}' title='&#92;hbox{Prof. Bal}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%28%5Cmathrm%7BKat%7D%5Crightarrow%5Cmathrm%7BKat%7D%29%5Crightarrow%5Cmathrm%7BBal%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }((&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})' title='&#92;hbox{Prof. }((&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})' class='latex' /> have essentially the same knowledge, since to get the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> out of <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%28%5Cmathrm%7BKat%7D%5Crightarrow%5Cmathrm%7BKat%7D%29%5Crightarrow%5Cmathrm%7BBal%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }((&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})' title='&#92;hbox{Prof. }((&#92;mathrm{Kat}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})' class='latex' /> you only have to tell him a method for finding out the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> given the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />, which is something that you can do without any particular special knowledge concerning <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Blot%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{lot}' title='&#92;mathit{lot}' class='latex' />.</p>
<p>A more nontrivial example is that <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%28%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29%5Crightarrow%5Cmathrm%7BBal%7D%29%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})&#92;rightarrow&#92;mathrm{Kat})' class='latex' /> has the same state of knowledge as <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' class='latex' />.  This is because each can &#8220;simulate&#8221; the other.  In one direction, suppose somebody told <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%28%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29%5Crightarrow%5Cmathrm%7BBal%7D%29%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(((&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})&#92;rightarrow&#92;mathrm{Bal})&#92;rightarrow&#92;mathrm{Kat})' class='latex' /> the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />.  He therefore knows a trivial &#8220;method&#8221; for getting the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> given any inputs, and so he knows the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />.  In the other direction, suppose we told <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' class='latex' /> a method for turning (methods for turning the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> into the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />) into the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />.  Well, <img src='http://s0.wp.com/latex.php?latex=%5Chbox%7BProf.+%7D%28%5Cmathrm%7BBal%7D%5Crightarrow%5Cmathrm%7BKat%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' title='&#92;hbox{Prof. }(&#92;mathrm{Bal}&#92;rightarrow&#92;mathrm{Kat})' class='latex' /> knows a method for turning the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' /> into the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />, so he can use that find the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bbal%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{bal}' title='&#92;mathit{bal}' class='latex' />.  He can then use his method a second time to turn that into the meaning of <img src='http://s0.wp.com/latex.php?latex=%5Cmathit%7Bkat%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathit{kat}' title='&#92;mathit{kat}' class='latex' />.</p>
<p>The puzzle is then to prove that there are only finitely many professors with different states of knowledge.</p>
<p>This puzzle is equivalent to showing that intuitionistic implicational propositional logic over three variables has only finitely many logically inequivalent formulas.  Another formulation is: Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}_n' title='&#92;mathbb{C}_n' class='latex' /> be the free cartesian closed category over <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' /> objects.  Given objects <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=B%5Cin+%5Cmathbb%7BC%7D_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B&#92;in &#92;mathbb{C}_n' title='B&#92;in &#92;mathbb{C}_n' class='latex' />, say that <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=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> are equivalent if there is an arrow from <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' /> to <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> and an arrow from <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> to <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' />.  Then there are only finitely many equivalence classes in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}_3' title='&#92;mathbb{C}_3' class='latex' />.  (The corresponding statements are also true with <img src='http://s0.wp.com/latex.php?latex=3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='3' title='3' class='latex' /> replaced by <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' />.)</p>
<p><span id="more-299"></span>This fact was first proved using algebraic methods by Arturo Diego in his Ph.D. thesis in the 1940&#8242;s.  It was subsequently reproved using semantic methods by various people including Nicolaas de Bruijn and Alasdair Urquhart.  A good overview of those results is in <a href="http://staff.science.uva.nl/~lhendrik/publications/DS199601.pdf">Lex Hendriks&#8217;s thesis</a>.  I proved it in a combinatorial way as part of <a href="http://www.math.cornell.edu/~shore/theses/MichaelSingle.pdf">my thesis</a>.</p>
<p>To rigorously state the problem: Let <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> be a finite set of propositional variables, and let <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' /> be the smallest set containing <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> and such that if formulas <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' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi' title='&#92;psi' class='latex' /> are in <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' />, then the formula <img src='http://s0.wp.com/latex.php?latex=%5Cphi%5Crightarrow%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi&#92;rightarrow&#92;psi' title='&#92;phi&#92;rightarrow&#92;psi' class='latex' /> is in <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' />.  We define a relation <img src='http://s0.wp.com/latex.php?latex=%5Cvdash&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vdash' title='&#92;vdash' class='latex' /> between sets of formulas in <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' /> and formulas in <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' /> as follows:  We will let <img src='http://s0.wp.com/latex.php?latex=%5Cvdash&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vdash' title='&#92;vdash' class='latex' /> be the smallest relation such that, for any <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Csubset+F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;subset F' title='&#92;Gamma&#92;subset F' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cphi%2C%5Cpsi%5Cin+F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi,&#92;psi&#92;in F' title='&#92;phi,&#92;psi&#92;in F' class='latex' />:</p>
<ol>
<li><img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Ccup%5C%7B%5Cphi%5C%7D%5Cvdash%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;cup&#92;{&#92;phi&#92;}&#92;vdash&#92;phi' title='&#92;Gamma&#92;cup&#92;{&#92;phi&#92;}&#92;vdash&#92;phi' class='latex' />.</li>
<li>If <img src='http://s0.wp.com/latex.php?latex=%5CGamma%27%5Csupset+%5CGamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#039;&#92;supset &#92;Gamma' title='&#92;Gamma&#039;&#92;supset &#92;Gamma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Cvdash+%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;vdash &#92;phi' title='&#92;Gamma&#92;vdash &#92;phi' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5CGamma%27%5Cvdash+%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#039;&#92;vdash &#92;phi' title='&#92;Gamma&#039;&#92;vdash &#92;phi' class='latex' />.</li>
<li>If <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Cvdash+%5Cphi%5Crightarrow%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;vdash &#92;phi&#92;rightarrow&#92;psi' title='&#92;Gamma&#92;vdash &#92;phi&#92;rightarrow&#92;psi' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Cvdash%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;vdash&#92;phi' title='&#92;Gamma&#92;vdash&#92;phi' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Cvdash+%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;vdash &#92;psi' title='&#92;Gamma&#92;vdash &#92;psi' class='latex' />.</li>
<li>If <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Ccup%5C%7B%5Cphi%5C%7D%5Cvdash+%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;cup&#92;{&#92;phi&#92;}&#92;vdash &#92;psi' title='&#92;Gamma&#92;cup&#92;{&#92;phi&#92;}&#92;vdash &#92;psi' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5CGamma%5Cvdash+%5Cphi%5Crightarrow%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma&#92;vdash &#92;phi&#92;rightarrow&#92;psi' title='&#92;Gamma&#92;vdash &#92;phi&#92;rightarrow&#92;psi' class='latex' />.</li>
</ol>
<p>The relation <img src='http://s0.wp.com/latex.php?latex=%5Cvdash&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vdash' title='&#92;vdash' class='latex' /> formalizes the notion of a formula being provable given a set of hypotheses.</p>
<p>We say that <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' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi' title='&#92;psi' class='latex' /> are equivalent if <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Cphi%5C%7D%5Cvdash%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;phi&#92;}&#92;vdash&#92;psi' title='&#92;{&#92;phi&#92;}&#92;vdash&#92;psi' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Cpsi%5C%7D%5Cvdash%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;psi&#92;}&#92;vdash&#92;phi' title='&#92;{&#92;psi&#92;}&#92;vdash&#92;phi' class='latex' />, and the proposition is then that there are only finitely many equivalence classes in <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' />.</p>
<p>Unfortunately, a full solution using no other machinery (at least the one that I came up with) is a bit too notationally cumbersome for a blog entry, but the puzzle is by no means inaccessible to someone with no other knowledge of logic.</p>
<p>In any case, I will sketch the solution in an important special case: that of formulas which are <em>left-associated</em>, i.e., of the form <img src='http://s0.wp.com/latex.php?latex=%28%5Ccdots%28%28%28A_1%5Crightarrow+A_2%29%5Crightarrow+A_3%29%5Crightarrow+A_4%29%5Ccdots%5Crightarrow+A_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;cdots(((A_1&#92;rightarrow A_2)&#92;rightarrow A_3)&#92;rightarrow A_4)&#92;cdots&#92;rightarrow A_n)' title='(&#92;cdots(((A_1&#92;rightarrow A_2)&#92;rightarrow A_3)&#92;rightarrow A_4)&#92;cdots&#92;rightarrow A_n)' class='latex' /> where each <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' /> is a propositional variable.  Since we know how to parenthesize such formulas, we can write them simply in the form <img src='http://s0.wp.com/latex.php?latex=A_1A_2A_3A_4%5Ccdots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_1A_2A_3A_4&#92;cdots A_n' title='A_1A_2A_3A_4&#92;cdots A_n' class='latex' />.</p>
<p>The crucial insight is the following:</p>
<blockquote><p>Let <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' /> be a propositional variable for <img src='http://s0.wp.com/latex.php?latex=1%5Cleq+i%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;leq i&#92;leq n' title='1&#92;leq i&#92;leq n' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=i%3Cj%3Ck&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i&lt;j&lt;k' title='i&lt;j&lt;k' class='latex' /> and suppose that <img src='http://s0.wp.com/latex.php?latex=A_i%3DA_k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_i=A_k' title='A_i=A_k' class='latex' />.  Then the formulas <img src='http://s0.wp.com/latex.php?latex=A_iA_1A_2%5Ccdots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_iA_1A_2&#92;cdots A_n' title='A_iA_1A_2&#92;cdots A_n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=A_jA_1A_2%5Ccdots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_jA_1A_2&#92;cdots A_n' title='A_jA_1A_2&#92;cdots A_n' class='latex' /> are equivalent.</p></blockquote>
<p>To see why this is so, imagine that you are trying to prove some <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 you have some hypothesis <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' />.   What does <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> allow you to do?</p>
<ul>
<li>If <img src='http://s0.wp.com/latex.php?latex=P%3DA_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P=A_i' title='P=A_i' class='latex' />, it allows you to complete the proof immediately.</li>
<li>If <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is of the form <img src='http://s0.wp.com/latex.php?latex=A_j%5Crightarrow+A_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_j&#92;rightarrow A_i' title='A_j&#92;rightarrow A_i' class='latex' />, then it allows you to change the goal from <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' /> to <img src='http://s0.wp.com/latex.php?latex=A_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_j' title='A_j' class='latex' />.</li>
<li>If <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is of the form <img src='http://s0.wp.com/latex.php?latex=%28Q%5Crightarrow+A_j%29%5Crightarrow+A_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Q&#92;rightarrow A_j)&#92;rightarrow A_i' title='(Q&#92;rightarrow A_j)&#92;rightarrow A_i' class='latex' />, then it allows you to change the goal from <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' /> to <img src='http://s0.wp.com/latex.php?latex=A_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_j' title='A_j' class='latex' /> and give yourself <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> as a hypothesis.</li>
</ul>
<p>In the third case above, suppose that <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> is of the form <img src='http://s0.wp.com/latex.php?latex=%28R%5Crightarrow+A_k%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(R&#92;rightarrow A_k)' title='(R&#92;rightarrow A_k)' class='latex' />.  The only way that <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> can be of use is if you have some way to change the goal from <img src='http://s0.wp.com/latex.php?latex=A_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_j' title='A_j' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=A_k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_k' title='A_k' class='latex' />.  In general, if you have <img src='http://s0.wp.com/latex.php?latex=BA_1%5Ccdots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='BA_1&#92;cdots A_n' title='BA_1&#92;cdots A_n' class='latex' /> as a hypothesis, if you get to use <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> you must have a method for turning the goal from <img src='http://s0.wp.com/latex.php?latex=A_%7Bi%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_{i+1}' title='A_{i+1}' class='latex' /> to <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' /> for <img src='http://s0.wp.com/latex.php?latex=1%5Cleq+i%5Cleq+n-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;leq i&#92;leq n-1' title='1&#92;leq i&#92;leq n-1' class='latex' />.  By assumption in the boxed statement, we therefore have a method for turning the goal from <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' /> to <img src='http://s0.wp.com/latex.php?latex=A_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_j' title='A_j' class='latex' /> and vice versa. So <img src='http://s0.wp.com/latex.php?latex=A_iA_1%5Ccdots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_iA_1&#92;cdots A_n' title='A_iA_1&#92;cdots A_n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=A_jA_1%5Cldots+A_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A_jA_1&#92;ldots A_n' title='A_jA_1&#92;ldots A_n' class='latex' /> are equivalent.  (Actually, what this argument shows is that they can be used in equivalent ways as hypotheses in a proof, which turns out to be enough.)</p>
<p>Now also observe that</p>
<blockquote><p>For any formula <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> and variable <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' />, <img src='http://s0.wp.com/latex.php?latex=%28%28%28P%5Crightarrow+A_i%29%5Crightarrow+A_i%29%5Crightarrow+A_i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(((P&#92;rightarrow A_i)&#92;rightarrow A_i)&#92;rightarrow A_i)' title='(((P&#92;rightarrow A_i)&#92;rightarrow A_i)&#92;rightarrow A_i)' class='latex' /> is equivalent to <img src='http://s0.wp.com/latex.php?latex=P%5Crightarrow+A_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;rightarrow A_i' title='P&#92;rightarrow A_i' class='latex' />.</p></blockquote>
<p>From the two boxed facts, it pretty easily follows that every left-associated formula <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' /> is equivalent to one of length at most <img src='http://s0.wp.com/latex.php?latex=3n%5E3+%2B2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='3n^3 +2' title='3n^3 +2' class='latex' /> (where <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' /> is the number of propositional variables):  Suppose that <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' /> is equivalent to no shorter formula.  Chopping <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' /> up into <img src='http://s0.wp.com/latex.php?latex=%5Clfloor+%7C%5Cphi%7C%2F3%5Crfloor&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lfloor |&#92;phi|/3&#92;rfloor' title='&#92;lfloor |&#92;phi|/3&#92;rfloor' class='latex' /> triplets, I claim that no two triplets are the same: If so, and a triplet consisted of all the same variable, we could apply the second boxed fact to get a shorter formula.  Otherwise, we can apply the first.  Since there are only <img src='http://s0.wp.com/latex.php?latex=n%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n^3' title='n^3' class='latex' /> distinct triplets, that gives a length of at most <img src='http://s0.wp.com/latex.php?latex=3n%5E3+%2B+2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='3n^3 + 2' title='3n^3 + 2' class='latex' />.</p>
<p>Therefore, there are at most <img src='http://s0.wp.com/latex.php?latex=n%5E%7B3n%5E3%2B2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n^{3n^3+2}' title='n^{3n^3+2}' class='latex' /> left-associated formulas.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=299&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2009/04/09/an-interesting-puzzle-in-propositional-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>What Happens When You Iterate Gödel&#8217;s Theorem?</title>
		<link>http://xorshammer.com/2009/03/23/what-happens-when-you-iterate-godels-theorem/</link>
		<comments>http://xorshammer.com/2009/03/23/what-happens-when-you-iterate-godels-theorem/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 02:38:30 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=278</guid>
		<description><![CDATA[Let be Peano Arithmetic.  Gödel&#8217;s Second Incompleteness Theorem says that no consistent theory extending can prove its own consistency. (I&#8217;ll write for the statement asserting &#8216;s consistency; more on this later.) In particular, is stronger than .  But certainly, given &#8230; <a href="http://xorshammer.com/2009/03/23/what-happens-when-you-iterate-godels-theorem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=278&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> be Peano Arithmetic.  Gödel&#8217;s Second Incompleteness Theorem says that no consistent theory <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> extending <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> can prove its own consistency. (I&#8217;ll write <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{Con}(T)' title='&#92;mathrm{Con}(T)' class='latex' /> for the statement asserting <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />&#8216;s consistency; more on this later.)</p>
<p>In particular, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA})' title='&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA})' class='latex' /> is stronger than <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.  But certainly, given that we believe that everything <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves is true, we believe that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> does not prove a contradiction, and hence is consistent.  Thus, we believe that everything that <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathrm%7BPA%7D+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA}))' title='(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA}))' class='latex' /> proves is true.  But by a similar argument, we believe that everything that <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathrm%7BPA%7D+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D%29%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA})))' title='(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA} + &#92;mathrm{Con}(&#92;mathrm{PA})))' class='latex' /> proves is true.  Where does this stop?  Once we believe that everything <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves is true, what, exactly, are we committed to believing?</p>
<p><span id="more-278"></span>This is from Chapters 13&#8211;15 of Torkel Franzén&#8217;s book <a href="http://www.sm.luth.se/~torkel/eget/progps.html">Inexhaustibility</a>, which is admirably clear and well-written.</p>
<p>First off, let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_0' title='&#92;mathrm{PA}_0' class='latex' /> be <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, and let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_{n+1}' title='&#92;mathrm{PA}_{n+1}' class='latex' /> be <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_n%2B%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_n+&#92;mathrm{Con}(&#92;mathrm{PA}_n)' title='&#92;mathrm{PA}_n+&#92;mathrm{Con}(&#92;mathrm{PA}_n)' class='latex' />.  By the considerations above, we accept that each <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_n' title='&#92;mathrm{PA}_n' class='latex' /> is sound.  (A theory being sound means that everything it proves is true.)</p>
<p>So, if we therefore let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Comega+%3D+%5Cbigcup_%7Bn%5Cin%5Cmathbb%7BN%7D%7D%5Cmathrm%7BPA%7D_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;omega = &#92;bigcup_{n&#92;in&#92;mathbb{N}}&#92;mathrm{PA}_n' title='&#92;mathrm{PA}_&#92;omega = &#92;bigcup_{n&#92;in&#92;mathbb{N}}&#92;mathrm{PA}_n' class='latex' />, then we accept that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;omega' title='&#92;mathrm{PA}_&#92;omega' class='latex' /> is sound.  We could therefore define <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%7B%5Comega+%2B+1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_{&#92;omega + 1}' title='&#92;mathrm{PA}_{&#92;omega + 1}' class='latex' /> to be <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Comega+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D_%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;omega + &#92;mathrm{Con}(&#92;mathrm{PA}_&#92;omega)' title='&#92;mathrm{PA}_&#92;omega + &#92;mathrm{Con}(&#92;mathrm{PA}_&#92;omega)' class='latex' /> and we would have to accept that as sound as well, but in making this definition we run up against our first snag.</p>
<p>The snag is this: In order to express a sentence of the form <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{Con}(T)' title='&#92;mathrm{Con}(T)' class='latex' /> in the language of number theory, we much choose some recursively enumerable presentation of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />, and which recursively enumerable presentation we choose matters.  For example, if we add to any given presentation of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> the stipulation that we are adding, for all <img src='http://s0.wp.com/latex.php?latex=x%2Cy%2Cz+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x,y,z &gt; 0' title='x,y,z &gt; 0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=n+%3E+2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &gt; 2' title='n &gt; 2' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=x%5En+%2B+y%5En+%3D+z%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x^n + y^n = z^n' title='x^n + y^n = z^n' class='latex' /> the axiom <img src='http://s0.wp.com/latex.php?latex=0+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 = 1' title='0 = 1' class='latex' />, then we haven&#8217;t actually added any new axioms, but if we construct the statement <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{Con}(T)' title='&#92;mathrm{Con}(T)' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> presented the second way, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{Con}(T)' title='&#92;mathrm{Con}(T)' class='latex' /> will imply Fermat&#8217;s Last Theorem, while <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{Con}(T)' title='&#92;mathrm{Con}(T)' class='latex' /> constructed from the original presentation of <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> may not.</p>
<p>As you might guess from the above, we are going to want to construct <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;alpha' title='&#92;mathrm{PA}_&#92;alpha' class='latex' /> for ordinals <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 <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 a successor ordinal, it is clear how to get a &#8220;reasonable&#8221; presentation of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;alpha' title='&#92;mathrm{PA}_&#92;alpha' class='latex' /> from a reasonable presentation of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_&#92;beta' title='&#92;mathrm{PA}_&#92;beta' class='latex' /> (where <img src='http://s0.wp.com/latex.php?latex=%5Cbeta+%2B+1+%3D+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta + 1 = &#92;alpha' title='&#92;beta + 1 = &#92;alpha' class='latex' />), but if <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 a limit ordinal, in general it won&#8217;t be clear (although it is clear for <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%3D+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha = &#92;omega' title='&#92;alpha = &#92;omega' class='latex' />).</p>
<p>So how can we solve this problem?</p>
<p>The first step is to use a more computable representation of ordinals, namely ordinal <em>notations. </em>An ordinal notation is a number <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' /> with the following property: It is either 0, or for every <img src='http://s0.wp.com/latex.php?latex=m%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in&#92;mathbb{N}' title='m&#92;in&#92;mathbb{N}' class='latex' />, the output of 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 Turing machine on input <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 an ordinal notation.  (What this recursive definition really means is that the set of ordinal notations is the smallest set satisfying the above property.)</p>
<p>Given an ordinal notation <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' />, we let the ordinal it represents, <img src='http://s0.wp.com/latex.php?latex=%7Cn%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|n|' title='|n|' class='latex' />, be defined by <img src='http://s0.wp.com/latex.php?latex=%7C0%7C+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|0| = 0' title='|0| = 0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7Cn%7C+%3D+%5Csup_%7Bm%5Cin%5Cmathbb%7BN%7D%7D+%28%7C%5Cphi_n%28m%29%7C%2B1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|n| = &#92;sup_{m&#92;in&#92;mathbb{N}} (|&#92;phi_n(m)|+1)' title='|n| = &#92;sup_{m&#92;in&#92;mathbb{N}} (|&#92;phi_n(m)|+1)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Cphi_n%28m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_n(m)' title='&#92;phi_n(m)' class='latex' /> denotes the output of 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 Turing machine on input <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' />.</p>
<p>We can now uniformly pick presentations of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_a' title='&#92;mathrm{PA}_a' class='latex' /> for ordinal notations <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' /> by letting <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_0+%3D+%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_0 = &#92;mathrm{PA}' title='&#92;mathrm{PA}_0 = &#92;mathrm{PA}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_a' title='&#92;mathrm{PA}_a' class='latex' /> be presented as the union of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_%7B%5Cphi_a%28m%29%7D+%2B+%5Cmathrm%7BCon%7D%28%5Cmathrm%7BPA%7D_%7B%5Cphi_a%28m%29%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_{&#92;phi_a(m)} + &#92;mathrm{Con}(&#92;mathrm{PA}_{&#92;phi_a(m)})' title='&#92;mathrm{PA}_{&#92;phi_a(m)} + &#92;mathrm{Con}(&#92;mathrm{PA}_{&#92;phi_a(m)})' class='latex' /> over <img src='http://s0.wp.com/latex.php?latex=m%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in&#92;mathbb{N}' title='m&#92;in&#92;mathbb{N}' class='latex' />, where the consistency statements are constructed using the presentations given by induction.</p>
<p>Unfortunately, this doesn&#8217;t prevent us from doing the trick mentioned above: For any true <img src='http://s0.wp.com/latex.php?latex=%5CPi_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Pi_1' title='&#92;Pi_1' class='latex' /> sentence <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' />, there is an ordinal notation <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' /> such that <img src='http://s0.wp.com/latex.php?latex=%7Ca%7C+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|a| = 1' title='|a| = 1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_a' title='&#92;mathrm{PA}_a' class='latex' /> proves <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' />.  The catch is that <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' /> will be quite an unusual notation for 1, and we&#8217;re not really justified in taking <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D_a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}_a' title='&#92;mathrm{PA}_a' class='latex' /> to be a consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> because <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> doesn&#8217;t &#8220;know&#8221; that <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' /> is an ordinal notation.</p>
<p>However, we can make a reasonable definition for what it means for <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> (or any extension) to prove that a number <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' /> is an ordinal notation.  (This is actually not trivial, since <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> can only talk about numbers, but the set of ordinal notations was defined to be the least <em>set</em> satisfying a certain property.)  We can then define an <em>autonomous</em> consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> as follows: <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> is an autonomous consistency extension of itself, and if <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is an autonomous consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> proves that <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' /> is an ordinal notation, then <img src='http://s0.wp.com/latex.php?latex=T_a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_a' title='T_a' class='latex' /> is an autonomous consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.</p>
<p>The autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> have some claim to being exactly those that we recognize to be consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> solely on the basis that we accept <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.  But that isn&#8217;t really completely satisfying.  There&#8217;s nothing stopping us from letting <img src='http://s0.wp.com/latex.php?latex=T_A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_A' title='T_A' class='latex' /> be the union of the autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> and considering <img src='http://s0.wp.com/latex.php?latex=T_A+%2B+%5Cmathrm%7BCon%7D%28T_A%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_A + &#92;mathrm{Con}(T_A)' title='T_A + &#92;mathrm{Con}(T_A)' class='latex' />.  Similarly, we got the set of autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> by starting with <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> and then closing under <em>finite</em> applications of a particular operation, but we could also have considered transfinite applications of that operation.</p>
<p>Does there exist a theory (which we believe is true) which will prove anything <em>any </em>reasonable iterated consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves?  It turns out there is.  Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> be the theory obtained by adding to <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> the axiom that for any <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' /> sentence <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' /> (that is, sentence of the form <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x_1%5Ccdots+%5Cexists+x_n+%5Cpsi%28x_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x_1&#92;cdots &#92;exists x_n &#92;psi(x_1,&#92;ldots, x_n)' title='&#92;exists x_1&#92;cdots &#92;exists x_n &#92;psi(x_1,&#92;ldots, x_n)' class='latex' /> where all of <img src='http://s0.wp.com/latex.php?latex=%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi' title='&#92;psi' class='latex' />&#8216;s quantifiers are bounded), if <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves <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' />, then <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' /> is true.</p>
<p>This property is called <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-soundness, and the axiom formalizing it is called a reflection axiom.  If <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound, then so is <img src='http://s0.wp.com/latex.php?latex=T+%2B+%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T + &#92;mathrm{Con}(T)' title='T + &#92;mathrm{Con}(T)' class='latex' />, since if <img src='http://s0.wp.com/latex.php?latex=T+%2B+%5Cmathrm%7BCon%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T + &#92;mathrm{Con}(T)' title='T + &#92;mathrm{Con}(T)' class='latex' /> proved a false <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' /> statement <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' />, then <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> would prove the false <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' /> statement <img src='http://s0.wp.com/latex.php?latex=%5Cneg+%5Cmathrm%7BCon%7D%28T%29+%5Cvee+%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg &#92;mathrm{Con}(T) &#92;vee &#92;phi' title='&#92;neg &#92;mathrm{Con}(T) &#92;vee &#92;phi' class='latex' /> (false because <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-soundness implies consistency).  Similarly, any union of a chain of <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound theories must be <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound.</p>
<p>Because we can formalize the above argument in <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> proves that every autonomous consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound.  Therefore, it proves that every autonomous consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> is consistent.  Therefore (since essentially autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> say nothing besides the fact that lower autonomous consistency extensions are consistent), <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> extends each autonomous consistency extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.</p>
<p>Okay, so adding axioms asserting that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound takes us beyond all the autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.  But what happens if add to <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> axioms asserting that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' />-sound?  This is called a <em>reflection </em>extension, and we can form autonomous iterated reflection extensions just as we can autonomous iterated consistency extensions.</p>
<p>Is there any theory (which we believe is true) which goes beyond all the autonomous reflection extensions the same way that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> goes beyond all the autonomous consistency extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />?  There is. The theory <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5CSigma-REF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;Sigma-REF}' title='&#92;mathrm{PA}^{&#92;Sigma-REF}' class='latex' /> asserts that all <img src='http://s0.wp.com/latex.php?latex=%5CSigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma_1' title='&#92;Sigma_1' class='latex' /> sentences that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves are true.   But it&#8217;s actually the case that <em>all</em> sentences that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> proves are true.</p>
<p>By a result of Tarski&#8217;s we can&#8217;t define truth of an arithmetical formula in <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, but we can define it by adding a new predicate <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BTrue%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{True}' title='&#92;mathrm{True}' class='latex' /> to the language of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, together with suitable axioms.  The resulting theory <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5Cmathit%7BTrue%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;mathit{True}}' title='&#92;mathrm{PA}^{&#92;mathit{True}}' class='latex' />, extends every autonomous reflection extension of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />.</p>
<p>In terms of what arithmetical sentences they can prove, <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5Cmathit%7BTrue%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;mathit{True}}' title='&#92;mathrm{PA}^{&#92;mathit{True}}' class='latex' /> is an equivalent theory to <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BACA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{ACA}' title='&#92;mathrm{ACA}' class='latex' /> (edit: not <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BACA%7D_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{ACA}_0' title='&#92;mathrm{ACA}_0' class='latex' />), which is the theory of second-order arithmetic, with a comprehension axiom for all arithmetic formulas.  This is essentially because sets of numbers in <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BACA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{ACA}' title='&#92;mathrm{ACA}' class='latex' /> are interchangeable with formulas in the language of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> with one free variable in <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D%5E%7B%5Cmathit%7BTrue%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}^{&#92;mathit{True}}' title='&#92;mathrm{PA}^{&#92;mathit{True}}' class='latex' />.</p>
<p>And, of course, we then get autonomous iterated <em>truth </em>extensions of <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' />, in analogy to the autonomous iterated reflection extensions and the autonomous iterated consistency extensions.  Here there is again a natural theory which extends all the autonomous iterated truth extensions, a theory called <img src='http://s0.wp.com/latex.php?latex=%5CPi%5E1_1-%5Cmathrm%7BCA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Pi^1_1-&#92;mathrm{CA}' title='&#92;Pi^1_1-&#92;mathrm{CA}' class='latex' />: it&#8217;s a theory of second-order arithmetic, like <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BACA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{ACA}' title='&#92;mathrm{ACA}' class='latex' />, but it allows comprehension for <img src='http://s0.wp.com/latex.php?latex=%5CPi%5E1_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Pi^1_1' title='&#92;Pi^1_1' class='latex' />-formulas (formulas with a universal set quantifier in front), instead of just arithmetic formulas.</p>
<p>Of course, we can now start again, taking consistency or reflection extensions of <img src='http://s0.wp.com/latex.php?latex=%5CPi%5E1_1-%5Cmathrm%7BCA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Pi^1_1-&#92;mathrm{CA}' title='&#92;Pi^1_1-&#92;mathrm{CA}' class='latex' />.  But, as Franzén says:</p>
<blockquote><p>[E]xtending <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BPA%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{PA}' title='&#92;mathrm{PA}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5CPi%5E1_1-CA&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Pi^1_1-CA' title='&#92;Pi^1_1-CA' class='latex' /> opens the door to a number of possible extensions that go beyond reflection.  In particular, we can extend a theory by introducing axioms about sets of higher type&#8212;meaning sets of sets of natural numbers, sets of sets of sets of natural numbers, and so on&#8212;and by introducing stronger comprehension principles for sets of a given type. &#8230; Axiomatic set theories like <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7BZF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{ZF}' title='&#92;mathrm{ZF}' class='latex' /> give powerful first-order theories which prove everything provable in such iterated autonomous extensions. &#8230; In this connection the term &#8220;reflection&#8221; reappears and takes on a new meaning. &#8230; [This] leads to a further indefinite sequence of extensions of set theory, and furthermore, &#8220;axioms of infinity&#8221; [i.e., large cardinal axioms], have been formulated which can be reasonably argued to be stronger, as far as arithmetical theorems are concerned, than any such extension by set-theoretic reflection.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=278&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2009/03/23/what-happens-when-you-iterate-godels-theorem/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Trigonometric Series and the Beginnings of Set Theory</title>
		<link>http://xorshammer.com/2008/12/20/trigonometric-series-and-the-beginnings-of-set-theory/</link>
		<comments>http://xorshammer.com/2008/12/20/trigonometric-series-and-the-beginnings-of-set-theory/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 13:38:17 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=253</guid>
		<description><![CDATA[Let be a -periodic function. It may or may not have a representation as a trigonometric series A natural question to ask is whether or not the representation of as a trigonometric series is unique, if it has one. It &#8230; <a href="http://xorshammer.com/2008/12/20/trigonometric-series-and-the-beginnings-of-set-theory/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=253&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon%5Cmathbb%7BR%7D%5Cto%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon&#92;mathbb{R}&#92;to&#92;mathbb{R}' title='f&#92;colon&#92;mathbb{R}&#92;to&#92;mathbb{R}' class='latex' /> be a <img src='http://s0.wp.com/latex.php?latex=2%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;pi' title='2&#92;pi' class='latex' />-periodic function.  It may or may not have a representation as a trigonometric series</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7Ba_0%2B%5Csum_%7Bn%3D1%7D%5E%5Cinfty+a_n%5Csin%28nx%29+%2B+b_n%5Ccos%28nx%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{a_0+&#92;sum_{n=1}^&#92;infty a_n&#92;sin(nx) + b_n&#92;cos(nx)}' title='&#92;displaystyle{a_0+&#92;sum_{n=1}^&#92;infty a_n&#92;sin(nx) + b_n&#92;cos(nx)}' class='latex' /></p>
<p>A natural question to ask is whether or not the representation of <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' /> as a trigonometric series is unique, if it has one.  It was the consideration of this question that led Cantor to the invention of set theory.</p>
<p>There is a nice writeup of this story in the first part of <a href="http://www.math.caltech.edu/papers/unique.ps">this article</a> by Alexander Kechris.  I&#8217;ll give part of the story below.</p>
<p><span id="more-253"></span></p>
<p>Cantor solved the problem in the affirmative; i.e., he proved:</p>
<blockquote><p>Suppose that a trigonometric series converges to zero everywhere in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  Then all the coefficients of that series are zero.</p></blockquote>
<p>(By subtraction, this is equivalent to the problem stated above.)   He was also able to show (by a very similar method) the following, which I&#8217;ll call the Isolated Points Lemma:</p>
<blockquote><p>Suppose <img src='http://s0.wp.com/latex.php?latex=a+%3C+b+%3C+c&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a &lt; b &lt; c' title='a &lt; b &lt; c' class='latex' /> and that a trigonometric series converges to zero on <img src='http://s0.wp.com/latex.php?latex=%28a%2Cb%29%5Ccup+%28b%2Cc%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(a,b)&#92;cup (b,c)' title='(a,b)&#92;cup (b,c)' class='latex' />.  Then that series converges to zero at <img src='http://s0.wp.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> as well.</p></blockquote>
<p>From these two results, we can immediately conclude the following:</p>
<blockquote><p>Suppose that a trigonometric series converges to zero at all but finitely many points.  Then the coefficients of that series are all zero.</p></blockquote>
<p>Call a set <img src='http://s0.wp.com/latex.php?latex=S%5Csubset+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subset &#92;mathbb{R}' title='S&#92;subset &#92;mathbb{R}' class='latex' /> a set of uniqueness if whenever a trigonometric series converges to zero on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D+-+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R} - S' title='&#92;mathbb{R} - S' class='latex' />, the coefficients of that series are all zero. Then the previous result may be stated: &#8220;All finite sets are sets of uniqueness.&#8221;</p>
<p>But we can use the Isolated Points Lemma to show more than that.  For example, we can show that the set <img src='http://s0.wp.com/latex.php?latex=S+%3D+%5C%7B1%2Fn%5Cmid+n%5Cin+%5Cmathbb%7BN%7D%5C%7D%5Ccup+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = &#92;{1/n&#92;mid n&#92;in &#92;mathbb{N}&#92;}&#92;cup &#92;{0&#92;}' title='S = &#92;{1/n&#92;mid n&#92;in &#92;mathbb{N}&#92;}&#92;cup &#92;{0&#92;}' class='latex' /> is a set of uniqueness.  The reason is that if a trigonometric series converges to zero on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D+-+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R} - S' title='&#92;mathbb{R} - S' class='latex' />, then by the Isolated Points lemma, it also converges to zero on the points in <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2Fn+%5Cmid+n%5Cin%5Cmathbb%7BN%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1/n &#92;mid n&#92;in&#92;mathbb{N}&#92;}' title='&#92;{1/n &#92;mid n&#92;in&#92;mathbb{N}&#92;}' class='latex' />.</p>
<p>But, <em>now that we know</em> that it converges to zero on the points in <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2Fn%5Cmid+n%5Cin%5Cmathbb%7BN%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1/n&#92;mid n&#92;in&#92;mathbb{N}&#92;}' title='&#92;{1/n&#92;mid n&#92;in&#92;mathbb{N}&#92;}' class='latex' />, we can apply the Isolated Points Lemma again to show that it converges to zero at 0 (since we now know that at converges to zero on, e.g., <img src='http://s0.wp.com/latex.php?latex=%28-1%2C0%29%5Ccup+%280%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(-1,0)&#92;cup (0,1)' title='(-1,0)&#92;cup (0,1)' class='latex' />).</p>
<p>What we have actually shown by the above argument is the following:</p>
<blockquote><p>Given <img src='http://s0.wp.com/latex.php?latex=A%5Csubset%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#92;subset&#92;mathbb{R}' title='A&#92;subset&#92;mathbb{R}' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=A%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#039;' title='A&#039;' class='latex' /> be the set of limit points of <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' /> (also known as the Cantor-Bendixson derivative of <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' />).  If <img src='http://s0.wp.com/latex.php?latex=A%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#039;' title='A&#039;' class='latex' /> is a set of uniqueness, then <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' /> is a set of uniqueness.</p></blockquote>
<p>For any <img src='http://s0.wp.com/latex.php?latex=A%5Csubset+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#92;subset &#92;mathbb{R}' title='A&#92;subset &#92;mathbb{R}' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28n%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(n)}' title='A^{(n)}' class='latex' /> be 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 Cantor-Bendixson derivative of <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' />.  Then, by iterating the above fact, we have the following:</p>
<blockquote><p>Suppose that for some <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' />, <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28n%29%7D+%3D+%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(n)} = &#92;emptyset' title='A^{(n)} = &#92;emptyset' class='latex' />.  Then <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' /> is a set of uniqueness.</p></blockquote>
<p>This is as far as we can go as long as we merely iterate the Cantor-Bendixson derivative finitely often.  But, if we make the leap to iterating it transfinitely many times, we can go much further:</p>
<blockquote><p><strong>Theorem:</strong> All countable closed sets are sets of uniqueness.</p></blockquote>
<p><strong>Proof: </strong>First, define <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha)}' title='A^{(&#92;alpha)}' class='latex' /> for all ordinals and all closed sets <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' /> as follows:</p>
<ol>
<li><img src='http://s0.wp.com/latex.php?latex=A%5E%7B%280%29%7D+%3D+A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(0)} = A' title='A^{(0)} = A' class='latex' /></li>
<li><img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha+%2B+1%29%7D+%3D+%28A%5E%7B%28%5Calpha%29%7D%29%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha + 1)} = (A^{(&#92;alpha)})&#039;' title='A^{(&#92;alpha + 1)} = (A^{(&#92;alpha)})&#039;' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha%29%7D+%3D+%5Cbigcap_%7B%5Cbeta+%3C+%5Calpha%7D+A%5E%7B%28%5Cbeta%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha)} = &#92;bigcap_{&#92;beta &lt; &#92;alpha} A^{(&#92;beta)}' title='A^{(&#92;alpha)} = &#92;bigcap_{&#92;beta &lt; &#92;alpha} A^{(&#92;beta)}' class='latex' />, when <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 a limit ordinal.</li>
</ol>
<p>The Isolated Points Lemma says that if a trigonometric series converges to zero outside of <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' />, then it converges to zero outside of <img src='http://s0.wp.com/latex.php?latex=A%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#039;' title='A&#039;' class='latex' />.  We will generalize this by showing the following lemma:</p>
<blockquote><p><strong>Lemma: </strong>If a trigonometric series converges to zero outside of <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' />, then it converges to zero outside of <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha)}' title='A^{(&#92;alpha)}' class='latex' /> for 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' />.</p></blockquote>
<p><strong>Proof of Lemma: </strong>This is by transfinite induction. The successor step of the induction is just the Isolated Points Lemma again, so all we have to show is that, fixing a trigonometric series, if <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 a limit ordinal and the series converges to zero outside of each <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Cbeta%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;beta)}' title='A^{(&#92;beta)}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cbeta+%3C+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta &lt; &#92;alpha' title='&#92;beta &lt; &#92;alpha' class='latex' />, then it converges to zero outside of <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha)}' title='A^{(&#92;alpha)}' class='latex' />.  But this follows simply because every point of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D-A%5E%7B%28%5Calpha%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}-A^{(&#92;alpha)}' title='&#92;mathbb{R}-A^{(&#92;alpha)}' class='latex' /> must be in some <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D-A%5E%7B%28%5Cbeta%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}-A^{(&#92;beta)}' title='&#92;mathbb{R}-A^{(&#92;beta)}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cbeta+%3C+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta &lt; &#92;alpha' title='&#92;beta &lt; &#92;alpha' class='latex' /> by definition. <strong>End of proof of Lemma.</strong></p>
<p>To complete the proof of the theorem then, we just have to observe that for all countable closed <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' />, <img src='http://s0.wp.com/latex.php?latex=A%5E%7B%28%5Calpha%29%7D%3D%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^{(&#92;alpha)}=&#92;emptyset' title='A^{(&#92;alpha)}=&#92;emptyset' class='latex' /> for some <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' />.  Clearly, for all closed <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' />, there is an <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=%28A%5E%7B%28%5Calpha%29%7D%29%27%3DA%5E%7B%28%5Calpha%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(A^{(&#92;alpha)})&#039;=A^{(&#92;alpha)}' title='(A^{(&#92;alpha)})&#039;=A^{(&#92;alpha)}' class='latex' /> (this is because <img src='http://s0.wp.com/latex.php?latex=%5C%7BA%5E%7B%28%5Cbeta%29%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{A^{(&#92;beta)}&#92;}' title='&#92;{A^{(&#92;beta)}&#92;}' class='latex' /> is a decreasing sequence).  But it is standard fact that a set <img src='http://s0.wp.com/latex.php?latex=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=B%27+%3D+B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B&#039; = B' title='B&#039; = B' class='latex' /> is either empty or of cardinality <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0}' title='2^{&#92;aleph_0}' class='latex' />. (Such a set is called a perfect set and a reference for the cited fact is page 7 of David Marker&#8217;s <a href="http://www.math.uic.edu/~marker/math512/dst.ps">notes on descriptive set theory</a>.) <strong>End of proof.</strong></p>
<p>As a historical note, Kechris reports that while thinking about the above issues led Cantor to discover ordinals, he never actually wrote down a proof of the above theorem; that was finally done by Lebesgue in 1903.</p>
<p>Further, it was later proven by Bernstein and Young independently that arbitrary countable sets are sets of uniqueness, and by Bari that countable unions of closed sets of uniqueness are sets of uniqueness.</p>
<p>Edit: Simplified the proof.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=253&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/12/20/trigonometric-series-and-the-beginnings-of-set-theory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>A Simple Introduction to Quantum Groups</title>
		<link>http://xorshammer.com/2008/12/11/a-simple-introduction-to-quantum-groups/</link>
		<comments>http://xorshammer.com/2008/12/11/a-simple-introduction-to-quantum-groups/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 02:49:23 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=225</guid>
		<description><![CDATA[In the course of reading some background material for an article by James Worthington on using bialgebraic structures in automata theory, I was led to finally reading up on what a Hopf algebra (sometimes called a &#8220;quantum group&#8220;) is. Although &#8230; <a href="http://xorshammer.com/2008/12/11/a-simple-introduction-to-quantum-groups/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=225&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the course of reading some background material for <a href="http://arxiv.org/abs/0807.4553">an article</a> by James Worthington on using bialgebraic structures in automata theory, I was led to finally reading up on what a <a href="http://en.wikipedia.org/wiki/Hopf_algebra">Hopf algebra</a> (sometimes called a &#8220;<a href="http://en.wikipedia.org/wiki/Quantum_group">quantum group</a>&#8220;) is.</p>
<p>Although it is not strictly related to logic, I&#8217;ll write up what I learned here.</p>
<p><span id="more-225"></span></p>
<p>My main source for this is sigfpe&#8217;s <a href="http://sigfpe.blogspot.com/2008/08/hopf-algebra-group-monad.html">blog post</a> on this.  In fact, all I really did was take his post and remove the Haskell from it (and probably add some mistakes).  If you can read Haskell, I definitely recommend that post (and his blog in general).  I also read the article on quantum groups in the <a href="http://gowers.wordpress.com/2008/08/28/princeton-companion-latest/">Princeton Companion to Mathematics</a>, which is an amazing book.</p>
<p>We&#8217;ll take the ordinary definition of a group and turn it into the definition of a quantum group in two steps.</p>
<p><strong>Step 1: Groorgs.</strong></p>
<p>In the first step, we&#8217;ll &#8220;symmetrize&#8221; the definition of a group to get an object I call a groorg.  What does it mean to symmetrize a definition?  Well, for one thing, as part of the definition of a group we have a multiplication <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+G%5Ctimes+G%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon G&#92;times G&#92;to G' title='&#92;text{mult}&#92;colon G&#92;times G&#92;to G' class='latex' />.  Therefore, to make it symmetric, we should also have a comultiplication <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D+%5Ccolon+G%5Cto+G%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult} &#92;colon G&#92;to G&#92;times G' title='&#92;text{comult} &#92;colon G&#92;to G&#92;times G' class='latex' />.</p>
<p>Furthermore, this comultiplication should satisfy laws dual to those satisfied by multiplication.  For example, multiplication is associative, which means that for any <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' />, <img src='http://s0.wp.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=c%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c&#92;in G' title='c&#92;in G' class='latex' />, the two ways of using multiplication to turn the triple <img src='http://s0.wp.com/latex.php?latex=abc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='abc' title='abc' class='latex' /> into a single element are the same.  Dually, then, comultiplication should be coassociative, meaning that for any element <img src='http://s0.wp.com/latex.php?latex=a%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in G' title='a&#92;in G' class='latex' />, the two ways of using comultiplication to turn that single element into a triple should be the same.</p>
<p>OK, so we&#8217;ve seen that the dual of multiplication is comultiplication.  Another part of the definition of a group is the inverse function <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%5Ccolon+G%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}&#92;colon G&#92;to G' title='&#92;text{inv}&#92;colon G&#92;to G' class='latex' />, which is no problem, since it can be its own dual.  But what about the identity element <img src='http://s0.wp.com/latex.php?latex=e%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e&#92;in G' title='e&#92;in G' class='latex' />?  This is puzzling until you think of the identity not as an element of <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />, but as a map from a one element set <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Cbullet%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;bullet&#92;}' title='&#92;{&#92;bullet&#92;}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />, which, when written it that form, I&#8217;ll call <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%5Ccolon+%5C%7B%5Cbullet%5C%7D%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to G' title='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to G' class='latex' />.  Then it&#8217;s clear that the dual of <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}' title='&#92;text{unit}' class='latex' /> should be <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D+%5Ccolon+G%5Cto+%5C%7B%5Cbullet%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit} &#92;colon G&#92;to &#92;{&#92;bullet&#92;}' title='&#92;text{counit} &#92;colon G&#92;to &#92;{&#92;bullet&#92;}' class='latex' />.  The astute reader will note that there is only one such function, so this seems to be a trivial addition, but let&#8217;s press on regardless.</p>
<p>We can now begin the definition of a groorg.</p>
<blockquote><p><strong>Definition of a Groorg, Part 1. </strong>A groorg is a set <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> together with:</p>
<ol>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+G%5Ctimes+G%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon G&#92;times G&#92;to G' title='&#92;text{mult}&#92;colon G&#92;times G&#92;to G' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%5Ccolon+G%5Cto+G%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}&#92;colon G&#92;to G&#92;times G' title='&#92;text{comult}&#92;colon G&#92;to G&#92;times G' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%5Ccolon+%5C%7B%5Cbullet%5C%7D%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to G' title='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to G' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D+%5Ccolon+G%5Cto+%5C%7B%5Cbullet%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit} &#92;colon G&#92;to &#92;{&#92;bullet&#92;}' title='&#92;text{counit} &#92;colon G&#92;to &#92;{&#92;bullet&#92;}' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%5Ccolon+G%5Cto+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}&#92;colon G&#92;to G' title='&#92;text{inv}&#92;colon G&#92;to G' class='latex' />.</li>
</ol>
<p>These must satisfy the following properties:</p>
<ul>
<li>Multiplication must be associative and comultiplication must be coassociative.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}' title='&#92;text{unit}' class='latex' /> should be a unit for multiplication.  This means that, given any <img src='http://s0.wp.com/latex.php?latex=a%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in G' title='a&#92;in G' class='latex' />, if you form an ordered pair with <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=%5Ctext%7Bunit%7D%28%5Cbullet%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}(&#92;bullet)' title='&#92;text{unit}(&#92;bullet)' class='latex' />, then apply <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}' title='&#92;text{mult}' class='latex' /> to that ordered pair, you get <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' /> back.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}' title='&#92;text{counit}' class='latex' /> should be a counit for comultplication.  This means that, given any <img src='http://s0.wp.com/latex.php?latex=a%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in G' title='a&#92;in G' class='latex' />, if you apply <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}' title='&#92;text{comult}' class='latex' /> to <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' /> to get an ordered pair, then destroy one of the componenents with <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}' title='&#92;text{counit}' class='latex' /> (i.e., just discard it), then you get <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' /> back.</li>
</ul>
</blockquote>
<p>Let&#8217;s pause here.  If you&#8217;ve followed along, you may have noticed that this last condition forces <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28a%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(a)' title='&#92;text{comult}(a)' class='latex' /> to be <img src='http://s0.wp.com/latex.php?latex=%28a%2Ca%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(a,a)' title='(a,a)' class='latex' /> (which does satisfy the conditions so far).  This is obviously quite restrictive, but it has one benefit: it means that we can rewrite the inverse law using comultiplication.  To see what I mean, consider the following: If we let <img src='http://s0.wp.com/latex.php?latex=f%28a%2Cb%29+%3D+%28%5Ctext%7Binv%7D%28a%29%2Cb%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(a,b) = (&#92;text{inv}(a),b)' title='f(a,b) = (&#92;text{inv}(a),b)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=g%28a%2Cb%29+%3D+%28a%2C%5Ctext%7Binv%7D%28b%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(a,b) = (a,&#92;text{inv}(b))' title='g(a,b) = (a,&#92;text{inv}(b))' class='latex' />, then the usual inverse law for a group says that for any <img src='http://s0.wp.com/latex.php?latex=a%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in G' title='a&#92;in G' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%28%5Ctext%7Bmult%7D%5Ccirc+f%29%28a%2Ca%29+%3D+%28%5Ctext%7Bmult%7D%5Ccirc+g%29%28a%2Ca%29+%3D+%5Ctext%7Bunit%7D%28%5Cbullet%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;text{mult}&#92;circ f)(a,a) = (&#92;text{mult}&#92;circ g)(a,a) = &#92;text{unit}(&#92;bullet)' title='(&#92;text{mult}&#92;circ f)(a,a) = (&#92;text{mult}&#92;circ g)(a,a) = &#92;text{unit}(&#92;bullet)' class='latex' />.  Now, since we know that <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}' title='&#92;text{comult}' class='latex' /> is forced to take each <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' /> to <img src='http://s0.wp.com/latex.php?latex=%28a%2Ca%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(a,a)' title='(a,a)' class='latex' />, we can rewrite the inverse law as: <img src='http://s0.wp.com/latex.php?latex=%28%5Ctext%7Bmult%7D%5Ccirc+f+%5Ccirc+%5Ctext%7Bcomult%7D%29%28a%29+%3D+%28%5Ctext%7Bmult%7D%5Ccirc+g%5Ccirc+%5Ctext%7Bcomult%7D%29%28a%29+%3D+%5Ctext%7Bunit%7D%28%5Cbullet%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;text{mult}&#92;circ f &#92;circ &#92;text{comult})(a) = (&#92;text{mult}&#92;circ g&#92;circ &#92;text{comult})(a) = &#92;text{unit}(&#92;bullet)' title='(&#92;text{mult}&#92;circ f &#92;circ &#92;text{comult})(a) = (&#92;text{mult}&#92;circ g&#92;circ &#92;text{comult})(a) = &#92;text{unit}(&#92;bullet)' class='latex' />.</p>
<p>We can make this completely symmetric by getting <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}' title='&#92;text{counit}' class='latex' /> into the act:</p>
<blockquote><p><strong>Definition of a Groorg, Part 2.</strong> A groorg is also required to satisfy: <img src='http://s0.wp.com/latex.php?latex=%28%5Ctext%7Bmult%7D%5Ccirc+f+%5Ccirc+%5Ctext%7Bcomult%7D%29%28a%29+%3D+%28%5Ctext%7Bmult%7D%5Ccirc+g%5Ccirc+%5Ctext%7Bcomult%7D%29%28a%29+%3D+%5Ctext%7Bunit%7D%28%5Ctext%7Bcounit%7D%28a%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;text{mult}&#92;circ f &#92;circ &#92;text{comult})(a) = (&#92;text{mult}&#92;circ g&#92;circ &#92;text{comult})(a) = &#92;text{unit}(&#92;text{counit}(a))' title='(&#92;text{mult}&#92;circ f &#92;circ &#92;text{comult})(a) = (&#92;text{mult}&#92;circ g&#92;circ &#92;text{comult})(a) = &#92;text{unit}(&#92;text{counit}(a))' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=a%5Cin+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in G' title='a&#92;in G' class='latex' /> (where <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' /> and <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> are as above.</p></blockquote>
<p>And we finally have a requirement which says that the two ways of computing <img src='http://s0.wp.com/latex.php?latex=%28ab%2C+ab%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(ab, ab)' title='(ab, ab)' class='latex' /> by using comultiplication and multiplication are equal.</p>
<blockquote><p><strong>Definition of a Groorg, Part 3. </strong>A groorg is also required to satisfy: <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28%5Ctext%7Bmult%7D%28a%2Cb%29%29+%3D+%5Ctext%7Bmult%7D%28%5Ctext%7Bcomult%7D%28a%29%2C%5Ctext%7Bcomult%7D%28b%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(&#92;text{mult}(a,b)) = &#92;text{mult}(&#92;text{comult}(a),&#92;text{comult}(b))' title='&#92;text{comult}(&#92;text{mult}(a,b)) = &#92;text{mult}(&#92;text{comult}(a),&#92;text{comult}(b))' class='latex' />, where the second <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}' title='&#92;text{mult}' class='latex' /> is the natural multiplication on <img src='http://s0.wp.com/latex.php?latex=G%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G&#92;times G' title='G&#92;times G' class='latex' />.</p></blockquote>
<p>This concludes the definition of a groorg.</p>
<p>But, what use is it?  As we&#8217;ve observed, in every groorg, we must have that <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}' title='&#92;text{comult}' class='latex' /> sends <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' /> to <img src='http://s0.wp.com/latex.php?latex=%28a%2Ca%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(a,a)' title='(a,a)' class='latex' />, so that the groorg just reduces to an ordinary group.  Furthermore, every group becomes a groorg by defining comult in that way (and by defining counit in the only possible way).</p>
<p>What we&#8217;ve gained is that we now have a definition of a group which is equivalent to the old one and which is symmetric, which will lend itself well to our next step.</p>
<p><strong>Step 2.  Adding superpositions.</strong></p>
<p>How can we turn this concept of a group into one of a &#8220;quantum&#8221; group? If you&#8217;re like me, the only thing you know about quantum mechanics is that you often hear the word &#8220;superposition&#8221; used in conjunction with it. That&#8217;s not much, but it turns out to be enough in this case.</p>
<p>Instead of having the composition <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%28g%2Ch%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}(g,h)' title='&#92;text{mult}(g,h)' class='latex' /> of two group elements be another group element, let&#8217;s have it be a <em>superposition</em> of group elements.  It turns out that what this should mean is a <em>linear combination</em> of group elements. So, let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[G]' title='&#92;mathbb{C}[G]' class='latex' /> be the <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />-vector space generated by taking <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> as a formal set of basis vectors. Instead of requiring that <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}' title='&#92;text{mult}' class='latex' /> be a map from <img src='http://s0.wp.com/latex.php?latex=G%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G&#92;times G' title='G&#92;times G' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />, we will let it be a map from <img src='http://s0.wp.com/latex.php?latex=G%5Ctimes+G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G&#92;times G' title='G&#92;times G' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[G]' title='&#92;mathbb{C}[G]' class='latex' />. So we have the following:</p>
<blockquote><p><strong>Provisional Definition of a Quantum Group.</strong> A quantum group is a set <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> together with</p>
<ol>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+G%5Ctimes+G+%5Cto+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon G&#92;times G &#92;to &#92;mathbb{C}[G]' title='&#92;text{mult}&#92;colon G&#92;times G &#92;to &#92;mathbb{C}[G]' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%5Ccolon+G%5Cto+%5Cmathbb%7BC%7D%5BG%5Ctimes+G%5D+%3D+%5Cmathbb%7BC%7D%5BG%5D%5Cotimes%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}&#92;colon G&#92;to &#92;mathbb{C}[G&#92;times G] = &#92;mathbb{C}[G]&#92;otimes&#92;mathbb{C}[G]' title='&#92;text{comult}&#92;colon G&#92;to &#92;mathbb{C}[G&#92;times G] = &#92;mathbb{C}[G]&#92;otimes&#92;mathbb{C}[G]' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%5Ccolon+%5C%7B%5Cbullet%5C%7D%5Cto+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to &#92;mathbb{C}[G]' title='&#92;text{unit}&#92;colon &#92;{&#92;bullet&#92;}&#92;to &#92;mathbb{C}[G]' class='latex' />.</li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%5Ccolon+G%5Cto+%5Cmathbb%7BC%7D%5B%5C%7B%5Cbullet%5C%7D%5D+%3D+%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}&#92;colon G&#92;to &#92;mathbb{C}[&#92;{&#92;bullet&#92;}] = &#92;mathbb{C}' title='&#92;text{counit}&#92;colon G&#92;to &#92;mathbb{C}[&#92;{&#92;bullet&#92;}] = &#92;mathbb{C}' class='latex' /></li>
<li>A map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%5Ccolon+G%5Cto+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}&#92;colon G&#92;to &#92;mathbb{C}[G]' title='&#92;text{inv}&#92;colon G&#92;to &#92;mathbb{C}[G]' class='latex' />.</li>
</ol>
<p>satisfying &#8230;</p></blockquote>
<p>Before we can think about what properties these functions should satisfy, we have to settle a question: We know how to multiply two group elements to get a superposition of group elements, but how should we multiply two superpositions of group elements? For example, what should the product of <img src='http://s0.wp.com/latex.php?latex=g_1+%2B+%5Cpi+g_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_1 + &#92;pi g_2' title='g_1 + &#92;pi g_2' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=ig_3+%2B+2+g_4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ig_3 + 2 g_4' title='ig_3 + 2 g_4' class='latex' /> be? (Note that I am using the same symbol to stand for the group element and the formal basis vector corresponding to it.)</p>
<p>The quickest way to define the multiplication of superpositions is to notice that, since <img src='http://s0.wp.com/latex.php?latex=%5C%7Bg_1%5Cotimes+g_2%5Cmid+g_1%2Cg_2%5Cin+G%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{g_1&#92;otimes g_2&#92;mid g_1,g_2&#92;in G&#92;}' title='&#92;{g_1&#92;otimes g_2&#92;mid g_1,g_2&#92;in G&#92;}' class='latex' /> is a basis for <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5BG%5D%5Cotimes+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[G]&#92;otimes &#92;mathbb{C}[G]' title='&#92;mathbb{C}[G]&#92;otimes &#92;mathbb{C}[G]' class='latex' />, the map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+G%5Ctimes+G%5Cto+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon G&#92;times G&#92;to &#92;mathbb{C}[G]' title='&#92;text{mult}&#92;colon G&#92;times G&#92;to &#92;mathbb{C}[G]' class='latex' /> extends to a <em>linear</em> map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+%5Cmathbb%7BC%7D%5BG%5D%5Cotimes+%5Cmathbb%7BC%7D%5BG%5D%5Cto+%5Cmathbb%7BC%7D%5BG%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon &#92;mathbb{C}[G]&#92;otimes &#92;mathbb{C}[G]&#92;to &#92;mathbb{C}[G]' title='&#92;text{mult}&#92;colon &#92;mathbb{C}[G]&#92;otimes &#92;mathbb{C}[G]&#92;to &#92;mathbb{C}[G]' class='latex' />, which we can use to multiply superpositions. In the above example, <img src='http://s0.wp.com/latex.php?latex=%28g_1+%2B+%5Cpi+g_2%29%5Cotimes+%28ig_3+%2B+2+g_4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(g_1 + &#92;pi g_2)&#92;otimes (ig_3 + 2 g_4)' title='(g_1 + &#92;pi g_2)&#92;otimes (ig_3 + 2 g_4)' class='latex' /> is equal to <img src='http://s0.wp.com/latex.php?latex=ig_1%5Cotimes+g_3+%2B+2g_1%5Cotimes+g_4+%2B+i%5Cpi+g_2%5Cotimes+g_3+%2B+2%5Cpi+g_2%5Cotimes+g_4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ig_1&#92;otimes g_3 + 2g_1&#92;otimes g_4 + i&#92;pi g_2&#92;otimes g_3 + 2&#92;pi g_2&#92;otimes g_4' title='ig_1&#92;otimes g_3 + 2g_1&#92;otimes g_4 + i&#92;pi g_2&#92;otimes g_3 + 2&#92;pi g_2&#92;otimes g_4' class='latex' />, so the product of the two superpositions would be <img src='http://s0.wp.com/latex.php?latex=i%5Ctext%7Bmult%7D%28g_1%2Cg_3%29+%2B+2%5Ctext%7Bmult%7D%28g_1%2Cg_4%29+%2B+i%5Cpi%5Ctext%7Bmult%7D%28g_2%2Cg_3%29+%2B+2%5Cpi%5Ctext%7Bmult%7D%28g_2%2Cg_4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i&#92;text{mult}(g_1,g_3) + 2&#92;text{mult}(g_1,g_4) + i&#92;pi&#92;text{mult}(g_2,g_3) + 2&#92;pi&#92;text{mult}(g_2,g_4)' title='i&#92;text{mult}(g_1,g_3) + 2&#92;text{mult}(g_1,g_4) + i&#92;pi&#92;text{mult}(g_2,g_3) + 2&#92;pi&#92;text{mult}(g_2,g_4)' class='latex' />.</p>
<p>Now, our symmetric definition of a group above translates exactly, and we no longer need to mention the basis explicitly:</p>
<blockquote><p><strong>Definition of a Quantum Group (or Hopf Algebra)</strong>.  A quantum group is a <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />-vector space <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> together with:</p>
<ol>
<li>A linear map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%5Ccolon+V%5Cotimes+V%5Cto+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}&#92;colon V&#92;otimes V&#92;to V' title='&#92;text{mult}&#92;colon V&#92;otimes V&#92;to V' class='latex' /></li>
<li>A linear map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%5Ccolon+V%5Cto+V%5Cotimes+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}&#92;colon V&#92;to V&#92;otimes V' title='&#92;text{comult}&#92;colon V&#92;to V&#92;otimes V' class='latex' /></li>
<li>A linear map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D+%5Ccolon+%5Cmathbb%7BC%7D%5Cto+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit} &#92;colon &#92;mathbb{C}&#92;to V' title='&#92;text{unit} &#92;colon &#92;mathbb{C}&#92;to V' class='latex' /></li>
<li>A linear map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D+%5Ccolon+V%5Cto+%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit} &#92;colon V&#92;to &#92;mathbb{C}' title='&#92;text{counit} &#92;colon V&#92;to &#92;mathbb{C}' class='latex' /></li>
<li>A linear map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%5Ccolon+V%5Cto+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}&#92;colon V&#92;to V' title='&#92;text{inv}&#92;colon V&#92;to V' class='latex' /></li>
</ol>
<p>satisfying the analogues of the laws given in the definition of a groorg.</p></blockquote>
<p><strong>Some Combinatorial Examples</strong></p>
<p>I believe there are many examples of the usefulness of this concept in physics.  However because I don&#8217;t know any physics, I won&#8217;t give them.</p>
<p>Here are two combinatorial examples from <a href="http://sigfpe.blogspot.com/2008/08/hopf-algebra-group-monad.html">sigfpe&#8217;s blog post</a>:</p>
<p><strong>Example 1: A Quantum Group on Finite Strings.<br />
</strong></p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma' title='&#92;Sigma' class='latex' /> be an alphabet, and let <img src='http://s0.wp.com/latex.php?latex=%5CSigma%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma^*' title='&#92;Sigma^*' class='latex' /> be the set of all finite strings with characters from <img src='http://s0.wp.com/latex.php?latex=%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Sigma' title='&#92;Sigma' class='latex' />.  We may put a quantum group structure on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5B%5CSigma%5E%2A%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[&#92;Sigma^*]' title='&#92;mathbb{C}[&#92;Sigma^*]' class='latex' /> as follows:</p>
<ul>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%28%5Csigma%2C%5Ctau%29+%3D+%5Csigma%5Ctau&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}(&#92;sigma,&#92;tau) = &#92;sigma&#92;tau' title='&#92;text{mult}(&#92;sigma,&#92;tau) = &#92;sigma&#92;tau' class='latex' />, the concatenation of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctau&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;tau' title='&#92;tau' class='latex' />.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%281%29+%3D+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}(1) = &#92;varepsilon' title='&#92;text{unit}(1) = &#92;varepsilon' class='latex' />, the empty string.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%28%5Cvarepsilon%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}(&#92;varepsilon) = 1' title='&#92;text{counit}(&#92;varepsilon) = 1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%28%5Csigma%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}(&#92;sigma) = 0' title='&#92;text{counit}(&#92;sigma) = 0' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Csigma+%5Cne+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma &#92;ne &#92;varepsilon' title='&#92;sigma &#92;ne &#92;varepsilon' class='latex' />.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%28%5Csigma%29+%3D+%28-1%29%5E%7B%7C%5Csigma%7C%7D%5Cbar%7B%5Csigma%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}(&#92;sigma) = (-1)^{|&#92;sigma|}&#92;bar{&#92;sigma}' title='&#92;text{inv}(&#92;sigma) = (-1)^{|&#92;sigma|}&#92;bar{&#92;sigma}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%7C%5Csigma%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|&#92;sigma|' title='|&#92;sigma|' class='latex' /> is the length of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7B%5Csigma%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{&#92;sigma}' title='&#92;bar{&#92;sigma}' class='latex' /> is the reverse of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' />.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28%5Csigma%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(&#92;sigma)' title='&#92;text{comult}(&#92;sigma)' class='latex' /> be the sum of <img src='http://s0.wp.com/latex.php?latex=%5Csigma_0%5Cotimes+%5Csigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_0&#92;otimes &#92;sigma_1' title='&#92;sigma_0&#92;otimes &#92;sigma_1' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Csigma_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_0' title='&#92;sigma_0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_1' title='&#92;sigma_1' class='latex' /> can be shuffled together to give <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' />.  This means that the characters in <img src='http://s0.wp.com/latex.php?latex=%5Csigma_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_0' title='&#92;sigma_0' class='latex' /> occur in <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> in the same order, and when you remove them you get <img src='http://s0.wp.com/latex.php?latex=%5Csigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_1' title='&#92;sigma_1' class='latex' />.</li>
</ul>
<p>For an example of the comultiplication, if <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=b%5Cin+%5CSigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b&#92;in &#92;Sigma' title='b&#92;in &#92;Sigma' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28ab%29+%3D+%5Cvarepsilon+%5Cotimes+ab+%2B+a+%5Cotimes+b+%2B+b+%5Cotimes+a+%2B+ab%5Cotimes+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(ab) = &#92;varepsilon &#92;otimes ab + a &#92;otimes b + b &#92;otimes a + ab&#92;otimes &#92;varepsilon' title='&#92;text{comult}(ab) = &#92;varepsilon &#92;otimes ab + a &#92;otimes b + b &#92;otimes a + ab&#92;otimes &#92;varepsilon' class='latex' />.<br />
We can verify the inverse law in this case: If we apply <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}' title='&#92;text{inv}' class='latex' /> on the right to <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28ab%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(ab)' title='&#92;text{comult}(ab)' class='latex' />, we get <img src='http://s0.wp.com/latex.php?latex=%5Cvarepsilon%5Cotimes+ba+-+a+%5Cotimes+b+-+b+%5Cotimes+a+%2B+ab%5Cotimes+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;varepsilon&#92;otimes ba - a &#92;otimes b - b &#92;otimes a + ab&#92;otimes &#92;varepsilon' title='&#92;varepsilon&#92;otimes ba - a &#92;otimes b - b &#92;otimes a + ab&#92;otimes &#92;varepsilon' class='latex' />.  Applying <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}' title='&#92;text{mult}' class='latex' /> to this, we get <img src='http://s0.wp.com/latex.php?latex=ba+-ab+-ba+%2B+ab+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ba -ab -ba + ab = 0' title='ba -ab -ba + ab = 0' class='latex' />.</p>
<p><strong>Example 2.  Another Quantum Group on Finite Strings.</strong><br />
This is also a quantum group on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5B%5CSigma%5E%2A%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[&#92;Sigma^*]' title='&#92;mathbb{C}[&#92;Sigma^*]' class='latex' />.</p>
<ul>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%28%5Csigma%2C%5Ctau%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}(&#92;sigma,&#92;tau)' title='&#92;text{mult}(&#92;sigma,&#92;tau)' class='latex' /> be the sum of all possible ways of shuffling <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctau&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;tau' title='&#92;tau' class='latex' /> together.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%281%29+%3D+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}(1) = &#92;varepsilon' title='&#92;text{unit}(1) = &#92;varepsilon' class='latex' />, the empty string.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%28%5Cvarepsilon%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}(&#92;varepsilon) = 1' title='&#92;text{counit}(&#92;varepsilon) = 1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%28%5Csigma%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}(&#92;sigma) = 0' title='&#92;text{counit}(&#92;sigma) = 0' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Csigma+%5Cne+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma &#92;ne &#92;varepsilon' title='&#92;sigma &#92;ne &#92;varepsilon' class='latex' />.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D%28%5Csigma%29+%3D+%28-1%29%5E%7B%7C%5Csigma%7C%7D%5Cbar%7B%5Csigma%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}(&#92;sigma) = (-1)^{|&#92;sigma|}&#92;bar{&#92;sigma}' title='&#92;text{inv}(&#92;sigma) = (-1)^{|&#92;sigma|}&#92;bar{&#92;sigma}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%7C%5Csigma%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|&#92;sigma|' title='|&#92;sigma|' class='latex' /> is the length of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7B%5Csigma%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{&#92;sigma}' title='&#92;bar{&#92;sigma}' class='latex' /> is the reverse of <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' />.</li>
<li>We let <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28%5Csigma%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(&#92;sigma)' title='&#92;text{comult}(&#92;sigma)' class='latex' /> be the sum of all <img src='http://s0.wp.com/latex.php?latex=%5Csigma_0%5Cotimes+%5Csigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma_0&#92;otimes &#92;sigma_1' title='&#92;sigma_0&#92;otimes &#92;sigma_1' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Csigma+%3D+%5Csigma_0%5Csigma_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma = &#92;sigma_0&#92;sigma_1' title='&#92;sigma = &#92;sigma_0&#92;sigma_1' class='latex' />.</li>
</ul>
<p>Again, we can verify the inverse law in a specific case: We have that <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28ab%29+%3D+%5Cvarepsilon%5Cotimes+ab+%2B+a%5Cotimes+b+%2B+ab%5Cotimes+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(ab) = &#92;varepsilon&#92;otimes ab + a&#92;otimes b + ab&#92;otimes &#92;varepsilon' title='&#92;text{comult}(ab) = &#92;varepsilon&#92;otimes ab + a&#92;otimes b + ab&#92;otimes &#92;varepsilon' class='latex' />.  If we apply <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}' title='&#92;text{inv}' class='latex' /> on the right, we get <img src='http://s0.wp.com/latex.php?latex=%5Cvarepsilon%5Cotimes+ab+-+a%5Cotimes+b+%2B+ab%5Cotimes+%5Cvarepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;varepsilon&#92;otimes ab - a&#92;otimes b + ab&#92;otimes &#92;varepsilon' title='&#92;varepsilon&#92;otimes ab - a&#92;otimes b + ab&#92;otimes &#92;varepsilon' class='latex' />.  Now applying <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}' title='&#92;text{mult}' class='latex' />, we get <img src='http://s0.wp.com/latex.php?latex=ab+-ab+-ba+%2B+ba+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ab -ab -ba + ba = 0' title='ab -ab -ba + ba = 0' class='latex' />.</p>
<p><strong>Example 3: A Quantum Group on Finite Binary Trees.</strong><br />
This example is from <a href="http://www.math.tamu.edu/~maguiar/Loday.pdf">here</a>.  We think of a finite binary tree as a finite tree where each node has either zero or two children, and where we distinguish between left and right.  This picture from the above paper shows how, if you select a leaf of a finite binary tree, you may divide the tree into the tree to the left of the leaf and the tree to the right of the leaf:<br />
<img class="alignnone size-full wp-image-227" title="split_tree" src="http://xorshammer.files.wordpress.com/2008/12/split_tree.png?w=500" alt="split_tree"   /><br />
If you select a multiset of <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> leaves, you may similarly divide your tree into <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> trees.</p>
<p>We may now define a quantum group on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5B%5Cmathcal%7BT%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}[&#92;mathcal{T}]' title='&#92;mathbb{C}[&#92;mathcal{T}]' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BT%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{T}' title='&#92;mathcal{T}' class='latex' /> is the set of finite binary trees as follows:</p>
<ul>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bmult%7D%28T_1%2CT_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{mult}(T_1,T_2)' title='&#92;text{mult}(T_1,T_2)' class='latex' /> is the sum of all trees generated as follows: Suppose that <img src='http://s0.wp.com/latex.php?latex=T_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_2' title='T_2' class='latex' /> has <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> leaves.  Divide <img src='http://s0.wp.com/latex.php?latex=T_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_1' title='T_1' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> trees as above, and stick them onto the leaves of <img src='http://s0.wp.com/latex.php?latex=T_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_2' title='T_2' class='latex' />.  There are many graphical examples of this <a href="http://www.math.tamu.edu/~sottile/pages/HopfAlgebras/YSym/F-Product.html">here</a>.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bunit%7D%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{unit}(1)' title='&#92;text{unit}(1)' class='latex' /> is the tree with a single node and no leaves.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcomult%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{comult}(T)' title='&#92;text{comult}(T)' class='latex' /> is the sum of all <img src='http://s0.wp.com/latex.php?latex=T_1%5Cotimes+T_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_1&#92;otimes T_2' title='T_1&#92;otimes T_2' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=T_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_1' title='T_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=T_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_2' title='T_2' class='latex' /> are trees that <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> can be divided into.  There are many graphical examples of this <a href="http://www.math.tamu.edu/~sottile/pages/HopfAlgebras/YSym/F-Coproduct.html">here</a>.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcounit%7D%28T%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{counit}(T)' title='&#92;text{counit}(T)' class='latex' /> is 1 if <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is the tree with only one node, and zero otherwise.</li>
<li>For the definition of <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Binv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{inv}' title='&#92;text{inv}' class='latex' />, I refer you to the above paper.  However, there are many graphical examples of the antipode <a href="http://www.math.tamu.edu/~sottile/pages/HopfAlgebras/YSym/F-Antipode.html">here</a>.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=225&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/12/11/a-simple-introduction-to-quantum-groups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2008/12/split_tree.png" medium="image">
			<media:title type="html">split_tree</media:title>
		</media:content>
	</item>
		<item>
		<title>Doing Calculus on the Rationals (with the help of Nonstandard Analysis)</title>
		<link>http://xorshammer.com/2008/11/14/doing-calculus-on-the-rationals-with-the-help-of-nonstandard-analysis/</link>
		<comments>http://xorshammer.com/2008/11/14/doing-calculus-on-the-rationals-with-the-help-of-nonstandard-analysis/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 02:32:08 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=218</guid>
		<description><![CDATA[Nonstandard Analysis is usually used to introduce infinitesimals into the real numbers in an attempt to make arguments in analysis more intuitive. The idea is that you construct a superset which contains the reals and also some infinitesimals, prove that &#8230; <a href="http://xorshammer.com/2008/11/14/doing-calculus-on-the-rationals-with-the-help-of-nonstandard-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=218&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nonstandard Analysis is usually used to introduce infinitesimals into the real numbers in an attempt to make arguments in analysis more intuitive.</p>
<p>The idea is that you construct a superset <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^*' title='&#92;mathbb{R}^*' class='latex' /> which contains the reals and also some infinitesimals, prove that some statement holds of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^*' title='&#92;mathbb{R}^*' class='latex' />, and then use a general &#8220;transfer principle&#8221; to conclude that the same statement holds of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.</p>
<p>Implicit in this procedure is the idea that <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> is the <em>real</em> world, and therefore the goal is to prove things about it.  We construct a field <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^*' title='&#92;mathbb{R}^*' class='latex' /> with infinitesimals, but only as a method for eventually proving something about <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.</p>
<p>We can do precisely the same thing with <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}' title='&#92;mathbb{Q}' class='latex' /> instead of with <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  But, in  <a href="http://www.andrew.cmu.edu/user/avigad/Papers/nonstandard2.pdf">Weak Theories of Nonstandard Arithmetic and Analysis</a>, Jeremy Avigad observed that if we don&#8217;t care about transferring the results back down to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}' title='&#92;mathbb{Q}' class='latex' />, then we can get all the basic results of calculus and elementary real analysis just by working with <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}^*' title='&#92;mathbb{Q}^*' class='latex' />, and without ever having to construct the reals.</p>
<p><span id="more-218"></span></p>
<p>Let me first differentiate two approaches to nonstandard analysis.  The first is the one I mentioned above, where you actually <em>construct</em> a field <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^*' title='&#92;mathbb{R}^*' class='latex' /> (although you need the axiom of choice to do it).  This is done entirely within ordinary mathematics.  Call this the semantic approach.</p>
<p>Another approach is the axiomatic approach.  A good example of this is <a href="http://www.math.princeton.edu/~Nelson/">Edward Nelson</a>&#8216;s <a href="http://www.math.princeton.edu/~Nelson/books/1.pdf">internal set theory</a>.  In this approach, you take an ordinary axiomatization of some part of mathematics (for example, ZFC), introduce a new predicate for being &#8220;standard&#8221; or &#8220;normal-sized&#8221;, and some axioms saying that there exist things which are not standard and how these things relate to everything else.  In the usual situation, a sentence which does not contain the predicate &#8220;standard&#8221; is provable in the new theory iff it&#8217;s provable in the old theory.  (This is the case with IST and ZFC.)</p>
<p>The axiomatic approach is the approach we&#8217;ll take here.  We&#8217;ll let our language <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BL%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{L}' title='&#92;mathcal{L}' class='latex' /> consist of a function symbol for each primitive recursive function and relation, together with a predicate <img src='http://s0.wp.com/latex.php?latex=st&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st' title='st' class='latex' /> and a constant <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' />.  Our axioms will be the following:</p>
<ol>
<li>If <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' /> is a true (in the natural numbers) first-order <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BL%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{L}' title='&#92;mathcal{L}' class='latex' />-sentence that does not include the new predicate <img src='http://s0.wp.com/latex.php?latex=st&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st' title='st' class='latex' />, then we take <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' /> as an axiom.</li>
<li>We take <img src='http://s0.wp.com/latex.php?latex=%5Cneg+st%28%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg st(&#92;omega)' title='&#92;neg st(&#92;omega)' class='latex' /> as an axiom.</li>
<li>We take <img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%5C%2C+%28st%28x%29%5Crightarrow+%5Cforall+y%3Cx%5C%2Cst%28y%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x&#92;, (st(x)&#92;rightarrow &#92;forall y&lt;x&#92;,st(y))' title='&#92;forall x&#92;, (st(x)&#92;rightarrow &#92;forall y&lt;x&#92;,st(y))' class='latex' /> as an axiom.</li>
<li>We take <img src='http://s0.wp.com/latex.php?latex=st%28x_1%29%5Cwedge+%5Ccdots+%5Cwedge+st%28x_k%29+%5Crightarrow+st%28f%28x_1%2C%5Cldots%2C+x_k%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st(x_1)&#92;wedge &#92;cdots &#92;wedge st(x_k) &#92;rightarrow st(f(x_1,&#92;ldots, x_k))' title='st(x_1)&#92;wedge &#92;cdots &#92;wedge st(x_k) &#92;rightarrow st(f(x_1,&#92;ldots, x_k))' class='latex' /> to be an axiom for each <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' />-ary primitive recursive function <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' />.</li>
</ol>
<p>The interpretation of our sentences is that we are now quantifying over a domain which includes infinitely large natural numbers (of which <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is an example) and that the predicate <img src='http://s0.wp.com/latex.php?latex=st&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st' title='st' class='latex' /> picks out those which are normal-sized.  However, since we are working within the axiomatic system, I will still refer to the domain we are quantifying over as <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />.</p>
<p>Within the system, construct <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BZ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Z}' title='&#92;mathbb{Z}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}' title='&#92;mathbb{Q}' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> as usual.  We make the following definitions:</p>
<p>We say that an natural number <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' /> is unbounded if it is not standard (i.e., if <img src='http://s0.wp.com/latex.php?latex=%5Cneg+st%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg st(n)' title='&#92;neg st(n)' class='latex' />).  We say that an integer <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 unbounded if <img src='http://s0.wp.com/latex.php?latex=%7Cx%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x|' title='|x|' class='latex' /> is unbounded.  We say that a rational <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> is unbounded if the closest integer to it is unbounded.</p>
<p>Furthermore, we say that a rational number <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> is infinitesimal if it equals 0 or if <img src='http://s0.wp.com/latex.php?latex=1%2Fq&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/q' title='1/q' class='latex' /> is unbounded.  We say that <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' /> are infinitely close, written <img src='http://s0.wp.com/latex.php?latex=q%5Csim+r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q&#92;sim r' title='q&#92;sim r' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=q-r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q-r' title='q-r' class='latex' /> is infinitesimal.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}&#039;' title='&#92;mathbb{Q}&#039;' class='latex' /> be the set of rationals which are not infinite.  We can now do analysis on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}&#039;' title='&#92;mathbb{Q}&#039;' class='latex' />.  First of all, we can define continuity in a natural way: We say that <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BQ%7D%27%5Cto%5Cmathbb%7BQ%7D%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{Q}&#039;&#92;to&#92;mathbb{Q}&#039;' title='f&#92;colon &#92;mathbb{Q}&#039;&#92;to&#92;mathbb{Q}&#039;' class='latex' /> is continuous if whenever <img src='http://s0.wp.com/latex.php?latex=q+%5Csim+r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q &#92;sim r' title='q &#92;sim r' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28q%29%5Csim+f%28r%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(q)&#92;sim f(r)' title='f(q)&#92;sim f(r)' class='latex' />.</p>
<p>We have the intermediate value theorem for <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}&#039;' title='&#92;mathbb{Q}&#039;' class='latex' />: If <img src='http://s0.wp.com/latex.php?latex=f%280%29+%3C0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(0) &lt;0' title='f(0) &lt;0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f%281%29+%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(1) &gt;0' title='f(1) &gt;0' class='latex' /> and <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 continuous, then there is a <img src='http://s0.wp.com/latex.php?latex=q%5Cin+%5B0%2C1%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q&#92;in [0,1]' title='q&#92;in [0,1]' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=f%28q%29%5Csim+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(q)&#92;sim 0' title='f(q)&#92;sim 0' class='latex' />. Proof:  Recall that <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is a natural number.  Let <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> be the maximum natural number less than <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' />  such that <img src='http://s0.wp.com/latex.php?latex=f%28j%2F%5Comega%29+%3C0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(j/&#92;omega) &lt;0' title='f(j/&#92;omega) &lt;0' class='latex' />.  (This is possible because there are only finitely many natural numbers less than any natural number, including <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' />!)  But then <img src='http://s0.wp.com/latex.php?latex=f%28j%2F%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(j/&#92;omega)' title='f(j/&#92;omega)' class='latex' /> must be infinitely close to <img src='http://s0.wp.com/latex.php?latex=%7B0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{0}' title='{0}' class='latex' />, since by continuity <img src='http://s0.wp.com/latex.php?latex=0+%3C+f%28%28j%2B1%29%2F%5Comega%29%5Csim+f%28j%2F%5Comega%29+%3C+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &lt; f((j+1)/&#92;omega)&#92;sim f(j/&#92;omega) &lt; 0' title='0 &lt; f((j+1)/&#92;omega)&#92;sim f(j/&#92;omega) &lt; 0' class='latex' />.</p>
<p>We can also prove that any continuous function on <img src='http://s0.wp.com/latex.php?latex=%7B%7D%5B0%2C1%5D%5Ccap%5Cmathbb%7BQ%7D%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{}[0,1]&#92;cap&#92;mathbb{Q}&#039;' title='{}[0,1]&#92;cap&#92;mathbb{Q}&#039;' class='latex' /> attains a maximum (up to <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' />) by essentially the same means: just consider the <img src='http://s0.wp.com/latex.php?latex=j+%3C+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j &lt; &#92;omega' title='j &lt; &#92;omega' class='latex' /> for which <img src='http://s0.wp.com/latex.php?latex=f%28j%2F%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(j/&#92;omega)' title='f(j/&#92;omega)' class='latex' /> is a maximum, which is again possible considering that there are only finitely many <img src='http://s0.wp.com/latex.php?latex=j+%3C+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j &lt; &#92;omega' title='j &lt; &#92;omega' class='latex' />.</p>
<p>Turning to differentiation, we may define <img src='http://s0.wp.com/latex.php?latex=f%27%28x%29+%3D+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(x) = y' title='f&#039;(x) = y' class='latex' /> if for all non-zero infinitesimals <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' />,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7Bf%28x%2Bh%29+-+f%28x%29%7D%7Bh%7D%5Csim+y%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;frac{f(x+h) - f(x)}{h}&#92;sim y}' title='&#92;displaystyle{&#92;frac{f(x+h) - f(x)}{h}&#92;sim y}' class='latex' /></p>
<p style="text-align:left;">(Note that the derivative is actually defined only up to <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' />.)  We can then prove that the derivative of <img src='http://s0.wp.com/latex.php?latex=x%5Ek&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x^k' title='x^k' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=kx%5E%7Bk-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='kx^{k-1}' title='kx^{k-1}' class='latex' /> by letting <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> be an arbitrary infinitesimal, expanding <img src='http://s0.wp.com/latex.php?latex=%28x%2Bh%29%5Ek+-+x%5Ek&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x+h)^k - x^k' title='(x+h)^k - x^k' class='latex' />, dividing by <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' />, and noting that what results is <img src='http://s0.wp.com/latex.php?latex=kx%5E%7Bk-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='kx^{k-1}' title='kx^{k-1}' class='latex' /> plus an infinitesimal.</p>
<p style="text-align:left;">Avigad notes that we may continue by defining <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexp%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exp}' title='&#92;text{exp}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Csin&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin' title='&#92;sin' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=%5Ccos&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cos' title='&#92;cos' class='latex' /> by taking an unbounded partial sum of the Taylor expansions, and that this is sufficient to prove all the basic properties.  He also cites an easy proof in this setting of the Cauchy-Peano theorem on the existence of solutions to differential equations.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/218/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=218&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/11/14/doing-calculus-on-the-rationals-with-the-help-of-nonstandard-analysis/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Games Which are Impossible to Analyze</title>
		<link>http://xorshammer.com/2008/11/09/games-which-are-impossible-to-analyze/</link>
		<comments>http://xorshammer.com/2008/11/09/games-which-are-impossible-to-analyze/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 14:38:35 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=214</guid>
		<description><![CDATA[In the last post, I mentioned the computational complexity of various games. To be explicit, we consider each &#8220;game&#8221; to actually be a sequence of games for . For example, would be checkers played on an board. The problem was &#8230; <a href="http://xorshammer.com/2008/11/09/games-which-are-impossible-to-analyze/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=214&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the last post, I mentioned the computational complexity of various games.  To be explicit, we consider each &#8220;game&#8221; <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> to actually be a sequence of games <img src='http://s0.wp.com/latex.php?latex=%5C%7BG_n%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{G_n&#92;}' title='&#92;{G_n&#92;}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in &#92;mathbb{N}' title='n&#92;in &#92;mathbb{N}' class='latex' />.  For example, <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bcheckers%7D_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{checkers}_n' title='&#92;text{checkers}_n' class='latex' /> would be checkers played on an <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;times n' title='n&#92;times n' class='latex' /> board.   The problem was then to analyze the computational complexity of the function which takes <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' /> and tells you which player has a winning strategy and what the winning strategy is.  I&#8217;ll call that function the analysis function of <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />.</p>
<p>Are there any games which can actually be played in the real world with an undecidable analysis function?  Robern Hearn, in the same <a href="http://www.swiss.ai.mit.edu/~bob/hearn-thesis-final.pdf">thesis</a> that I linked to last time, showed that the answer is yes.</p>
<p><span id="more-214"></span>In order to make sure that our games can be played in the real world, we&#8217;ll restrict our attention to games <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> where each <img src='http://s0.wp.com/latex.php?latex=G_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_n' title='G_n' class='latex' /> has only finitely many positions (that is, the board has only finitely many states it can be in).</p>
<p>First off, observe that if <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> is a game of perfect information, then it has a decidable analysis function.  By the fact that there are only finitely many positions in each <img src='http://s0.wp.com/latex.php?latex=G_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_n' title='G_n' class='latex' />, you can construct a finite game tree for <img src='http://s0.wp.com/latex.php?latex=G_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_n' title='G_n' class='latex' /> (finite because you can cut it off when positions repeat) and then induct up it to find out who has a winning strategy.  (You may want to think about this if you haven&#8217;t seen it before.  This is something like what is sometimes called Zermelo&#8217;s Theorem.)</p>
<p>OK, so let&#8217;s look at games <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> which are not of perfect information, i.e., each of the players have some private information.  Now it&#8217;s possible that no player has a winning strategy (for example, consider the two-player game where both players secretly choose either 0 or 1, and if the sum is odd then Player 1 wins, and if it&#8217;s even then Player 2 wins).  Even so, the question of which, if any, players have a winning strategy is well-defined.</p>
<p>It turns out that these also have decidable analysis functions.  I&#8217;ll also omit this proof, but it&#8217;s similar to the above except that, instead of a finite tree of positions, you can construct, for each player, the tree of subsets of positions that he considers possible at any given time.</p>
<p>So what hope is there?  I said that both games of perfect information and games of imperfect information have decidable analysis functions.  But there was an unstated assumption: that all players are playing against each other.  Hearn showed that a game with two players who are playing as a team against a third player but such that each of two team members has private information (which they are not allowed to communicate) can be undecidable.</p>
<p>The idea of the proof is as follows: Imagine that we have three players, Player 1, Player 2, and Player 3, and that Players 2 and 3 are playing as a team against Player 1.  In order to make the analysis function undecidable, we would like to do something like (say) in game <img src='http://s0.wp.com/latex.php?latex=G_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_n' title='G_n' class='latex' /> force Player 2 to emulate 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 Turing machine and have his team wins if it halts.  But we can&#8217;t literally make the board an infinite tape and make Player 2&#8242;s legal moves be those simulating 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 Turing machine, because then the board would have infinitely many positions.</p>
<p>But what if, instead of an infinite tape, the board was a single cell where Player 2 wrote out the computational history of 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 Turing machine one character at a time?  That is, if <img src='http://s0.wp.com/latex.php?latex=s_t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_t' title='s_t' class='latex' /> represents the (finite) contents of the tape at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />, he writes out the concatenation of all the <img src='http://s0.wp.com/latex.php?latex=s_t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_t' title='s_t' class='latex' /> (with, say a special symbol # separating them).  This would be good, but how can we enforce this given that we want the set of legal moves to depend only on the board position?</p>
<p>The solution is the following:  We require both Player and Player 3 to write out the computational history of 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 Turing machine in two separate &#8220;streams&#8221;.  Player 1 lets each of them know which stream he wants them to to write a character to at any given time.  Player 1 can then check them against each other by advancing one of them ahead of the other in one of the streams and checking, character by character, that the string that one of them is writing out is one step further along the computational history of 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 Turing machine than the string that the other is writing out.  Since Player 2 and Player 3 do not know who is advanced relative to the other, they will not be able to cheat.</p>
<p>Hearn uses this argument to show that a game he calls Team Computation has an undecidable analysis function.  He then uses that to show that the team version of Constraint Logic (discussed in the previous post) is undecidable.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=214&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/11/09/games-which-are-impossible-to-analyze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Show that Games are Hard</title>
		<link>http://xorshammer.com/2008/11/03/how-to-show-that-games-are-hard/</link>
		<comments>http://xorshammer.com/2008/11/03/how-to-show-that-games-are-hard/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 02:35:43 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=204</guid>
		<description><![CDATA[Peg Solitaire is a pretty popular game, often found in restaurants (including Cracker Barrel, if I remember correctly). It&#8217;s also NP-complete (by which I mean determining a winning strategy given the initial set-up is an NP-complete problem). You may have &#8230; <a href="http://xorshammer.com/2008/11/03/how-to-show-that-games-are-hard/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=204&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Peg_solitaire">Peg Solitaire</a> is a pretty popular game, often found in restaurants (including Cracker Barrel, if I remember correctly).  It&#8217;s also NP-complete (by which I mean determining a winning strategy given the initial set-up is an NP-complete problem).  You may have also heard of computational complexity results for Minesweeper (see <a href="http://for.mat.bham.ac.uk/R.W.Kaye/minesw/ordmsw.htm">here</a>, for example).  There are a number of other results showing that various popular games are complete for some complexity class.</p>
<p>But what if you come across a new game, which no computer scientist has heard of yet?  Well, you&#8217;re in luck, as <a href="http://www.dartmouth.edu/~rah/">Robert Hearn</a>, in his <a href="http://www.swiss.ai.mit.edu/~bob/hearn-thesis-final.pdf">thesis</a>, formulated a framework called Constraint Logic intended to make it easy to prove complexity results for games.</p>
<p><span id="more-204"></span>Games are classified by Hearn by whether they are zero-, one-, or two-player, and further by whether or not their length is polynomially bounded by their initial setup.  (Hearn also covers team games, which I&#8217;ll cover in a later post.)</p>
<p>Recall that by saying a game is in a complexity class I mean that the problem of, given an initial setup for the game, determining whether or not there is a winning strategy for a given player (if any) and, if so, what that strategy is, is in that complexity class.  Thus, when we talk about a game being in a particular complexity class, we are always implicitly talking about a way of generalizing the game to different initial setups.  For example, the statement that Go is in EXPTIME means that the problem of, given <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' />, determining a winning strategy for Go on an <img src='http://s0.wp.com/latex.php?latex=n+%5Ctimes+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;times n' title='n &#92;times n' class='latex' /> board is in EXPTIME.</p>
<ul>
<li>An example of a zero-player bounded-length game is the game <a href="http://en.wikipedia.org/wiki/Clock_patience">Clock Solitaire</a>.  Once the cards are dealt, the game is completely deterministic (this makes it zero-player), and furthermore, each card is turned over at most once (this makes it bounded).  Games of this sort are in the complexity class P.</li>
<li>An example of a zero-player unbounded game is <a href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway&#8217;s Game of Life</a>.  Games of this sort tend to be in PSPACE.  Conway&#8217;s game of life is PSPACE-complete.</li>
<li>An example of a one-player bounded-length game is Peg Solitaire, mentioned above.  It is bounded since each move removes a peg, and there is no way to get a peg back.  Games of this sort are in NP.  Peg Solitaire, as mentioned above, is NP-complete.</li>
<li>Examples of one-player unbounded games include <a href="http://en.wikipedia.org/wiki/Rubik%27s_cube">Rubik&#8217;s Cube</a> and <a href="http://www.webdoodles.org/pages/rush_hour.htm">Rush Hour</a>.  Games of this sort tend to be in PSPACE.  Rush Hour is PSPACE-complete.  (There are a couple of different ways of generalizing the Rubik&#8217;s Cube to higher dimensions, but I&#8217;m not aware of complexity results for any of them.  If you know, please leave a comment.)</li>
<li>Examples of two-player bounded-length games include <a href="http://en.wikipedia.org/wiki/Tic_tac_toe">Tic-Tac-Toe</a>, John Nash&#8217;s game <a href="http://en.wikipedia.org/wiki/Hex_(board_game)">Hex</a>, and Othello.  In both cases, the game is of bounded-length since once a player marks a space on the board, it can never be unmarked or marked again.  Games of this sort are in PSPACE.  Hex and Othello are PSPACE-complete.  (As with the Rubik&#8217;s cube, there are a couple of different ways to generalize Tic-Tac-Toe to higher dimensions, but I don&#8217;t know of any complexity results for them.  If you know, please leave a comment.)</li>
<li>Examples of two-player unbounded games include many familiar games such as checkers, chess, and go.  Games of this type tend to be in EXPTIME.  Each of the three games mentioned is EXPTIME-complete.</li>
<li>Hearn also defines &#8220;team&#8221; games, which I will skip in this post.</li>
</ul>
<p>So what is constraint logic?  It&#8217;s a single setup which naturally gives examples of games of each of the six types listed above, and furthermore is in each case complete with respect to the associated complexity class.  Thus, if you can reduce constraint logic to whichever game you&#8217;re interested in, you have a completeness result.</p>
<p>The setup for constraint logic is as follows:  The game board is an undirected graph with weights of 1 or 2 on the edges and non-negative integers assigned to the vertices (these non-negative integers are called the <em>minimum inflow</em> of the vertex).  A position of the board is an assignment of direction to each edge.  The position is legal if, for each vertex, the sum of all the weights of the edges directed towards the vertex is at least the minimum inflow of the vertex.  A move is generally reversing the direction of an edge (to give another legal position), and the goal of the game is generally to reverse the direction of a specified edge.</p>
<p>How does this give us each of the six types?</p>
<ul>
<li>To form a zero-player bounded-length game:  Suppose given a board position <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />, and a goal edge <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> (i.e., <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' /> is a directed graph with weights assigned to the edges and non-negative integers assigned to the vertices, and <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> is an edge of <img src='http://s0.wp.com/latex.php?latex=G&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G' title='G' class='latex' />, and the game is won if the direction of <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> is reversed).  Then let <img src='http://s0.wp.com/latex.php?latex=R_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R_0' title='R_0' class='latex' /> be the set of edges <img src='http://s0.wp.com/latex.php?latex=E_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_0' title='E_0' class='latex' /> such that it&#8217;s legal to reverse the direction of <img src='http://s0.wp.com/latex.php?latex=E_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_0' title='E_0' class='latex' />.  Reverse the direction of all of these edges to get a new position <img src='http://s0.wp.com/latex.php?latex=G_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_1' title='G_1' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=R_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R_1' title='R_1' class='latex' /> be the set of all edges <img src='http://s0.wp.com/latex.php?latex=E_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1' title='E_1' class='latex' /> such that it&#8217;s legal to reverse the direction of <img src='http://s0.wp.com/latex.php?latex=E_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1' title='E_1' class='latex' /> <em>and </em><img src='http://s0.wp.com/latex.php?latex=E_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1' title='E_1' class='latex' /> <em>hasn&#8217;t been reversed before. </em>Reverse all of those, and so on.  Since an edge is reversed at most once, the game is bounded length.  (Notice that it might be the case that in reversing some edge in <img src='http://s0.wp.com/latex.php?latex=R_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R_i' title='R_i' class='latex' />, you make it so that some other edge in <img src='http://s0.wp.com/latex.php?latex=R_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R_i' title='R_i' class='latex' /> can no longer be legally reversed.  This can indeed happen, but it is possible to restrict to a subclass of games where this never happens).  This game is P-complete.</li>
<li>To form a zero-player unbounded length, you essentially do the same thing as above, but remove the restriction that an edge can be reversed at most once.  There are some technicalities however, which are too ensure that every time you try to reverse an edge, it is a legal move.  This game is PSPACE-complete</li>
<li>To form a one-player bounded game: On each turn the player reverses the direction of edge (to form a legal position).  Each edge can be reversed at most once.  The player wins if he is able to reverse the direction of the pre-specified goal edge.  This game is NP-complete.</li>
<li>To form a one-player unbounded game:  Just as above, except that each edge may be reversed as many times as necessary.  This game is PSPACE-complete.</li>
<li>To form a two-player bounded-game:  Each player has a set of edges which only they may reverse.  Each player also has their own target edge.  They take turns reversing edges and each edge may be reversed at most once.  The first player to reverse their target edge wins.  This game is PSPACE-complete</li>
<li>To form a two-player unbounded game:  Just as above, except that each edge may be reversed an unlimited number of times.  This game is EXPTIME-complete.</li>
</ul>
<p>Part II of Hearn&#8217;s thesis (linked above) contains a large number of complexity proofs for games based on these results.  Furthermore, he has results which make this endeavor easier: a priori, you would have to reduce any graph to the game in question to prove that it&#8217;s complete with respect to the appropriate complexity class.  Hearn proves that it suffices to reduce planar graphs which consist solely of AND vertices, which are those of minimum inflow 2 and with exactly three adjacent edges, one of which has weight 2 and two of which have weight 1, and OR vertices, which are those of minimum inflow 2 and with exactly three adjacent edges, all of which have weight 2.  (You can interpret games built up from these vertices as a kind of a non-deterministic circuit computation, which is where they get their name.)</p>
<p>For example, consider sliding block puzzles: In a sliding block puzzle, you are given a number of rectangular blocks in a rectangular box.  The goal is to slide the blocks around to get one particular block in one particular case.  Using Constraint Logic, Hearn, together with his advisor, <a href="http://erikdemaine.org/">Erik Demaine</a> (who is amazing, by the way), showed that this was PSPACE-complete.  The proof is shown in this figure, reproduced from <a href="http://erikdemaine.org/papers/CL_Complexity2008/">this paper by Demaine and Hearn</a>:</p>
<p><a href="http://xorshammer.files.wordpress.com/2008/11/constraint.png"><img class="aligncenter size-full wp-image-206" title="constraint" src="http://xorshammer.files.wordpress.com/2008/11/constraint.png?w=500" alt="constraint"   /></a>On the left is the translation of an AND vertex; on the riht is the translation of an OR vertex.  In each case, the three yellow blocks on the border represent the three edges adjacent to the vertex.  Reversing the direction of an edge corresponds to either pushing the block in to the square, or pulling it out.  The squares are designed so that it is possible to slide the blocks in the interior around so that pushing a yellow block inside is possible iff the corresponding edge reversal is legal.</p>
<p>For more information, see Hearn&#8217;s thesis and the paper by Demaine and Hearn linked above, as well as <a href="http://erikdemaine.org/papers/NCL_TCS/">this additional paper</a> by Demaine and Hearn on the subject.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=204&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/11/03/how-to-show-that-games-are-hard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2008/11/constraint.png" medium="image">
			<media:title type="html">constraint</media:title>
		</media:content>
	</item>
		<item>
		<title>Another Puzzle in Recursion Theory: n-Enumerable Sets</title>
		<link>http://xorshammer.com/2008/10/26/another-puzzle-in-recursion-theory-n-enumerable-sets/</link>
		<comments>http://xorshammer.com/2008/10/26/another-puzzle-in-recursion-theory-n-enumerable-sets/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 17:11:40 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Puzzles]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=198</guid>
		<description><![CDATA[We can think of a computably enumerable (or c.e.) set as a bag which some computer program puts more and more numbers into over time. The set then consists of all numbers which are in the bag from some point &#8230; <a href="http://xorshammer.com/2008/10/26/another-puzzle-in-recursion-theory-n-enumerable-sets/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=198&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We can think of a computably enumerable (or c.e.) set as a bag which some computer program puts more and more numbers into over time.  The set then consists of all numbers which are in the bag from some point on (i.e., the numbers which are eventually put in the bag by the program).</p>
<p>Suppose that we relax the restrictions on the program, and we allow it to take a number out of the bag that it has put in (but once the program has done that, the number stays out forever).  We call the set of numbers which are in the bag from some point on (i.e., the set of numbers which are put in the bag and never taken out) in a procedure of this sort a 2-c.e. set.</p>
<p>We can analogously let an <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' />-c.e. set be one given by a program which can, for each number, &#8220;toggle&#8221; that number&#8217;s status up to and including <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' /> times if it likes.</p>
<p>The puzzle is then to find, for 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' />, an example of a set which is <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' />-c.e. but not <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' />-c.e.</p>
<p><span id="more-198"></span></p>
<p>Here is an example of a set which is <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' />-c.e. but not <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' />-c.e.:  The program simulates all Turing machines simultaneously (by dovetailing, this can still be done with a finite algorithm).</p>
<p>For each <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' /> it does the following: If the <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' />th Turing machine halts, it puts <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' /> in the bag.  In this case, the program also checks to see what number the <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' />th Turing machine output when it halted; call it <img src='http://s0.wp.com/latex.php?latex=m_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_1' title='m_1' class='latex' />.  If eventually the <img src='http://s0.wp.com/latex.php?latex=m_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_1' title='m_1' class='latex' />th Turing machine halts, the program takes <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' /> out of the bag.  In this case, the program also checks to see what number the <img src='http://s0.wp.com/latex.php?latex=m_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_1' title='m_1' class='latex' />th Turing machine output when it halted; call it <img src='http://s0.wp.com/latex.php?latex=m_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_2' title='m_2' class='latex' />.  If eventually the <img src='http://s0.wp.com/latex.php?latex=m_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m_2' title='m_2' class='latex' />th Turing machine halts, the program puts <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' /> back in the bag.  And so on, up to a maximum 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' /> times.</p>
<p>Call that set <img src='http://s0.wp.com/latex.php?latex=S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_n' title='S_n' class='latex' />.  Clearly it&#8217;s <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' />-c.e.  We have to show that it&#8217;s not <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' />-c.e.</p>
<p>First observe that each <img src='http://s0.wp.com/latex.php?latex=S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_n' title='S_n' class='latex' /> is complete with respect to <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' />-c.e. sets.  This means that if <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is <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' />-c.e., then there is a computable function <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' /> such that <img src='http://s0.wp.com/latex.php?latex=m%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in S' title='m&#92;in S' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=f%28m%29%5Cin+S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(m)&#92;in S_n' title='f(m)&#92;in S_n' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=m%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in&#92;mathbb{N}' title='m&#92;in&#92;mathbb{N}' class='latex' />.</p>
<p>Now observe that if <img src='http://s0.wp.com/latex.php?latex=S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_n' title='S_n' class='latex' /> is <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' />-c.e., then its complement <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7BS_n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{S_n}' title='&#92;bar{S_n}' class='latex' /> is <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' />-c.e.  We can find an <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' />-c.e. presentation of <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7BS_n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{S_n}' title='&#92;bar{S_n}' class='latex' /> by letting our computer program start by putting all numbers in the bag and then doing the opposite of what the <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' />-c.e. presentation of <img src='http://s0.wp.com/latex.php?latex=S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_n' title='S_n' class='latex' /> does.</p>
<p>Combining these two observations, there is a computable function <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' /> such that for all <img src='http://s0.wp.com/latex.php?latex=m%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in&#92;mathbb{N}' title='m&#92;in&#92;mathbb{N}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=m%5Cin+S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in S_n' title='m&#92;in S_n' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=f%28m%29+%5Cnotin+S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(m) &#92;notin S_n' title='f(m) &#92;notin S_n' class='latex' />.  By Kleene&#8217;s Fixed Point Theorem (also known as <a href="http://en.wikipedia.org/wiki/Kleene%27s_recursion_theorem">Kleene&#8217;s Recursion Theorem</a>), there is an <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' /> such the <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' />th Turing machine behaves the same as the <img src='http://s0.wp.com/latex.php?latex=f%28m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(m)' title='f(m)' class='latex' />th Turing machine.  For this particular <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' /> we then have that <img src='http://s0.wp.com/latex.php?latex=m%5Cin+S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in S_n' title='m&#92;in S_n' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=m%5Cnotin+S_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;notin S_n' title='m&#92;notin S_n' class='latex' />, which is a contradiction.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=198&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/10/26/another-puzzle-in-recursion-theory-n-enumerable-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Two Puzzles in Recursion Theory: Verbose Sets and Terse Sets</title>
		<link>http://xorshammer.com/2008/10/16/two-puzzles-in-recursion-theory-verbose-sets-and-terse-sets/</link>
		<comments>http://xorshammer.com/2008/10/16/two-puzzles-in-recursion-theory-verbose-sets-and-terse-sets/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 23:16:05 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Puzzles]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=194</guid>
		<description><![CDATA[Let be the set of all such that the th Turing machine halts. (For these puzzles, we will assume that Turing machines are always run on a blank initial state, i.e., they take no input.) Recall that is computably enumerable, &#8230; <a href="http://xorshammer.com/2008/10/16/two-puzzles-in-recursion-theory-verbose-sets-and-terse-sets/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=194&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <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' /> be the set of all <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' /> such 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 Turing machine halts.  (For these puzzles, we will assume that Turing machines are always run on a blank initial state, i.e., they take no input.) Recall that <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 computably enumerable, but not decidable.</p>
<p><strong>Puzzle #1.</strong> Describe a winning strategy for the following game: You are given three numbers <img src='http://s0.wp.com/latex.php?latex=x_1%2C+x_2%2C+x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, x_2, x_3' title='x_1, x_2, x_3' class='latex' />.  You must correctly say for each number whether or not it is in <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' />.  You are allowed to ask (and receive a truthful answer to) two questions of the form &#8220;Is <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' /> in K?&#8221; for any <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' />.</p>
<p><strong>Puzzle #2.</strong> Show that there is <em>no</em> winning strategy for the game which is the same as that in Puzzle #1 except you are given two numbers and may ask only one question.  (Even stronger, show that if <img src='http://s0.wp.com/latex.php?latex=S%5Csubset+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subset &#92;mathbb{N}' title='S&#92;subset &#92;mathbb{N}' class='latex' /> is a set such that you <em>can</em> win that game, then <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> must be decidable.)</p>
<p><span id="more-194"></span></p>
<p>These puzzles are special cases of more general questions answered in <a href="http://knight.cis.temple.edu/~beigel/papers/bggo-queries-ic.html">Terse sets, superterse sets, and verbose sets</a> by Richard Beigel, William Gasarch, John Gill, and James Owings.  I also suggest looking at Richard Beigel&#8217;s <a href="http://www.cis.temple.edu/~beigel/long.html">page of online papers</a>, which has a lot of interesting stuff.</p>
<p>I read about this first in Piergiorgio Odifreddi&#8217;s book &#8220;Classical Recursion Theory, Volume 1.&#8221;</p>
<p><strong>Answer #1.</strong> The first thing to do is to find out how many of <img src='http://s0.wp.com/latex.php?latex=x_1%2C+x_2%2C+x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, x_2, x_3' title='x_1, x_2, x_3' class='latex' /> are in <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' />.  To do this, let <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' /> be such that the <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' />th Turing machine simulates the <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1' title='x_1' class='latex' />th, <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_2' title='x_2' class='latex' />th and <img src='http://s0.wp.com/latex.php?latex=x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_3' title='x_3' class='latex' />th Turing machines in parallel, and halts after any two of them halt.</p>
<p>By asking if <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 in <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' />, you will find out either that there are two or more or that there are one or less of <img src='http://s0.wp.com/latex.php?latex=x_1%2C+x_2%2C+x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, x_2, x_3' title='x_1, x_2, x_3' class='latex' /> in <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' />.   Use a similar second question to find out exactly how many of <img src='http://s0.wp.com/latex.php?latex=x_1%2C+x_2%2C+x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, x_2, x_3' title='x_1, x_2, x_3' class='latex' /> are in <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' />.</p>
<p>Once you know how many of <img src='http://s0.wp.com/latex.php?latex=x_1%2C+x_2%2C+x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, x_2, x_3' title='x_1, x_2, x_3' class='latex' /> are in <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' />, just run the <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1' title='x_1' class='latex' />th, <img src='http://s0.wp.com/latex.php?latex=x_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_2' title='x_2' class='latex' />th, and <img src='http://s0.wp.com/latex.php?latex=x_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_3' title='x_3' class='latex' />th Turing machines in parallel, and wait until all the ones that are going to halt do halt.  Then you will know which of them are in <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' />.</p>
<p><strong>Answer #2</strong>. Suppose that you have a winning strategy, and I&#8217;ll show how to compute <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=f%5Ex_%7B%5Ctext%7Bno%7D%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^x_{&#92;text{no}}(x,y)' title='f^x_{&#92;text{no}}(x,y)' class='latex' /> be the function which, given <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' />, returns the guess for whether or not <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 in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />, supposing that you received a &#8220;no&#8221; answer to whatever question your strategy decided to ask.  Similarly define <img src='http://s0.wp.com/latex.php?latex=f%5Ey_%7B%5Ctext%7Bno%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^y_{&#92;text{no}}' title='f^y_{&#92;text{no}}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%5Ex_%7B%5Ctext%7Byes%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^x_{&#92;text{yes}}' title='f^x_{&#92;text{yes}}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=f%5Ey_%7B%5Ctext%7Byes%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^y_{&#92;text{yes}}' title='f^y_{&#92;text{yes}}' class='latex' />.</p>
<p>Either it is the case that for all <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' /> there is a <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' /> such that <img src='http://s0.wp.com/latex.php?latex=f_%7B%5Ctext%7Bno%7D%7D%5Ex%28x%2Cy%29+%3D+f_%7B%5Ctext%7Byes%7D%7D%5Ex%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_{&#92;text{no}}^x(x,y) = f_{&#92;text{yes}}^x(x,y)' title='f_{&#92;text{no}}^x(x,y) = f_{&#92;text{yes}}^x(x,y)' class='latex' /> or it isn&#8217;t.  Suppose first that it is.  Then given <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' />, we may compute whether or not is in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> by searching for such a <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' /> and computing <img src='http://s0.wp.com/latex.php?latex=f_%7B%5Ctext%7Bno%7D%7D%5Ex%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_{&#92;text{no}}^x(x,y)' title='f_{&#92;text{no}}^x(x,y)' class='latex' /> (which equals <img src='http://s0.wp.com/latex.php?latex=f_%7B%5Ctext%7Byes%7D%7D%5Ex%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_{&#92;text{yes}}^x(x,y)' title='f_{&#92;text{yes}}^x(x,y)' class='latex' />).  This must be the correct guess since either &#8220;yes&#8221; or &#8220;no&#8221; must be the correct answer to whatever question the strategy asked.</p>
<p>Now suppose that there is an <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' /> such that for all <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' />, <img src='http://s0.wp.com/latex.php?latex=f_%7B%5Ctext%7Bno%7D%7D%5Ex%28x%2Cy%29%5Cne+f_%7B%5Ctext%7Byes%7D%7D%5Ex%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_{&#92;text{no}}^x(x,y)&#92;ne f_{&#92;text{yes}}^x(x,y)' title='f_{&#92;text{no}}^x(x,y)&#92;ne f_{&#92;text{yes}}^x(x,y)' class='latex' />.  Since <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 just a single number, we can assume that we know whether or not it&#8217;s in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.  Then, given any <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' />, since <img src='http://s0.wp.com/latex.php?latex=f_%7B%5Ctext%7Bno%7D%7D%5Ex%28x%2Cy%29%5Cne+f_%7B%5Ctext%7Byes%7D%7D%5Ex%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_{&#92;text{no}}^x(x,y)&#92;ne f_{&#92;text{yes}}^x(x,y)' title='f_{&#92;text{no}}^x(x,y)&#92;ne f_{&#92;text{yes}}^x(x,y)' class='latex' /> we know which of them is correct, hence we know whether &#8220;yes&#8221; or &#8220;no&#8221; is the correct answer to the question that the strategy would pose.  Hence we can compute its correct guess as to whether or not <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 in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.</p>
<p><strong>Additional Results.</strong> The paper linked above gives generalizations of both puzzles: You can find out whether any set of <img src='http://s0.wp.com/latex.php?latex=2%5En+-+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^n - 1' title='2^n - 1' class='latex' /> numbers is in <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' /> by asking <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' /> questions (by the same strategy of determining how many of them are in <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' />), and, for any <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />, if you can determine whether any set of <img src='http://s0.wp.com/latex.php?latex=2%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^n' title='2^n' class='latex' /> numbers is in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> by asking <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' /> questions then <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is decidable.</p>
<p>The authors call a set <em>verbose</em> if it is such that you can determine whether any set of <img src='http://s0.wp.com/latex.php?latex=2%5En+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^n -1' title='2^n -1' class='latex' /> numbers is in that set by asking <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' /> questions.  They call it <em>terse</em> if you need <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' /> questions to determine whether or not <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' /> numbers are in the set.  They are show a number of interesting results about these, mainly along the lines that (very roughly) lots of both kinds exist, and in lots of different places.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=194&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/10/16/two-puzzles-in-recursion-theory-verbose-sets-and-terse-sets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>When are the Real Numbers Necessary?</title>
		<link>http://xorshammer.com/2008/10/13/when-are-the-real-numbers-necessary/</link>
		<comments>http://xorshammer.com/2008/10/13/when-are-the-real-numbers-necessary/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 02:44:18 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=184</guid>
		<description><![CDATA[The natural numbers can all be finitely represented, as can the rational numbers. The real numbers, however, cannot be so represented and require some notion of &#8220;infinity&#8221; to define. This makes it both computationally and philosophically interesting to determine for &#8230; <a href="http://xorshammer.com/2008/10/13/when-are-the-real-numbers-necessary/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=184&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The natural numbers can all be finitely represented, as can the rational numbers.  The real numbers, however, cannot be so represented and require some notion of &#8220;infinity&#8221; to define.  This makes it both computationally and philosophically interesting to determine for what purposes you need the real numbers, and for what purposes you need only the rationals.</p>
<p>It&#8217;s pretty clear that spatial concepts having to do with distances and rotation require the real numbers.  For example, if we took <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}^2' title='&#92;mathbb{Q}^2' class='latex' /> as our model of the plane, the distance from <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0)' title='(0,0)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%281%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1,1)' title='(1,1)' class='latex' /> would not be rational, and we would not be able to rotate the point <img src='http://s0.wp.com/latex.php?latex=%281%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1,0)' title='(1,0)' class='latex' /> about the point <img src='http://s0.wp.com/latex.php?latex=%280%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,0)' title='(0,0)' class='latex' /> by most angles.</p>
<p>But I always implicitly thought that spatial notions not depending on distances or angles required only the rationals. It turns out that I was wrong: there are spatial notions not depending on distances or angles which differ depending on whether you take space to be <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}^n' title='&#92;mathbb{Q}^n' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^n' title='&#92;mathbb{R}^n' class='latex' />.  The fact that I was wrong follows from a theorem of Micha Perles which is very famous in combinatorics, but which I only found out about recently.</p>
<p><span id="more-184"></span></p>
<p>I found out because the combinatorialist <a href="http://www.math.umn.edu/~armstron/">Drew Armstrong</a> told me about it, and he referred me to the online book <a href="http://www.math.umn.edu/~pak/book.htm">Lectures on Discrete and Polyhedral Geometry</a> by <a href="http://www.math.umn.edu/~pak/">Igor Pak</a>.</p>
<p>Actually, the fact that I was wrong follows just from a lemma in the proof of Perles&#8217;s result, which I will state before telling you what Perles&#8217;s main result was.</p>
<p>Consider the following system of points and lines (the image is stolen from Pak&#8217;s manuscript):</p>
<p><a href="http://xorshammer.files.wordpress.com/2008/10/reals1.png"><img class="aligncenter size-full wp-image-185" title="reals1" src="http://xorshammer.files.wordpress.com/2008/10/reals1.png?w=500" alt=""   /></a></p>
<p>The lemma is then that while there is a collinearity- and noncollinearity-preserving embedding of this diagram into <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^2' title='&#92;mathbb{R}^2' class='latex' />, there is not one into <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BQ%7D%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Q}^2' title='&#92;mathbb{Q}^2' class='latex' />.  Note that the question of a collinearity- and noncollinearity-preserving embedding of the diagram says nothing about angles or distances.  The proof is simply to assume that there is a rational embedding, then to find a rational transformation of the configuration to one where you know that one of the points has an irrational coordinate.  This proof appears on page 108 of Pak&#8217;s book.</p>
<p>Perles&#8217;s main theorem is the following, and I think it&#8217;s quite striking: A <em>polytope</em> is the convex hull of a finite set of points in some <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^n' title='&#92;mathbb{R}^n' class='latex' />, where we consider two polytopes equivalent if they are combinatorially equivalent: i.e., if there is a bijection between the two sets of vertices such that if one pair of vertices has an edge between them, the corresponding pair does as well, etc.  Then for all dimensions <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' /> greater than 3, there is an <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' />-dimensional polytope which is <em>not</em> equivalent to one which is the convex hull of a set of points with only rational coordinates.</p>
<p>The discussion of this in Pak&#8217;s book is in Part I, Section 12.5.</p>
<p>Edit: I removed a paragraph on planar graphs because it didn&#8217;t really fit the article, and I took out the phrase &#8220;purely combinatorial property,&#8221; which was misleading and probably incorrect.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=184&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/10/13/when-are-the-real-numbers-necessary/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2008/10/reals1.png" medium="image">
			<media:title type="html">reals1</media:title>
		</media:content>
	</item>
		<item>
		<title>What Would the World Look Like if Everything was Computable?: An Introduction to Hyland&#8217;s Effective Topos</title>
		<link>http://xorshammer.com/2008/10/13/what-would-the-world-look-like-if-everything-was-computable-an-introduction-to-hylands-effective-topos/</link>
		<comments>http://xorshammer.com/2008/10/13/what-would-the-world-look-like-if-everything-was-computable-an-introduction-to-hylands-effective-topos/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 00:48:39 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Toposes]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=177</guid>
		<description><![CDATA[Suppose that we wanted to construct a mathematical universe where all objects were computable in some sense. How would we do it? Well, we could certainly allow the set into our universe: natural numbers are the most basic computational objects &#8230; <a href="http://xorshammer.com/2008/10/13/what-would-the-world-look-like-if-everything-was-computable-an-introduction-to-hylands-effective-topos/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=177&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose that we wanted to construct a mathematical universe where all objects were computable in some sense.  How would we do it?</p>
<p>Well, we could certainly allow the set <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> into our universe: natural numbers are the most basic computational objects there are.  (Notation: I&#8217;ll use <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' /> to refer to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> when we&#8217;re considering it as part of the universe we&#8217;ll building, and just <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> when we&#8217;re talking about the set of natural numbers in the &#8220;real&#8221; world.)  What should we take as our set of functions <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> from <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' /> to <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' />?  Since we want to admit only computable things, we should let <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> be the set of computable functions from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />, which we can represent non-uniquely by their indices (i.e., by the programs which compute them).</p>
<p>(For clarity, I&#8217;ll use the following notation for computable functions: <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e' title='&#92;phi_e' class='latex' /> denotes the partial function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> computed by the <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' />th Turing machine. Given <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' />, it is possible that the computation <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n)' title='&#92;phi_e(n)' class='latex' /> never halts; in that case, I&#8217;ll write <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29%7B%5Cuparrow%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n){&#92;uparrow}' title='&#92;phi_e(n){&#92;uparrow}' class='latex' /> and say that <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n)' title='&#92;phi_e(n)' class='latex' /> is undefined.  If it does halt, I&#8217;ll write <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29%7B%5Cdownarrow%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n){&#92;downarrow}' title='&#92;phi_e(n){&#92;downarrow}' class='latex' /> and say that <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n)' title='&#92;phi_e(n)' class='latex' /> is defined.  If it halts, then it yields an output <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 indicate what it is, I&#8217;ll write <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29+%3D+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n) = m' title='&#92;phi_e(n) = m' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29%7B%5Cdownarrow%7D+%3D+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n){&#92;downarrow} = m' title='&#92;phi_e(n){&#92;downarrow} = m' class='latex' />.)</p>
<p>So, we&#8217;ve decided that <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> should equal <img src='http://s0.wp.com/latex.php?latex=%5C%7Be+%5Cmid+%5Cforall+n%5Cin%5Cmathbb%7BN%7D%5C%2C+%5Cphi_e%28n%29%7B%5Cdownarrow%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{e &#92;mid &#92;forall n&#92;in&#92;mathbb{N}&#92;, &#92;phi_e(n){&#92;downarrow}&#92;}' title='&#92;{e &#92;mid &#92;forall n&#92;in&#92;mathbb{N}&#92;, &#92;phi_e(n){&#92;downarrow}&#92;}' class='latex' />.  What should <img src='http://s0.wp.com/latex.php?latex=N%5E%7B%5Cleft%28N%5EN%5Cright%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^{&#92;left(N^N&#92;right)}' title='N^{&#92;left(N^N&#92;right)}' class='latex' /> equal?  At this point, there is a slight subtlety: It&#8217;s not simply the set of computable functions from <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> (considered as a subset of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />) to <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' /> (considered 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' />), because we would like to only admit those functions from <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> to <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' /> that return the same number when given inputs which represent the same element of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^&#92;mathbb{N}' title='&#92;mathbb{N}^&#92;mathbb{N}' class='latex' />.</p>
<p>Therefore, we&#8217;ll let <img src='http://s0.wp.com/latex.php?latex=N%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^{(N^N)}' title='N^{(N^N)}' class='latex' /> be the set of <img src='http://s0.wp.com/latex.php?latex=e%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e&#92;in&#92;mathbb{N}' title='e&#92;in&#92;mathbb{N}' class='latex' /> such that, for all <img src='http://s0.wp.com/latex.php?latex=n%5Cin+N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in N^N' title='n&#92;in N^N' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29%7B%5Cdownarrow%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n){&#92;downarrow}' title='&#92;phi_e(n){&#92;downarrow}' class='latex' />, and whenever <img src='http://s0.wp.com/latex.php?latex=n%2Cm%5Cin+N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n,m&#92;in N^N' title='n,m&#92;in N^N' class='latex' /> are such that for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in&#92;mathbb{N}' title='x&#92;in&#92;mathbb{N}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cphi_n%28x%29+%3D+%5Cphi_m%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_n(x) = &#92;phi_m(x)' title='&#92;phi_n(x) = &#92;phi_m(x)' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29+%3D+%5Cphi_e%28m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n) = &#92;phi_e(m)' title='&#92;phi_e(n) = &#92;phi_e(m)' class='latex' />.</p>
<p>We can similarly define <img src='http://s0.wp.com/latex.php?latex=%28N%5EN%29%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(N^N)^{(N^N)}' title='(N^N)^{(N^N)}' class='latex' />, except that there are now two places where we should take into account that we consider <img src='http://s0.wp.com/latex.php?latex=n%2Cm%5Cin+N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n,m&#92;in N^N' title='n,m&#92;in N^N' class='latex' /> equivalent if for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in&#92;mathbb{N}' title='x&#92;in&#92;mathbb{N}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cphi_n%28x%29+%3D+%5Cphi_m%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_n(x) = &#92;phi_m(x)' title='&#92;phi_n(x) = &#92;phi_m(x)' class='latex' />:  We&#8217;ll let <img src='http://s0.wp.com/latex.php?latex=%28N%5EN%29%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(N^N)^{(N^N)}' title='(N^N)^{(N^N)}' class='latex' /> be the set of <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' /> such that, whenever <img src='http://s0.wp.com/latex.php?latex=n%2C+m+%5Cin+N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n, m &#92;in N^N' title='n, m &#92;in N^N' class='latex' /> are equivalent in the aforementioned sense, <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n)' title='&#92;phi_e(n)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(m)' title='&#92;phi_e(m)' class='latex' /> are defined and equivalent in the aforementioned sense.</p>
<p>In a similar fashion, we can define <img src='http://s0.wp.com/latex.php?latex=%28N%5E%7B%28N%5EN%29%7D%29%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(N^{(N^N)})^{(N^N)}' title='(N^{(N^N)})^{(N^N)}' class='latex' /> and so on; these sets are called the sets of hereditarily computable functions.</p>
<p>Can we generalize this construction to a category that incorporates all possible computable representations of real objects?  More ambitiously, can we generalize to a category that is a genuine mathematical <em>universe</em> in the sense that questions like &#8220;Does the Riemann Hypothesis hold in this category?&#8221; are meaningful?  The answer, due to Martin Hyland, is yes.</p>
<p><span id="more-177"></span></p>
<p>This material is from <a href="http://www.math.uu.nl/people/jvoosten/">Jaap van Oosten</a>&#8216;s book &#8220;Realizability: A Categorical Perspective&#8221; (<a href="http://www.math.uu.nl/people/jvoosten/boekbegin.pdf">link to Preface, Introduction and Table of Contents</a>).  Unfortunately, I don&#8217;t know of a freely available explanation of the effective topos on the web, which is part of the reason why I&#8217;m writing this blog entry.  (If you know of one, please leave a comment. Edit: <a href="http://www.lfcs.inf.ed.ac.uk/reports/92/ECS-LFCS-92-208/">Found one.</a>)  However, the Stanford Encyclopedia of Philosophy has a pretty good <a href="http://plato.stanford.edu/entries/logic-intuitionistic/#ReaSemForHeyAri">section</a> on the realizability interpretation of intuitionistic logic, on which Hyland&#8217;s effective topos is based.</p>
<p>Back to the math. Notice that what we did in the <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> case was the following: Although we represented the computable functions as a subset of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />, we still kept the &#8220;real&#8221; set <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^&#92;mathbb{N}' title='&#92;mathbb{N}^&#92;mathbb{N}' class='latex' /> hiding around in the background: we used it to determine what the appropriate elements of <img src='http://s0.wp.com/latex.php?latex=N%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^{(N^N)}' title='N^{(N^N)}' class='latex' /> should be: If two elements of <img src='http://s0.wp.com/latex.php?latex=N%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^N' title='N^N' class='latex' /> represented the same element of the &#8220;real set&#8221; <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^&#92;mathbb{N}' title='&#92;mathbb{N}^&#92;mathbb{N}' class='latex' />, then an element of <img src='http://s0.wp.com/latex.php?latex=N%5E%7B%28N%5EN%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N^{(N^N)}' title='N^{(N^N)}' class='latex' /> should assign the same number to both of them.</p>
<p>That suggests a generalization.  Let an<em> assembly</em> be a pair <img src='http://s0.wp.com/latex.php?latex=%28X%2CE%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,E)' title='(X,E)' class='latex' />, where <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 set, and <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> is 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=%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{P}(&#92;mathbb{N})' title='&#92;mathcal{P}(&#92;mathbb{N})' class='latex' />, the power set of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />.  We think of <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> as assigning to each element 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' /> its computable representations.  We let a morphism between two assemblies <img src='http://s0.wp.com/latex.php?latex=%28X%2CE%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,E)' title='(X,E)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%28Y%2CE%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Y,E&#039;)' title='(Y,E&#039;)' class='latex' /> be 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' /> such that there is an <img src='http://s0.wp.com/latex.php?latex=e%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e&#92;in &#92;mathbb{N}' title='e&#92;in &#92;mathbb{N}' class='latex' /> such that, whenever <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=n%5Cin+E%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in E(x)' title='n&#92;in E(x)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29%7B%5Cdownarrow%7D+%5Cin+E%27%28f%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n){&#92;downarrow} &#92;in E&#039;(f(x))' title='&#92;phi_e(n){&#92;downarrow} &#92;in E&#039;(f(x))' class='latex' />.</p>
<p>With these morphisms, the class of assemblies forms a category.  Let <img src='http://s0.wp.com/latex.php?latex=A%3D%28X%2CE_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A=(X,E_0)' title='A=(X,E_0)' class='latex' />  and  <img src='http://s0.wp.com/latex.php?latex=B%3D%28Y%2CE_1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B=(Y,E_1)' title='B=(Y,E_1)' class='latex' /> be two  assemblies.  Then they have a direct product <img src='http://s0.wp.com/latex.php?latex=A%5Ctimes+B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#92;times B' title='A&#92;times B' class='latex' /> given by <img src='http://s0.wp.com/latex.php?latex=%28X%5Ctimes+Y%2C+E_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X&#92;times Y, E_2)' title='(X&#92;times Y, E_2)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=E_2%28x%2Cy%29+%3D+%5C%7B+%5Clangle+n%2Cm%5Crangle+%5Cmid+n%5Cin+E_0%28x%29%5Ctext%7B+and+%7D+m%5Cin+E_1%28y%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_2(x,y) = &#92;{ &#92;langle n,m&#92;rangle &#92;mid n&#92;in E_0(x)&#92;text{ and } m&#92;in E_1(y)&#92;}' title='E_2(x,y) = &#92;{ &#92;langle n,m&#92;rangle &#92;mid n&#92;in E_0(x)&#92;text{ and } m&#92;in E_1(y)&#92;}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Clangle+%7B%5Ccdot%7D%2C+%7B%5Ccdot%7D%5Crangle+%5Ccolon+%5Cmathbb%7BN%7D%5E2+%5Cto+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;langle {&#92;cdot}, {&#92;cdot}&#92;rangle &#92;colon &#92;mathbb{N}^2 &#92;to &#92;mathbb{N}' title='&#92;langle {&#92;cdot}, {&#92;cdot}&#92;rangle &#92;colon &#92;mathbb{N}^2 &#92;to &#92;mathbb{N}' class='latex' /> is a <a href="http://en.wikipedia.org/wiki/Pairing_function">pairing function</a>.   They have an exponential <img src='http://s0.wp.com/latex.php?latex=A%5EB&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A^B' title='A^B' class='latex' /> given by <img src='http://s0.wp.com/latex.php?latex=%28X%5EY%2C+E_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X^Y, E_2)' title='(X^Y, E_2)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=E_2%28f%29+%3D+%5C%7Be%5Cmid+%5Cforall+y%5Cin+Y%5C%2C%5Cforall+m%5Cin+E_1%28y%29%5C%2C+%5Cphi_e%28m%29%7B%5Cdownarrow%7D%5Cin+E_0%28f%28y%29%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_2(f) = &#92;{e&#92;mid &#92;forall y&#92;in Y&#92;,&#92;forall m&#92;in E_1(y)&#92;, &#92;phi_e(m){&#92;downarrow}&#92;in E_0(f(y))&#92;}' title='E_2(f) = &#92;{e&#92;mid &#92;forall y&#92;in Y&#92;,&#92;forall m&#92;in E_1(y)&#92;, &#92;phi_e(m){&#92;downarrow}&#92;in E_0(f(y))&#92;}' class='latex' />.</p>
<p>If we 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 the assembly <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathbb%7BN%7D%2C+E%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathbb{N}, E)' title='(&#92;mathbb{N}, E)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=E%28n%29+%3D+%5C%7Bn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(n) = &#92;{n&#92;}' title='E(n) = &#92;{n&#92;}' class='latex' />, then the iterated exponential objects 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' /> correspond precisely to our initial definition of the sets of hereditarily computable objects above.</p>
<p>This is all great, but we still can&#8217;t call the category of assemblies a mathematical <em>universe</em>.  Why not? Well, in the real world, we ask questions like &#8220;Is the Riemann Hypothesis true?&#8221;,  &#8220;Is Goldbach&#8217;s conjecture true&#8221;, etc., but we don&#8217;t yet know how to ask questions like &#8220;Is the Riemann Hypothesis true <em>in the category of assemblies</em>?&#8221; any more than it makes sense to ask whether or not the Riemann Hypothesis is true in the group <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BZ%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Z}' title='&#92;mathbb{Z}' class='latex' /> or in the number 17.  What we need is a way to interpret statements being true or not in this category.</p>
<p>In turning the category of assemblies into one in which we can interpret logical statements, there are three considerations, each of which builds on the previous ones.</p>
<ol>
<li><strong>The object of truth values should have more than two elements.</strong> Let&#8217;s step back to the ordinary category of sets for a moment.  Say we have two sets <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> and an injection <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' />.  Given <img src='http://s0.wp.com/latex.php?latex=x%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in T' title='x&#92;in T' class='latex' />, what is the truth value of the proposition 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' /> is in the image of <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />?  Well, I don&#8217;t know, but it&#8217;s clearly either <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Btrue%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{true}' title='&#92;text{true}' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bfalse%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{false}' title='&#92;text{false}' class='latex' />.  But in the category of assemblies it&#8217;s more complicated due to the computational information we have lying around.  Say that we have an injective morphism from an assembly <img src='http://s0.wp.com/latex.php?latex=%28S%2CE%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(S,E)' title='(S,E)' class='latex' /> to an assembly <img src='http://s0.wp.com/latex.php?latex=%28T%2CE%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(T,E&#039;)' title='(T,E&#039;)' class='latex' />.  Given <img src='http://s0.wp.com/latex.php?latex=x%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in T' title='x&#92;in T' class='latex' />, now what is the truth value of the proposition 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' /> is in the image of <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />?  What if there is a <img src='http://s0.wp.com/latex.php?latex=y%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in S' title='y&#92;in S' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=i%28y%29+%3D+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i(y) = x' title='i(y) = x' class='latex' /> but <img src='http://s0.wp.com/latex.php?latex=E%28y%29%5Cne+E%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(y)&#92;ne E&#039;(x)' title='E(y)&#92;ne E&#039;(x)' class='latex' />?  Without resolving the issue now, one plausible answer is that the truth value should be the set of indices of all computable functions taking <img src='http://s0.wp.com/latex.php?latex=E%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(y)' title='E(y)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=E%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E&#039;(x)' title='E&#039;(x)' class='latex' />, so that the more &#8220;alike&#8221; <img src='http://s0.wp.com/latex.php?latex=E%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(y)' title='E(y)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=E%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(x)' title='E(x)' class='latex' />, the more &#8220;true&#8221; the proposition is, and furthermore this &#8220;alikeness&#8221; is represented in a computational way.  So, a working hypothesis is that the set of truth values should be something like <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{P}(&#92;mathbb{N})' title='&#92;mathcal{P}(&#92;mathbb{N})' class='latex' />.</li>
<li><strong>Objects should come equipped with an equivalence relation.</strong> In the category of assemblies, there is no question about whether or not two elements of a given object are equal.  If we are making a category where the object of truth values is something like <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{P}(&#92;mathbb{N})' title='&#92;mathcal{P}(&#92;mathbb{N})' class='latex' />, however, we should allow that the proposition that different elements are equal has a truth value in that object, rather than in the classical set <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Ctext%7Btrue%7D%2C+%5Ctext%7Bfalse%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;text{true}, &#92;text{false}&#92;}' title='&#92;{&#92;text{true}, &#92;text{false}&#92;}' class='latex' /> of truth values.  Therefore, objects should be something like <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' />, where <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 set and <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> is a map from <img src='http://s0.wp.com/latex.php?latex=X%5Ctimes+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X&#92;times X' title='X&#92;times X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{P}(&#92;mathbb{N})' title='&#92;mathcal{P}(&#92;mathbb{N})' class='latex' />.  (We can represent an assembly <img src='http://s0.wp.com/latex.php?latex=%28X%2CE%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,E)' title='(X,E)' class='latex' /> as the object <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' /> in our new category where <img src='http://s0.wp.com/latex.php?latex=x%5Csim+x+%3D+E%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;sim x = E(x)' title='x&#92;sim x = E(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x%5Csim+y%3D+%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;sim y= &#92;emptyset' title='x&#92;sim y= &#92;emptyset' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=x%5Cne+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;ne y' title='x&#92;ne y' class='latex' />).</li>
<li><strong>Morphisms should be more general than functions.</strong> If we&#8217;re allowing objects to come equipped with some sort of equivalence relation, we will have to let morphisms be more general than functions: 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 morphism from <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%28Y%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Y,&#92;sim)' title='(Y,&#92;sim)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28x%29+%3D+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x) = y' title='f(x) = y' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%5Csim+y%27%5Cne+%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;sim y&#039;&#92;ne &#92;emptyset' title='y&#92;sim y&#039;&#92;ne &#92;emptyset' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=f%28x%29+%3D+y%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x) = y&#039;' title='f(x) = y&#039;' class='latex' /> is also true to some degree.  So morphisms should probably be some sort of relation on <img src='http://s0.wp.com/latex.php?latex=X%5Ctimes+Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X&#92;times Y' title='X&#92;times Y' class='latex' /> that resembles a function in some way.</li>
</ol>
<p>Now, after listing all those (somewhat vague) considerations, I&#8217;ll describe the category that takes them into account.  It&#8217;s called the Effective Topos and it was discovered/invented by Martin Hyland.</p>
<p><strong>Description of the category</strong></p>
<p><strong></strong>The objects of the effective topos are pairs <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' /> where <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 set and <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> is a map from <img src='http://s0.wp.com/latex.php?latex=X%5Ctimes+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X&#92;times X' title='X&#92;times X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{P}(&#92;mathbb{N})' title='&#92;mathcal{P}(&#92;mathbb{N})' class='latex' />.  This map is required to satisfy the following properties:</p>
<ul>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=s%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#92;in&#92;mathbb{N}' title='s&#92;in&#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%2Cy%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x,y&#92;in X' title='x,y&#92;in X' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%28x%5Csim+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in (x&#92;sim y)' title='n&#92;in (x&#92;sim y)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_s%28n%29%7B%5Cdownarrow%7D+%5Cin+%28y%5Csim+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_s(n){&#92;downarrow} &#92;in (y&#92;sim x)' title='&#92;phi_s(n){&#92;downarrow} &#92;in (y&#92;sim x)' class='latex' />.</li>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=t%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t&#92;in &#92;mathbb{N}' title='t&#92;in &#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%2Cy%2Cz%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x,y,z&#92;in X' title='x,y,z&#92;in X' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%28x%5Csim+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in (x&#92;sim y)' title='n&#92;in (x&#92;sim y)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=m%5Cin+%28y%5Csim+z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in (y&#92;sim z)' title='m&#92;in (y&#92;sim z)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_t%28%5Clangle+n%2Cm%5Crangle%29%5Cin+%28x%5Csim+z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_t(&#92;langle n,m&#92;rangle)&#92;in (x&#92;sim z)' title='&#92;phi_t(&#92;langle n,m&#92;rangle)&#92;in (x&#92;sim z)' class='latex' />.</li>
</ul>
<p>(In the above, <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' /> stands for &#8220;symmetric&#8221; and <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> stands for &#8220;transitive.&#8221;)</p>
<p>A morphism from <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%28Y%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Y,&#92;sim)' title='(Y,&#92;sim)' class='latex' /> is represented by a function <img src='http://s0.wp.com/latex.php?latex=F%5Ccolon+X%5Ctimes+Y%5Cto+%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#92;colon X&#92;times Y&#92;to &#92;mathcal{P}(&#92;mathbb{N})' title='F&#92;colon X&#92;times Y&#92;to &#92;mathcal{P}(&#92;mathbb{N})' class='latex' /> satisfying the following:</p>
<ul>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=st%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st&#92;in &#92;mathbb{N}' title='st&#92;in &#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y%5Cin+Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in Y' title='y&#92;in Y' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+F%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in F(x,y)' title='n&#92;in F(x,y)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bst%7D%28n%29+%3D+%5Clangle+m%2Cp%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{st}(n) = &#92;langle m,p&#92;rangle' title='&#92;phi_{st}(n) = &#92;langle m,p&#92;rangle' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=m%5Cin+%28x%5Csim+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in (x&#92;sim x)' title='m&#92;in (x&#92;sim x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%5Cin+%28y%5Csim+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;in (y&#92;sim y)' title='p&#92;in (y&#92;sim y)' class='latex' />.</li>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=rl%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='rl&#92;in&#92;mathbb{N}' title='rl&#92;in&#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%2Cx%27%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x,x&#039;&#92;in X' title='x,x&#039;&#92;in X' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y%2Cy%27%5Cin+Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y,y&#039;&#92;in Y' title='y,y&#039;&#92;in Y' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%28x%5Csim+x%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in (x&#92;sim x&#039;)' title='n&#92;in (x&#92;sim x&#039;)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=m%5Cin+F%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in F(x,y)' title='m&#92;in F(x,y)' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=p%5Cin+%28y%5Csim+y%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p&#92;in (y&#92;sim y&#039;)' title='p&#92;in (y&#92;sim y&#039;)' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Brl%7D%28%5Clangle+n%2Cm%2Cp%5Crangle%29+%5Cin+F%28x%27%2Cy%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{rl}(&#92;langle n,m,p&#92;rangle) &#92;in F(x&#039;,y&#039;)' title='&#92;phi_{rl}(&#92;langle n,m,p&#92;rangle) &#92;in F(x&#039;,y&#039;)' class='latex' />.</li>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=sv%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='sv&#92;in&#92;mathbb{N}' title='sv&#92;in&#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y%2Cy%27%5Cin+Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y,y&#039;&#92;in Y' title='y,y&#039;&#92;in Y' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+F%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in F(x,y)' title='n&#92;in F(x,y)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=m%5Cin+F%28x%2Cy%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m&#92;in F(x,y&#039;)' title='m&#92;in F(x,y&#039;)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bsv%7D%28%5Clangle+n%2Cm%5Crangle%29%5Cin+%28y%5Csim+y%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{sv}(&#92;langle n,m&#92;rangle)&#92;in (y&#92;sim y&#039;)' title='&#92;phi_{sv}(&#92;langle n,m&#92;rangle)&#92;in (y&#92;sim y&#039;)' class='latex' />.</li>
<li>There must be a number <img src='http://s0.wp.com/latex.php?latex=tl%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='tl&#92;in &#92;mathbb{N}' title='tl&#92;in &#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%28x%5Csim+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in (x&#92;sim x)' title='n&#92;in (x&#92;sim x)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Btl%7D%28x%29%7B%5Cdownarrow%7D%5Cin+%5Cbigcup_%7By%5Cin+Y%7DF%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{tl}(x){&#92;downarrow}&#92;in &#92;bigcup_{y&#92;in Y}F(x,y)' title='&#92;phi_{tl}(x){&#92;downarrow}&#92;in &#92;bigcup_{y&#92;in Y}F(x,y)' class='latex' />.</li>
</ul>
<p>(In the above, <img src='http://s0.wp.com/latex.php?latex=st&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='st' title='st' class='latex' /> stands for &#8220;strict,&#8221; <img src='http://s0.wp.com/latex.php?latex=rl&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='rl' title='rl' class='latex' /> stands for &#8220;relational,&#8221; <img src='http://s0.wp.com/latex.php?latex=sv&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='sv' title='sv' class='latex' /> stands for &#8220;single-valued&#8221; and <img src='http://s0.wp.com/latex.php?latex=tl&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='tl' title='tl' class='latex' /> stands for &#8220;total.&#8221;)</p>
<p>We say that two such representations <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' /> and <img src='http://s0.wp.com/latex.php?latex=F%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#039;' title='F&#039;' class='latex' /> are equivalent if there exist <img src='http://s0.wp.com/latex.php?latex=e_0%2Ce_1%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e_0,e_1&#92;in &#92;mathbb{N}' title='e_0,e_1&#92;in &#92;mathbb{N}' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y%5Cin+Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in Y' title='y&#92;in Y' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+F%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in F(x,y)' title='n&#92;in F(x,y)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Be_0%7D%28n%29%7B%5Cdownarrow%7D%5Cin+F%27%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{e_0}(n){&#92;downarrow}&#92;in F&#039;(x,y)' title='&#92;phi_{e_0}(n){&#92;downarrow}&#92;in F&#039;(x,y)' class='latex' /> and conversely if <img src='http://s0.wp.com/latex.php?latex=n%5Cin+F%27%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in F&#039;(x,y)' title='n&#92;in F&#039;(x,y)' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Be_1%7D%28n%29%7B%5Cdownarrow%7D%5Cin+F%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{e_1}(n){&#92;downarrow}&#92;in F(x,y)' title='&#92;phi_{e_1}(n){&#92;downarrow}&#92;in F(x,y)' class='latex' />.  (Thus, a morphism in the Effective Topos is actually an equivalence class of representations as above.)</p>
<p>Figuring out how to compose such morphisms is an exercise left to the websurfer.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%28X%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X,&#92;sim)' title='(X,&#92;sim)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%28Y%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Y,&#92;sim)' title='(Y,&#92;sim)' class='latex' /> be two objects.  Their direct product is given by <img src='http://s0.wp.com/latex.php?latex=%28X%5Ctimes+Y%2C+%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(X&#92;times Y, &#92;sim)' title='(X&#92;times Y, &#92;sim)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29%5Csim+%28x%27%2Cy%27%29+%3D+%28x%5Csim+x%27%29%5Ctimes+%28y%5Csim+y%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,y)&#92;sim (x&#039;,y&#039;) = (x&#92;sim x&#039;)&#92;times (y&#92;sim y&#039;)' title='(x,y)&#92;sim (x&#039;,y&#039;) = (x&#92;sim x&#039;)&#92;times (y&#92;sim y&#039;)' class='latex' />.  To form the exponential <img src='http://s0.wp.com/latex.php?latex=%28Y%2C%5Csim%29%5E%7B%28X%2C%5Csim%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Y,&#92;sim)^{(X,&#92;sim)}' title='(Y,&#92;sim)^{(X,&#92;sim)}' class='latex' />, take the object <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29%5E%7BX%5Ctimes+Y%7D%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathcal{P}(&#92;mathbb{N})^{X&#92;times Y},&#92;sim)' title='(&#92;mathcal{P}(&#92;mathbb{N})^{X&#92;times Y},&#92;sim)' class='latex' />, where in the definition of <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' />, you emulate the definition of a morphism given above.</p>
<p>The object of truth values (often denoted <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> in any topos) is <img src='http://s0.wp.com/latex.php?latex=%28%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;mathcal{P}(&#92;mathbb{N}),&#92;sim)' title='(&#92;mathcal{P}(&#92;mathbb{N}),&#92;sim)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=S%5Csim+T+%3D+%5C%7B%5Clangle+e_0%2Ce_1%5Crangle+%5Cmid+%5Cforall+n%5Cin+S%5C%2C%5Cphi_%7Be_0%7D%28n%29%7B%5Cdownarrow%7D%5Cin+T%5Ctext%7B+and+%7D%5Cforall+m%5Cin+T%5C%2C%5Cphi_%7Be_1%7D%28m%29%7B%5Cdownarrow%7D%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;sim T = &#92;{&#92;langle e_0,e_1&#92;rangle &#92;mid &#92;forall n&#92;in S&#92;,&#92;phi_{e_0}(n){&#92;downarrow}&#92;in T&#92;text{ and }&#92;forall m&#92;in T&#92;,&#92;phi_{e_1}(m){&#92;downarrow}&#92;in S' title='S&#92;sim T = &#92;{&#92;langle e_0,e_1&#92;rangle &#92;mid &#92;forall n&#92;in S&#92;,&#92;phi_{e_0}(n){&#92;downarrow}&#92;in T&#92;text{ and }&#92;forall m&#92;in T&#92;,&#92;phi_{e_1}(m){&#92;downarrow}&#92;in S' class='latex' />.</p>
<p>The object <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> playing the role of a singleton set is <img src='http://s0.wp.com/latex.php?latex=%28%5C%7B0%5C%7D%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;{0&#92;},&#92;sim)' title='(&#92;{0&#92;},&#92;sim)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=0%5Csim+0+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0&#92;sim 0 = &#92;{0&#92;}' title='0&#92;sim 0 = &#92;{0&#92;}' class='latex' />.</p>
<p>The map from <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> representing the truth value <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Btrue%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{true}' title='&#92;text{true}' class='latex' /> is given by the equivalence class of the map  <img src='http://s0.wp.com/latex.php?latex=F%5Ccolon+%5C%7B0%5C%7D%5Ctimes+%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29%5Cto%5Cmathcal%7BP%7D%28%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#92;colon &#92;{0&#92;}&#92;times &#92;mathcal{P}(&#92;mathbb{N})&#92;to&#92;mathcal{P}(&#92;mathbb{N})' title='F&#92;colon &#92;{0&#92;}&#92;times &#92;mathcal{P}(&#92;mathbb{N})&#92;to&#92;mathcal{P}(&#92;mathbb{N})' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=%280%2CS%29%5Cmapsto+%28S%5Cequiv+%5Cmathbb%7BN%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0,S)&#92;mapsto (S&#92;equiv &#92;mathbb{N})' title='(0,S)&#92;mapsto (S&#92;equiv &#92;mathbb{N})' class='latex' />.</p>
<p>The natural numbers object of the effective topos is <img src='http://s0.wp.com/latex.php?latex=N+%3D+%28%5Cmathbb%7BN%7D%2C%5Csim%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N = (&#92;mathbb{N},&#92;sim)' title='N = (&#92;mathbb{N},&#92;sim)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=n%5Csim+n+%3D+%5C%7Bn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;sim n = &#92;{n&#92;}' title='n&#92;sim n = &#92;{n&#92;}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=n%5Csim+m+%3D+%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;sim m = &#92;emptyset' title='n&#92;sim m = &#92;emptyset' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=n%5Cne+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;ne m' title='n&#92;ne m' class='latex' />.</p>
<p><strong>Interpretation of logical formulas in the effective topos.</strong></p>
<p>I&#8217;ll now describe how logical formulas can be interpreted in Hyland&#8217;s effective topos.  If <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> are variables intended to range over the objects <img src='http://s0.wp.com/latex.php?latex=X_1%2C%5Cldots%2C+X_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1,&#92;ldots, X_n' title='X_1,&#92;ldots, X_n' class='latex' /> respectively and <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x_1,&#92;ldots, x_n)' title='&#92;phi(x_1,&#92;ldots, x_n)' class='latex' /> is a formula with free variables from <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx_1%2C%5Cldots%2Cx_n%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x_1,&#92;ldots,x_n&#92;}' title='&#92;{x_1,&#92;ldots,x_n&#92;}' class='latex' />, then I&#8217;ll show how to find a map <img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cphi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;phi&#92;|' title='&#92;|&#92;phi&#92;|' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=X_1%5Ctimes+%5Ccdots+X_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1&#92;times &#92;cdots X_n' title='X_1&#92;times &#92;cdots X_n' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> interpreting that formula.  If <img src='http://s0.wp.com/latex.php?latex=n+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n = 0' title='n = 0' class='latex' />, and thus the formula has no free variables and is a sentence, then the interpretation will give a map from <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' />.  We say that a sentence holds in the effective topos if its interpretation is equal to the map <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Btrue%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{true}' title='&#92;text{true}' class='latex' /> defined above.</p>
<p>The only atomic relation is equality, and the interpretation of atomic formulas is given by the <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> component of the objects of the effective topos.</p>
<p>For clarity, assume that <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' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi' title='&#92;psi' class='latex' /> contain only one free variable, and that it ranges over the object <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 we know the interpretations of <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' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cpsi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi' title='&#92;psi' class='latex' /> already, then we have the following:</p>
<ul>
<li> <img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cphi%5Cwedge%5Cpsi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;phi&#92;wedge&#92;psi&#92;|' title='&#92;|&#92;phi&#92;wedge&#92;psi&#92;|' class='latex' /> is represented by the map taking <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Clangle+n%2Cm%5Crangle+%5Cmid+n%5Cin+%5C%7Cphi%5C%7C%28x%29%2Cm%5Cin%5C%7C%5Cpsi%5C%7C%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;langle n,m&#92;rangle &#92;mid n&#92;in &#92;|phi&#92;|(x),m&#92;in&#92;|&#92;psi&#92;|(x)&#92;}' title='&#92;{&#92;langle n,m&#92;rangle &#92;mid n&#92;in &#92;|phi&#92;|(x),m&#92;in&#92;|&#92;psi&#92;|(x)&#92;}' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cphi%5Cvee%5Cpsi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;phi&#92;vee&#92;psi&#92;|' title='&#92;|&#92;phi&#92;vee&#92;psi&#92;|' class='latex' /> is represented by the map taking <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Clangle+0%2Cn%5Cmid+n%5Cin+%5C%7C%5Cphi%5C%7C%28x%29%5C%7D%5Ccup+%5C%7B%5Clangle+1%2Cm%5Cmid+m%5Cin+%5C%7C%5Cpsi%5C%7C%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;langle 0,n&#92;mid n&#92;in &#92;|&#92;phi&#92;|(x)&#92;}&#92;cup &#92;{&#92;langle 1,m&#92;mid m&#92;in &#92;|&#92;psi&#92;|(x)&#92;}' title='&#92;{&#92;langle 0,n&#92;mid n&#92;in &#92;|&#92;phi&#92;|(x)&#92;}&#92;cup &#92;{&#92;langle 1,m&#92;mid m&#92;in &#92;|&#92;psi&#92;|(x)&#92;}' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cphi%5Crightarrow+%5Cpsi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;phi&#92;rightarrow &#92;psi&#92;|' title='&#92;|&#92;phi&#92;rightarrow &#92;psi&#92;|' class='latex' /> is represented by the map taking <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=%5C%7Be%5Cmid+%5Cforall+n%5Cin+%5C%7C%5Cphi%5C%7C%28x%29%5C%2C+%5Cphi_e%28n%29%7B%5Cdownarrow%7D%5Cin%5C%7C%5Cpsi%5C%7C%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{e&#92;mid &#92;forall n&#92;in &#92;|&#92;phi&#92;|(x)&#92;, &#92;phi_e(n){&#92;downarrow}&#92;in&#92;|&#92;psi&#92;|(x)&#92;}' title='&#92;{e&#92;mid &#92;forall n&#92;in &#92;|&#92;phi&#92;|(x)&#92;, &#92;phi_e(n){&#92;downarrow}&#92;in&#92;|&#92;psi&#92;|(x)&#92;}' class='latex' />.</li>
</ul>
<p>Now suppose that <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' /> has two free variables ranging over <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' /> respectively, and I&#8217;ll show you how to interpret quantifiers.</p>
<ul>
<li><img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cexists_%7By%5Cin+Y%7D%5Cphi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;exists_{y&#92;in Y}&#92;phi&#92;|' title='&#92;|&#92;exists_{y&#92;in Y}&#92;phi&#92;|' class='latex' /> is represented by the map taking <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cbigcup_%7By%5Cin+Y%7D%5C%7C%5Cphi%5C%7C%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bigcup_{y&#92;in Y}&#92;|&#92;phi&#92;|(x,y)' title='&#92;bigcup_{y&#92;in Y}&#92;|&#92;phi&#92;|(x,y)' class='latex' />.</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5C%7C%5Cforall_%7By%5Cin+Y%7D%5Cphi%5C%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;|&#92;forall_{y&#92;in Y}&#92;phi&#92;|' title='&#92;|&#92;forall_{y&#92;in Y}&#92;phi&#92;|' class='latex' /> is represented by the map taking <img src='http://s0.wp.com/latex.php?latex=x%5Cin+X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in X' title='x&#92;in X' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7Be%5Cin+%5Cmathbb%7BN%7D%5Cmid+%5Cforall+n%5Cin+%5Cmathbb%7BN%7D%5Cforall+y%5Cin+Y%5C%2C+%5Cphi_e%28n%29%7B%5Cdownarrow%7D%5Cin+%5C%7C%5Cphi%5C%7C%28x%2Cy%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{e&#92;in &#92;mathbb{N}&#92;mid &#92;forall n&#92;in &#92;mathbb{N}&#92;forall y&#92;in Y&#92;, &#92;phi_e(n){&#92;downarrow}&#92;in &#92;|&#92;phi&#92;|(x,y)&#92;}' title='&#92;{e&#92;in &#92;mathbb{N}&#92;mid &#92;forall n&#92;in &#92;mathbb{N}&#92;forall y&#92;in Y&#92;, &#92;phi_e(n){&#92;downarrow}&#92;in &#92;|&#92;phi&#92;|(x,y)&#92;}' class='latex' />.</li>
</ul>
<p>Now, once we observe that we can interpret the power &#8220;set&#8221; of an object <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' /> in the effective topos as the exponential <img src='http://s0.wp.com/latex.php?latex=%5COmega%5EX&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega^X' title='&#92;Omega^X' class='latex' />, we know how to interpret all first- and higher-order sentences as holding or not in the effective topos.</p>
<p>Here are some interesting sentences given by Van Oosten that highlight some differences between the effective topos and the ordinary category of sets.</p>
<ul>
<li>Note that we may write the relation &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cphi_e%28n%29+%3D+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_e(n) = m' title='&#92;phi_e(n) = m' class='latex' />&#8221; as a relation on <img src='http://s0.wp.com/latex.php?latex=N%5Ctimes+N%5Ctimes+N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N&#92;times N&#92;times N' title='N&#92;times N&#92;times N' class='latex' /> in our language.  Then the sentence <img src='http://s0.wp.com/latex.php?latex=%5Cforall+f%5Cin+N%5EN%5Cexists+e%5Cin+N%5C%2C+%5Cphi_e+%3D+f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall f&#92;in N^N&#92;exists e&#92;in N&#92;, &#92;phi_e = f' title='&#92;forall f&#92;in N^N&#92;exists e&#92;in N&#92;, &#92;phi_e = f' class='latex' /> is true in the effective topos.</li>
<li>For every formula <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28S%2Cx%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(S,x)' title='&#92;phi(S,x)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is a variable ranging over <img src='http://s0.wp.com/latex.php?latex=%5COmega%5E%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega^{N}' title='&#92;Omega^{N}' 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' /> is a variable ranging over <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' />, the sentence <img src='http://s0.wp.com/latex.php?latex=%5Cforall+S%5Cexists+x%5Cphi%28S%2Cx%29%5Crightarrow+%5Cexists+x%5Cforall+S%5Cphi%28S%2Cx%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall S&#92;exists x&#92;phi(S,x)&#92;rightarrow &#92;exists x&#92;forall S&#92;phi(S,x)' title='&#92;forall S&#92;exists x&#92;phi(S,x)&#92;rightarrow &#92;exists x&#92;forall S&#92;phi(S,x)' class='latex' /> holds in the effective topos.</li>
<li>We may construct the rationals <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> and the reals <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> in the effective topos just as we do in the category of sets. However, they have different properties.  For example, in the effective topos the statement &#8220;There exists a bounded monotonic sequence in <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> that does not converge to a limit.&#8221; holds, contradicting the Bolzano-Weierstrass theorem.  Intuitively, this is because we can find a bounded, monotonic sequence converging to a real number whose binary expansion encodes the halting problem but such that every member of the sequence has a decidable binary expansion.</li>
<li>The sentence <img src='http://s0.wp.com/latex.php?latex=%5Cneg+%5Cforall+x%5Cin+R+%28x+%5Cleq+0+%5Cvee+x+%5Cgeq+0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg &#92;forall x&#92;in R (x &#92;leq 0 &#92;vee x &#92;geq 0)' title='&#92;neg &#92;forall x&#92;in R (x &#92;leq 0 &#92;vee x &#92;geq 0)' class='latex' /> holds in the effective topos.</li>
<li>Similar to the above, we may can show that the intermediate value theorem fails in the effective topos.</li>
<li>In the effective topos, the statement &#8220;All functions from <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> are continuous&#8221; holds.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=177&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/10/13/what-would-the-world-look-like-if-everything-was-computable-an-introduction-to-hylands-effective-topos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>A language which does term inference</title>
		<link>http://xorshammer.com/2008/10/07/term-inference/</link>
		<comments>http://xorshammer.com/2008/10/07/term-inference/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 01:38:53 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Functional Programming]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=170</guid>
		<description><![CDATA[Many strongly typed languages like OCaml do type inference. That is, even though they&#8217;re strongly typed, you don&#8217;t have to explicitly say what the type of everything is since a lot of the time the compiler can figure it out &#8230; <a href="http://xorshammer.com/2008/10/07/term-inference/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=170&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many strongly typed languages like OCaml do type inference.  That is, even though they&#8217;re strongly typed, you don&#8217;t have to explicitly say what the type of everything is since a lot of the time the compiler can figure it out by itself.  For example, if you define a function which takes an <code>x</code> and adds it to <code>3</code>, the compiler will figure out that <code>x</code> is an <code>int</code>.  (It couldn&#8217;t be a <code>float</code>, since it was added to <code>3</code> and not <code>3.0</code>.)</p>
<p>But it often seems like the compiler should be able to infer not just the types of expressions, but the expressions themselves!  For example, if the compiler infers that the type of some function <code>f</code> is <code>(int -&gt; int) -&gt; (int list) -&gt; int list</code> (i.e., <code>f</code> is a higher-order function which takes a function from <code>int</code> to <code>int</code>, a list of <code>int</code>s, and produces a list of <code>int</code>s), then <code>f</code> is very probably the <code>map</code> function, defined informally by</p>
<p style="text-align:center;"><code>map g [x_1;...;x_n] = [g x_1;...;g x_n]</code>.</p>
<p>Therefore, if the compiler determines that some expression has that type, and the user has somehow omitted the actual function definition, why not allow the compiler to infer what the expression is?</p>
<p>I made a stab at implementing this type of idea in a toy language I call <a href="http://www.box.net/shared/5og9ayke5u">TermInf</a> (apologies for the weird hosting: I don&#8217;t have another hosting service at the moment).  It&#8217;s a modification of the toy language <a href="http://math.andrej.com/2008/09/14/sub-and-poly-two-new-additions-to-the-pl-zoo/">Poly</a> from Andrej Bauer&#8217;s <a href="http://andrej.com/plzoo/">Programming Language Zoo</a>. You&#8217;ll need <a href="http://caml.inria.fr/ocaml/release.en.html">OCaml</a> to compile it.  Please feel free to alert me to any bugs or to tell me that my code is horrible.</p>
<p>More details below.</p>
<p><span id="more-170"></span></p>
<p>The basic idea is really simple: For any expression <code>e</code>, the expression <code>{e}</code> is also an expression.  The compiler will infer the type <code>t1</code> of <code>e</code> and the type <code>t2</code> that <code>{e}</code> has to be.  It will search for a sequence of coercions taking <code>t1</code> to t2 and if there is a unique one, it will replace <code>{e}</code> with that sequence of coercions applied to <code>e</code>.</p>
<p>Which functions are coercions is determined by the user; functions can be declared to be coercions or removed from the list of coercions at any point.</p>
<p>I can think of at least three ways this would be useful.</p>
<p><strong>1. Automatically coercing from one base type to another</strong></p>
<p>This is actually the least interesting of the three, but it serves to illustrate how TermInf works.</p>
<p>You can use <code>$show_coercions</code> to show all the current coercions.  The identity<br />
function <code>id</code> is always a coercion.</p>
<pre>TermInf. Press Ctrl-D to exit.
TermInf&gt; $show_coercions
id</pre>
<p>Let&#8217;s define a new coercion from <code>bool</code> to <code>int</code>.</p>
<pre>
TermInf&gt; let_coercion bool_to_int = fun x -&gt; if x then 1 else 0
val bool_to_int : bool -&gt; int
TermInf&gt; $show_coercions
bool_to_int
id
</pre>
<p>Now we can use the coercion.</p>
<pre>
TermInf&gt; {true} + 7
- : int = 8
</pre>
<p>In that instance, the interpreter could determine that the type of <code>{true}</code> had to be <code>int</code>, since it was added to <code>7</code>.  In the following instance, the interpreter can&#8217;t determine type of <code>{true}</code>.</p>
<pre>
TermInf&gt; {true}
Problem with term inference.
</pre>
<p>But we can always explicitly give a type to any expression, so we can use that to tell the type-inferer what the type of <code>{true}</code> is.</p>
<pre>
TermInf&gt; {true} : bool
- : bool = true
TermInf&gt; {true} : int
- : int = 1
</pre>
<p><strong>2.  Lifting functions</strong><br />
We can view the function <code>List.map</code> as a coercion, taking a function <code>'a -&gt; 'b</code> to a function <code>'a list -&gt; 'b list</code>.</p>
<pre>
TermInf&gt; let_coercion map = rec map is fun f -&gt; fun l -&gt; match l with [] -&gt; [] | x::ll -&gt; (f x)::(map f ll)
val map : ('a -&gt; 'b) -&gt; 'a list -&gt; 'b list
TermInf&gt; $show_coercions
map
bool_to_int
id
</pre>
<p>Now we can try it out.</p>
<pre>
TermInf&gt; let square = fun x -&gt; x * x
val square : int -&gt; int
TermInf&gt; ({square} 3) : int
- : int = 9
TermInf&gt; ({square} [1;2;3]) : int list
- : int list = 1 :: 4 :: 9 :: []
TermInf&gt; ({square} [[1;2];[5;6;7]]) : int list list
- : (int list) list = (1 :: 4 :: []) :: (25 :: 36 :: 49 :: []) :: []
</pre>
<p>Note that in our case, we had to explicitly tell the interpreter what the return type was, although presumably in practice the interpreter or compiler would usually be able to infer it.</p>
<p>The idea is that we can change the basic structure of the thing passed to <code>{square}</code>, and the term inferer will adapt.  Note that in the third case, the term inferer iterated map to produce the required <code>(int list list -&gt; int list list)</code> type.</p>
<p>We can similarly look inside the structure of pairs.</p>
<pre>
TermInf&gt; let_coercion map_pair = fun f -&gt; fun x -&gt; (f (fst x), f (snd x))
val map_pair : ('a -&gt; 'b) -&gt; 'a * 'a -&gt; 'b * 'b
TermInf&gt; ({square} [(1,2);(3,4)]) : (int * int) list
- : (int * int) list = (1, 4) :: (9, 16) :: []
TermInf&gt; ({square} ([1;2],[3;4])) : (int list) * (int list)
- : int list * int list = (1 :: 4 :: [], 9 :: 16 :: [])
</pre>
<p>Essentially all variants of map can be added.  For example, the function <code>mapi : ((int * 'a) -&gt; 'b) -&gt; 'a list -&gt; 'b list</code> where the function takes the index of the list element can be added.  Then the term-inferer will determine which version of map (or sequence of versions of map) is needed based on the function given to it.</p>
<p><strong>3. Term inference in conjunction with phantom types.</strong><br />
I put just enough type aliasing in TermInf to allow you to use phantom types.  (For a great introduction to phantom types, see <a href="http://till-varoquaux.blogspot.com/2007/06/phun-with-phantom-types.html">this blog post</a>).</p>
<p>Here&#8217;s an example of how type aliasing works in TermInf:</p>
<pre>
TermInf&gt; type hidden = int
TermInf&gt; let f = (fun x -&gt; x + 7) : hidden -&gt; hidden
val f : hidden -&gt; hidden
TermInf&gt; let x = 3 : hidden
val x : hidden
TermInf&gt; f x
- : hidden = 10
TermInf&gt; f 3
The types hidden and int are incompatible
</pre>
<p>Something we might like to do with phantom types is have the type system do a static dimensional analysis on our program.  Here&#8217;s an attempt to do that:</p>
<pre>
TermInf&gt; type meters
TermInf&gt; type gallons
TermInf&gt; type 'a units = int
TermInf&gt; let add = (fun x -&gt; fun y -&gt; x + y) : 'a units -&gt; 'a units -&gt; 'a units
val add : 'a units -&gt; 'a units -&gt; 'a units
TermInf&gt; let times = (fun x -&gt; fun y -&gt; x * y) : 'a units -&gt; 'b units -&gt; ('a * 'b) units
val times : 'a units -&gt; 'b units -&gt; ('a * 'b) units
TermInf&gt; let one_gal = 1 : gallons units
val one_gal : gallons units
TermInf&gt; let one_m = 1 : meters units
val one_m : meters units
</pre>
<p>Then we have the following correct behavior:</p>
<pre>
TermInf&gt; add one_gal one_gal
- : gallons units = 2
TermInf&gt; times one_gal one_m
- : (gallons * meters) units = 1
TermInf&gt; add one_gal one_m
The types gallons and meters are incompatible
</pre>
<p>But the following is not correct:</p>
<pre>
TermInf&gt; let x = times one_gal one_m
val x : (gallons * meters) units
TermInf&gt; let y = times one_m one_gal
val y : (meters * gallons) units
TermInf&gt; add x y
The types gallons and meters are incompatible
</pre>
<p>Of course, the problem is that the interpreter doesn&#8217;t know that units commute.<br />
But we can fix this with coercions.</p>
<pre>
TermInf&gt; let_id_coercion commute = id : ('a * 'b) units -&gt; ('b * 'a) units
val commute : ('a * 'b) units -&gt; ('b * 'a) units
TermInf&gt; add x {y}
- : (gallons * meters) units = 2
</pre>
<p>We&#8217;ve declared <code>commute</code> to be an identity coercion (by using <code>let_id_coercion</code> instead of <code>let_coercion</code>) to help the interpreter when it&#8217;s deciding if a term inference is unique or not.</p>
<p>Note that we don&#8217;t use term inference on both <code>x</code> and <code>y</code>, because then it couldn&#8217;t determine what type to give it.</p>
<pre>
TermInf&gt; add {x} y
- : (meters * gallons) units = 2
TermInf&gt; add {x} {y}
Problem with term inference.
</pre>
<p>This version of <code>commute</code> will just commute the two units at the top level, but there are a finite number of identity coercions that you can define that will give you associativity and commutativity (and inverses, if you want).  Thus, the type system will be able to perform a static dimensional analysis on your program.</p>
<p>Edit: I should note that I left out several details about how this actually works.  For example, the interpreter doesn&#8217;t search through <i>all</i> sequences of coercions, since there are infinitely many (and the problem of deciding if there is a unique one between any two given types is undecidable in general).  Instead it limits itself to sequences of coercions whose type is never &#8220;bigger&#8221; that the starting type or the goal type, where &#8220;bigger&#8221; is defined by a straightforward length function. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=170&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/10/07/term-inference/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing Games in the Transfinite: An Introduction to &#8220;Ordinal Chomp&#8221;</title>
		<link>http://xorshammer.com/2008/09/29/playing-games-in-the-transfinite-an-introduction-to-ordinal-chomp/</link>
		<comments>http://xorshammer.com/2008/09/29/playing-games-in-the-transfinite-an-introduction-to-ordinal-chomp/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 03:14:52 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=163</guid>
		<description><![CDATA[Chomp is a two-player game which is played as follows: The two players, A and B, start with a &#8220;board&#8221; which is a chocolate bar divided into small squares. With Player A starting, they take turns choosing a square and &#8230; <a href="http://xorshammer.com/2008/09/29/playing-games-in-the-transfinite-an-introduction-to-ordinal-chomp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=163&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Chomp">Chomp</a><em> </em>is a two-player game which is played as follows:  The two players, A and B, start with a &#8220;board&#8221; which is a chocolate bar divided into <img src='http://s0.wp.com/latex.php?latex=n+%5Ctimes+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;times m' title='n &#92;times m' class='latex' /> small squares.  With Player A starting, they take turns choosing a square and eating it together with all squares above and to the right.   The catch is that the square at the lower left-hand corner is poisonous, and the player who is forced to eat it loses.</p>
<p>This image from the Wikipedia article shows a typical sequence of moves for a <img src='http://s0.wp.com/latex.php?latex=5%5Ctimes+3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='5&#92;times 3' title='5&#92;times 3' class='latex' /> chocolate bar:</p>
<p style="text-align:center;"><a href="http://xorshammer.files.wordpress.com/2008/09/chomp.png"><img class="aligncenter size-full wp-image-164" title="chomp" src="http://xorshammer.files.wordpress.com/2008/09/chomp.png?w=500&#038;h=86" alt="" width="500" height="86" /></a></p>
<p>At this point, Player A is forced to eat the poisoned square and hence loses the game.</p>
<p>Although the question of <em>what</em> the winning strategies are for this game is very much an open problem, the question of <em>who</em> has a winning strategy is not:  On the <img src='http://s0.wp.com/latex.php?latex=1%5Ctimes+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;times 1' title='1&#92;times 1' class='latex' /> board, Player B wins (since Player A must eat the poison piece on his first move).  But for any other board, Player A has a winning strategy.</p>
<p>To see why, suppose not.  Then if Player A&#8217;s first move is to eat just the one square in the top right-hand corner, Player B must have a winning response (since we are supposing that Player B has a winning response to <em>any</em> move that Player A makes).  But if Player B&#8217;s response is winning, then Player A could have simply made that move to start with.</p>
<p>However, suppose we play Chomp not just on <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;times m' title='n&#92;times m' class='latex' /> boards, but on <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Ctimes%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;times&#92;beta' title='&#92;alpha&#92;times&#92;beta' class='latex' /> boards, where <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 <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> are arbitrary ordinals.  The game still makes sense just as before, and will always end in finite time, but Player A no longer wins all of the time (there will no longer be a top right-hand corner square if either <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' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> is a limit ordinal).</p>
<p>Scott Huddleston and Jerry Shurman investigated Ordinal Chomp in <a href="http://www.msri.org/publications/books/Book42/files/huddleston.pdf">this paper</a>, and showed that it has a number of interesting properties.  I&#8217;ll describe a few of them below.</p>
<p><span id="more-163"></span></p>
<p>First of all, to make things a bit easier to discuss, we will consider only <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;times &#92;alpha' title='n&#92;times &#92;alpha' class='latex' /> games where <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' /> is finite rather than <img src='http://s0.wp.com/latex.php?latex=%5Cbeta%5Ctimes%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta&#92;times&#92;alpha' title='&#92;beta&#92;times&#92;alpha' class='latex' /> games where <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> is arbitrary.  However, everything said will go through fine in that case as well.</p>
<p>Secondly, we will use the following game which is equivalent to Chomp:  At any point in the game, the board is described by a non-increasing sequence <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_0%2C%5Cldots%2C+%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_0,&#92;ldots, &#92;alpha_n)' title='(&#92;alpha_0,&#92;ldots, &#92;alpha_n)' class='latex' />.  On each turn, the appropriate player picks an <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> and a <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Cbeta+%3C+%5Calpha_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta &lt; &#92;alpha_i' title='&#92;beta &lt; &#92;alpha_i' class='latex' /> and replaces the sequence with <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_0%2C%5Cldots%2C+%5Calpha_%7Bi-1%7D%2C%5Cbeta%2C%5Cldots%2C+%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_0,&#92;ldots, &#92;alpha_{i-1},&#92;beta,&#92;ldots, &#92;beta)' title='(&#92;alpha_0,&#92;ldots, &#92;alpha_{i-1},&#92;beta,&#92;ldots, &#92;beta)' class='latex' />.  We call this <em>taking a bite of height </em><img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' />. Playing on an <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;times m' title='n&#92;times m' class='latex' /> chocolate bar as described above corresponds to playing with the sequence <img src='http://s0.wp.com/latex.php?latex=%28m%2C%5Cldots%2C+m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(m,&#92;ldots, m)' title='(m,&#92;ldots, m)' class='latex' /> consisting 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' /> <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' />&#8216;s.</p>
<p>For ease of discussion later, we make the convention that any sequence (not just a non-increasing one) describes a game position by stipulating that <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cldots%2C+%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;ldots, &#92;alpha_n)' title='(&#92;alpha_1,&#92;ldots, &#92;alpha_n)' class='latex' /> is the same as the position <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cmin%5C%7B%5Calpha_1%2C%5Calpha_2%5C%7D%2C%5Cldots%2C%5Cmin%5C%7B%5Calpha_1%2C%5Cldots%2C%5Calpha_n%5C%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;min&#92;{&#92;alpha_1,&#92;alpha_2&#92;},&#92;ldots,&#92;min&#92;{&#92;alpha_1,&#92;ldots,&#92;alpha_n&#92;})' title='(&#92;alpha_1,&#92;min&#92;{&#92;alpha_1,&#92;alpha_2&#92;},&#92;ldots,&#92;min&#92;{&#92;alpha_1,&#92;ldots,&#92;alpha_n&#92;})' class='latex' />.</p>
<p>We saw above that Player A wins all non-trivial finite Chomp games, so let&#8217;s start by looking at a transfinite chomp game that Player B wins: <img src='http://s0.wp.com/latex.php?latex=2%5Ctimes+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;times &#92;omega' title='2&#92;times &#92;omega' class='latex' />, or <img src='http://s0.wp.com/latex.php?latex=%28%5Comega%2C%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;omega,&#92;omega)' title='(&#92;omega,&#92;omega)' class='latex' /> in our new notation.  What is Player B&#8217;s winning strategy?  Well, notice that Player A&#8217;s first move has to put the game either in the state <img src='http://s0.wp.com/latex.php?latex=%28n%2Cn%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n,n)' title='(n,n)' class='latex' /> for some <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' /> or <img src='http://s0.wp.com/latex.php?latex=%28%5Comega%2C+n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;omega, n)' title='(&#92;omega, n)' class='latex' /> for some <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' />. In either case, Player B can then move the game into state of the form <img src='http://s0.wp.com/latex.php?latex=%28m%2B1%2Cm%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(m+1,m)' title='(m+1,m)' class='latex' /> for some <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' />.  From a position of that form, whatever Player A does, Player B can again move to a position of that form.  Eventually, Player B will move to the position <img src='http://s0.wp.com/latex.php?latex=%281%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1,0)' title='(1,0)' class='latex' />, and Player A will be forced to eat the poison piece.</p>
<p>So, Player B can win at least <em>some</em> transfinite Chomp games, although he still loses a lot of them: for example, he loses all games of the form <img src='http://s0.wp.com/latex.php?latex=2%5Ctimes+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;times &#92;alpha' title='2&#92;times &#92;alpha' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%3E+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha &gt; &#92;omega' title='&#92;alpha &gt; &#92;omega' class='latex' />.  The reason is that in such a game Player A can win by first moving to the position <img src='http://s0.wp.com/latex.php?latex=2%5Ctimes+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;times &#92;omega' title='2&#92;times &#92;omega' class='latex' /> and then using Player B&#8217;s winning strategy!  Similarly, Player B loses all games <img src='http://s0.wp.com/latex.php?latex=n+%5Ctimes+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;times &#92;omega' title='n &#92;times &#92;omega' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=n+%3E+2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &gt; 2' title='n &gt; 2' class='latex' />.</p>
<p>In fact, for any ordinal <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' />, there is exactly one ordinal <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> such that Player B wins <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Ctimes%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;times&#92;beta' title='&#92;alpha&#92;times&#92;beta' class='latex' />.  This is a consequence of what Huddleston and Shurman call the Fundamental Theorem of Transfinite Chomp in the above paper.  Another interesting consequence, which illustrates the style of reasoning used in their proof of the Fundamental Theorem, is the following:</p>
<p><strong>Theorem:</strong> For any sequence <img src='http://s0.wp.com/latex.php?latex=%5Calpha_2%2C%5Cldots%2C+%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_2,&#92;ldots, &#92;alpha_n' title='&#92;alpha_2,&#92;ldots, &#92;alpha_n' class='latex' /> of ordinals, there is exactly one ordinal <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1' title='&#92;alpha_1' class='latex' /> such that Player B wins the game <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cldots%2C%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' title='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' class='latex' />.  (Remember the convention above about sequence which are not necessarily non-increasing.)</p>
<p><strong>Proof:</strong> The uniqueness is similar to the argument given above: If Player B has a winning strategy on the game <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cldots%2C%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' title='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' class='latex' /> then Player A has a winning strategy on all games <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha%27_1%2C%5Calpha_2%2C%5Cldots%2C%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha&#039;_1,&#92;alpha_2,&#92;ldots,&#92;alpha_n)' title='(&#92;alpha&#039;_1,&#92;alpha_2,&#92;ldots,&#92;alpha_n)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Calpha%27_1+%3E+%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#039;_1 &gt; &#92;alpha_1' title='&#92;alpha&#039;_1 &gt; &#92;alpha_1' class='latex' />, since Player A can just move to the position <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cldots%2C+%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;ldots, &#92;alpha_n)' title='(&#92;alpha_1,&#92;ldots, &#92;alpha_n)' class='latex' /> and then use Player B&#8217;s winning strategy.</p>
<p>The existence is by induction.   Fix  <img src='http://s0.wp.com/latex.php?latex=%5Calpha_2%2C%5Cldots%2C+%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_2,&#92;ldots, &#92;alpha_n' title='&#92;alpha_2,&#92;ldots, &#92;alpha_n' class='latex' /> and suppose that for all <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_2%2C%5Cldots%2C%5Cbeta_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_2,&#92;ldots,&#92;beta_n' title='&#92;beta_2,&#92;ldots,&#92;beta_n' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_i+%5Cleq+%5Calpha_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_i &#92;leq &#92;alpha_i' title='&#92;beta_i &#92;leq &#92;alpha_i' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> and for at least one <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_i+%3C+%5Calpha_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_i &lt; &#92;alpha_i' title='&#92;beta_i &lt; &#92;alpha_i' class='latex' /> we know that there is a <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3D+h%28%5Cbeta_2%2C%5Cldots%2C%5Cbeta_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 = h(&#92;beta_2,&#92;ldots,&#92;beta_n)' title='&#92;beta_1 = h(&#92;beta_2,&#92;ldots,&#92;beta_n)' class='latex' /> such that Player B has a winning strategy.</p>
<p>For each ordinal <img src='http://s0.wp.com/latex.php?latex=%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=B_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B_&#92;gamma' title='B_&#92;gamma' class='latex' /> be the set of all <img src='http://s0.wp.com/latex.php?latex=%28%5Cbeta_2%2C%5Cldots%2C+%5Cbeta_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;beta_2,&#92;ldots, &#92;beta_n)' title='(&#92;beta_2,&#92;ldots, &#92;beta_n)' class='latex' /> obtainable from <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_2%2C%5Cldots%2C+%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_2,&#92;ldots, &#92;alpha_n)' title='(&#92;alpha_2,&#92;ldots, &#92;alpha_n)' class='latex' /> by taking a bite of height <img src='http://s0.wp.com/latex.php?latex=%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> (this term was defined above, if you forgot what it means).</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=H+%3D+%5C%7B+h%28%5Cbeta_2%2C%5Cldots%2C%5Cbeta_n%29%5Cmid+%28%5Cbeta_2%2C%5Cldots%2C%5Cbeta_n%29%5Cin+B_%5Cgamma%5Ctext%7B+and+%7Dh%28%5Cbeta_2%2C%5Cldots%2C%5Cbeta_n%29+%3E+%5Cgamma+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='H = &#92;{ h(&#92;beta_2,&#92;ldots,&#92;beta_n)&#92;mid (&#92;beta_2,&#92;ldots,&#92;beta_n)&#92;in B_&#92;gamma&#92;text{ and }h(&#92;beta_2,&#92;ldots,&#92;beta_n) &gt; &#92;gamma &#92;}' title='H = &#92;{ h(&#92;beta_2,&#92;ldots,&#92;beta_n)&#92;mid (&#92;beta_2,&#92;ldots,&#92;beta_n)&#92;in B_&#92;gamma&#92;text{ and }h(&#92;beta_2,&#92;ldots,&#92;beta_n) &gt; &#92;gamma &#92;}' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1' title='&#92;alpha_1' class='latex' /> be the minimal ordinal not in <img src='http://s0.wp.com/latex.php?latex=H&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='H' title='H' class='latex' />.  I claim that Player B has a winning strategy for <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cldots%2C%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' title='(&#92;alpha_1,&#92;ldots,&#92;alpha_n)' class='latex' />.  We will show this by showing that, for any move Player A makes, Player B can make a move that we know leads to a winning strategy for B.</p>
<p>So suppose Player A moves to <img src='http://s0.wp.com/latex.php?latex=%28%5Cbeta_1%2C%5Cldots%2C+%5Cbeta_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;beta_1,&#92;ldots, &#92;beta_n)' title='(&#92;beta_1,&#92;ldots, &#92;beta_n)' class='latex' />.  Either <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3C+%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 &lt; &#92;alpha_1' title='&#92;beta_1 &lt; &#92;alpha_1' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3D+%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 = &#92;alpha_1' title='&#92;beta_1 = &#92;alpha_1' class='latex' />.  First suppose that <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3D+%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 = &#92;alpha_1' title='&#92;beta_1 = &#92;alpha_1' class='latex' />.  This means that Player A moved by taking a bite of height (say) <img src='http://s0.wp.com/latex.php?latex=%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> out of <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_2%2C%5Cldots%2C+%5Calpha_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_2,&#92;ldots, &#92;alpha_n)' title='(&#92;alpha_2,&#92;ldots, &#92;alpha_n)' class='latex' /> by moving to <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha_1%2C%5Cbeta_2%2C%5Cldots%2C+%5Cbeta_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha_1,&#92;beta_2,&#92;ldots, &#92;beta_n)' title='(&#92;alpha_1,&#92;beta_2,&#92;ldots, &#92;beta_n)' class='latex' />.  But by construction, we know that  <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1+%5Cne++h%28%5Cbeta_2%2C%5Cldots%2C+%5Cbeta_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1 &#92;ne  h(&#92;beta_2,&#92;ldots, &#92;beta_n)' title='&#92;alpha_1 &#92;ne  h(&#92;beta_2,&#92;ldots, &#92;beta_n)' class='latex' />, which means that the player who is to move (Player B in this case) has a winning strategy.</p>
<p>Now suppose <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3C+%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 &lt; &#92;alpha_1' title='&#92;beta_1 &lt; &#92;alpha_1' class='latex' />.  This means by construction of <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1' title='&#92;alpha_1' class='latex' /> that <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_1+%3D+h%28%5Cbeta%27_2%2C%5Cldots%2C+%5Cbeta%27_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_1 = h(&#92;beta&#039;_2,&#92;ldots, &#92;beta&#039;_n)' title='&#92;beta_1 = h(&#92;beta&#039;_2,&#92;ldots, &#92;beta&#039;_n)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Cbeta%27_i+%5Cleq+%5Cbeta_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta&#039;_i &#92;leq &#92;beta_i' title='&#92;beta&#039;_i &#92;leq &#92;beta_i' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbeta%27_i+%3C+%5Cbeta_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta&#039;_i &lt; &#92;beta_i' title='&#92;beta&#039;_i &lt; &#92;beta_i' class='latex' /> for at least one <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />.  Thus, if Player B moves to the position <img src='http://s0.wp.com/latex.php?latex=%28%5Cbeta_1%2C%5Cbeta%27_2%2C%5Cldots%2C+%5Cbeta%27_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;beta_1,&#92;beta&#039;_2,&#92;ldots, &#92;beta&#039;_n)' title='(&#92;beta_1,&#92;beta&#039;_2,&#92;ldots, &#92;beta&#039;_n)' class='latex' /> he ensures himself a win. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' />.</p>
<p>Note that this proof is constructive.  This means that you can actually use it to compute that (as we already know), the unique <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 Player B wins <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha%2C%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha,&#92;omega)' title='(&#92;alpha,&#92;omega)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' />.  As a puzzle, you might like to find the unique <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 Player B wins <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha%2C%5Comega%2C1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha,&#92;omega,1)' title='(&#92;alpha,&#92;omega,1)' class='latex' /> (or such that Player B wins <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha%2C%5Comega%2C%5Comega%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha,&#92;omega,&#92;omega)' title='(&#92;alpha,&#92;omega,&#92;omega)' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha%2C%5Comega%5E%5Comega%2C%5Comega%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha,&#92;omega^&#92;omega,&#92;omega^2)' title='(&#92;alpha,&#92;omega^&#92;omega,&#92;omega^2)' class='latex' /> or whatever you like, although the last one will be hard).</p>
<p>The much-more-general Fundamental Theorem of Transfinite Chomp in the paper linked above is also constructive.  It allows you, in theory, to compute who will win 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' />-dimensional game (we have been considering <img src='http://s0.wp.com/latex.php?latex=2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2' title='2' class='latex' />-dimensional games) <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1%5Ctimes+%5Ccdots+%5Ctimes+%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1&#92;times &#92;cdots &#92;times &#92;alpha_n' title='&#92;alpha_1&#92;times &#92;cdots &#92;times &#92;alpha_n' class='latex' /> for any ordinals <img src='http://s0.wp.com/latex.php?latex=%5Calpha_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_i' title='&#92;alpha_i' class='latex' />.  However, this is quite difficult in practice: according to the Wikipedia article, it is an open question who wins the <img src='http://s0.wp.com/latex.php?latex=3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='3' title='3' class='latex' />-dimensional game <img src='http://s0.wp.com/latex.php?latex=%5Comega%5Ctimes%5Comega%5Ctimes%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega&#92;times&#92;omega&#92;times&#92;omega' title='&#92;omega&#92;times&#92;omega&#92;times&#92;omega' class='latex' />.</p>
<p>As a final note, in the book <a href="http://books.google.com/books?id=wgVPu0YEOlQC&amp;printsec=frontcover&amp;dq=tracking+the+automatic+ant&amp;sig=ACfU3U3RQXwpKEMtvxFHn8WlyM9eSqRLPA">Tracking the Automatic Ant</a>, David Gale gives a very nice non-constructive proof that for all <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' />, there is a unique <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 Player B wins <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;times &#92;alpha' title='n&#92;times &#92;alpha' class='latex' />.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=163&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/09/29/playing-games-in-the-transfinite-an-introduction-to-ordinal-chomp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2008/09/chomp.png" medium="image">
			<media:title type="html">chomp</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoiding Set-Theoretic Paradoxes using Symmetry</title>
		<link>http://xorshammer.com/2008/09/21/avoiding-set-theoretic-paradoxes-using-symmetry/</link>
		<comments>http://xorshammer.com/2008/09/21/avoiding-set-theoretic-paradoxes-using-symmetry/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 02:34:08 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=158</guid>
		<description><![CDATA[Intuitively, for any property of sets, there should be a set which has as its members all and only those sets such that holds. But this can&#8217;t actually work, due to Russell&#8217;s Paradox: Let , and then you can derive &#8230; <a href="http://xorshammer.com/2008/09/21/avoiding-set-theoretic-paradoxes-using-symmetry/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=158&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Intuitively, for any property <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> of sets, there should be a set <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx+%5Cmid+P%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x &#92;mid P(x)&#92;}' title='&#92;{x &#92;mid P(x)&#92;}' class='latex' /> which has as its members all and only those sets <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' /> such that <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> holds.  But this can&#8217;t actually work, due to <a href="http://en.wikipedia.org/wiki/Russell%27s_paradox">Russell&#8217;s Paradox</a>: Let <img src='http://s0.wp.com/latex.php?latex=b+%3D+%5C%7Bx%5Cmid+x%5Cnotin+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b = &#92;{x&#92;mid x&#92;notin x&#92;}' title='b = &#92;{x&#92;mid x&#92;notin x&#92;}' class='latex' />, and then you can derive a contradiction from both <img src='http://s0.wp.com/latex.php?latex=b%5Cin+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b&#92;in b' title='b&#92;in b' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=b%5Cnotin+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b&#92;notin b' title='b&#92;notin b' class='latex' />.</p>
<p>The standard solution to this is essentially to forbid the construction of any set which is too <em>big</em>.  This solves the problem since you can prove that there are many sets which are not members of themselves, making <img src='http://s0.wp.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> too big to be a set.  But you also end up throwing out many sets which you might want to have: for example, the set of all sets, the set of all groups, etc.</p>
<p><a href="http://math.boisestate.edu/~holmes/">Randall Holmes</a> recently published a <a href="http://math.boisestate.edu/%7Eholmes/holmes/symmetry3.ps">paper</a> espousing another solution: instead of forbidding the construction of sets which are too <em>big</em>, forbid the construction of sets which are too <em>asymmetric</em>.  Details below.</p>
<p><span id="more-158"></span></p>
<p>Imagine you have some permutation <img src='http://s0.wp.com/latex.php?latex=%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi' title='&#92;pi' class='latex' /> of the universe of sets.  Because any set is also a set of sets, we can also consider the related permutation <img src='http://s0.wp.com/latex.php?latex=j%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&#92;pi' title='j&#92;pi' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=j%5Cpi%28x%29+%3D+%5C%7B%5Cpi%28y%29+%5Cmid+y%5Cin+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&#92;pi(x) = &#92;{&#92;pi(y) &#92;mid y&#92;in x&#92;}' title='j&#92;pi(x) = &#92;{&#92;pi(y) &#92;mid y&#92;in x&#92;}' class='latex' />.  That is, <img src='http://s0.wp.com/latex.php?latex=j%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&#92;pi' title='j&#92;pi' class='latex' /> acts on a set <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' /> by applying <img src='http://s0.wp.com/latex.php?latex=%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi' title='&#92;pi' 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' />&#8216;s elements.  By iteration, we have <img src='http://s0.wp.com/latex.php?latex=j%5En%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j^n&#92;pi' title='j^n&#92;pi' class='latex' /> for any <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' />.</p>
<p>For <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' />, say that a set <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 <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' />-symmetric if <img src='http://s0.wp.com/latex.php?latex=j%5En%5Cpi%28x%29+%3D+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j^n&#92;pi(x) = x' title='j^n&#92;pi(x) = x' class='latex' /> for all permutations <img src='http://s0.wp.com/latex.php?latex=%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi' title='&#92;pi' class='latex' /> of the universe of sets.  We say that a set is symmetric if it&#8217;s <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' />-symmetric for some <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' />.  Holmes&#8217;s criterion is then to forbid the construction of any set which is not symmetric.  (You may have noticed that this discussion is not quite rigorous.  Holmes&#8217;s paper has a fully rigorous formalization of this.)</p>
<p>So which sets are symmetric?  First of all, notice that the empty set <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;}' title='&#92;{&#92;}' class='latex' /> is symmetric, as it&#8217;s 1-symmetric.  Therefore the set <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5C%7B%5C%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;{&#92;}&#92;}' title='&#92;{&#92;{&#92;}&#92;}' class='latex' /> consisting of solely the empty set is 2-symmetric and therefore symmetric.  Similarly any hereditarily finite set (this means a set which can be written down with a finite number of <img src='http://s0.wp.com/latex.php?latex=%5C%7B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{' title='&#92;{' class='latex' />&#8216;s and <img src='http://s0.wp.com/latex.php?latex=%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;}' title='&#92;}' class='latex' />&#8216;s and <img src='http://s0.wp.com/latex.php?latex=%2C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt=',' title=',' class='latex' />&#8216;s and nothing else) is symmetric, since it will be <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' />-symmetric where <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' /> is the maximum depth of the braces.</p>
<p>It&#8217;s also the case that the set of all sets is 1-symmetric, so that exists.  What about the set of all groups?  A group will be encoded as some ordered pair of a set and a binary operation on that set, and a binary operation will be further encoded as a set of ordered pairs.  The set of all groups will be <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' />-symmetric where <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' /> is large enough to &#8220;pierce&#8221; the encoding, so that it ends up just permuting the group elements (and thus permuting the groups and sending the set of all groups to itself).</p>
<p>Can we develop mathematics in this theory?  It seems that constructing the natural numbers will be a problem.  The usual (von Neumann) definition of the natural numbers is that:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=0+%3D+%5C%7B%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 = &#92;{&#92;}' title='0 = &#92;{&#92;}' class='latex' /></p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=1+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1 = &#92;{0&#92;}' title='1 = &#92;{0&#92;}' class='latex' /></p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=2+%3D+%5C%7B0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2 = &#92;{0,1&#92;}' title='2 = &#92;{0,1&#92;}' class='latex' /></p>
<p style="text-align:left;">and, in general, each natural number is the set of all the preceding ones.  All of these sets exist, since the von Neumann definition 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' /> will be <img src='http://s0.wp.com/latex.php?latex=%28n%2B1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n+1)' title='(n+1)' class='latex' />-symmetric, but the set of all natural numbers is not symmetric.</p>
<p style="text-align:left;">However, we can go back instead to Frege&#8217;s original definition of the natural numbers: 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' /> is represented as the set of all sets of cardinality <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' />.  For 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' />, Frege&#8217;s definition 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' /> is 2-symmetric, and the set of all natural numbers is 3-symmetric.  The rationals and reals can be constructed as usual.</p>
<p>So, how do we know that the set <img src='http://s0.wp.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> is not symmetric?  We don&#8217;t, but an encouraging fact is the following: There is  no known way to prove that for any formula <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' />, the set <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx%5Cmid+%5Cphi%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x&#92;mid &#92;phi(x)&#92;}' title='&#92;{x&#92;mid &#92;phi(x)&#92;}' class='latex' /> exists.  Instead, one can prove that <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx+%5Cmid+%5Cphi%28x%29%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x &#92;mid &#92;phi(x)&#92;}' title='&#92;{x &#92;mid &#92;phi(x)&#92;}' class='latex' /> exists if <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> is <em>stratified</em>: this means that one can assign a natural number to each variable in <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> so that for any occurrence of the formula <img src='http://s0.wp.com/latex.php?latex=y+%5Cin+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y &#92;in z' title='y &#92;in z' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' />, <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 assigned the number one less than that assigned to <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 for any occurrence of the formula <img src='http://s0.wp.com/latex.php?latex=y+%3D+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = z' title='y = z' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' />, <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 assigned the same number as that assigned to <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' />.  The formula defining <img src='http://s0.wp.com/latex.php?latex=b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b' title='b' class='latex' /> is emphatically not stratified!</p>
<p>If you like working with universal sets, but it makes you uneasy to use a set theory which you don&#8217;t know is consistent, check out <a href="http://math.boisestate.edu/%7Eholmes/holmes/nf.html#Consistent">NFU</a>. It uses the concept of stratified formulas to avoid Russell&#8217;s paradox, allows the existence of the set of all sets (and set of all groups, etc.) and is known to be consistent relative to ZFC.  In fact, Randall Holmes proposed the system I&#8217;ve discussed here as a way of clarifying the semantics of a related set theory.  A book developing mathematics in NFU is <a href="http://math.boisestate.edu/%7Eholmes/holmes/head.ps">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=158&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/09/21/avoiding-set-theoretic-paradoxes-using-symmetry/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>The Undecidability of Identities Involving Sine, Exponentiation, and Absolute Value</title>
		<link>http://xorshammer.com/2008/09/14/the-undecidability-of-identities/</link>
		<comments>http://xorshammer.com/2008/09/14/the-undecidability-of-identities/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 17:45:27 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=155</guid>
		<description><![CDATA[In the book A=B, the authors point out that while the identity is provable (by a very simple proof!), it&#8217;s not possible to prove the truth or falsity of all such identities. This is because Daniel Richardson proved the following: &#8230; <a href="http://xorshammer.com/2008/09/14/the-undecidability-of-identities/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=155&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the book <a href="http://www.math.upenn.edu/~wilf/AeqB.html">A=B</a>, the authors point out that while the identity</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Csin%5E2%28%7C10+%2B+%5Cpi+x%7C%29+%2B+%5Ccos%5E2%28%7C10+%2B+%5Cpi+x%7C%29+%3D+1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;sin^2(|10 + &#92;pi x|) + &#92;cos^2(|10 + &#92;pi x|) = 1}' title='&#92;displaystyle{&#92;sin^2(|10 + &#92;pi x|) + &#92;cos^2(|10 + &#92;pi x|) = 1}' class='latex' /></p>
<p style="text-align:left;">is provable (by a very simple proof!), it&#8217;s not possible to prove the truth or falsity of all such identities.  This is because Daniel Richardson proved the following:</p>
<p style="text-align:left;">Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' /> denote the class of expressions generated by</p>
<ol>
<li>The rational numbers, and <img src='http://s0.wp.com/latex.php?latex=%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi' title='&#92;pi' class='latex' />.</li>
<li>The variable <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' /></li>
<li>The operations of addition, multiplication, and composition.</li>
<li>The sine, exponential, and absolute value functions.</li>
</ol>
<p>Then the problem of deciding whether or not an expression <img src='http://s0.wp.com/latex.php?latex=E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E' title='E' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{R}' title='&#92;mathcal{R}' class='latex' /> is identically zero is undecidable.  This means as well that the problem of deciding whether or not two expressions <img src='http://s0.wp.com/latex.php?latex=E_1%2C+E_2%5Cin+%5Cmathcal%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1, E_2&#92;in &#92;mathcal{R}' title='E_1, E_2&#92;in &#92;mathcal{R}' class='latex' /> are always equal is also undecidable, since this is equivalent to deciding if <img src='http://s0.wp.com/latex.php?latex=E_1+-+E_2+%3D+E_1+%2B+%28-1%29%5Ccdot+E_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1 - E_2 = E_1 + (-1)&#92;cdot E_2' title='E_1 - E_2 = E_1 + (-1)&#92;cdot E_2' class='latex' /> is identically zero.</p>
<p>A summary of Richardson&#8217;s proof (mostly from Richardson&#8217;s paper itself) is below.</p>
<p><span id="more-155"></span></p>
<p>The proof depends on <a href="http://en.wikipedia.org/wiki/Hilbert%27s_tenth_problem">the MRDP theorem</a>, which says that for any <a href="http://en.wikipedia.org/wiki/Recursively_enumerable_set">recursively enumerable set</a> <img src='http://s0.wp.com/latex.php?latex=S%5Csubset+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subset &#92;mathbb{N}' title='S&#92;subset &#92;mathbb{N}' class='latex' />, there is a polynomial <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots, x_n)' title='p(y,x_1,&#92;ldots, x_n)' class='latex' /> such that</p>
<p style="text-align:center;">For all <img src='http://s0.wp.com/latex.php?latex=y%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in&#92;mathbb{N}' title='y&#92;in&#92;mathbb{N}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y%5Cin+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in S' title='y&#92;in S' class='latex' /> iff there exist <img src='http://s0.wp.com/latex.php?latex=x_1%5Cldots%2C+x_n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1&#92;ldots, x_n&#92;in&#92;mathbb{N}' title='x_1&#92;ldots, x_n&#92;in&#92;mathbb{N}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots%2C+x_n%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots, x_n) = 0' title='p(y,x_1,&#92;ldots, x_n) = 0' class='latex' />.</p>
<p style="text-align:left;">At the time that Richardson proved his result, the MDRP theorem was not proven.  Instead, only the weaker result where <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is allowed to be an exponential polynomial (i.e., the <img src='http://s0.wp.com/latex.php?latex=x_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_i' title='x_i' class='latex' /> are allowed to appear as exponents in <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />) had been proven, and so that&#8217;s what he used.  I haven&#8217;t read Richardson&#8217;s proof closely enough to determine if his result can be improved using the full MDRP theorem.</p>
<p style="text-align:left;">In any case, since there are recursively enumerable sets which are not decidable, we may let <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots, x_n)' title='p(y,x_1,&#92;ldots, x_n)' class='latex' /> be an exponential polynomial such that the problem of deciding, given <img src='http://s0.wp.com/latex.php?latex=y%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in&#92;mathbb{N}' title='y&#92;in&#92;mathbb{N}' class='latex' />, whether or not there are <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n&#92;in &#92;mathbb{N}' title='x_1,&#92;ldots, x_n&#92;in &#92;mathbb{N}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots%2C+x_n%29%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots, x_n)=0' title='p(y,x_1,&#92;ldots, x_n)=0' class='latex' /> is undecidable.</p>
<p style="text-align:left;">Therefore, the problem of deciding, given <img src='http://s0.wp.com/latex.php?latex=y%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in&#92;mathbb{N}' title='y&#92;in&#92;mathbb{N}' class='latex' />, whether or not there are <em>non-negative real numbers</em> <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> such that</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%28p%28y%2Cx_1%2C%5Cldots%2Cx_n%29%29%5E2+%2B+%5Csum_%7Bi%3D1%7D%5En+%5Csin%5E2+%5Cpi+x_i+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(p(y,x_1,&#92;ldots,x_n))^2 + &#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i = 0' title='(p(y,x_1,&#92;ldots,x_n))^2 + &#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i = 0' class='latex' /></p>
<p style="text-align:left;">is undecidable.</p>
<p style="text-align:left;">Now, let <img src='http://s0.wp.com/latex.php?latex=q%28y%2Cx_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q(y,x_1,&#92;ldots, x_n)' title='q(y,x_1,&#92;ldots, x_n)' class='latex' /> be an exponential polynomial which grows very fast (and such that <img src='http://s0.wp.com/latex.php?latex=q%280%2C%5Cldots%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q(0,&#92;ldots,0)' title='q(0,&#92;ldots,0)' class='latex' /> is very large).  Then, if <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 natural number and there are non-negative reals <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> such that</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7Bq%28y%2Cx_1%2C%5Cldots%2C+x_n%29%5Ccdot+%28%28p%28y%2Cx_1%2C%5Cldots%2C+x_n%29%29%5E2+%2B+%5Csum_%7Bi%3D1%7D%5En+%5Csin%5E2+%5Cpi+x_i%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{q(y,x_1,&#92;ldots, x_n)&#92;cdot ((p(y,x_1,&#92;ldots, x_n))^2 + &#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i})' title='&#92;displaystyle{q(y,x_1,&#92;ldots, x_n)&#92;cdot ((p(y,x_1,&#92;ldots, x_n))^2 + &#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i})' class='latex' /></p>
<p style="text-align:left;">is less than one, then both <img src='http://s0.wp.com/latex.php?latex=%7Cp%28y%2Cx_1%2C%5Cldots%2C+x_n%29%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|p(y,x_1,&#92;ldots, x_n)|' title='|p(y,x_1,&#92;ldots, x_n)|' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%3D1%7D%5En+%5Csin%5E2+%5Cpi+x_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i' title='&#92;sum_{i=1}^n &#92;sin^2 &#92;pi x_i' class='latex' /> are small.  From this last fact, we conclude that each <img src='http://s0.wp.com/latex.php?latex=x_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_i' title='x_i' class='latex' /> is close to a natural number.  Let <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_i%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;langle x_i&#92;rangle' title='&#92;langle x_i&#92;rangle' class='latex' /> be the natural number closest to <img src='http://s0.wp.com/latex.php?latex=x_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_i' title='x_i' class='latex' />.  Then, <img src='http://s0.wp.com/latex.php?latex=%7Cp%28y%2C%5Clangle+x_1%5Crangle%2C+%5Cldots%2C+%5Clangle+x_n%5Crangle%29%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|p(y,&#92;langle x_1&#92;rangle, &#92;ldots, &#92;langle x_n&#92;rangle)|' title='|p(y,&#92;langle x_1&#92;rangle, &#92;ldots, &#92;langle x_n&#92;rangle)|' class='latex' /> will be small.  But then, because it&#8217;s an integer, it will be zero.</p>
<p style="text-align:left;">Therefore, we have an expression <img src='http://s0.wp.com/latex.php?latex=G%28y%2Cx_1%5Cldots%2Cx_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G(y,x_1&#92;ldots,x_n)' title='G(y,x_1&#92;ldots,x_n)' class='latex' /> formed from sine and exponential functions (and rational numbers, addition, and multiplication) such that for each <img src='http://s0.wp.com/latex.php?latex=y%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in&#92;mathbb{N}' title='y&#92;in&#92;mathbb{N}' class='latex' />, there exist non-negative reals <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=G%28y%2Cx_1%2C%5Cldots%2C+x_n%29+%3C+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G(y,x_1,&#92;ldots, x_n) &lt; 1' title='G(y,x_1,&#92;ldots, x_n) &lt; 1' class='latex' /> iff there exist natural numbers <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots+x_n%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots x_n) = 0' title='p(y,x_1,&#92;ldots x_n) = 0' class='latex' /> (which is an undecidable problem).</p>
<p style="text-align:left;">By an argument which I won&#8217;t reproduce here, we can replace <img src='http://s0.wp.com/latex.php?latex=G%28y%2Cx_1%2C%5Cldots%2C+x_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G(y,x_1,&#92;ldots, x_n)' title='G(y,x_1,&#92;ldots, x_n)' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=G_0%28y%2Cx%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_0(y,x)' title='G_0(y,x)' class='latex' /> with the property that for each <img src='http://s0.wp.com/latex.php?latex=y%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in&#92;mathbb{N}' title='y&#92;in&#92;mathbb{N}' class='latex' /> there exists a real <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' /> such that <img src='http://s0.wp.com/latex.php?latex=G_0%28y%2Cx%29+%3C+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G_0(y,x) &lt; 0' title='G_0(y,x) &lt; 0' class='latex' /> iff there exist natural numbers <img src='http://s0.wp.com/latex.php?latex=x_1%2C%5Cldots%2C+x_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1,&#92;ldots, x_n' title='x_1,&#92;ldots, x_n' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=p%28y%2Cx_1%2C%5Cldots%2C+x_n%29%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p(y,x_1,&#92;ldots, x_n)= 0' title='p(y,x_1,&#92;ldots, x_n)= 0' class='latex' />.  (Notice 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' /> now ranges over all reals.)  But now, consider the sequence  of functions</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%7CG_0%280%2Cx%29%7C+-+G_0%280%2Cx%29%2C+%7CG_0%281%2Cx%29%7C+-+G_0%281%2Cx%29%2C+%7CG_0%282%2Cx%29%7C+-+G_0%282%2Cx%29%2C+%5Cldots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|G_0(0,x)| - G_0(0,x), |G_0(1,x)| - G_0(1,x), |G_0(2,x)| - G_0(2,x), &#92;ldots' title='|G_0(0,x)| - G_0(0,x), |G_0(1,x)| - G_0(1,x), |G_0(2,x)| - G_0(2,x), &#92;ldots' class='latex' /></p>
<p style="text-align:left;">Each is identically zero iff the corresponding <img src='http://s0.wp.com/latex.php?latex=G%28n%2Cx%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='G(n,x)' title='G(n,x)' class='latex' /> is ever less than zero, which is an undecidable problem.</p>
<p style="text-align:left;">The reference for Richardson&#8217;s paper is: Daniel Richardson, &#8220;Some unsolvable problems involving elementary functions of a real variable,&#8221; Journal of Symbolic Logic, Volume 33, 1968, pages 514&#8211;520</p>
<p style="text-align:left;">Another reference is: B.F. Caviness, &#8220;On canonical forms and simplification,&#8221; Journal of the ACM, volume 17, 1970, pages 385&#8211;396.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/155/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/155/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=155&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/09/14/the-undecidability-of-identities/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>A Geometrically Natural Uncomputable Function</title>
		<link>http://xorshammer.com/2008/09/04/a-geometrically-natural-uncomputable-function/</link>
		<comments>http://xorshammer.com/2008/09/04/a-geometrically-natural-uncomputable-function/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 02:50:47 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=148</guid>
		<description><![CDATA[There are many functions from to that cannot be computed by any algorithm or computer program. For example, a famous one is the halting problem, defined by if the th Turing machine halts and if the th Turing machine does &#8230; <a href="http://xorshammer.com/2008/09/04/a-geometrically-natural-uncomputable-function/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=148&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are many functions from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> that cannot be computed by any algorithm or computer program.  For example, a famous one is the <a href="http://en.wikipedia.org/wiki/Halting_problem">halting problem</a>, defined by <img src='http://s0.wp.com/latex.php?latex=f%28n%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(n) = 0' title='f(n) = 0' class='latex' /> if 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 Turing machine halts and <img src='http://s0.wp.com/latex.php?latex=f%28n%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(n) = 1' title='f(n) = 1' class='latex' /> if 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 Turing machine does not halt.  Another one in the same spirit is the <a href="http://en.wikipedia.org/wiki/Busy_beaver_function">busy beaver function</a>.</p>
<p>We also know a priori that there must be uncomputable functions, since there are <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0}' title='2^{&#92;aleph_0}' class='latex' /> functions from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> but only <img src='http://s0.wp.com/latex.php?latex=%5Caleph_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;aleph_0' title='&#92;aleph_0' class='latex' /> computer programs.  But that is nonconstructive, and the two examples I gave above seem a bit like they&#8217;re cheating since their definitions refer to the concept of computability.  Is there a natural example of an uncomputable function that does not refer to computability?</p>
<p>In <a href="http://www.math.toronto.edu/alex/wpk7.ps">this paper</a>,  Alex Nabutovsky found what I think is a great example of such a function from geometry.  Details below.</p>
<p><span id="more-148"></span></p>
<p>For any <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' />, let <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> be 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' />-dimensional unit sphere <img src='http://s0.wp.com/latex.php?latex=%5C%7Bx+%5Cin+%5Cmathbb%7BR%7D%5En+%5Cmid+%7Cx%7C+%3D+1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{x &#92;in &#92;mathbb{R}^n &#92;mid |x| = 1&#92;}' title='&#92;{x &#92;in &#92;mathbb{R}^n &#92;mid |x| = 1&#92;}' class='latex' />.  For all <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' /> there is an &#8220;equatorial&#8221; embedding of <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' /> sending <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_1%2C%5Cldots%2C+x_n%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;langle x_1,&#92;ldots, x_n&#92;rangle' title='&#92;langle x_1,&#92;ldots, x_n&#92;rangle' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Clangle+x_1%2C%5Cldots%2C+x_n%2C+0%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;langle x_1,&#92;ldots, x_n, 0&#92;rangle' title='&#92;langle x_1,&#92;ldots, x_n, 0&#92;rangle' class='latex' />.  This is certainly the nicest way of embedding <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' /> but there are other ways.</p>
<p>If <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> is an embedding of <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' /> then let its <em>amount of wiggle room</em> be the maximum amount that <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />&#8216;s image can be thickened before it intersects itself.  More precisely, it is the maximum <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=x_0+%2B+t_0+v_0+%5Cne+x_1+%2B+t_1+v_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0 + t_0 v_0 &#92;ne x_1 + t_1 v_1' title='x_0 + t_0 v_0 &#92;ne x_1 + t_1 v_1' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=t_0%2C+t_1+%3C+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t_0, t_1 &lt; t' title='t_0, t_1 &lt; t' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=x_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0' title='x_0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1' title='x_1' class='latex' /> are in the image of <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=v_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_0' title='v_0' class='latex' /> is the unit normal to the image of <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> at <img src='http://s0.wp.com/latex.php?latex=x_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0' title='x_0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=v_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='v_1' title='v_1' class='latex' /> is the unit normal to the image of <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> at <img src='http://s0.wp.com/latex.php?latex=x_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1' title='x_1' class='latex' />.  We let <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />&#8216;s <em>crumbledness </em>be the reciprocal of its amount of wiggle room.</p>
<p>It is known (by a theorem of  Stephen Smale) that any embedding of <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' /> can be isotoped to the equatorial embedding (up to reparameterization), but you may have to increase the crumbledness to do it.  Nabutovsky proves that, for any dimension <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' /> and crumbledness <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' />, there is an <img src='http://s0.wp.com/latex.php?latex=f_n%28c%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_n(c)' title='f_n(c)' class='latex' /> such that  any embedding of crumbledness <img src='http://s0.wp.com/latex.php?latex=%3Cc&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;c' title='&lt;c' class='latex' /> can be isotoped to the equatorial embedding going through only embeddings of crumbledness <img src='http://s0.wp.com/latex.php?latex=%3Cf_n%28c%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;f_n(c)' title='&lt;f_n(c)' class='latex' />.  We lose nothing in terms of complexity by considering <img src='http://s0.wp.com/latex.php?latex=f_n%5Ccolon+%5Cmathbb%7BN%7D%5Cto%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_n&#92;colon &#92;mathbb{N}&#92;to&#92;mathbb{N}' title='f_n&#92;colon &#92;mathbb{N}&#92;to&#92;mathbb{N}' class='latex' />.</p>
<p>Nabutovsky shows that for any <img src='http://s0.wp.com/latex.php?latex=n+%5Cgeq+5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;geq 5' title='n &#92;geq 5' class='latex' />, any <img src='http://s0.wp.com/latex.php?latex=f_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_n' title='f_n' class='latex' /> satisfying the above condition is uncomputable, and, furthermore, the minimum <img src='http://s0.wp.com/latex.php?latex=f_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_n' title='f_n' class='latex' /> which works grows like the busy beaver function!</p>
<p>The proof depends on the fact that for <img src='http://s0.wp.com/latex.php?latex=n%5Cgeq+5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;geq 5' title='n&#92;geq 5' class='latex' />, it is undecidable if a compact manifold (presented either as a simplicial complex, or as a zero-set of a polynomial with rational coefficients, or some such representation that a computer can handle) embedded in <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' /> is diffeomorphic to <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' />.  (For a good summary of these types of undecidability results in group theory and topology, see Section 3 of Bob Soare&#8217;s <a href="http://www.people.cs.uchicago.edu/~soare/res/Geometry/geom.pdf">Computability and Differential Geometry</a>.)  Essentially, the idea is that 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' /> were computable, you could decide if a manifold were homeomorphic to <img src='http://s0.wp.com/latex.php?latex=S%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^n' title='S^n' class='latex' /> by taking embedding it in <img src='http://s0.wp.com/latex.php?latex=S%5E%7Bn%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S^{n+1}' title='S^{n+1}' class='latex' />, measuring its crumbledness (say as <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' />), then checking all possible isotopies of the manifold through embeddings of crumbledness <img src='http://s0.wp.com/latex.php?latex=%3C+f_n%28c%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt; f_n(c)' title='&lt; f_n(c)' class='latex' />.  The fact that the manifold&#8217;s crumbledness can be measured and that all possible isotopies going through embeddings of bounded crumbledess can be checked computably is related to the fact that often you can computably search over compact spaces, as I wrote about in <a href="http://xorshammer.wordpress.com/2008/08/21/compute-definite-integral/">this post</a>.</p>
<p>If you can get a hold of a copy, I highly recommend Shmuel Weinberger&#8217;s book <a href="http://books.google.com/books?id=CtvmQiuOKSEC&amp;printsec=frontcover&amp;dq=shmuel+weinberger&amp;sig=ACfU3U3ODHye2679NPO2AlELJZFR6WlVPg">Computers, Rigidity, and Moduli</a>, where he talks about this and other related results in a very lively and engaging manner.</p>
<p>Edit: Fixed some notation.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/148/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/148/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=148&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/09/04/a-geometrically-natural-uncomputable-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrability Conditions (Guest Post!)</title>
		<link>http://xorshammer.com/2008/09/04/integrability-conditions-guest-post/</link>
		<comments>http://xorshammer.com/2008/09/04/integrability-conditions-guest-post/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 23:38:13 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=149</guid>
		<description><![CDATA[Please enjoy the following guest post on differential geometry by Tim Goldberg. A symplectic structure on a manifold is a differential -form satisfying two conditions: is non-degenerate, i.e. for each and tangent vector based at , if for all tangent &#8230; <a href="http://xorshammer.com/2008/09/04/integrability-conditions-guest-post/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=149&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please enjoy the following guest post on differential geometry by <a href="http://www.math.cornell.edu/~goldberg/">Tim Goldberg</a>.</p>
<p>A <em>symplectic structure</em> on a manifold <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 differential <img src='http://s0.wp.com/latex.php?latex=2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2' title='2' class='latex' />-form <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> satisfying two conditions:</p>
<ol>
<li> <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is <em>non-degenerate</em>, i.e. for each <img src='http://s0.wp.com/latex.php?latex=p+%5Cin+M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;in M' title='p &#92;in M' class='latex' /> and tangent vector <img src='http://s0.wp.com/latex.php?latex=%5Cvec%7Bu%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vec{u}' title='&#92;vec{u}' class='latex' /> based at <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=%5Comega_p%28%5Cvec%7Bu%7D%2C%5Cvec%7Bv%7D%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_p(&#92;vec{u},&#92;vec{v}) = 0' title='&#92;omega_p(&#92;vec{u},&#92;vec{v}) = 0' class='latex' /> for all tangent vectors <img src='http://s0.wp.com/latex.php?latex=%5Cvec%7Bv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vec{v}' title='&#92;vec{v}' class='latex' /> based at <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Cvec%7Bu%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vec{u}' title='&#92;vec{u}' class='latex' /> is the zero vector;</li>
<li><img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is <em>closed</em>, i.e. the exterior derivative of <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is zero, i.e. <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bd%7D+%5Comega+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{d} &#92;omega = 0' title='&#92;mathrm{d} &#92;omega = 0' class='latex' />.</li>
</ol>
<p>In trying to come up with answers to questions like &#8220;what do you do?&#8221; and &#8220;what is symplectic geometry?&#8221; that would be accessible to an advanced undergraduate or beginning graduate student, I&#8217;ve tried to come up with fairly intuitive descriptions of what the two symplectic structure conditions really mean.</p>
<p>Non-degeneracy is pretty easy, because my intended audience is certainly familiar with the dot product in Euclidean space, and probably familiar with more general machinery like inner products and bilinear forms. A <em>bilinear form</em> on a vector space over a field <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{F}' title='&#92;mathbb{F}' class='latex' /> is just an assignment of a number in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BF%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{F}' title='&#92;mathbb{F}' class='latex' /> to each pair of vectors, in such a way that the assignment is linear in each vector in the pair. A bilinear form is called <em>non-degenerate</em> if the only thing that pairs to zero with every single vector is the zero vector. A <img src='http://s0.wp.com/latex.php?latex=2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2' title='2' class='latex' />-form on <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 collection <img src='http://s0.wp.com/latex.php?latex=%5Comega+%3D+%5C%7B+%5Comega_p+%5Cmid+p+%5Cin+M+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega = &#92;{ &#92;omega_p &#92;mid p &#92;in M &#92;}' title='&#92;omega = &#92;{ &#92;omega_p &#92;mid p &#92;in M &#92;}' class='latex' /> of skew-symmetric bilinear forms, one for each tangent space 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' />. Saying that <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is non-degenerate is saying that each of these bilinear forms is non-degenerate.</p>
<p>It&#8217;s much less clear how to describe to the uninitiated what the closed condition means. It&#8217;s even a bit unclear why this condition is required in the first place. A pretty nice answer came up yesterday, in a reading group I attend that is trying to learn about generalized complex structure. We are going through the PhD thesis of Marco Gualtieri, titled &#8220;Generalized Complex Geometry&#8221;. It is available at the following websites:</p>
<p style="text-align:center;"><a href="http://front.math.ucdavis.edu/0401.5221">http://front.math.ucdavis.edu/0401.5221</a></p>
<p style="text-align:center;"><a href="http://front.math.ucdavis.edu/0703.5298">http://front.math.ucdavis.edu/0703.5298</a>.</p>
<p>This was the first meeting, and <a href="http://www.math.cornell.edu/People/Faculty/matsumura.html">Tomoo Matsumura</a> was the speaker. He suggested that the requirement that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bd%7D+%5Comega+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{d} &#92;omega = 0' title='&#92;mathrm{d} &#92;omega = 0' class='latex' /> is an <em>integrability condition</em>. I had never thought of it this way, but I probably will from now on.<br />
<span id="more-149"></span><strong></strong></p>
<p><strong>Almost complex and complex structures</strong></p>
<p>Let me first describe what integrability means for an almost complex structure on a manifold. A <em>complex structure on a vector space</em> <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> is real and finite-dimensional, is a linear endomorphism <img src='http://s0.wp.com/latex.php?latex=J%5Ccolon%7BV%7D%5Cto%7BV%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J&#92;colon{V}&#92;to{V}' title='J&#92;colon{V}&#92;to{V}' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=J%5E2+%3D+-+%5Cmathrm%7Bid%7D_V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J^2 = - &#92;mathrm{id}_V' title='J^2 = - &#92;mathrm{id}_V' class='latex' />. Taking the determinant of both sides, we have <img src='http://s0.wp.com/latex.php?latex=%28%5Cdet+J%29%5E2+%3D+%28-1%29%5E%7B%5Cdim+V%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;det J)^2 = (-1)^{&#92;dim V}' title='(&#92;det J)^2 = (-1)^{&#92;dim V}' class='latex' />. Since <img src='http://s0.wp.com/latex.php?latex=%28%5Cdet+J%29%5E2+%5Cgeq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;det J)^2 &#92;geq 0' title='(&#92;det J)^2 &#92;geq 0' class='latex' />, we must have <img src='http://s0.wp.com/latex.php?latex=%28-1%29%5E%7B%5Cdim+V%7D+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(-1)^{&#92;dim V} = 1' title='(-1)^{&#92;dim V} = 1' class='latex' />, so <img src='http://s0.wp.com/latex.php?latex=%5Cdim+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;dim V' title='&#92;dim V' class='latex' /> must be even. Furthermore, since <img src='http://s0.wp.com/latex.php?latex=%28%5Cdet+J%29%5E2+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;det J)^2 = 1' title='(&#92;det J)^2 = 1' class='latex' />, we know <img src='http://s0.wp.com/latex.php?latex=%5Cdet+J+%5Cneq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;det J &#92;neq 0' title='&#92;det J &#92;neq 0' class='latex' />, so <img src='http://s0.wp.com/latex.php?latex=J&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J' title='J' class='latex' /> is a linear automorphism. The complex structure <img src='http://s0.wp.com/latex.php?latex=J&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J' title='J' class='latex' /> makes <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> into a complex vector space, by setting</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%28a%2Bb+%5Cmathrm%7Bi%7D%29+%5Cvec%7Bv%7D+%3A%3D+a+%5Cvec%7Bv%7D+%2B+b+%5C%2C+J%28%5Cvec%7Bv%7D%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{(a+b &#92;mathrm{i}) &#92;vec{v} := a &#92;vec{v} + b &#92;, J(&#92;vec{v})}' title='&#92;displaystyle{(a+b &#92;mathrm{i}) &#92;vec{v} := a &#92;vec{v} + b &#92;, J(&#92;vec{v})}' class='latex' /></p>
<p>for <img src='http://s0.wp.com/latex.php?latex=a%2C+b+%5Cin+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b &#92;in &#92;mathbb{R}' title='a, b &#92;in &#92;mathbb{R}' class='latex' />and <img src='http://s0.wp.com/latex.php?latex=%5Cvec%7Bv%7D+%5Cin+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;vec{v} &#92;in V' title='&#92;vec{v} &#92;in V' class='latex' />.</p>
<p>The standard example is <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%7B2n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^{2n}' title='&#92;mathbb{R}^{2n}' class='latex' /> with its usual ordered basis, labelled <img src='http://s0.wp.com/latex.php?latex=x_1%2C+y_1%2C+%5Cldots%2C+x_n%2C+y_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, y_1, &#92;ldots, x_n, y_n' title='x_1, y_1, &#92;ldots, x_n, y_n' class='latex' />, and complex structure <img src='http://s0.wp.com/latex.php?latex=J_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J_0' title='J_0' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=J_0%28x_j%29+%3D+y_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J_0(x_j) = y_j' title='J_0(x_j) = y_j' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=J_0%28y_j%29+%3D+-+x_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J_0(y_j) = - x_j' title='J_0(y_j) = - x_j' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />. Putting <img src='http://s0.wp.com/latex.php?latex=z_j+%3D+x_j+%2B+%5Cmathrm%7Bi%7D+y_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_j = x_j + &#92;mathrm{i} y_j' title='z_j = x_j + &#92;mathrm{i} y_j' class='latex' />, we obtain the usual ordered basis for <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}^n' title='&#92;mathbb{C}^n' class='latex' /> with its usual complex structure.</p>
<p>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 <img src='http://s0.wp.com/latex.php?latex=%282n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2n)' title='(2n)' class='latex' />-dimensional manifold. An <em>almost complex structure</em> on <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 smoothly-varying collection <img src='http://s0.wp.com/latex.php?latex=J+%3D+%5C%7B+J_p+%5Cmid+p+%5Cin+M+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J = &#92;{ J_p &#92;mid p &#92;in M &#92;}' title='J = &#92;{ J_p &#92;mid p &#92;in M &#92;}' class='latex' /> of complex structures, one for each tangent space 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' />. (The existence of an almost complex structure forces <img src='http://s0.wp.com/latex.php?latex=%5Cdim+M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;dim M' title='&#92;dim M' class='latex' /> to be even.) An almost complex structure on <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 just a bunch of complex structures on the tangent spaces glued together smoothly along <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' />. Recall that as a manifold, all tangent spaces to a vector space can be canonically identified with the vector space itself, so a choice of complex structure on the vector space induces an almost complex structure on the vector space as a manifold.</p>
<p>An almost complex structure <img src='http://s0.wp.com/latex.php?latex=J&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J' title='J' class='latex' /> on <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 called a <em>complex structure</em> if the complex structures on the vector spaces fit together in an even nicer way. We require that there be a covering 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' /> by coordinate neighborhoods such that on each such neighborhood <img src='http://s0.wp.com/latex.php?latex=J&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J' title='J' class='latex' /> is the pullback of the standard complex structure on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%7B2n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^{2n}' title='&#92;mathbb{R}^{2n}' class='latex' />. We require also that all transition maps for these coordinate charts be holomorphic with respect to the standard complex structure. This collection of coordinate charts form a complex atlas for <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 give <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' /> the structure of a complex manifold. (Notice that&#8217;s it&#8217;s easy to choose coordinates so that a single <img src='http://s0.wp.com/latex.php?latex=J_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J_p' title='J_p' class='latex' /> looks like the standard one, <img src='http://s0.wp.com/latex.php?latex=J_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='J_0' title='J_0' class='latex' />. We require that this hold not just at a single point, but in an entire neighborhood of the point.)</p>
<p>An almost complex structure <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 called <em>integrable</em> if it is actually a complex structure. There are many integrability conditions for almost complex structures, such as the vanishing of the <em>Nijenhuis tensor</em> associated to an almost complex structure.</p>
<p><strong>Almost symplectic and symplectic structures</strong></p>
<p>Now we give a parallel discussion for symplectic structures. A <em>symplectic structure on a vector space</em> <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> is real and finite-dimensional, is non-degenerate and skew-symmetric bilinear form <img src='http://s0.wp.com/latex.php?latex=%5COmega%5Ccolon%7BV+%5Ctimes+V%7D%5Cto%7B%5Cmathbb%7BR%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega&#92;colon{V &#92;times V}&#92;to{&#92;mathbb{R}}' title='&#92;Omega&#92;colon{V &#92;times V}&#92;to{&#92;mathbb{R}}' class='latex' />. Choose a basis for <img src='http://s0.wp.com/latex.php?latex=V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='V' title='V' class='latex' /> and represent <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> by a matrix <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' /> relative to this basis. Because <img src='http://s0.wp.com/latex.php?latex=%5COmega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega' title='&#92;Omega' class='latex' /> is non-degenerate we know <img src='http://s0.wp.com/latex.php?latex=%5Cdet+A+%5Cneq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;det A &#92;neq 0' title='&#92;det A &#92;neq 0' class='latex' />, and because it is skew-symmetric we know that <img src='http://s0.wp.com/latex.php?latex=A+%3D+-A%5E%7B%5Ctext%7Btr%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A = -A^{&#92;text{tr}}' title='A = -A^{&#92;text{tr}}' class='latex' />, so <img src='http://s0.wp.com/latex.php?latex=%5Cdet+A+%3D+%5Cdet+%28-A%5E%7B%5Ctext%7Btr%7D%7D%29+%3D+%28-1%29%5E%7B%5Cdim+V%7D+%5Cdet+A%5E%7B%5Ctext%7Btr%7D%7D+%3D+%28-1%29%5E%7B%5Cdim+V%7D+%5Cdet+A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;det A = &#92;det (-A^{&#92;text{tr}}) = (-1)^{&#92;dim V} &#92;det A^{&#92;text{tr}} = (-1)^{&#92;dim V} &#92;det A' title='&#92;det A = &#92;det (-A^{&#92;text{tr}}) = (-1)^{&#92;dim V} &#92;det A^{&#92;text{tr}} = (-1)^{&#92;dim V} &#92;det A' class='latex' />. Hence <img src='http://s0.wp.com/latex.php?latex=%28-1%29%5E%7B%5Cdim+V%7D+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(-1)^{&#92;dim V} = 1' title='(-1)^{&#92;dim V} = 1' class='latex' />, so <img src='http://s0.wp.com/latex.php?latex=%5Cdim+V&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;dim V' title='&#92;dim V' class='latex' /> must be even.</p>
<p>The standard example is <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%7B2n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^{2n}' title='&#92;mathbb{R}^{2n}' class='latex' />with its usual ordered basis, labelled <img src='http://s0.wp.com/latex.php?latex=x_1%2C+y_1%2C+%5Cldots%2C+x_n%2C+y_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_1, y_1, &#92;ldots, x_n, y_n' title='x_1, y_1, &#92;ldots, x_n, y_n' class='latex' />, and symplectic structure <img src='http://s0.wp.com/latex.php?latex=%5COmega_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega_0' title='&#92;Omega_0' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=%5COmega_0%28x_i%2Cy_j%29+%3D+%5Cdelta_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega_0(x_i,y_j) = &#92;delta_{ij}' title='&#92;Omega_0(x_i,y_j) = &#92;delta_{ij}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5COmega_0%28x_i%2Cx_j%29+%3D+%5COmega_0%28y_i%2Cy_j%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Omega_0(x_i,x_j) = &#92;Omega_0(y_i,y_j) = 0' title='&#92;Omega_0(x_i,x_j) = &#92;Omega_0(y_i,y_j) = 0' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Cdelta_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta_{ij}' title='&#92;delta_{ij}' class='latex' /> is the Kronecker delta.</p>
<p>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 <img src='http://s0.wp.com/latex.php?latex=%282n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2n)' title='(2n)' class='latex' />-dimensional manifold. An <em>almost symplectic structure</em> on <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 smoothly-varying collection <img src='http://s0.wp.com/latex.php?latex=%5Comega+%3D+%5C%7B+%5Comega_p+%5Cmid+p+%5Cin+M+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega = &#92;{ &#92;omega_p &#92;mid p &#92;in M &#92;}' title='&#92;omega = &#92;{ &#92;omega_p &#92;mid p &#92;in M &#92;}' class='latex' /> of symplectic structures, one for each tangent space 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' />. (The existence of an almost symplectic structure forces <img src='http://s0.wp.com/latex.php?latex=%5Cdim+M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;dim M' title='&#92;dim M' class='latex' /> to be even.) An almost symplectic structure on <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 just a bunch of symplectic structures on the tangent spaces glued together smoothly along <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' />.  As before, a choice of symplectic structure on a vector space induces an almost symplectic structure on the vector space as a manifold.</p>
<p>An almost symplectic structure <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> on <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 called a <em>symplectic structure</em> if the symplectic structures on the vector spaces fit together in an even nicer way. Analogous to the complex structure case, we require that there be a covering 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' /> by coordinate neighborhoods such that on each such neighborhood <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is the pullback of the standard complex structure on <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%7B2n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^{2n}' title='&#92;mathbb{R}^{2n}' class='latex' />. We require also that all transition maps for these coordinate charts be symplectic with respect to the standard symplectic structure. A manifold with a symplectic structure is a symplectic manifold.</p>
<p>Not much seems to be said about almost symplectic structures on manifolds, and so even less is said about <em>integrable</em> almost symplectic structures. But if one were to say something about them, surely the first thing would be to notice that, by Darboux&#8217;s Theorem, there is an extremely simple integrability condition. This is exactly that <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> be closed, i.e. that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bd%7D+%5Comega+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{d} &#92;omega = 0' title='&#92;mathrm{d} &#92;omega = 0' class='latex' />.</p>
<p><strong>Summary</strong></p>
<p>To summarize, every manifold is locally isomorphic to some <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^n' title='&#92;mathbb{R}^n' class='latex' />. An almost complex manifold is one equipped with a smoothly varying collection of complex  structures on its tangent spaces. An almost complex manifold is a complex manifold if it is locally isomorphic to some <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%7B2n%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^{2n}' title='&#92;mathbb{R}^{2n}' class='latex' /> with its standard complex structure. In this case, the almost complex structure is called integrable.  Every previous sentence in this paragraph holds with the word &#8220;complex&#8221; replaced with &#8220;symplectic&#8221;. There are many well-known conditions for an almost complex structure to be integrable. To the best of my knowledge, there is really only one well-known condition for an almost symplectic structure to be integrable, and this is the innocuous looking requirement that <img src='http://s0.wp.com/latex.php?latex=%5Cmathrm%7Bd%7D+%5Comega+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathrm{d} &#92;omega = 0' title='&#92;mathrm{d} &#92;omega = 0' class='latex' />.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/149/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/149/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=149&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/09/04/integrability-conditions-guest-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Lots of Fun Math Papers</title>
		<link>http://xorshammer.com/2008/08/29/lots-of-fun-math-papers/</link>
		<comments>http://xorshammer.com/2008/08/29/lots-of-fun-math-papers/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 18:22:11 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=144</guid>
		<description><![CDATA[In the course of looking up a link for my last blog entry, I discovered the MAA Writing Awards site, which collects many pdfs of articles that have won MAA writing awards.  From browsing it a bit, it seems to &#8230; <a href="http://xorshammer.com/2008/08/29/lots-of-fun-math-papers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=144&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the course of looking up a link for my <a href="http://xorshammer.wordpress.com/2008/08/29/non-rigorous-arguments-1-two-formulas-for-e/">last blog entry</a>, I discovered <a href="http://mathdl.maa.org/mathDL/22/">the MAA Writing Awards site</a>, which collects many pdfs of articles that have won MAA writing awards.  From browsing it a bit, it seems to be a goldmine of fun math articles.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/144/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/144/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=144&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/29/lots-of-fun-math-papers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Non-Rigorous Arguments 1: Two Formulas For e</title>
		<link>http://xorshammer.com/2008/08/29/non-rigorous-arguments-1-two-formulas-for-e/</link>
		<comments>http://xorshammer.com/2008/08/29/non-rigorous-arguments-1-two-formulas-for-e/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 17:31:25 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=141</guid>
		<description><![CDATA[I&#8217;m a big fan of non-rigorous arguments, especially in calculus and analysis. I think there should be a book cataloging all the beautiful, morally-true-but-not-actually-true proofs that mathematicians have advanced, but until that time I&#8217;ll try to at least catalog a &#8230; <a href="http://xorshammer.com/2008/08/29/non-rigorous-arguments-1-two-formulas-for-e/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=141&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of non-rigorous arguments, especially in calculus and analysis.  I think there should be a book cataloging all the beautiful, morally-true-but-not-actually-true proofs that mathematicians have advanced, but until that time I&#8217;ll try to at least catalog a few of them on my blog.</p>
<p>This first one is Euler&#8217;s original argument for the equality of two expressions (both of which happen to define <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' />):</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Csum_%7Bn%3D0%7D%5E%5Cinfty+%5Cfrac%7B1%7D%7Bn%21%7D+%3D+%5Clim_%7Bn%5Cto%5Cinfty%7D%5Cleft%281+%2B+%5Cfrac%7B1%7D%7Bn%7D%5Cright%29%5En%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;sum_{n=0}^&#92;infty &#92;frac{1}{n!} = &#92;lim_{n&#92;to&#92;infty}&#92;left(1 + &#92;frac{1}{n}&#92;right)^n}' title='&#92;displaystyle{&#92;sum_{n=0}^&#92;infty &#92;frac{1}{n!} = &#92;lim_{n&#92;to&#92;infty}&#92;left(1 + &#92;frac{1}{n}&#92;right)^n}' class='latex' /></p>
<p style="text-align:left;">I&#8217;ll also sketch how this can be made rigorous in <a href="http://en.wikipedia.org/wiki/Non-standard_analysis">non-standard analysis</a>.</p>
<p style="text-align:left;"><span id="more-141"></span></p>
<p style="text-align:left;">The argument is as follows: The limit <img src='http://s0.wp.com/latex.php?latex=%5Clim_%7Bn%5Cto%5Cinfty%7D+%281+%2B+1%2Fn%29%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lim_{n&#92;to&#92;infty} (1 + 1/n)^n' title='&#92;lim_{n&#92;to&#92;infty} (1 + 1/n)^n' class='latex' /> is equal to <img src='http://s0.wp.com/latex.php?latex=%281+%2B+1%2FN%29%5EN&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1 + 1/N)^N' title='(1 + 1/N)^N' class='latex' />, where <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' /> is infinitely large.  By the binomial theorem, this is:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B1+%2B+N%5Cfrac%7B1%7D%7BN%7D+%2B+%7BN%5Cchoose+2%7D%5Cfrac%7B1%7D%7BN%5E2%7D+%2B+%5Ccdots+%2B+%5Cfrac%7B1%7D%7BN%5EN%7D+%3D+%5Csum_%7Bi%3D0%7D%5EN+%7BN%5Cchoose+i%7D%5Cfrac%7B1%7D%7BN%5Ei%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{1 + N&#92;frac{1}{N} + {N&#92;choose 2}&#92;frac{1}{N^2} + &#92;cdots + &#92;frac{1}{N^N} = &#92;sum_{i=0}^N {N&#92;choose i}&#92;frac{1}{N^i}}' title='&#92;displaystyle{1 + N&#92;frac{1}{N} + {N&#92;choose 2}&#92;frac{1}{N^2} + &#92;cdots + &#92;frac{1}{N^N} = &#92;sum_{i=0}^N {N&#92;choose i}&#92;frac{1}{N^i}}' class='latex' /></p>
<p style="text-align:left;">Since <img src='http://s0.wp.com/latex.php?latex=N%5Cchoose+i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N&#92;choose i' title='N&#92;choose i' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=N%28N-1%29%5Ccdots+%28N-+%28i+-+1%29%29%2F+i%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N(N-1)&#92;cdots (N- (i - 1))/ i!' title='N(N-1)&#92;cdots (N- (i - 1))/ i!' class='latex' />, this is the sum as <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> ranges from <img src='http://s0.wp.com/latex.php?latex=%7B0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{0}' title='{0}' class='latex' /> to <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' /> of:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7BN%28N-1%29%5Ccdots+%28N-%28i-1%29%29%7D%7BN%5Ei%7D%5Ccdot%5Cfrac%7B1%7D%7Bi%21%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;frac{N(N-1)&#92;cdots (N-(i-1))}{N^i}&#92;cdot&#92;frac{1}{i!}}' title='&#92;displaystyle{&#92;frac{N(N-1)&#92;cdots (N-(i-1))}{N^i}&#92;cdot&#92;frac{1}{i!}}' class='latex' /></p>
<p style="text-align:left;">Now, if <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> is infinitely large, this term is so small that it may be neglected.  On the other hand, if <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> is finite, then  <img src='http://s0.wp.com/latex.php?latex=N+-+j+%3D+N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N - j = N' title='N - j = N' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=j%3C+i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j&lt; i' title='j&lt; i' class='latex' />. Therefore</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7BN%28N-1%29%5Ccdots+%28N-%28i-1%29%29%7D%7BN%5Ei%7D%3D1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;frac{N(N-1)&#92;cdots (N-(i-1))}{N^i}=1}' title='&#92;displaystyle{&#92;frac{N(N-1)&#92;cdots (N-(i-1))}{N^i}=1}' class='latex' /></p>
<p style="text-align:left;">and the whole sum is equal to</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%7B%5Csum_%7Bi%3D0%7D%5EN+%5Cfrac%7B1%7D%7Bi%21%7D+%3D+%5Csum_%7Bi%3D0%7D%5E%5Cinfty+%5Cfrac%7B1%7D%7Bi%21%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle {&#92;sum_{i=0}^N &#92;frac{1}{i!} = &#92;sum_{i=0}^&#92;infty &#92;frac{1}{i!}}' title='&#92;displaystyle {&#92;sum_{i=0}^N &#92;frac{1}{i!} = &#92;sum_{i=0}^&#92;infty &#92;frac{1}{i!}}' class='latex' />,</p>
<p style="text-align:left;">as desired.</p>
<p style="text-align:left;">Now, I&#8217;ll sketch how to make this rigorous in non-standard analysis.  This is from <a href="http://mathdl.maa.org/images/upload_library/22/Allendoerfer/2002/0025570x.di021222.02p0075s.pdf">Higher Trigonometry, Hyperreal Numbers, and Euler&#8217;s Analysis of Infinities</a> by Mark McKinzie and Curtis Tuckey, which is the best introductory article on non-standard analysis that I&#8217;ve read.</p>
<p style="text-align:left;">In non-standard analysis, one extends the real numbers <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to a larger field <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^*' title='&#92;mathbb{R}^*' class='latex' /> which contains all the reals, but also a positive <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;epsilon' title='&#92;epsilon' class='latex' /> which is less than every positive real (and hence also a number <img src='http://s0.wp.com/latex.php?latex=1%2F%5Cepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/&#92;epsilon' title='1/&#92;epsilon' class='latex' /> which is greater than every real). For every function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BR%7D%5En+%5Cto+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{R}^n &#92;to &#92;mathbb{R}' title='f&#92;colon &#92;mathbb{R}^n &#92;to &#92;mathbb{R}' class='latex' />, there is a function <img src='http://s0.wp.com/latex.php?latex=f%5E%2A%5Ccolon+%28%5Cmathbb%7BR%7D%5E%2A%29%5En+%5Cto+%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^*&#92;colon (&#92;mathbb{R}^*)^n &#92;to &#92;mathbb{R}^*' title='f^*&#92;colon (&#92;mathbb{R}^*)^n &#92;to &#92;mathbb{R}^*' class='latex' />, and the <img src='http://s0.wp.com/latex.php?latex=f%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^*' title='f^*' class='latex' />&#8216;s satisfy all the same identities and inequalities formed out of composition that the <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' />&#8216;s do.  (For example, <img src='http://s0.wp.com/latex.php?latex=%5Csin%5E%2A%282x%29+%3D+2%5Csin%5E%2A%28x%29%5Ccos%5E%2A%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin^*(2x) = 2&#92;sin^*(x)&#92;cos^*(x)' title='&#92;sin^*(2x) = 2&#92;sin^*(x)&#92;cos^*(x)' class='latex' /> for all hyperreal <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' />.)   For that reason, I&#8217;ll often omit the <img src='http://s0.wp.com/latex.php?latex=%7B%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{}^*' title='{}^*' class='latex' />.  The range of <img src='http://s0.wp.com/latex.php?latex=%28x+%5Cmapsto+%5Clfloor+x+%5Crfloor%29%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x &#92;mapsto &#92;lfloor x &#92;rfloor)^*' title='(x &#92;mapsto &#92;lfloor x &#92;rfloor)^*' class='latex' /> is called <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BZ%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{Z}^*' title='&#92;mathbb{Z}^*' class='latex' />, the hyperintegers.  Since <img src='http://s0.wp.com/latex.php?latex=x+-+1%5Cleq+%5Clfloor+x+%5Crfloor+%5Cleq+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x - 1&#92;leq &#92;lfloor x &#92;rfloor &#92;leq x' title='x - 1&#92;leq &#92;lfloor x &#92;rfloor &#92;leq x' class='latex' />, the same is true in the hyperreals and there are therefore infinite hyperintegers.</p>
<p style="text-align:left;">We call a nonzero hyperreal <img src='http://s0.wp.com/latex.php?latex=x%5Cin+%5Cmathbb%7BR%7D%5E%2A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in &#92;mathbb{R}^*' title='x&#92;in &#92;mathbb{R}^*' class='latex' /> infinitesimal if <img src='http://s0.wp.com/latex.php?latex=%7Cx%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x|' title='|x|' class='latex' /> is less than every positive real.  We say 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 close (written <img src='http://s0.wp.com/latex.php?latex=x%5Csimeq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;simeq y' title='x&#92;simeq y' class='latex' />) if <img src='http://s0.wp.com/latex.php?latex=x+-+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x - y' title='x - y' class='latex' /> is infinitesimal.  We say 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' /> is infinite if <img src='http://s0.wp.com/latex.php?latex=1%2Fx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/x' title='1/x' class='latex' /> is infinitesimal (equivalently, if <img src='http://s0.wp.com/latex.php?latex=%7Cx%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x|' title='|x|' class='latex' /> is greater than every real).  We say 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' /> is finite if it&#8217;s not infinite (equivalently, if <img src='http://s0.wp.com/latex.php?latex=%7Cx%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x|' title='|x|' class='latex' /> is less than some real).</p>
<p style="text-align:left;">Let <img src='http://s0.wp.com/latex.php?latex=%5C%7Bs_n%5C%7D_%7Bn%3D0%7D%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{s_n&#92;}_{n=0}^&#92;infty' title='&#92;{s_n&#92;}_{n=0}^&#92;infty' class='latex' /> be a sequence of hyperreals.  We say that it is determinate if <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bn%3D0%7D%5EN+s_n+%5Csimeq+%5Csum_%7Bn%3D0%7D%5EM+s_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{n=0}^N s_n &#92;simeq &#92;sum_{n=0}^M s_n' title='&#92;sum_{n=0}^N s_n &#92;simeq &#92;sum_{n=0}^M s_n' class='latex' /> whenever <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' /> and <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' /> are infinite</p>
<p style="text-align:left;">The Summation Theorem can then be proven: If <img src='http://s0.wp.com/latex.php?latex=%5C%7Bs_n%5C%7D_%7Bn%3D0%7D%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{s_n&#92;}_{n=0}^&#92;infty' title='&#92;{s_n&#92;}_{n=0}^&#92;infty' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5C%7Bt_n%5C%7D_%7Bn%3D0%7D%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{t_n&#92;}_{n=0}^&#92;infty' title='&#92;{t_n&#92;}_{n=0}^&#92;infty' class='latex' /> are two determinate sequences such that <img src='http://s0.wp.com/latex.php?latex=s_n+%5Csimeq+t_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_n &#92;simeq t_n' title='s_n &#92;simeq t_n' class='latex' /> for all finite <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 <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bn%3D0%7D%5EN+s_n+%5Csimeq+%5Csum_%7Bn%3D0%7D%5EN+t_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{n=0}^N s_n &#92;simeq &#92;sum_{n=0}^N t_n' title='&#92;sum_{n=0}^N s_n &#92;simeq &#92;sum_{n=0}^N t_n' class='latex' /> for all infinite <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' />.</p>
<p style="text-align:left;">By appropriately replacing &#8220;equals&#8221; with &#8220;is close to&#8221;, Euler&#8217;s argument above may now be adapted to prove that for all infinite <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' /> and <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' />,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cleft%281+%2B+%5Cfrac%7B1%7D%7BN%7D%5Cright%29%5EN+%5Csimeq+%5Csum_%7Bn%3D0%7D%5EM+%5Cfrac%7B1%7D%7Bn%21%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle{&#92;left(1 + &#92;frac{1}{N}&#92;right)^N &#92;simeq &#92;sum_{n=0}^M &#92;frac{1}{n!}}' title='&#92;displaystyle{&#92;left(1 + &#92;frac{1}{N}&#92;right)^N &#92;simeq &#92;sum_{n=0}^M &#92;frac{1}{n!}}' class='latex' /></p>
<p style="text-align:left;">(the sequence <img src='http://s0.wp.com/latex.php?latex=s_n+%3D+1%2Fn%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s_n = 1/n!' title='s_n = 1/n!' class='latex' /> may be proved determinate by comparison with the geometric sequence, which is easily shown determinate).  By a transfer principle, this may in turn be used to prove that <img src='http://s0.wp.com/latex.php?latex=%5Clim_%7Bn%5Cto+%5Cinfty%7D+%281+%2B+1%2Fn%29%5En+%3D+%5Csum_%7Bn%3D0%7D%5E%5Cinfty+1%2Fn%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lim_{n&#92;to &#92;infty} (1 + 1/n)^n = &#92;sum_{n=0}^&#92;infty 1/n!' title='&#92;lim_{n&#92;to &#92;infty} (1 + 1/n)^n = &#92;sum_{n=0}^&#92;infty 1/n!' class='latex' /> (in the regular reals).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/141/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/141/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=141&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/29/non-rigorous-arguments-1-two-formulas-for-e/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>A Curious Application of Ambiguity with Respect to the Possessive Form</title>
		<link>http://xorshammer.com/2008/08/25/a-curious-application-of-ambiguity-with-respect-to-the-possessive-form/</link>
		<comments>http://xorshammer.com/2008/08/25/a-curious-application-of-ambiguity-with-respect-to-the-possessive-form/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 22:38:25 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=136</guid>
		<description><![CDATA[Why did the chicken cross the island on Lost? To get to the Others&#8217; side. (Composed by Tim Goldberg.)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=136&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why did the chicken cross the island on Lost?</p>
<p><span id="more-136"></span></p>
<p>To get to the Others&#8217; side.</p>
<p>(Composed by <a href="http://www.math.cornell.edu/~goldberg/">Tim Goldberg</a>.)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/136/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/136/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=136&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/25/a-curious-application-of-ambiguity-with-respect-to-the-possessive-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Almost a Number-Theoretic Miracle</title>
		<link>http://xorshammer.com/2008/08/25/almost-a-number-theoretic-miracle/</link>
		<comments>http://xorshammer.com/2008/08/25/almost-a-number-theoretic-miracle/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 18:33:20 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=131</guid>
		<description><![CDATA[An arithmetic statement is one made up of quantifiers &#8220;,&#8221; &#8220;,&#8221; the logical connectives &#8220;and,&#8221; &#8220;or,&#8221; &#8220;not&#8221;, function symbols , , constants , , and variables which are bound by the aforementioned quantifiers. It is known that there is no &#8230; <a href="http://xorshammer.com/2008/08/25/almost-a-number-theoretic-miracle/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=131&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An arithmetic statement is one made up of quantifiers &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cforall+n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall n&#92;in&#92;mathbb{N}' title='&#92;forall n&#92;in&#92;mathbb{N}' class='latex' />,&#8221; &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cexists+n%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists n&#92;in &#92;mathbb{N}' title='&#92;exists n&#92;in &#92;mathbb{N}' class='latex' />,&#8221; the logical connectives &#8220;and,&#8221; &#8220;or,&#8221; &#8220;not&#8221;, function symbols <img src='http://s0.wp.com/latex.php?latex=%5Ctimes&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;times' title='&#92;times' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' />, constants <img src='http://s0.wp.com/latex.php?latex=%7B0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{0}' title='{0}' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' />, and variables <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' /> which are bound by the aforementioned quantifiers.</p>
<p>It is known that there is no algorithm which will decide whether or not an arithmetic statement is true or not.  This shouldn&#8217;t be surprising, since if there were such an algorithm, it would be able to automatically prove Fermat&#8217;s Last Theorem, settle Goldbach&#8217;s Conjecture and the Twin Prime Conjecture, etc.</p>
<p>However, if we call a quasi-arithmetic statement one which uses the quantifiers &#8220;for all but finitely many <img src='http://s0.wp.com/latex.php?latex=n+%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;in&#92;mathbb{N}' title='n &#92;in&#92;mathbb{N}' class='latex' />&#8221; (denoted &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cforall%5E%5Cinfty+n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall^&#92;infty n&#92;in&#92;mathbb{N}' title='&#92;forall^&#92;infty n&#92;in&#92;mathbb{N}' class='latex' />&#8221;) and &#8220;there exists infinitely many <img src='http://s0.wp.com/latex.php?latex=n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in&#92;mathbb{N}' title='n&#92;in&#92;mathbb{N}' class='latex' />&#8221; (denoted &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cexists%5E%5Cinfty+n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists^&#92;infty n&#92;in&#92;mathbb{N}' title='&#92;exists^&#92;infty n&#92;in&#92;mathbb{N}' class='latex' />&#8221;) instead of &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cforall+n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall n&#92;in&#92;mathbb{N}' title='&#92;forall n&#92;in&#92;mathbb{N}' class='latex' />&#8221; and &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cexists+n%5Cin%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists n&#92;in&#92;mathbb{N}' title='&#92;exists n&#92;in&#92;mathbb{N}' class='latex' />&#8221;, then we <em>do</em> have an algorithm for deciding whether a quasi-arithmetic statement is true or not!</p>
<p><span id="more-131"></span></p>
<p>This was shown by David Marker and Ted Slaman in <a href="http://www.math.uic.edu/~marker/aa-v3.pdf">this note</a>.  The proof goes as follows.</p>
<p>First, observe that &#8220;<img src='http://s0.wp.com/latex.php?latex=%28%5Cexists%5E%5Cinfty+n%5Cin%5Cmathbb%7BN%7D%29%5C%2C+%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;exists^&#92;infty n&#92;in&#92;mathbb{N})&#92;, &#92;phi(n)' title='(&#92;exists^&#92;infty n&#92;in&#92;mathbb{N})&#92;, &#92;phi(n)' class='latex' />&#8221; is equivalent to &#8220;<img src='http://s0.wp.com/latex.php?latex=%5Cneg+%28%5Cforall%5E%5Cinfty+n%5Cin%5Cmathbb%7BN%7D%29%5C%2C+%5Cneg+%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg (&#92;forall^&#92;infty n&#92;in&#92;mathbb{N})&#92;, &#92;neg &#92;phi(n)' title='&#92;neg (&#92;forall^&#92;infty n&#92;in&#92;mathbb{N})&#92;, &#92;neg &#92;phi(n)' class='latex' />&#8221;, so that we can eliminate all occurrences of <img src='http://s0.wp.com/latex.php?latex=%5Cexists%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists^&#92;infty' title='&#92;exists^&#92;infty' class='latex' />.</p>
<p>Next, note that &#8220;<img src='http://s0.wp.com/latex.php?latex=%28%5Cforall%5E%5Cinfty+n%5Cin+%5Cmathbb%7BN%7D%29%5C%2C+%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;forall^&#92;infty n&#92;in &#92;mathbb{N})&#92;, &#92;phi(n)' title='(&#92;forall^&#92;infty n&#92;in &#92;mathbb{N})&#92;, &#92;phi(n)' class='latex' />&#8221; is equivalent to &#8220;<img src='http://s0.wp.com/latex.php?latex=%28%5Cexists+m%5Cin%5Cmathbb%7BN%7D%29%5C%2C%28%5Cforall+n+%3E+m%29%5C%2C+%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;exists m&#92;in&#92;mathbb{N})&#92;,(&#92;forall n &gt; m)&#92;, &#92;phi(n)' title='(&#92;exists m&#92;in&#92;mathbb{N})&#92;,(&#92;forall n &gt; m)&#92;, &#92;phi(n)' class='latex' />.&#8221;  Thus, we can replace <img src='http://s0.wp.com/latex.php?latex=%5Cforall%5E%5Cinfty+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall^&#92;infty n' title='&#92;forall^&#92;infty n' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=Qn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Qn' title='Qn' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=Qn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Qn' title='Qn' class='latex' /> is defined to be the quantifier <img src='http://s0.wp.com/latex.php?latex=%28%5Cexists+m%29%5C%2C+%28%5Cforall+n+%3E+m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;exists m)&#92;, (&#92;forall n &gt; m)' title='(&#92;exists m)&#92;, (&#92;forall n &gt; m)' class='latex' />.</p>
<p>Now, prove that all statements involving only the quantifier <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> are true in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> iff they are true in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  This is proved by induction on the structure of the formulas.  The crucial step is the following: If <img src='http://s0.wp.com/latex.php?latex=%28Qn%29%5C%2C%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(Qn)&#92;,&#92;phi(n)' title='(Qn)&#92;,&#92;phi(n)' class='latex' /> holds in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(n)' title='&#92;phi(n)' class='latex' /> is true for all sufficiently large natural numbers.  However,  a  subset of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^n' title='&#92;mathbb{R}^n' class='latex' /> defined only by quantifiers over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> is a semialgebraic set, and it is known that all semialgebraic subsets of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> are finite unions of points and intervals.  Therefore, if all sufficiently large natural numbers are in some semialgebraic set, then all sufficiently large real numbers must also be in that set.</p>
<p>So, we have reduced the problem to that of deciding whether or not sentences involving the quantifier <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> are true over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' />.  But, by a <a href="http://en.wikipedia.org/wiki/Real_closed_field#Decidability_and_quantifier_elimination">result of Tarski&#8217;s</a>, there is an algorithm which will decide whether or not statements using the quantifiers <img src='http://s0.wp.com/latex.php?latex=%5Cforall&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall' title='&#92;forall' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cexists&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists' title='&#92;exists' class='latex' /> is true over <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> can be defined in terms of <img src='http://s0.wp.com/latex.php?latex=%5Cforall&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall' title='&#92;forall' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cexists&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists' title='&#92;exists' class='latex' />.</p>
<p style="text-align:left;">How does Tarski&#8217;s proof work?  The first step is to observe that deciding quantifier-free statements is easy, since it&#8217;s just a computation.  So, the second step is to systematically eliminate quantifiers from statements.  One instance of quantifier elimination is familiar to everyone is:  <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5C%2C+ax%5E2+%2B+bx+%2B+c+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;, ax^2 + bx + c = 0' title='&#92;exists x&#92;, ax^2 + bx + c = 0' class='latex' /> is equivalent to <img src='http://s0.wp.com/latex.php?latex=b%5E2+-+4ac+%5Cgeq+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='b^2 - 4ac &#92;geq 0' title='b^2 - 4ac &#92;geq 0' class='latex' />.  This follows from the quadratic formula.  <a href="http://en.wikipedia.org/wiki/Sturm%27s_theorem">Sturm&#8217;s theorem</a> is a generalization of this test which will tell you how many distinct real roots any polynomial has, and Tarski&#8217;s theorem is a generalization of Sturm&#8217;s theorem.</p>
<p style="text-align:left;">For information on practical algorithms for quantifier elimination over the reals see <a href="http://perso.univ-rennes1.fr/marie-francoise.roy/bpr-posted1-july06.ps.tar.gz">Algorithms in Real Algebraic Geometry</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/131/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/131/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=131&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/25/almost-a-number-theoretic-miracle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Set Theory and Weather Prediction</title>
		<link>http://xorshammer.com/2008/08/23/set-theory-and-weather-prediction/</link>
		<comments>http://xorshammer.com/2008/08/23/set-theory-and-weather-prediction/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 23:17:15 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Puzzles]]></category>
		<category><![CDATA[Set Theory]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=122</guid>
		<description><![CDATA[Here&#8217;s a puzzle: You and Bob are going to play a game which has the following steps. Bob thinks of some function (it&#8217;s arbitrary: it doesn&#8217;t have to be continuous or anything). You pick an . Bob reveals to you &#8230; <a href="http://xorshammer.com/2008/08/23/set-theory-and-weather-prediction/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=122&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a puzzle:</p>
<blockquote><p>You and Bob are going to play a game which has the following steps.</p>
<ol>
<li>Bob thinks of some function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BR%7D%5Cto%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{R}&#92;to&#92;mathbb{R}' title='f&#92;colon &#92;mathbb{R}&#92;to&#92;mathbb{R}' class='latex' /> (it&#8217;s arbitrary: it doesn&#8217;t have to be continuous or anything).</li>
<li>You pick an <img src='http://s0.wp.com/latex.php?latex=x+%5Cin+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &#92;in &#92;mathbb{R}' title='x &#92;in &#92;mathbb{R}' class='latex' />.</li>
<li>Bob reveals to you the table of values <img src='http://s0.wp.com/latex.php?latex=%5C%7B%28x_0%2C+f%28x_0%29%29%5Cmid+x_0%5Cne+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{(x_0, f(x_0))&#92;mid x_0&#92;ne x&#92;}' title='&#92;{(x_0, f(x_0))&#92;mid x_0&#92;ne x&#92;}' class='latex' /> of his function on every input except the one you specified</li>
<li>You guess the value <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> of Bob&#8217;s secret function on the number <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 you picked in step 2.</li>
</ol>
<p>You win if you guess right, you lose if you guess wrong.  What&#8217;s the best strategy you have?</p></blockquote>
<p>This initially seems completely hopeless: the values of <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' /> on inputs <img src='http://s0.wp.com/latex.php?latex=x_0%5Cne+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0&#92;ne x' title='x_0&#92;ne x' class='latex' /> have nothing to do with the value of <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' /> on input <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' />, so how could you do any better then just making a wild guess?</p>
<p>In fact, it turns out that if you, say, choose <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' /> in Step 2 with uniform probability from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />, the axiom of choice implies that you have a strategy such that, whatever <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' /> Bob picked, you will win the game with probability 1!</p>
<p><span id="more-122"></span></p>
<p>The strategy is as follows:  Let <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> be the equivalence relation on functions from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=f+%5Csim+g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f &#92;sim g' title='f &#92;sim g' class='latex' /> iff for all but finitely many <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' />, <img src='http://s0.wp.com/latex.php?latex=f%28y%29+%3D+g%28y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(y) = g(y)' title='f(y) = g(y)' class='latex' />.  Using the axiom of choice, pick a representative from each equivalence class.</p>
<p>In Step 2, choose <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' /> with uniform probability from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />.  When, in step 3, Bob reveals <img src='http://s0.wp.com/latex.php?latex=%5C%7B%28x_0%2C+f%28x_0%29%29+%5Cmid+x_0+%5Cne+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{(x_0, f(x_0)) &#92;mid x_0 &#92;ne x&#92;}' title='&#92;{(x_0, f(x_0)) &#92;mid x_0 &#92;ne x&#92;}' class='latex' />, you know what equivalence class <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 in, because you know its values at all but one point.  Let <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> be the representative of that equivalence class that you picked ahead of time.  Now, in step 4, guess that <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> is equal to <img src='http://s0.wp.com/latex.php?latex=g%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(x)' title='g(x)' class='latex' />.</p>
<p>What is the probability of success of this strategy?  Well, whatever <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' /> that Bob picks, the representative <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> of its equivalence class will differ from it in only finitely many places.  You will win the game if, in Step 2, you pick any number besides one of those finitely many numbers.  Thus, you win with probability 1 no matter what function Bob selects.</p>
<p>This puzzle originally had the following form:</p>
<blockquote><p>Suppose that there are countably infinitely many prisoners: Prisoner 1, Prisoner 2, etc., arranged so that Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> can see Prisoner <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=i+%3C+j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &lt; j' title='i &lt; j' class='latex' />.<br />
A warden puts either a red hat or a blue hat on each prisoner&#8217;s head, and asks each to guess the color of the hat on his own head.  Prove that the prisoners have a strategy of coordinating their guesses so that only finitely many of them will be wrong.</p></blockquote>
<p>As before, let <img src='http://s0.wp.com/latex.php?latex=%5Csim&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim' title='&#92;sim' class='latex' /> be the equivalence relation on functions <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BN%7D%5Cto%5C%7B%5Ctext%7Bred%7D%2C+%5Ctext%7Bblue%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{N}&#92;to&#92;{&#92;text{red}, &#92;text{blue}&#92;}' title='f&#92;colon &#92;mathbb{N}&#92;to&#92;{&#92;text{red}, &#92;text{blue}&#92;}' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=f%5Csim+g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;sim g' title='f&#92;sim g' class='latex' /> iff <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' /> and <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> differ on only finitely many places.  The prisoners&#8217; strategy will then be: Beforehand, pick a representative from each equivalence class.  Let <img src='http://s0.wp.com/latex.php?latex=f%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(i)' title='f(i)' class='latex' /> be the color of the hat on Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />&#8216;s head. Then, since each Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> can see the color of the hats on Prisoner <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=j+%3E+i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j &gt; i' title='j &gt; i' class='latex' />, each prisoner knows which equivalence class <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 in.  Suppose <img src='http://s0.wp.com/latex.php?latex=g%5Csim+f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;sim f' title='g&#92;sim f' class='latex' /> is the representative that they picked beforehand.  Then, for each <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />, Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> will guess that he&#8217;s wearing hat <img src='http://s0.wp.com/latex.php?latex=g%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(i)' title='g(i)' class='latex' />, and since <img src='http://s0.wp.com/latex.php?latex=g%5Csim+f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;sim f' title='g&#92;sim f' class='latex' />, only finitely many of them will be wrong.</p>
<p>For some interesting comments on this puzzle, see Greg Muller&#8217;s blog post on it <a href="http://cornellmath.wordpress.com/2007/09/13/the-axiom-of-choice-is-wrong/">here</a> and Chris Hardin and Alan Taylor&#8217;s paper <a href="http://maven.smith.edu/~chardin/pub/introinf-draft.pdf">An Introduction to Infinite Hat Problems</a>.</p>
<p>After hearing this puzzle, Chris Hardin came up with a great generalization.  Instead of having a Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> for each <img src='http://s0.wp.com/latex.php?latex=i%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i&#92;in &#92;mathbb{N}' title='i&#92;in &#92;mathbb{N}' class='latex' /> and declare that Prisoner <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> can see Prisoner <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=i+%3C+j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &lt; j' title='i &lt; j' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=%28P%2C+%3C%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(P, &lt;)' title='(P, &lt;)' class='latex' /> be an arbitrary partial order and declare that for each <img src='http://s0.wp.com/latex.php?latex=p+%5Cin+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;in P' title='p &#92;in P' class='latex' />, there is a Prisoner <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, and that Prisoner <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> can see Prisoner <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> iff <img src='http://s0.wp.com/latex.php?latex=p+%3C+q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &lt; q' title='p &lt; q' class='latex' />.  Assuming again that red and blue hats are placed on all prisoners and that they must all guess the color of the hat on their own head, how many of them will be able to guess correctly?</p>
<p>Call a partially ordered set <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' /> reverse well-founded if there are no strictly increasing chains <img src='http://s0.wp.com/latex.php?latex=a_1+%3C+a_2+%3C+a_3+%3C+%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1 &lt; a_2 &lt; a_3 &lt; &#92;cdots' title='a_1 &lt; a_2 &lt; a_3 &lt; &#92;cdots' class='latex' /> in it.  Chris Hardin and Alan Taylor showed in their paper <a href="http://maven.smith.edu/~chardin/pub/peculiar.pdf">A Peculiar Connection Between the Axiom of Choice and Predicting the Future</a> that the prisoners have a strategy so that the set of prisoners who are wrong will be reverse well-founded.  In the case of the original prisoners problem, this implies that there will be only finitely many prisoners who are wrong, since there are no infinite reverse well-founded subsets of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />.</p>
<p>Suppose that there is a Prisoner <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' /> for each <img src='http://s0.wp.com/latex.php?latex=x%5Cin%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in&#92;mathbb{R}' title='x&#92;in&#92;mathbb{R}' class='latex' /> and that Prisoner <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' /> can see Prisoner <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' /> iff <img src='http://s0.wp.com/latex.php?latex=x+%3E+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &gt; y' title='x &gt; y' class='latex' />.  Then, since all reverse well-founded subsets of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> are countable, at most countably many prisoners will be wrong under the Hardin-Taylor strategy.  Since all countable subsets of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> are measure zero, this gives another way to win the game against Bob with probability one.</p>
<p>In fact, it implies that you can do more: You don&#8217;t need Bob to tell you <img src='http://s0.wp.com/latex.php?latex=%5C%7B%28x_0%2C+f%28x_0%29%29+%5Cmid+x_0%5Cne+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{(x_0, f(x_0)) &#92;mid x_0&#92;ne x&#92;}' title='&#92;{(x_0, f(x_0)) &#92;mid x_0&#92;ne x&#92;}' class='latex' />, just <img src='http://s0.wp.com/latex.php?latex=%5C%7B%28x_0%2C+f%28x_0%29%29+%5Cmid+x_0+%3C+x%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{(x_0, f(x_0)) &#92;mid x_0 &lt; x&#92;}' title='&#92;{(x_0, f(x_0)) &#92;mid x_0 &lt; x&#92;}' class='latex' />.  Hardin and Taylor express this by imagining that we represent the weather with respect to time as an arbitrary function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BR%7D%5Cto+%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{R}&#92;to &#92;mathbb{R}' title='f&#92;colon &#92;mathbb{R}&#92;to &#92;mathbb{R}' class='latex' />.  Then, given that we can observe the past, there is an almost perfect weatherman who can predict the current weather with probability 1.  They further show that the weatherman can almost surely get the weather right for some interval into the future.</p>
<p>What is the Hardin-Taylor strategy?  What the prisoners do is that they first choose a well-ordering <img src='http://s0.wp.com/latex.php?latex=%5Cprec&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;prec' title='&#92;prec' class='latex' /> of the set of functions from <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Ctext%7Bred%7D%2C+%5Ctext%7Bblue%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;text{red}, &#92;text{blue}&#92;}' title='&#92;{&#92;text{red}, &#92;text{blue}&#92;}' class='latex' /> (this uses the axiom of choice), and then for each <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, Prisoner <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> simply guesses that his hat color is <img src='http://s0.wp.com/latex.php?latex=g_p%28p%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_p(p)' title='g_p(p)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=g_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_p' title='g_p' class='latex' /> is the <img src='http://s0.wp.com/latex.php?latex=%5Cprec&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;prec' title='&#92;prec' class='latex' />-least function consistent with what Prisoner <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> sees.</p>
<p>Now, suppose that there is a sequence <img src='http://s0.wp.com/latex.php?latex=p_1+%3C+p_2+%3C+%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_1 &lt; p_2 &lt; &#92;cdots' title='p_1 &lt; p_2 &lt; &#92;cdots' class='latex' /> of prisoners who are wrong.  Since each Prisoner <img src='http://s0.wp.com/latex.php?latex=p_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_i' title='p_i' class='latex' /> sees all the prisoners that Prisoner <img src='http://s0.wp.com/latex.php?latex=p_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_j' title='p_j' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i+%3C+j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &lt; j' title='i &lt; j' class='latex' /> sees, we must have that <img src='http://s0.wp.com/latex.php?latex=g_%7Bp_1%7D+%5Csucceq+g_%7Bp_2%7D+%5Csucceq+%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_{p_1} &#92;succeq g_{p_2} &#92;succeq &#92;cdots' title='g_{p_1} &#92;succeq g_{p_2} &#92;succeq &#92;cdots' class='latex' />.  In fact, since <img src='http://s0.wp.com/latex.php?latex=g_%7Bp_j%7D%28p_j%29+%5Cne+g_%7Bp_i%7D%28p_j%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_{p_j}(p_j) &#92;ne g_{p_i}(p_j)' title='g_{p_j}(p_j) &#92;ne g_{p_i}(p_j)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i+%3C+j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &lt; j' title='i &lt; j' class='latex' /> (since by assumption Prisoner <img src='http://s0.wp.com/latex.php?latex=p_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_j' title='p_j' class='latex' /> was wrong about his hat color, whereas Prisoner <img src='http://s0.wp.com/latex.php?latex=p_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_i' title='p_i' class='latex' /> will be right about it, since he can see Prisoner <img src='http://s0.wp.com/latex.php?latex=p_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_j' title='p_j' class='latex' />), we have that <img src='http://s0.wp.com/latex.php?latex=g_%7Bp_1%7D+%5Csucc+g_%7Bp_2%7D+%5Csucc+%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_{p_1} &#92;succ g_{p_2} &#92;succ &#92;cdots' title='g_{p_1} &#92;succ g_{p_2} &#92;succ &#92;cdots' class='latex' />, but this contradicts the fact that <img src='http://s0.wp.com/latex.php?latex=%5Cprec&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;prec' title='&#92;prec' class='latex' /> is a well-ordering.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/122/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/122/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=122&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/23/set-theory-and-weather-prediction/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Making Money Disappear Through Infinite Iteration</title>
		<link>http://xorshammer.com/2008/08/22/supertasks-and-ordinals/</link>
		<comments>http://xorshammer.com/2008/08/22/supertasks-and-ordinals/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 16:54:36 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Ordinals]]></category>
		<category><![CDATA[Puzzles]]></category>
		<category><![CDATA[Set Theory]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=100</guid>
		<description><![CDATA[In Joel David Hamkin&#8217;s paper Supertasks and Computation, he relates the following puzzle: Suppose that you have a countable infinity of dollar bills, and one day you meet the devil, who offers you the following bargain: In the first half &#8230; <a href="http://xorshammer.com/2008/08/22/supertasks-and-ordinals/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=100&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Joel David Hamkin&#8217;s paper <a href="http://arxiv.org/abs/math/0212049">Supertasks and Computation</a>, he relates the following puzzle: Suppose that you have a countable infinity of dollar bills, and one day you meet the devil, who offers you the following bargain: In the first half minute from now, the devil will give you two dollar bills, and take one from you in return.  In the quarter minute after that, the devil again gives you two dollar bills, and takes one from you in return.  And so on, in the eighth of a minute after that, and the sixteenth of a minute after that, etc.  After a minute, the whole transaction is complete.  Should you take this bargain?</p>
<p>The answer is &#8220;no&#8221; and the reason is that the devil could do the following:  Think of the bills you have at the start as being numbered 1, 3, 5, etc. and imagine that the devil has an initial pile of bills numbered 2, 4, 6, etc.  Then on the <em>n</em>th transaction, the devil gives you the two lowest-numbered bills from his initial pile and takes bill <em>n</em> from you (one can easily show that you have bill <em>n</em> in your possession at this point).  Since the devil takes bill <em>n</em> from you on the <em>n</em>th transaction, he gets all the bills in the end and you end up with nothing.</p>
<p>So, even though you start with infinitely many bills and each transaction produces a net gain of one bill for you, after all the transactions are done you have nothing.</p>
<p>In that puzzle, the devil was able to use a tricky strategy to give you more than he took at each stage and still end up with everything.  In the following puzzle, which made the rounds when I was a graduate student, <em>no matter what the devil does</em>, he takes everything from you!</p>
<blockquote><p>You and the devil are taking a train ride together.  The train stops at each ordinal.  At stop 0, you have countably infinitely many dollar bills.  At each stop, the devil does the following two things (in order):</p>
<ol>
<li>If you have nonzero number of dollar bills, the devil takes one and destroys it.</li>
<li>The devil gives you countably infinitely many dollar bills.</li>
</ol>
<p>Prove that no matter what the devil does, when the train reaches stop <img src='http://s0.wp.com/latex.php?latex=%5Comega_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_1' title='&#92;omega_1' class='latex' /> (the first uncountable ordinal), you will have no money.</p></blockquote>
<p>Solution below.</p>
<p><span id="more-100"></span></p>
<p>For each stop <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' /> which is before <img src='http://s0.wp.com/latex.php?latex=%5Comega_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_1' title='&#92;omega_1' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)' title='f(&#92;alpha)' class='latex' /> be the first stop by which all the dollar bills which you had at stop <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' /> which will be destroyed by the devil before stop <img src='http://s0.wp.com/latex.php?latex=%5Comega_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_1' title='&#92;omega_1' class='latex' /> have already been destroyed by the devil.</p>
<p>Since you have only countably many dollars, <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)' title='f(&#92;alpha)' class='latex' /> is a supremum of countably many countable ordinals, and is therefore itself countable.</p>
<p>Now, let <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29+%3D+%5Csup+%5C%7B%5Calpha%2C+f%28%5Calpha%29%2C+f%28f%28%5Calpha%29%29%2C+%5Cldots+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha) = &#92;sup &#92;{&#92;alpha, f(&#92;alpha), f(f(&#92;alpha)), &#92;ldots &#92;}' title='g(&#92;alpha) = &#92;sup &#92;{&#92;alpha, f(&#92;alpha), f(f(&#92;alpha)), &#92;ldots &#92;}' class='latex' />.  As a supremum of countably many countable ordinals, <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha)' title='g(&#92;alpha)' class='latex' /> is itself countable.</p>
<p><em>Lemma</em>.  For 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' />, at stop <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha)' title='g(&#92;alpha)' class='latex' />, you have no money.</p>
<p><em>Proof</em>.  Suppose that you have at least one dollar bill at stop <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha)' title='g(&#92;alpha)' class='latex' />.  Then one of your dollar bills will be destroyed by the devil at that stop.  Let that be dollar bill <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' />.  Then you must have had <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> at all stops <img src='http://s0.wp.com/latex.php?latex=f%5E%7B%28n%29%7D%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f^{(n)}(&#92;alpha)' title='f^{(n)}(&#92;alpha)' class='latex' /> for sufficiently large <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' />.  In particular, there is an ordinal <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> such that you had <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> both at stop <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' /> and stop <img src='http://s0.wp.com/latex.php?latex=f%28%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;beta)' title='f(&#92;beta)' class='latex' />.  But, by the definition of <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' />, this is only possible if <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> is not destroyed at any countable ordinal.  But <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> is destroyed at stop <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha)' title='g(&#92;alpha)' class='latex' />, which is a contradiction. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p><em>Corollary. </em>At stop <img src='http://s0.wp.com/latex.php?latex=%5Comega_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_1' title='&#92;omega_1' class='latex' />, you have no money.</p>
<p><em>Proof</em>.  Suppose not.  Any dollar bill that you have at stop <img src='http://s0.wp.com/latex.php?latex=%5Comega_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega_1' title='&#92;omega_1' class='latex' /> you must have had at some countable ordinal <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 then, by the above corollary, that dollar was destroyed by stop <img src='http://s0.wp.com/latex.php?latex=g%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;alpha)' title='g(&#92;alpha)' class='latex' />. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/100/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/100/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=100&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/22/supertasks-and-ordinals/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>What do We Have to Know About a Function in Order to Compute its Definite Integral?</title>
		<link>http://xorshammer.com/2008/08/21/compute-definite-integral/</link>
		<comments>http://xorshammer.com/2008/08/21/compute-definite-integral/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 04:48:21 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=84</guid>
		<description><![CDATA[Suppose that is a continuous function from to and that we have a program which computes it. (Ignore for now exactly what it means to &#8220;compute&#8221; a real-valued function of the reals. Suffice it to say that almost every natural &#8230; <a href="http://xorshammer.com/2008/08/21/compute-definite-integral/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=84&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose that <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 continuous function from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /> and that we have a program which computes it.  (Ignore for now exactly what it means to &#8220;compute&#8221; a real-valued function of the reals.  Suffice it to say that almost every natural continuous function you come across is computable).  If we want to compute <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B0%7D%5E1+f%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{0}^1 f(x)&#92;,dx' title='&#92;int_{0}^1 f(x)&#92;,dx' class='latex' />, say to within an accuracy of <img src='http://s0.wp.com/latex.php?latex=0.001&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0.001' title='0.001' class='latex' />, how would we do it, and would we need any further information about <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' /> in order to do it?</p>
<p>The obvious thing to do is to compute a Riemann sum <img src='http://s0.wp.com/latex.php?latex=R%28f%2Cn%29%3D%5Csum_%7Bi%3D0%7D%5E%7Bn-1%7D+%281%2Fn%29%5Ccdot+f%28i%2Fn%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R(f,n)=&#92;sum_{i=0}^{n-1} (1/n)&#92;cdot f(i/n)' title='R(f,n)=&#92;sum_{i=0}^{n-1} (1/n)&#92;cdot f(i/n)' class='latex' /> for some large <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' />.   However,  this could be arbitrarily far from the true value of <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;,dx' title='&#92;int_0^1 f(x)&#92;,dx' class='latex' />.  For example, <img src='http://s0.wp.com/latex.php?latex=f%28i%2Fn%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(i/n)' title='f(i/n)' class='latex' /> might be 0 for all <img src='http://s0.wp.com/latex.php?latex=0+%5Cleq++i+%5Cleq+n-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &#92;leq  i &#92;leq n-1' title='0 &#92;leq  i &#92;leq n-1' class='latex' />, but <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' /> might curve sharply up in between each <img src='http://s0.wp.com/latex.php?latex=i%2Fn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i/n' title='i/n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%28i%2B1%29%2Fn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(i+1)/n' title='(i+1)/n' class='latex' /> so that its definite integral is arbitrarily close to 1.</p>
<p>However, since <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 continuous on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />, it is uniformly continuous.  This means that for all <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;epsilon &gt; 0' title='&#92;epsilon &gt; 0' class='latex' /> there is a <img src='http://s0.wp.com/latex.php?latex=%5Cdelta+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta &gt; 0' title='&#92;delta &gt; 0' class='latex' /> such that whenever <img src='http://s0.wp.com/latex.php?latex=%7Cx+-+y%7C+%3C+%5Cdelta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x - y| &lt; &#92;delta' title='|x - y| &lt; &#92;delta' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%7Cf%28x%29+-+f%28y%29%7C+%3C+%5Cepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|f(x) - f(y)| &lt; &#92;epsilon' title='|f(x) - f(y)| &lt; &#92;epsilon' class='latex' />.  If we could compute a function <img src='http://s0.wp.com/latex.php?latex=%5Cdelta%28%5Cepsilon%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta(&#92;epsilon)' title='&#92;delta(&#92;epsilon)' class='latex' /> such for all <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;epsilon &gt; 0' title='&#92;epsilon &gt; 0' class='latex' />, whenever <img src='http://s0.wp.com/latex.php?latex=%7Cx+-+y%7C+%3C+%5Cdelta%28%5Cepsilon%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|x - y| &lt; &#92;delta(&#92;epsilon)' title='|x - y| &lt; &#92;delta(&#92;epsilon)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%7Cf%28x%29+-+f%28y%29%7C+%3C+%5Cepsilon&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|f(x) - f(y)| &lt; &#92;epsilon' title='|f(x) - f(y)| &lt; &#92;epsilon' class='latex' />, then we could compute the definite integral of <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' /> with arbitrary accuracy: If we want to know <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2C+dx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;, dx' title='&#92;int_0^1 f(x)&#92;, dx' class='latex' /> to within 0.001, then choose <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' /> so that <img src='http://s0.wp.com/latex.php?latex=1%2Fn+%3C+%5Cdelta%280.001%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1/n &lt; &#92;delta(0.001)' title='1/n &lt; &#92;delta(0.001)' class='latex' /> and we can take <img src='http://s0.wp.com/latex.php?latex=R%28f%2Cn%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R(f,n)' title='R(f,n)' class='latex' />, since <img src='http://s0.wp.com/latex.php?latex=%7CR%28f%2Cn%29+-+%5Cint_0%5E1+f%28x%29%5C%2Cdx%7C+%3C+0.001&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|R(f,n) - &#92;int_0^1 f(x)&#92;,dx| &lt; 0.001' title='|R(f,n) - &#92;int_0^1 f(x)&#92;,dx| &lt; 0.001' class='latex' />.</p>
<p>So, one answer to the question &#8220;What extra information do we need in order to compute <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;,dx' title='&#92;int_0^1 f(x)&#92;,dx' class='latex' />?&#8221; is: a function  <img src='http://s0.wp.com/latex.php?latex=%5Cdelta%28%5Cepsilon%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;delta(&#92;epsilon)' title='&#92;delta(&#92;epsilon)' class='latex' /> witnessing  <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' />&#8216;s  uniform continuity.</p>
<p>In 1998, Alex Simpson showed, building on ideas of Ulrich Berger and others, that another answer is: Nothing!<br />
<span id="more-84"></span><br />
For technical convenience, we switch from considering functions with domain and range <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /> to functions with domain and range <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' />, and try to compute the definite integral of such a function over <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />, since that value will again be in <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' />.</p>
<p>For our representation of the reals in <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> we will use functions <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' /> from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%2B+%3D+%5C%7B1%2C2%2C3%2C%5Cldots%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^+ = &#92;{1,2,3,&#92;ldots&#92;}' title='&#92;mathbb{N}^+ = &#92;{1,2,3,&#92;ldots&#92;}' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B-1%2C0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{-1,0,1&#92;}' title='&#92;{-1,0,1&#92;}' class='latex' />, where we are thinking 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' /> as representing <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi%3D1%7D%5E%5Cinfty+%5Calpha%28i%29+2%5E%7B-i%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i=1}^&#92;infty &#92;alpha(i) 2^{-i}' title='&#92;sum_{i=1}^&#92;infty &#92;alpha(i) 2^{-i}' class='latex' />.  All reals in <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> have representations.  Some have more than one, but that won&#8217;t concern us.</p>
<p>We will use <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> to denote both the interval of reals from <img src='http://s0.wp.com/latex.php?latex=-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-1' title='-1' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1' title='1' class='latex' /> and the set of its representations.  Hopefully this will not cause confusion.</p>
<p>So a computable function from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> is a computable second-order functional which takes a function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^+' title='&#92;mathbb{N}^+' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B-1%2C0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{-1,0,1&#92;}' title='&#92;{-1,0,1&#92;}' class='latex' /> and returns a function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^+' title='&#92;mathbb{N}^+' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B-1%2C0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{-1,0,1&#92;}' title='&#92;{-1,0,1&#92;}' class='latex' />.  (There are some technicalities about the fact that a real can have more than one representation, but we will ignore them.)</p>
<p>Similarly, a <em>predicate</em> on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> is a function from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,1&#92;rbrack' title='&#92;lbrack -1,1&#92;rbrack' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B%5Ctext%7Btrue%7D%2C+%5Ctext%7Bfalse%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{&#92;text{true}, &#92;text{false}&#92;}' title='&#92;{&#92;text{true}, &#92;text{false}&#92;}' class='latex' />.  An amazing fact due to Ulrich Berger is that for any computable predicate <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> we can decide whether or not there is an <img src='http://s0.wp.com/latex.php?latex=x%5Cin+%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in &#92;lbrack -1,1&#92;rbrack' title='x&#92;in &#92;lbrack -1,1&#92;rbrack' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> holds.  (To see why this is amazing, observe that the analogous statement for computable predicates on the integers is false, due to the Halting Problem.)</p>
<p>What&#8217;s more, we can define computable functionals <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexists%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exists}' title='&#92;text{exists}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' /> so that, if <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> is a computable predicate, <img src='http://s0.wp.com/latex.php?latex=%5Cmathop%7B%5Ctext%7Bexists%7D%7D%28P%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathop{&#92;text{exists}}(P)' title='&#92;mathop{&#92;text{exists}}(P)' class='latex' /> returns <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Btrue%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{true}' title='&#92;text{true}' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bfalse%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{false}' title='&#92;text{false}' class='latex' /> depending on whether or not <img src='http://s0.wp.com/latex.php?latex=%5Cexists+x%5C%2CP%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exists x&#92;,P(x)' title='&#92;exists x&#92;,P(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmathop%7B%5Ctext%7Bwitness%7D%7D%28P%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathop{&#92;text{witness}}(P)' title='&#92;mathop{&#92;text{witness}}(P)' class='latex' /> returns a number <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' /> which satisfies <img src='http://s0.wp.com/latex.php?latex=P%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(x)' title='P(x)' class='latex' /> if anything does.</p>
<p>Before we define those functions, I&#8217;ll give some notation.  If <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 a function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5E%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^+' title='&#92;mathbb{N}^+' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5C%7B-1%2C0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{-1,0,1&#92;}' title='&#92;{-1,0,1&#92;}' class='latex' />, then we let <img src='http://s0.wp.com/latex.php?latex=0+%3A%3A+%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 :: &#92;alpha' title='0 :: &#92;alpha' class='latex' /> be defined by <img src='http://s0.wp.com/latex.php?latex=%280+%3A%3A+%5Calpha%29%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0 :: &#92;alpha)(0) = 0' title='(0 :: &#92;alpha)(0) = 0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%280+%3A%3A+%5Calpha%29%28i%2B1%29+%3D+%5Calpha%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(0 :: &#92;alpha)(i+1) = &#92;alpha(i)' title='(0 :: &#92;alpha)(i+1) = &#92;alpha(i)' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=i%5Cin%5Cmathbb%7BN%7D%5E%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i&#92;in&#92;mathbb{N}^+' title='i&#92;in&#92;mathbb{N}^+' class='latex' />.  We define <img src='http://s0.wp.com/latex.php?latex=1%3A%3A%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1::&#92;alpha' title='1::&#92;alpha' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%7B-1%7D+%3A%3A%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{-1} ::&#92;alpha' title='{-1} ::&#92;alpha' class='latex' /> similarly.</p>
<p>Now define <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexists%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exists}' title='&#92;text{exists}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' /> by mutual recursion as follows: Let <img src='http://s0.wp.com/latex.php?latex=%5Cmathop%5Ctext%7Bexists%7D%28P%29+%3D+P%28%5Cmathop%5Ctext%7Bwitness%7D%28P%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathop&#92;text{exists}(P) = P(&#92;mathop&#92;text{witness}(P))' title='&#92;mathop&#92;text{exists}(P) = P(&#92;mathop&#92;text{witness}(P))' class='latex' /> and let <img src='http://s0.wp.com/latex.php?latex=%5Cmathop%5Ctext%7Bwitness%7D%28P%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathop&#92;text{witness}(P)' title='&#92;mathop&#92;text{witness}(P)' class='latex' /> do the following: it uses <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexists%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exists}' title='&#92;text{exists}' class='latex' /> checks to see if there is an <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=%5Calpha%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = -1' title='&#92;alpha(0) = -1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(&#92;alpha)' title='P(&#92;alpha)' class='latex' /> holds and, if so, it returns <img src='http://s0.wp.com/latex.php?latex=%7B-1%7D%3A%3A%28%5Cmathop%5Ctext%7Bwitness%7D%28P%27%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{-1}::(&#92;mathop&#92;text{witness}(P&#039;))' title='{-1}::(&#92;mathop&#92;text{witness}(P&#039;))' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=P%27%28%5Cbeta%29+%3D+P%28-1%3A%3A%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#039;(&#92;beta) = P(-1::&#92;beta)' title='P&#039;(&#92;beta) = P(-1::&#92;beta)' class='latex' />.  If not, it uses <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexists%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exists}' title='&#92;text{exists}' class='latex' /> to check if there is an <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=%5Calpha%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = 0' title='&#92;alpha(0) = 0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28%5Calpha%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(&#92;alpha)' title='P(&#92;alpha)' class='latex' /> holds and if so, it returns <img src='http://s0.wp.com/latex.php?latex=0%3A%3A%28%5Cmathop%5Ctext%7Bwitness%7D%28P%27%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0::(&#92;mathop&#92;text{witness}(P&#039;))' title='0::(&#92;mathop&#92;text{witness}(P&#039;))' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=P%27%28%5Cbeta%29+%3D+P%280%3A%3A%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#039;(&#92;beta) = P(0::&#92;beta)' title='P&#039;(&#92;beta) = P(0::&#92;beta)' class='latex' />.  If both of those fail, it returns <img src='http://s0.wp.com/latex.php?latex=1%3A%3A%28%5Cmathop%5Ctext%7Bwitness%7D%28P%27%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1::(&#92;mathop&#92;text{witness}(P&#039;))' title='1::(&#92;mathop&#92;text{witness}(P&#039;))' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=P%27%28%5Cbeta%29+%3D+P%281%3A%3A%5Cbeta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#039;(&#92;beta) = P(1::&#92;beta)' title='P&#039;(&#92;beta) = P(1::&#92;beta)' class='latex' />.</p>
<p>If you think about the above definitions for a while, it should probably become clear to you that they should work, <em>if </em>they terminate.  But they seem way too crazy to terminate.  In fact they do, given one condition which I&#8217;ll remark on below, and the crucial fact is that since <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is computable and total, when given an <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' />, it only looks at finitely many values <img src='http://s0.wp.com/latex.php?latex=%5Calpha%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(n)' title='&#92;alpha(n)' class='latex' /> before terminating.</p>
<p>The condition that allows them to terminate is that we specify that the evaluation is <em>lazy</em>.  That is, when I say for example that <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' /> returns <img src='http://s0.wp.com/latex.php?latex=%7B-1%7D%3A%3A%28%5Cmathop%5Ctext%7Bwitness%7D%28P%27%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{-1}::(&#92;mathop&#92;text{witness}(P&#039;))' title='{-1}::(&#92;mathop&#92;text{witness}(P&#039;))' class='latex' />, I  mean that it returns the function which on input <img src='http://s0.wp.com/latex.php?latex=%7B0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{0}' title='{0}' class='latex' /> returns <img src='http://s0.wp.com/latex.php?latex=%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{-1}' title='{-1}' class='latex' /> and <em>only on non-zero input</em> calculates <img src='http://s0.wp.com/latex.php?latex=%5Cmathop%5Ctext%7Bwitness%7D%28P%27%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathop&#92;text{witness}(P&#039;)' title='&#92;mathop&#92;text{witness}(P&#039;)' class='latex' /> to determine its return value for that input.  So, it only calls <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' /> when it needs to.  Since every call to <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' /> involves a recursive call to <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bwitness%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{witness}' title='&#92;text{witness}' class='latex' />, if you followed all of them immediately, the program could not possibly terminate.</p>
<p>Note also that we can use <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bexists%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{exists}' title='&#92;text{exists}' class='latex' /> to define a <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bforall%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{forall}' title='&#92;text{forall}' class='latex' /> as well.</p>
<p>Now let&#8217;s use this to compute the definite integral. Observe that if <img src='http://s0.wp.com/latex.php?latex=%5Calpha%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = -1' title='&#92;alpha(0) = -1' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%5Cin+%5Clbrack+-1%2C0%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha &#92;in &#92;lbrack -1,0&#92;rbrack' title='&#92;alpha &#92;in &#92;lbrack -1,0&#92;rbrack' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=%5Calpha%280%29%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0)=0' title='&#92;alpha(0)=0' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%5Clbrack+-1%2F2%2C1%2F2%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in &#92;lbrack -1/2,1/2&#92;rbrack' title='&#92;alpha&#92;in &#92;lbrack -1/2,1/2&#92;rbrack' class='latex' />, and if <img src='http://s0.wp.com/latex.php?latex=%5Calpha%280%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = 1' title='&#92;alpha(0) = 1' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in &#92;lbrack 0,1&#92;rbrack' title='&#92;alpha&#92;in &#92;lbrack 0,1&#92;rbrack' class='latex' />.  Conversely, every real in <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+-1%2C0%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack -1,0&#92;rbrack' title='&#92;lbrack -1,0&#92;rbrack' class='latex' /> has a representation <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=%5Calpha%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = -1' title='&#92;alpha(0) = -1' class='latex' />, and similarly for the other two cases.</p>
<p>Therefore, 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 such that <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)(0) = -1' title='f(&#92;alpha)(0) = -1' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in &#92;lbrack -1,1&#92;rbrack' title='&#92;alpha&#92;in &#92;lbrack -1,1&#92;rbrack' class='latex' />, it must be the case that <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2C+dx+%5Cin%5Clbrack+-1%2C0%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;, dx &#92;in&#92;lbrack -1,0&#92;rbrack' title='&#92;int_0^1 f(x)&#92;, dx &#92;in&#92;lbrack -1,0&#92;rbrack' class='latex' />, and if we are trying to compute a representative <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' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;,dx' title='&#92;int_0^1 f(x)&#92;,dx' class='latex' />, we may safely say that <img src='http://s0.wp.com/latex.php?latex=%5Calpha%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha(0) = -1' title='&#92;alpha(0) = -1' class='latex' />, and similarly for the other two cases.  Furthermore, if <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)(0) = -1' title='f(&#92;alpha)(0) = -1' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%5Cin+%5Clbrack+-1%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha &#92;in &#92;lbrack -1,1&#92;rbrack' title='&#92;alpha &#92;in &#92;lbrack -1,1&#92;rbrack' class='latex' />.  Then <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28x%29%5C%2Cdx+%3D+-1%2F2+%2B+%281%2F2%29%5Cint_0%5E1+%282f%28x%29+%2B+1%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(x)&#92;,dx = -1/2 + (1/2)&#92;int_0^1 (2f(x) + 1)&#92;,dx' title='&#92;int_0^1 f(x)&#92;,dx = -1/2 + (1/2)&#92;int_0^1 (2f(x) + 1)&#92;,dx' class='latex' />.</p>
<p>Next, observe that, for any <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' />, by stretching it out and splitting it up, we may find <img src='http://s0.wp.com/latex.php?latex=f_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_0' title='f_0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_1' title='f_1' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E%7B1%2F2%7D+f%28x%29%5C%2Cdx+%3D+%281%2F2%29%5Cint_0%5E1+f_0%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^{1/2} f(x)&#92;,dx = (1/2)&#92;int_0^1 f_0(x)&#92;,dx' title='&#92;int_0^{1/2} f(x)&#92;,dx = (1/2)&#92;int_0^1 f_0(x)&#92;,dx' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B1%2F2%7D%5E1+f%28x%29%5C%2Cdx+%3D+%281%2F2%29%5Cint_0%5E1+f_1%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{1/2}^1 f(x)&#92;,dx = (1/2)&#92;int_0^1 f_1(x)&#92;,dx' title='&#92;int_{1/2}^1 f(x)&#92;,dx = (1/2)&#92;int_0^1 f_1(x)&#92;,dx' class='latex' /> and the range of <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' /> on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C+1%2F2%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0, 1/2&#92;rbrack' title='&#92;lbrack 0, 1/2&#92;rbrack' class='latex' /> is equal to the range of <img src='http://s0.wp.com/latex.php?latex=f_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_0' title='f_0' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /> and the range of <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' /> on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+1%2F2%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 1/2,1&#92;rbrack' title='&#92;lbrack 1/2,1&#92;rbrack' class='latex' /> is equal to the range of <img src='http://s0.wp.com/latex.php?latex=f_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_1' title='f_1' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' /></p>
<p>Therefore,  the following definition for <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bintegrate%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{integrate}' title='&#92;text{integrate}' class='latex' /> (almost) works:  Given <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' />, first use <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bforall%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{forall}' title='&#92;text{forall}' class='latex' /> to check if <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29%280%29+%3D+-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)(0) = -1' title='f(&#92;alpha)(0) = -1' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin+%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in &#92;lbrack 0,1&#92;rbrack' title='&#92;alpha&#92;in &#92;lbrack 0,1&#92;rbrack' class='latex' />.  If so, return <img src='http://s0.wp.com/latex.php?latex=-1%3A%3A%28%5Cmathop%5Ctext%7Bintegrate%7D%282f+%2B+1%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-1::(&#92;mathop&#92;text{integrate}(2f + 1))' title='-1::(&#92;mathop&#92;text{integrate}(2f + 1))' class='latex' />.  If not, check if <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)(0) = 0' title='f(&#92;alpha)(0) = 0' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%5Calpha+%5Cin%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha &#92;in&#92;lbrack 0,1&#92;rbrack' title='&#92;alpha &#92;in&#92;lbrack 0,1&#92;rbrack' class='latex' /> or if <img src='http://s0.wp.com/latex.php?latex=f%28%5Calpha%29%280%29+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;alpha)(0) = 1' title='f(&#92;alpha)(0) = 1' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%5Calpha%5Cin%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&#92;in&#92;lbrack 0,1&#92;rbrack' title='&#92;alpha&#92;in&#92;lbrack 0,1&#92;rbrack' class='latex' /> and do the analogous thing.  Otherwise, return <img src='http://s0.wp.com/latex.php?latex=%281%2F2%29%28%5Cmathop%5Ctext%7Bintegrate%7D%28f_0%29+%2B+%5Cmathop%5Ctext%7Bintegrate%7D%28f_1%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1/2)(&#92;mathop&#92;text{integrate}(f_0) + &#92;mathop&#92;text{integrate}(f_1))' title='(1/2)(&#92;mathop&#92;text{integrate}(f_0) + &#92;mathop&#92;text{integrate}(f_1))' class='latex' />.</p>
<p>Since <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 continuous, the process of splitting it up will eventually terminate, as will the algorithm.</p>
<p>Actually this algorithm doesn&#8217;t quite work, as there are some a couple of details that I&#8217;ve omitted, but it is essentially correct.  For more information, see Alex Simpson&#8217;s <a href="http://homepages.inf.ed.ac.uk/als/Research/lazy.ps.gz">paper</a>, and for more on Berger&#8217;s work, see Martin Escardó&#8217;s <a href="http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/">blog post</a>, both of which include actual runnable code.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/84/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/84/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=84&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/21/compute-definite-integral/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Rosser&#8217;s Clever Improvement to Gödel&#8217;s Original First Incompleteness Theorem</title>
		<link>http://xorshammer.com/2008/08/19/original-goedel/</link>
		<comments>http://xorshammer.com/2008/08/19/original-goedel/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 15:16:42 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Provability Logic]]></category>
		<category><![CDATA[Self-Reference]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=77</guid>
		<description><![CDATA[Sometimes it&#8217;s the case that in a first-order system T in which you can do number theory there is a property P(n) of natural numbers such that the following two seemingly contradictory statements hold: For every n, T proves P(n) &#8230; <a href="http://xorshammer.com/2008/08/19/original-goedel/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=77&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s the case that in a first-order system <em>T</em> in which you can do number theory there is a property <em>P</em>(<em>n</em>) of natural numbers such that the following two seemingly contradictory statements hold:</p>
<blockquote><p>For every <em>n</em>, <em>T </em>proves <em>P</em>(<em>n</em>)</p></blockquote>
<p>and</p>
<blockquote><p><em>T</em> does not prove that for all <em>n</em>, <em>P</em>(<em>n</em>)</p></blockquote>
<p>To see that these statements are not actually contradictory, replace <em>T</em> with a person Bob and observe that it&#8217;s certainly possible that</p>
<blockquote><p>For every <em>a</em>, <em>b</em>, <em>c</em> &gt; 1, and <em>n </em>&gt; 2, Bob can verify that <em>a</em><sup><em>n</em></sup> + <em>b</em><sup><em>n</em></sup> ≠ <em>c</em><sup><em>n</em></sup>.</p></blockquote>
<p>is true but that</p>
<blockquote><p>Bob can verify that for every <em>a</em>, <em>b</em>, <em>c &gt; </em>1, and <em>n </em>&gt; 2, <em>a</em><sup><em>n</em></sup> + <em>b</em><sup><em>n</em></sup> ≠ <em>c</em><sup><em>n</em></sup>.</p></blockquote>
<p>is false, since for the first statement it suffices for Bob to be able to remember grade school arithmetic, whereas for the second statement to be true Bob must be able to prove Fermat&#8217;s Last Theorem.</p>
<p>If it&#8217;s the case that there is a property <em>P</em>(<em>n</em>) such that for all <em>n</em>, <em>T</em> proves <em>P</em>(<em>n</em>) but it is not the case that <em>T</em> proves for all <em>n</em>, <em>P</em>(<em>n</em>), then we could actually add &#8220;There exists an <em>n</em> such that <em>~P</em>(<em>n</em>)&#8221; to <em>T</em> and still have a consistent theory.  Thus, we might be in the even stranger situation where</p>
<blockquote><p>For every <em>n</em>, <em>T </em>proves <em>P</em>(<em>n</em>).</p></blockquote>
<p>but</p>
<blockquote><p><em>T</em> proves that there exists an <em>n</em> such that ~<em>P</em>(<em>n</em>)</p></blockquote>
<p>even though <em>T</em> is consistent.  Such a <em>T</em> is called        ω-inconsistent.  (<em>T</em> is called        ω-consistent if it is not        ω-inconsistent.)</p>
<p>On the other hand, note that it&#8217;s <em>not</em> really possible that</p>
<blockquote><p>Bob cannot verify that there exists <em>a</em>, <em>b</em>, <em>c &gt; </em>1<em> </em>such that <em>a</em><sup>2</sup> + <em>b</em><sup>2</sup> = <em>c</em><sup>2</sup>.</p></blockquote>
<p style="text-align:left;">given that there are such <em>a</em>, <em>b</em>, and <em>c</em>, since we could just tell Bob an example and have him use his knowledge of grade-school arithmetic to verify it.</p>
<p style="text-align:left;">Similarly, for all the theories <em>T</em> we will consider, if there exists an <em>n</em> such that <em>T</em> proves <em>P</em>(<em>n</em>), then <em>T</em> proves that there exists an <em>n</em> such that <em>P</em>(<em>n</em>).</p>
<p>Now consider the following argument, which is a rough version of Gödel&#8217;s original argument for the first incompleteness theorem:</p>
<p>Suppose that <em>T</em> is a complete theory (meaning that for every sentence <em>S</em>, either <em>T</em> proves <em>S</em> or <em>T</em> proves ~<em>S</em>.) Let <em>G</em> be the sentence &#8220;<em>G</em> is not provable in <em>T</em>&#8221; which it turns out we can interpret in the language of number theory.  Suppose that <em>G</em> is provable in <em>T. </em>Then there exists a proof of <em>G</em> in <em>T</em>, so <em>T</em> can prove &#8220;There exists a proof of <em>G</em> in <em>T.</em>&#8221;  But this is the same as ~<em>G</em>.  So, since <em>T</em> can prove both <em>G</em> and ~<em>G</em>, it is inconsistent.</p>
<p>Now suppose that <em>G</em> is not provable in <em>T</em>.  If <em>T</em> was ω-consistent, then since <em>T</em> is also complete, we would know that <em>T</em> proved &#8220;There is no proof of <em>G</em> in <em>T</em>.&#8221;  But this is equivalent to <em>G</em>. So, since <em>T</em> can prove both <em>G</em> and ~<em>G</em>, it is inconsistent.</p>
<p>So, what we have proven is that if <em>T</em> is ω-consistent, then it is incomplete.  But Gödel&#8217;s First Incompleteness Theorem is usually stated as: If <em>T</em> is <em>consistent</em>, then <em>T</em> is incomplete.  This is a stronger and cleaner statement.  (Note that in both statements we are assuming that number theory can be expressed in <em>T</em>.)</p>
<p>J. Barkley Rosser was able to prove this stronger statement with a very clever change in the self-referential statement <em>G</em>.</p>
<p><span id="more-77"></span></p>
<p>What Rosser did was the following: Let <em>R</em> be the statement &#8220;For every proof of <em>R</em> in <em>T</em>, there is a shorter proof of ~<em>R</em>.&#8221;  Let&#8217;s see how this gets around the issue of ω-inconsistency.</p>
<p>First suppose that <em>R</em> is provable in <em>T</em>, say by a proof of length <em>n</em>.  If there actually is a shorter proof of ~<em>R</em> in <em>T</em>, then <em>T</em> is inconsistent.  Otherwise,  we can actually verify case-by-case that there is no proof of ~<em>R</em> in  <em>T </em>of length &lt; <em>n</em>.  But then we have proven ~<em>R</em> in <em>T</em>, making it again inconsistent.</p>
<p>Now suppose that <em>~R</em> is provable in <em>T</em>, say by a proof of length <em>n. </em>If <em>R </em>is provable in <em>T</em>, then <em>T</em> is inconsistent, so suppose that <em>R</em> is not provable in <em>T</em>.  Then, we can as before verify case-by-case in <em>T</em> that <em>R </em>is not provable in <em>T</em> by a proof of length ≤ <em>n</em>.  But this means that we can prove in <em>T</em> that for any proof of <em>R</em> in <em>T</em>, there is a shorter proof of ~<em>R</em>: we can prove in <em>T</em> that there is no proof of <em>R </em>of length ≤ <em>n</em> and we may argue in <em>T</em> that for any longer proof of <em>R</em> we can take the proof of ~<em>R</em> of length <em>n</em>.  But this is exactly what <em>R</em> says, so <em>R</em> is provable in <em>T</em> which is a contradiction.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=77&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/19/original-goedel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Great Intro to Intuitionistic Logic</title>
		<link>http://xorshammer.com/2008/08/19/great-intro-to-intuitionistic-logic/</link>
		<comments>http://xorshammer.com/2008/08/19/great-intro-to-intuitionistic-logic/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 15:13:52 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Intuitionistic Logic]]></category>
		<category><![CDATA[Smooth Infinitesimal Analysis]]></category>
		<category><![CDATA[Toposes]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=79</guid>
		<description><![CDATA[At Mathematics and Computation, there&#8217;s a really good accessible introduction to intuitionistic logic called Intuitionistic Logic for Physics. It also includes some nice accessible remarks on smooth infinitesimal analysis.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=79&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://math.andrej.com/">Mathematics and Computation</a>, there&#8217;s a really good accessible introduction to intuitionistic logic called <a href="http://math.andrej.com/2008/08/13/intuitionistic-mathematics-for-physics/">Intuitionistic Logic for Physics</a>.  It also includes some nice accessible remarks on smooth infinitesimal analysis.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/79/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/79/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=79&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/19/great-intro-to-intuitionistic-logic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Is the &#8220;Hardest Logic Puzzle Ever&#8221; too Easy?</title>
		<link>http://xorshammer.com/2008/08/18/hardest-logic-puzzle-ever/</link>
		<comments>http://xorshammer.com/2008/08/18/hardest-logic-puzzle-ever/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 14:25:03 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Puzzles]]></category>
		<category><![CDATA[Self-Reference]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=61</guid>
		<description><![CDATA[In 1992, the philosopher George Boolos gave what he called the &#8220;Hardest Logic Puzzle Ever&#8221;, which he attributed to Raymond Smullyan. In 2008, a clever paper by two graduate students, Brian Rabern and Landon Rabern, appeared in the philosophical journal &#8230; <a href="http://xorshammer.com/2008/08/18/hardest-logic-puzzle-ever/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=61&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In 1992, the philosopher George Boolos gave what he called the <a href="http://en.wikipedia.org/wiki/The_Hardest_Logic_Puzzle_Ever">&#8220;Hardest Logic Puzzle Ever&#8221;</a>, which he attributed to Raymond Smullyan.  In 2008, a clever <a href="http://www.uweb.ucsb.edu/%7Erabern/SSHardPuzzle.pdf">paper</a> by two graduate students, <a href="http://philrsss.anu.edu.au/people-defaults/brabern/index.php3">Brian Rabern</a> and <a href="http://landon.byethost13.com/Front.html">Landon Rabern</a>, appeared in the philosophical journal &#8220;Analysis&#8221; which gave a simpler solution to the puzzle than Boolos gave&#8212;and furthermore claimed that a solution to a stronger puzzle was possible!</p>
<p>As its name implies, the &#8220;Hardest Logic Puzzle Ever&#8221; has a number of complicating factors which will be irrelevant for this discussion.  Instead, consider the following much simpler puzzle which will do just as well.</p>
<blockquote><p>You are on an island populated by knights and knaves.  Knights always tell the truth; knaves always lie.   You meet a inhabitant of the island who you know is holding up either 1, 2, or 3 fingers behind his back.  You don&#8217;t know if this inhabitant is a knight or a knave.  By asking two yes-or-no questions, determine how many fingers the inhabitant has behind his back.</p></blockquote>
<p>There are a number of ways to solve this.  One solution follows from the observation that, for any question Q, if you ask a inhabitant of the island</p>
<blockquote><p>If I asked you question Q, would you say &#8220;yes&#8221;?</p></blockquote>
<p>then you will get a truthful response to question Q.  A knight will tell the truth about his truthful response to Q, whereas a knave would lie about his false response to Q.</p>
<p>So one solution would be to ask</p>
<blockquote><p>If I asked you if you were holding 1 finger up, would you say &#8220;yes&#8221;?</p></blockquote>
<p>If the inhabitant says &#8220;yes&#8221;, then you know he is holding 1 finger up.  On the other hand, if the inhabitant says &#8220;no&#8221;, then you ask &#8220;If I asked you if you were holding 2 fingers up, would you say `yes&#8217;?&#8221; If the inhabitant says &#8220;yes&#8221;, then he is holding 2 fingers up, otherwise he is holding 3 fingers up.</p>
<p>This works, and it seems like you can&#8217;t do any better: There are three possibilities for how many fingers the inhabitant could be holding up, and since you can only ask yes-or-no questions, you couldn&#8217;t determine which of the three possibilities holds with only one question.   But this is exactly what Rabern and Rabern claim you <em>can</em> do.</p>
<p><span id="more-61"></span></p>
<p>Consider what would happen if you asked a knight, &#8220;Will you answer `no&#8217; to this question?&#8221;.  If he is bound to answer the question, then he is in trouble, because no matter if he says &#8220;yes&#8221; or &#8220;no&#8221; he will have lied.  Rabern and Rabern argue that in this sort of situation, the knight&#8217;s head would simply explode as there is nothing else he can do.</p>
<p>Assume that a inhabitant&#8217;s head explodes exactly when he cannot consistently answer &#8220;yes&#8221; or &#8220;no&#8221; to a question.  Given this, we can solve the above problem by asking the single question.  To make things simpler, suppose that we know that the inhabitant is a knight.  Then we may ask:</p>
<blockquote><p>Is it the case that you are holding up one finger or (you are holding up two fingers iff you will answer &#8220;no&#8221; this question)?</p></blockquote>
<p>In this instance, if he answers &#8220;yes&#8221;, then he&#8217;s holding up one finger, if he answers &#8220;no&#8221;, he&#8217;s holding up three fingers, and if his head explodes, he was holding up two fingers.</p>
<p>I think Rabern and Rabern&#8217;s argument is really clever, but I don&#8217;t think it goes far enough.  If we can observe inhabitants&#8217; heads exploding and reason based on it, we should be able to ask inhabitants about it.  Consider what would happen if we asked a knight:</p>
<blockquote><p>Is it the case that you will answer &#8220;no&#8221; to this question and that your head will not blow up upon hearing this question?</p></blockquote>
<p>If the knight&#8217;s head does not blow up upon hearing the question, then he can neither truthfully answer &#8220;yes&#8221; nor answer &#8220;no.&#8221;  Therefore his head blows up.  But if his head blows up only when he can&#8217;t answer a question, there&#8217;s a problem because given that his head blew up, he could have consistently answered &#8220;no&#8221; to the question.</p>
<p>So what happens?  Well it must be the case that God&#8217;s (or whoever decides whether or not to blow up a head) head blows up because God won&#8217;t be able to decide whether or not the knight&#8217;s head should blow up.  Similarly, if we suppose that SuperGod is in charge of deciding whether or not God&#8217;s head blows up, SuperGod&#8217;s head is in danger of blowing up due to a clever self-referential question, and so forth.  So we may actually extract an <em>unbounded</em> amount of information from a single yes-or-no question by choosing the question carefully and then observing how much of the universe is destroyed by our asking it.</p>
<p>We can eliminate this silliness a bit by seeing how this applies to the usual Liar&#8217;s Paradox.  The Liar&#8217;s Paradox is</p>
<blockquote><p>This sentence is false.</p></blockquote>
<p>(Or &#8220;This sentence is not true,&#8221; but the two will be equivalent for our purposes.)  If it was true, then it would be false, and if it was false, then it would be true.  Many people say that this sentence simply doesn&#8217;t have a well-defined truth value.</p>
<p>But consider this sentence, which I call the Second-Level Liar&#8217;s Paradox:</p>
<blockquote><p>This sentence is false and it has a well-defined truth-value.</p></blockquote>
<p>We can&#8217;t say that this sentence doesn&#8217;t have a well-defined truth-value, since if it doesn&#8217;t, then it is unproblematically false!  Similarly, we can&#8217;t say that it has a well-defined truth value, since in that case it reduces to the Liar&#8217;s Paradox and can be neither true nor false.  So, the Second-Level Liar&#8217;s Paradox has no well-defined (well-defined truth-value or not)-value.</p>
<p>Of course, we can iterate this.  It seems that we should have at least the following truth values: true, false, paradoxical<sub>0</sub>, paradoxical<sub>1</sub>, paradoxical<sub>2</sub>, &#8230; and possibly more extending in to the ordinals depending on the expressive power of the language with respect to which sets of truth values it can refer to.  (Here, a sentence is paradoxical<sub><em>i</em> + 1</sub> if it cannot consistently be paradoxical<sub><em>i</em></sub>.)</p>
<p>I&#8217;ve made a lot of assumptions here which I&#8217;m sure could be challenged about how we should reason in murky, paradoxical situations.   One issue which I&#8217;m not quite sure how to resolve is the question of why, given that a sentence being false implies that it has a well-defined truth value, the Liar Paradox and Second Level Liar Paradox are not equivalent.  But my guess would be that this can be made to give some sort of interesting paraconsistent logic, and probably some interesting puzzles as well.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=61&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/18/hardest-logic-puzzle-ever/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>One Puzzle with Two Totally Different Solutions</title>
		<link>http://xorshammer.com/2008/08/16/two-different-solutions/</link>
		<comments>http://xorshammer.com/2008/08/16/two-different-solutions/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 23:02:36 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Ordinals]]></category>
		<category><![CDATA[Puzzles]]></category>
		<category><![CDATA[Set Theory]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=44</guid>
		<description><![CDATA[Peter Winkler&#8216;s excellent book Mathematical Puzzles: A Connoisseur&#8217;s Collection has in it the problem of finding a partition of into disjoint non-trivial circles. (Here &#8220;non-trivial&#8221; means &#8220;not a point.&#8221;) Winkler gives a very clever solution which is purely geometric. Later, &#8230; <a href="http://xorshammer.com/2008/08/16/two-different-solutions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=44&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://math.dartmouth.edu/~pw/">Peter Winkler</a>&#8216;s excellent book <a href="http://www.amazon.com/exec/obidos/ASIN/1568812019">Mathematical Puzzles: A Connoisseur&#8217;s Collection</a> has in it the problem of finding a partition of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^3' title='&#92;mathbb{R}^3' class='latex' /> into disjoint non-trivial circles.  (Here &#8220;non-trivial&#8221; means &#8220;not a point.&#8221;)  Winkler gives a very clever solution which is purely geometric.</p>
<p>Later, I read the same problem in <a href="http://www.math.wvu.edu/~kcies/">Krzysztof Ciesielski</a>&#8216;s excellent book <a href="http://www.math.wvu.edu/~kcies/STbook.html">Set Theory for the Working Mathematician</a>.  In that book Ciesielski gives an almost purely set-theoretic solution.</p>
<p>I&#8217;ll discuss both solutions below. 　(Don&#8217;t read on yet if you want to think about the puzzle first.)<br />
<span id="more-44"></span></p>
<p>Geometric Solution:  First observe that you can partition a 2-sphere (e.g., <img src='http://s0.wp.com/latex.php?latex=%5C%7B%28x%2Cy%2Cz%29+%5Cmid+x%5E2+%2B+y%5E2+%2B+z%5E2+%3D+1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{(x,y,z) &#92;mid x^2 + y^2 + z^2 = 1&#92;}' title='&#92;{(x,y,z) &#92;mid x^2 + y^2 + z^2 = 1&#92;}' class='latex' />) minus two points into disjoint circles.  The easiest way to see this is to see that you can do it if you remove the north and south poles from the sphere by taking the circles to be the lines of latitude.  Then observe that you can drag the two holes at the two poles to any other two locations on the sphere you want and allow the circles to follow.  (For example, say that the two holes are still on different hemispheres.  Then the circles will still radiate out from the holes, but their centers will gradually become closer and closer to the north or south pole, depending on the hemisphere that the hole is in.)</p>
<p>Given that, the partition of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^3' title='&#92;mathbb{R}^3' class='latex' /> is as follows: The first circles in the partition will be those in the <img src='http://s0.wp.com/latex.php?latex=xy&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='xy' title='xy' class='latex' />-plane with center <img src='http://s0.wp.com/latex.php?latex=%28x%2C0%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,0,0)' title='(x,0,0)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x%5Ccong+1%5Ctext%7B+%28mod+%7D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;cong 1&#92;text{ (mod }4)' title='x&#92;cong 1&#92;text{ (mod }4)' class='latex' /> and with radius 1.  Now notice that every 2-sphere centered at the origin meets these circles in exactly two points.  Thus we may complete the partition by taking a partition of each of these 2-spheres into circles separately.</p>
<p>There is another (probably much better) explanation of this solution at <a href="http://www.cut-the-knot.org/proofs/tessellation.shtml">cut-the-knot</a>.</p>
<p>Set-theoretic solution:  Let <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' /> be the first ordinal of cardinality <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D+%3D+%7C%5Cmathbb%7BR%7D%7C+%3D+%7C%5Cmathbb%7BR%7D%5E3%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0} = |&#92;mathbb{R}| = |&#92;mathbb{R}^3|' title='2^{&#92;aleph_0} = |&#92;mathbb{R}| = |&#92;mathbb{R}^3|' class='latex' />.  Pick a well-ordering <img src='http://s0.wp.com/latex.php?latex=%5C%7Bw_%5Cbeta%5C%7D_%7B%5Cbeta+%3C+%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{w_&#92;beta&#92;}_{&#92;beta &lt; &#92;alpha}' title='&#92;{w_&#92;beta&#92;}_{&#92;beta &lt; &#92;alpha}' class='latex' /> of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^3' title='&#92;mathbb{R}^3' class='latex' /> of length <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 will build the partition of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}^3' title='&#92;mathbb{R}^3' class='latex' /> by transfinite recursion along <img src='http://s0.wp.com/latex.php?latex=%5C%7Bw_%5Cbeta%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{w_&#92;beta&#92;}' title='&#92;{w_&#92;beta&#92;}' class='latex' />.  At each step <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' />, we will define a circle <img src='http://s0.wp.com/latex.php?latex=C_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;beta' title='C_&#92;beta' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta%5Cin+C_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta&#92;in C_&#92;beta' title='w_&#92;beta&#92;in C_&#92;beta' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=C_%5Cbeta%5Ccap+C_%5Cgamma+%3D+%5Cemptyset&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;beta&#92;cap C_&#92;gamma = &#92;emptyset' title='C_&#92;beta&#92;cap C_&#92;gamma = &#92;emptyset' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cgamma+%3C+%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma &lt; &#92;beta' title='&#92;gamma &lt; &#92;beta' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=C_%5Cbeta%5Cne+C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;beta&#92;ne C_&#92;gamma' title='C_&#92;beta&#92;ne C_&#92;gamma' class='latex' />.  Hopefully, it&#8217;s clear that this suffices.</p>
<p>Here&#8217;s what to do at step <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' />.  First of all, if <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta' title='w_&#92;beta' class='latex' /> is in some <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Cgamma+%3C+%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma &lt; &#92;beta' title='&#92;gamma &lt; &#92;beta' class='latex' /> then let <img src='http://s0.wp.com/latex.php?latex=C_%5Cbeta+%3D+C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;beta = C_&#92;gamma' title='C_&#92;beta = C_&#92;gamma' class='latex' /> and stop.  Otherwise, pick a plane <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> passing through <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta' title='w_&#92;beta' class='latex' /> which is not coplanar with any <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cgamma+%3C+%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma &lt; &#92;beta' title='&#92;gamma &lt; &#92;beta' class='latex' />.  This is possible since there are <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0}' title='2^{&#92;aleph_0}' class='latex' /> planes through <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta' title='w_&#92;beta' class='latex' /> but only <img src='http://s0.wp.com/latex.php?latex=%7C%5Cbeta%7C%3C+2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|&#92;beta|&lt; 2^{&#92;aleph_0}' title='|&#92;beta|&lt; 2^{&#92;aleph_0}' class='latex' /> circles <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' />.</p>
<p>Now, each circle <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' /> intersects <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> in at most 2 points.  Since there are <img src='http://s0.wp.com/latex.php?latex=2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2^{&#92;aleph_0}' title='2^{&#92;aleph_0}' class='latex' /> circles in <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> containing <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta' title='w_&#92;beta' class='latex' /> but only <img src='http://s0.wp.com/latex.php?latex=%7C%5Cbeta%7C%3C+2%5E%7B%5Caleph_0%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|&#92;beta|&lt; 2^{&#92;aleph_0}' title='|&#92;beta|&lt; 2^{&#92;aleph_0}' class='latex' /> circles <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' /> there must be a circle in <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> which contains <img src='http://s0.wp.com/latex.php?latex=w_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w_&#92;beta' title='w_&#92;beta' class='latex' /> and is disjoint from each <img src='http://s0.wp.com/latex.php?latex=C_%5Cgamma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;gamma' title='C_&#92;gamma' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=%5Cgamma%3C%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;gamma&lt;&#92;beta' title='&#92;gamma&lt;&#92;beta' class='latex' />.  Let this circle be <img src='http://s0.wp.com/latex.php?latex=C_%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C_&#92;beta' title='C_&#92;beta' class='latex' />.  This completes the proof.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=44&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/16/two-different-solutions/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Multivariable Calculus with Nilpotent Infinitesimals: More Smooth Infinitesimal Analysis</title>
		<link>http://xorshammer.com/2008/08/16/smooth-infinitesimal-analysis2/</link>
		<comments>http://xorshammer.com/2008/08/16/smooth-infinitesimal-analysis2/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 02:54:00 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Intuitionistic Logic]]></category>
		<category><![CDATA[Smooth Infinitesimal Analysis]]></category>
		<category><![CDATA[Toposes]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=34</guid>
		<description><![CDATA[This is a continuation of my earlier post on smooth infinitesimal analysis. In this installment, I&#8217;ll show how the definition of a &#8220;stationary point&#8221; in Smooth Infinitesimal Analysis leads directly to a nice substitute for the Lagrange multipliers method. Then &#8230; <a href="http://xorshammer.com/2008/08/16/smooth-infinitesimal-analysis2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=34&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a continuation of my <a href="http://xorshammer.wordpress.com/2008/08/11/smooth-infinitesimal-analysis/">earlier post on smooth infinitesimal analysis</a>.  In this installment, I&#8217;ll show how the definition of a &#8220;stationary point&#8221; in Smooth Infinitesimal Analysis leads directly to a nice substitute for the Lagrange multipliers method.  Then I&#8217;ll show how you can define differential forms as objects which assign a &#8220;signed volume&#8221; to genuinely infinitesimal objects, and how you can get Stokes&#8217;s Theorem (and the divergence theorem, etc.) in SIA.<strong></strong></p>
<p><span id="more-34"></span></p>
<p><strong>Multivariable Calculus </strong></p>
<p><em>Definition </em>[Partial Derivatives].<br />
Let <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x,y)' title='f(x,y)' class='latex' /> be a function from <img src='http://s0.wp.com/latex.php?latex=R%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R^2' title='R^2' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />.  We define the partial derivative <img src='http://s0.wp.com/latex.php?latex=%5Cpartial+f%2F%5Cpartial+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;partial f/&#92;partial x' title='&#92;partial f/&#92;partial x' class='latex' /> (also written <img src='http://s0.wp.com/latex.php?latex=f_x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_x' title='f_x' class='latex' />) as follows: Given <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' />, let <img src='http://s0.wp.com/latex.php?latex=g_y%28x%29+%3D+f%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_y(x) = f(x,y)' title='g_y(x) = f(x,y)' class='latex' />.  Then <img src='http://s0.wp.com/latex.php?latex=f_x%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_x(x_0,y_0)' title='f_x(x_0,y_0)' class='latex' /> is defined to be <img src='http://s0.wp.com/latex.php?latex=g%27_%7By_0%7D%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#039;_{y_0}(x_0)' title='g&#039;_{y_0}(x_0)' class='latex' />.  A similar definition is made for <img src='http://s0.wp.com/latex.php?latex=f_y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_y' title='f_y' class='latex' />, and for functions of more than two variables.</p>
<p><em>Definition</em> [<img src='http://s0.wp.com/latex.php?latex=D%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D(n)' title='D(n)' class='latex' />].<br />
For <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in &#92;mathbb{N}' title='n&#92;in &#92;mathbb{N}' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=D%28n%29+%3D+%5C%7B%28d_1%2C%5Cldots%2C+d_n%29%5Cin+D%5En+%5Cmid+%5Cforall+i%2Cj%5C%2C+d_id_j+%3D+0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D(n) = &#92;{(d_1,&#92;ldots, d_n)&#92;in D^n &#92;mid &#92;forall i,j&#92;, d_id_j = 0&#92;}' title='D(n) = &#92;{(d_1,&#92;ldots, d_n)&#92;in D^n &#92;mid &#92;forall i,j&#92;, d_id_j = 0&#92;}' class='latex' />.  Note that <img src='http://s0.wp.com/latex.php?latex=D%281%29+%3D+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D(1) = D' title='D(1) = D' class='latex' />.</p>
<p>The sets <img src='http://s0.wp.com/latex.php?latex=D%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D(n)' title='D(n)' class='latex' /> play the role in multivariable calculus that <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> played in singlevariable calculus.  For example, we have the following.</p>
<p style="text-align:left;"><em>Proposition.</em> Let <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x,y)' title='f(x,y)' class='latex' /> be a function from <img src='http://s0.wp.com/latex.php?latex=R%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R^2' title='R^2' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />.  Then, for all <img src='http://s0.wp.com/latex.php?latex=%28d_1%2C+d_2%29+%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1, d_2) &#92;in D(2)' title='(d_1, d_2) &#92;in D(2)' class='latex' />,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28x_0+%2B+d_1%2C+y_0+%2B+d_2%29+%3D+f%28x_0%2Cy_0%29+%2B+d_1+f_x%28x_0%2Cy_0%29+%2B+d_2+f_y%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x_0 + d_1, y_0 + d_2) = f(x_0,y_0) + d_1 f_x(x_0,y_0) + d_2 f_y(x_0,y_0)' title='f(x_0 + d_1, y_0 + d_2) = f(x_0,y_0) + d_1 f_x(x_0,y_0) + d_2 f_y(x_0,y_0)' class='latex' /></p>
<p style="text-align:left;">and furthermore, <img src='http://s0.wp.com/latex.php?latex=f_x%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_x(x_0,y_0)' title='f_x(x_0,y_0)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f_y%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f_y(x_0,y_0)' title='f_y(x_0,y_0)' class='latex' /> are unique with those properties.</p>
<p>The analogous statement is also true for functions of more than two variables. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p>We also have<br />
<em>Proposition</em> [Extended Microcancellation].  Let <img src='http://s0.wp.com/latex.php?latex=a_1%2C+%5Cldots%2C+a_n%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_1, &#92;ldots, a_n&#92;in R' title='a_1, &#92;ldots, a_n&#92;in R' class='latex' />.  Suppose that for all <img src='http://s0.wp.com/latex.php?latex=%28d_1%2C%5Cldots%2Cd_n%29+%5Cin+D%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,&#92;ldots,d_n) &#92;in D(n)' title='(d_1,&#92;ldots,d_n) &#92;in D(n)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Csum+a_id_i+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum a_id_i = 0' title='&#92;sum a_id_i = 0' class='latex' />.  Then each <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' /> equals 0. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p><strong>Stationary Points and Lagrange Multipliers</strong></p>
<p>There is an interesting substitute for the method of Lagrange multipliers in Smooth Infinitesimal Analysis.  To introduce it, I&#8217;ll first discuss the concept of stationary points.</p>
<p>Suppose that we&#8217;ve forgotten what a stationary point and what a critical point is, and we need to redefine the concept in Smooth Infinitesimal Analysis.  How should we do it?  We want a stationary point to be such that every local maximum and local minimum is one.  A point <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' /> gives rise to a local maximum <img src='http://s0.wp.com/latex.php?latex=%28x%2Cf%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,f(x))' title='(x,f(x))' class='latex' /> of a single-variable function <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' /> just in case there is some neighborhood 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' /> such that <img src='http://s0.wp.com/latex.php?latex=f%28x%29+%5Cgeq+f%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x) &#92;geq f(x_0)' title='f(x) &#92;geq f(x_0)' class='latex' />  for all <img src='http://s0.wp.com/latex.php?latex=x_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0' title='x_0' class='latex' /> in that neighborhood.</p>
<p>However, in Smooth Infinitesimal Analysis, there is always a neighborhood 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' /> on which <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 <em>linear</em>.  That means that for <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 be a local maximum, it must be \emph{constant} on some neighborhood.  Obviously, the same is true 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 local minimum.  This suggests that we say that <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' /> has a stationary point at <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' /> just in case <img src='http://s0.wp.com/latex.php?latex=f%28x%29+%3D+f%28x+%2B+d%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x) = f(x + d)' title='f(x) = f(x + d)' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.</p>
<p><em>Definition</em> [Stationary Point of a Single-Variable Function]. Let <img src='http://s0.wp.com/latex.php?latex=f%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;in R^R' title='f&#92;in R^R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />. We say that <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' /> has a stationary point at <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 for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28x+%2B+d%29+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x + d) = f(x)' title='f(x + d) = f(x)' class='latex' />.</p>
<p>Similarly, given a function <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x,y)' title='f(x,y)' class='latex' /> of two variables, and a point <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_0,y_0)' title='(x_0,y_0)' class='latex' />, <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 linear on the set <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29+%2B+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_0,y_0) + D(2)' title='(x_0,y_0) + D(2)' class='latex' />.  This suggests that we define <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_0,y_0)' title='(x_0,y_0)' class='latex' /> to be a stationary point of <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' /> just in case <img src='http://s0.wp.com/latex.php?latex=f%28x_0%2Cy_0%29+%3D+f%28x_0+%2B+d_1%2C+y_0+%2Bd_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x_0,y_0) = f(x_0 + d_1, y_0 +d_2)' title='f(x_0,y_0) = f(x_0 + d_1, y_0 +d_2)' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cd_2%29%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,d_2)&#92;in D(2)' title='(d_1,d_2)&#92;in D(2)' class='latex' />.</p>
<p><em>Definition</em> [Stationary Point of a Multivariable Function]. Let <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+R%5En%5Cto+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon R^n&#92;to R' title='f&#92;colon R^n&#92;to R' class='latex' />.  We say that <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bx%7D%5Cin+R%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{x}&#92;in R^n' title='&#92;bar{x}&#92;in R^n' class='latex' /> is a stationary point of <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' /> if for all <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bd%7D%5Cin+D%28n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{d}&#92;in D(n)' title='&#92;bar{d}&#92;in D(n)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28%5Cbar%7Bx%7D+%2B+%5Cbar%7Bd%7D%29+%3D+f%28%5Cbar%7Bx%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;bar{x} + &#92;bar{d}) = f(&#92;bar{x})' title='f(&#92;bar{x} + &#92;bar{d}) = f(&#92;bar{x})' class='latex' />.</p>
<p>Now, suppose we want to maximize or minimize a function <img src='http://s0.wp.com/latex.php?latex=f%28x%2Cy%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x,y)' title='f(x,y)' class='latex' /> subject to the constraint that it be on some level surface <img src='http://s0.wp.com/latex.php?latex=g%28x%2Cy%29+%3D+k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(x,y) = k' title='g(x,y) = k' class='latex' />, where <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 a constant.  Now, we should require of <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_0,y_0)' title='(x_0,y_0)' class='latex' /> not that <img src='http://s0.wp.com/latex.php?latex=f%28x_0+%2B+d_1%2C+y_0+%2B+d_2%29+%3D+f%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x_0 + d_1, y_0 + d_2) = f(x_0,y_0)' title='f(x_0 + d_1, y_0 + d_2) = f(x_0,y_0)' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=%28d_1%2C+d_2%29+%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1, d_2) &#92;in D(2)' title='(d_1, d_2) &#92;in D(2)' class='latex' />, but only for those <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cd_2%29%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,d_2)&#92;in D' title='(d_1,d_2)&#92;in D' class='latex' /> which keep <img src='http://s0.wp.com/latex.php?latex=%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x_0,y_0)' title='(x_0,y_0)' class='latex' /> on the same level surface of <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' />; that is, those <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cd_2%29%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,d_2)&#92;in D(2)' title='(d_1,d_2)&#92;in D(2)' class='latex' /> for which <img src='http://s0.wp.com/latex.php?latex=g%28x_0+%2B+d_1%2C+y_0+%2B+d_2%29+%3D+g%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(x_0 + d_1, y_0 + d_2) = g(x_0,y_0)' title='g(x_0 + d_1, y_0 + d_2) = g(x_0,y_0)' class='latex' />.  I&#8217;ll record this in a definition.</p>
<p><em>Definition</em> [Constrained Stationary Point]. Let <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' />, <img src='http://s0.wp.com/latex.php?latex=g%5Ccolon+R%5En%5Cto+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;colon R^n&#92;to R' title='g&#92;colon R^n&#92;to R' class='latex' />. A point <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bx%7D%5Cin+R%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{x}&#92;in R^n' title='&#92;bar{x}&#92;in R^n' class='latex' /> is a stationary point of <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' /> constrained by <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> if for all <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bd%7D%5Cin+D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{d}&#92;in D^n' title='&#92;bar{d}&#92;in D^n' class='latex' />, if <img src='http://s0.wp.com/latex.php?latex=g%28%5Cbar%7Bx%7D+%2B+%5Cbar%7Bd%7D%29+%3D+g%28%5Cbar%7Bx%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;bar{x} + &#92;bar{d}) = g(&#92;bar{x})' title='g(&#92;bar{x} + &#92;bar{d}) = g(&#92;bar{x})' class='latex' /> then <img src='http://s0.wp.com/latex.php?latex=f%28%5Cbar%7Bx%7D+%2B+%5Cbar%7Bd%7D%29+%3D+f%28%5Cbar%7Bx%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;bar{x} + &#92;bar{d}) = f(&#92;bar{x})' title='f(&#92;bar{x} + &#92;bar{d}) = f(&#92;bar{x})' class='latex' />.</p>
<p>I&#8217;ll show how this definition leads immediately to a method of solving constrained extrema problems by doing an example.</p>
<p>This example (and this method) are from <a href="http://www.amazon.com/Primer-Infinitesimal-Analysis-John-Bell/dp/0521887186/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218423036&amp;sr=1-1">[Bell2]</a>. Suppose we want to find the radius and height of the cylindrical can (with top and bottom) of least surface area that holds a volume of <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' /> cubic centimeters.  The surface area is <img src='http://s0.wp.com/latex.php?latex=f%28r%2Ch%29+%3D+2%5Cpi+r+h+%2B+%5Cpi+r%5E2+%2B+%5Cpi+r%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r,h) = 2&#92;pi r h + &#92;pi r^2 + &#92;pi r^2' title='f(r,h) = 2&#92;pi r h + &#92;pi r^2 + &#92;pi r^2' class='latex' />, and we are constrained by the volume, which is <img src='http://s0.wp.com/latex.php?latex=g%28r%2Ch%29+%3D+%5Cpi+r%5E2+h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(r,h) = &#92;pi r^2 h' title='g(r,h) = &#92;pi r^2 h' class='latex' />.</p>
<p>We want to find those <img src='http://s0.wp.com/latex.php?latex=%28r%2Ch%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(r,h)' title='(r,h)' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=f%28r+%2B+d_1%2C+h+%2B+d_2%29+%3D+f%28x_0%2Cy_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r + d_1, h + d_2) = f(x_0,y_0)' title='f(r + d_1, h + d_2) = f(x_0,y_0)' class='latex' /> for all those <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cd_2%29%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,d_2)&#92;in D(2)' title='(d_1,d_2)&#92;in D(2)' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=g%28r+%2B+d_1%2C+h+%2B+d_2%29+%3D+g%28r%2Ch%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(r + d_1, h + d_2) = g(r,h)' title='g(r + d_1, h + d_2) = g(r,h)' class='latex' />. So, the first question is to<br />
figure out which <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cd_2%29%5Cin+D%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,d_2)&#92;in D(2)' title='(d_1,d_2)&#92;in D(2)' class='latex' /> satisfy that property.</p>
<p>We have</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=g%28r+%2B+d_1%2C+h+%2B+d_2%29+%3D+%5Cpi+%28r+%2B+d_1%29%5E2+%28h+%2B+d_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(r + d_1, h + d_2) = &#92;pi (r + d_1)^2 (h + d_2)' title='g(r + d_1, h + d_2) = &#92;pi (r + d_1)^2 (h + d_2)' class='latex' /></p>
<p style="text-align:left;">which is</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cpi%28r%5E2+%2B+2rd_1%29%28h+%2B+d_2%29+%3D+%5Cpi%28r%5E2h+%2B+2rd_1h+%2B+r%5E2+d_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi(r^2 + 2rd_1)(h + d_2) = &#92;pi(r^2h + 2rd_1h + r^2 d_2)' title='&#92;pi(r^2 + 2rd_1)(h + d_2) = &#92;pi(r^2h + 2rd_1h + r^2 d_2)' class='latex' /></p>
<p style="text-align:left;">If this is to equal <img src='http://s0.wp.com/latex.php?latex=%5Cpi+r%5E2h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi r^2h' title='&#92;pi r^2h' class='latex' />, then we must have <img src='http://s0.wp.com/latex.php?latex=%5Cpi%282rd_1h+%2B+r%5E2+d_2%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi(2rd_1h + r^2 d_2) = 0' title='&#92;pi(2rd_1h + r^2 d_2) = 0' class='latex' />, so that <img src='http://s0.wp.com/latex.php?latex=d_1+%3D+-%28r%2F%282h%29%29+d_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d_1 = -(r/(2h)) d_2' title='d_1 = -(r/(2h)) d_2' class='latex' />.</p>
<p>Now, we want to find an <img src='http://s0.wp.com/latex.php?latex=%28r%2Ch%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(r,h)' title='(r,h)' class='latex' /> so that <img src='http://s0.wp.com/latex.php?latex=f%28r+%2B+d_1%2C+h+%2B+d_2%29+%3D+f%28r%2Ch%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r + d_1, h + d_2) = f(r,h)' title='f(r + d_1, h + d_2) = f(r,h)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=d_1+%3D+-%28r%2F%282h%29%29+d_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d_1 = -(r/(2h)) d_2' title='d_1 = -(r/(2h)) d_2' class='latex' />.</p>
<p>We have</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28r+%2B+d_1%2C+h+%2B+d_2%29+%3D+2%5Cpi%28%28r+%2B+d_1%29%28h+%2B+d_2%29+%2B+%28r+%2B+d_1%29%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(r + d_1, h + d_2) = 2&#92;pi((r + d_1)(h + d_2) + (r + d_1)^2)' title='f(r + d_1, h + d_2) = 2&#92;pi((r + d_1)(h + d_2) + (r + d_1)^2)' class='latex' /></p>
<p style="text-align:left;">which is</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=2%5Cpi%28rh+%2B+d_1h+%2B+d_2+r+%2B+r%5E2+%2B+2rd_1%29+%3D+2%5Cpi%28rh+%2B+r%5E2+%2B+d_1%28h+%2B+2r%29+%2B+d_2+r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;pi(rh + d_1h + d_2 r + r^2 + 2rd_1) = 2&#92;pi(rh + r^2 + d_1(h + 2r) + d_2 r' title='2&#92;pi(rh + d_1h + d_2 r + r^2 + 2rd_1) = 2&#92;pi(rh + r^2 + d_1(h + 2r) + d_2 r' class='latex' /></p>
<p style="text-align:left;">If this is to equal <img src='http://s0.wp.com/latex.php?latex=2%5Cpi%28rh+%2B+r%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;pi(rh + r^2)' title='2&#92;pi(rh + r^2)' class='latex' /> then we must have <img src='http://s0.wp.com/latex.php?latex=d_1%28h+%2B+2r%29+%2B+d_2+r+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d_1(h + 2r) + d_2 r = 0' title='d_1(h + 2r) + d_2 r = 0' class='latex' />. Substituting <img src='http://s0.wp.com/latex.php?latex=d_1+%3D+-%28r%2F%282h%29%29+d_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d_1 = -(r/(2h)) d_2' title='d_1 = -(r/(2h)) d_2' class='latex' />, we get <img src='http://s0.wp.com/latex.php?latex=%28-%28r%2F%282h%29%29%28h+%2B+2r%29+%2B+r%29d_2+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(-(r/(2h))(h + 2r) + r)d_2 = 0' title='(-(r/(2h))(h + 2r) + r)d_2 = 0' class='latex' />.  By microcancellation, we have <img src='http://s0.wp.com/latex.php?latex=-%28r%2F%282h%29%29%28h+%2B+2r%29+%2B+r+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-(r/(2h))(h + 2r) + r = 0' title='-(r/(2h))(h + 2r) + r = 0' class='latex' />, from which it follows that <img src='http://s0.wp.com/latex.php?latex=2r+%3Dh&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2r =h' title='2r =h' class='latex' />.</p>
<p><strong>Stokes&#8217;s Theorem</strong></p>
<p>It is interesting that not only can the theorems of vector calculus such as Green&#8217;s theorem, Stokes&#8217;s theorem, and the Divergence theorem be stated and proved in Smooth Infinitesimal Analysis, but, just as in the classical case, they are all special cases of a generalized Stokes&#8217;s theorem.</p>
<p>In this section I will state Stokes&#8217;s theorem.</p>
<p><em>Definition.</em> Given <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' />, <img src='http://s0.wp.com/latex.php?latex=y%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&#92;in R' title='y&#92;in R' class='latex' />, we say that <img src='http://s0.wp.com/latex.php?latex=x%5Cleq+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;leq y' title='x&#92;leq y' class='latex' /> if <img src='http://s0.wp.com/latex.php?latex=%5Cneg%28y+%3C+x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg(y &lt; x)' title='&#92;neg(y &lt; x)' class='latex' />.  We define <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+x%2Cy%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack x,y&#92;rbrack' title='&#92;lbrack x,y&#92;rbrack' class='latex' /> to be the set <img src='http://s0.wp.com/latex.php?latex=%5C%7Bz%5Cin+R%5Cmid+x+%5Cleq+z+%5Cleq+y+%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{z&#92;in R&#92;mid x &#92;leq z &#92;leq y &#92;}' title='&#92;{z&#92;in R&#92;mid x &#92;leq z &#92;leq y &#92;}' class='latex' />.</p>
<p><em>Definition.</em> Let <img src='http://s0.wp.com/latex.php?latex=C%5Ccolon+%5Clbrack+0%2C1%5Crbrack%5Cto+R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C&#92;colon &#92;lbrack 0,1&#92;rbrack&#92;to R^3' title='C&#92;colon &#92;lbrack 0,1&#92;rbrack&#92;to R^3' class='latex' /> be a curve, and <img src='http://s0.wp.com/latex.php?latex=F+%3D+%5Clangle+M%2CN%2CP%5Crangle+%5Ccolon+R%5E3+%5Cto+R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F = &#92;langle M,N,P&#92;rangle &#92;colon R^3 &#92;to R^3' title='F = &#92;langle M,N,P&#92;rangle &#92;colon R^3 &#92;to R^3' class='latex' /> be a vector field.  The line integral <img src='http://s0.wp.com/latex.php?latex=%5Cint_C+F%5Ccdot+dr&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_C F&#92;cdot dr' title='&#92;int_C F&#92;cdot dr' class='latex' /> is defined to be <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+F%28C%28t%29%29%5Ccdot+C%27%28t%29%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 F(C(t))&#92;cdot C&#039;(t)&#92;,dt' title='&#92;int_0^1 F(C(t))&#92;cdot C&#039;(t)&#92;,dt' class='latex' />.</p>
<p><em>Definition.</em> Let <img src='http://s0.wp.com/latex.php?latex=S+%3D+S%28u%2Cv%29%5Ccolon+%5B0%2C1%5D%5E2%5Cto+R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = S(u,v)&#92;colon [0,1]^2&#92;to R^3' title='S = S(u,v)&#92;colon [0,1]^2&#92;to R^3' class='latex' /> be a surface, and <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+R%5E3+%5Cto+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon R^3 &#92;to R' title='f&#92;colon R^3 &#92;to R' class='latex' /> be a function.  The surface integral <img src='http://s0.wp.com/latex.php?latex=%5Ciint_S+f%5C%2Cd%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;iint_S f&#92;,d&#92;sigma' title='&#92;iint_S f&#92;,d&#92;sigma' class='latex' /> is defined to be <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+%5Cint_0%5E1+f%28S%28u%2Cv%29%29%5Ccdot+%7CS_u%28u%2Cv%29+%5Ctimes+S_v%28u%2Cv%29%7C%5C%2Cdu%5C%2Cdv&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 &#92;int_0^1 f(S(u,v))&#92;cdot |S_u(u,v) &#92;times S_v(u,v)|&#92;,du&#92;,dv' title='&#92;int_0^1 &#92;int_0^1 f(S(u,v))&#92;cdot |S_u(u,v) &#92;times S_v(u,v)|&#92;,du&#92;,dv' class='latex' />.</p>
<p>This definition may be intuitively justified in the same manner that the arclength of a function was derived in an earlier section.</p>
<p><em>Definition.</em> Let <img src='http://s0.wp.com/latex.php?latex=S+%3D+S%28u%2Cv%29%5Ccolon+%5B0%2C1%5D%5E2%5Cto+R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S = S(u,v)&#92;colon [0,1]^2&#92;to R^3' title='S = S(u,v)&#92;colon [0,1]^2&#92;to R^3' class='latex' /> be a surface, and <img src='http://s0.wp.com/latex.php?latex=F%5Ccolon+R%5E3%5Cto+R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#92;colon R^3&#92;to R^3' title='F&#92;colon R^3&#92;to R^3' class='latex' /> be a vector field.  The surface integral <img src='http://s0.wp.com/latex.php?latex=%5Ciint_S+F%5Ccdot+n%5C%2Cd%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;iint_S F&#92;cdot n&#92;,d&#92;sigma' title='&#92;iint_S F&#92;cdot n&#92;,d&#92;sigma' class='latex' /> is defined to be</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Ciint_S+F%5Ccdot+%5Cleft%28%5Cfrac%7BS_u+%5Ctimes+S_v%7D%7B%7CS_u+%5Ctimes+S_v%7C%7D%5Cright%29%5C%2Cd%5Csigma.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;iint_S F&#92;cdot &#92;left(&#92;frac{S_u &#92;times S_v}{|S_u &#92;times S_v|}&#92;right)&#92;,d&#92;sigma.' title='&#92;iint_S F&#92;cdot &#92;left(&#92;frac{S_u &#92;times S_v}{|S_u &#92;times S_v|}&#92;right)&#92;,d&#92;sigma.' class='latex' /></p>
<p>Note that this equals <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+%5Cint_0%5E1+F%28S%28u%2Cv%29%29%5Ccdot+%28S_u%28u%2Cv%29+%5Ctimes+S_v%28u%2Cv%29%29%5C%2Cdu%5C%2Cdv&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 &#92;int_0^1 F(S(u,v))&#92;cdot (S_u(u,v) &#92;times S_v(u,v))&#92;,du&#92;,dv' title='&#92;int_0^1 &#92;int_0^1 F(S(u,v))&#92;cdot (S_u(u,v) &#92;times S_v(u,v))&#92;,du&#92;,dv' class='latex' />.</p>
<p>We extend both definitions to cover formal <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />-linear combinations of curves and surfaces, and we define the boundary <img src='http://s0.wp.com/latex.php?latex=%5Cpartial+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;partial S' title='&#92;partial S' class='latex' /> of a region <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> to be the formal <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />-linear combination of curves <img src='http://s0.wp.com/latex.php?latex=S%280%2C%5Ccdot%29+%2B+S%28%5Ccdot%2C+1%29+-+S%281%2C%5Ccdot%29+-+S%28%5Ccdot%2C0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S(0,&#92;cdot) + S(&#92;cdot, 1) - S(1,&#92;cdot) - S(&#92;cdot,0)' title='S(0,&#92;cdot) + S(&#92;cdot, 1) - S(1,&#92;cdot) - S(&#92;cdot,0)' class='latex' />.</p>
<p>The curl of a vector field <img src='http://s0.wp.com/latex.php?latex=F+%3D+%5Clangle+M%2CN%2CP%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F = &#92;langle M,N,P&#92;rangle' title='F = &#92;langle M,N,P&#92;rangle' class='latex' /> is defined as usual, and we can prove the usual Stokes&#8217;s Theorem:<br />
<em></em></p>
<p><em>Theorem</em>. Let <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> be a surface and <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' /> a vector field.  Then</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Ciint_S+%5Cmathop%7B%5Cmathrm%7Bcurl%7D%7D+F+%5Ccdot+n%5C%2Cd%5Csigma+%3D+%5Cint_%7B%5Cpartial+S%7D+F%5Ccdot+dr&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;iint_S &#92;mathop{&#92;mathrm{curl}} F &#92;cdot n&#92;,d&#92;sigma = &#92;int_{&#92;partial S} F&#92;cdot dr' title='&#92;iint_S &#92;mathop{&#92;mathrm{curl}} F &#92;cdot n&#92;,d&#92;sigma = &#92;int_{&#92;partial S} F&#92;cdot dr' class='latex' /></p>
<p>This theorem may be used to compute answers to standard multivariable calculus problems requiring Stokes&#8217;s theorem in the usual way.</p>
<p>As an exercise, state the divergence theorem in SIA.</p>
<p><strong>Generalized Stokes&#8217;s Theorem</strong></p>
<p>The definitions in this section are directly from <a href="http://www.amazon.com/Models-Smooth-Infinitesimal-Analysis-Moerdijk/dp/038797489X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218421408&amp;sr=8-1">[Moerdijk-Reyes]</a>.</p>
<p><em>Definition </em>[Infinitesimal <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' />-cubes]. For <img src='http://s0.wp.com/latex.php?latex=n%5Cin+%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n&#92;in &#92;mathbb{N}' title='n&#92;in &#92;mathbb{N}' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> any set, an infinitesimal <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' />-cube in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is some <img src='http://s0.wp.com/latex.php?latex=%28%5Cbar%7Bd%7D%2Cf%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;bar{d},f)' title='(&#92;bar{d},f)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bd%7D%5Cin+D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{d}&#92;in D^n' title='&#92;bar{d}&#92;in D^n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+D%5En%5Cto+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon D^n&#92;to S' title='f&#92;colon D^n&#92;to S' class='latex' />.</p>
<p>Intuitively, an infinitesimal <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' />-cube on a set <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is specified by saying how you want to map <img src='http://s0.wp.com/latex.php?latex=D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D^n' title='D^n' class='latex' /> into your set, and how far you want to go along each coordinate.</p>
<p>Note that an infinitesimal 0-cube is simply a point.</p>
<p><em>Definition </em>[Infinitesimal <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' />-chains]. An infinitesimal <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' />-chain is a formal <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />-linear combination of infinitesimal <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' />-cubes.</p>
<p><em>Definition</em> [Boundary 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' />-chains]. Let <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' /> be a 1-cube <img src='http://s0.wp.com/latex.php?latex=%28d%2Cf%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d,f)' title='(d,f)' class='latex' />.  The boundary <img src='http://s0.wp.com/latex.php?latex=%5Cpartial+C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;partial C' title='&#92;partial C' class='latex' /> is defined to be the 0-chain <img src='http://s0.wp.com/latex.php?latex=f%28d%29+-+f%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d) - f(0)' title='f(d) - f(0)' class='latex' />, where this is a formal <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />l-linear combination of 0-cubes identified as points.</p>
<p>Let <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' /> be a 2-cube <img src='http://s0.wp.com/latex.php?latex=%28%28d_1%2Cd_2%29%2Cf%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='((d_1,d_2),f)' title='((d_1,d_2),f)' class='latex' />.  The boundary <img src='http://s0.wp.com/latex.php?latex=%5Cpartial+C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;partial C' title='&#92;partial C' class='latex' /> is defined to be the 1-chain <img src='http://s0.wp.com/latex.php?latex=%28d_1%2Cf%28%5Ccdot%2C0%29%29+%2B+%28d_2%2Cf%28d_1%2C%5Ccdot%29%29+-+%28d_1%2Cf%28%5Ccdot%2Cd_2%29%29+-+%28d_2%2Cf%280%2C%5Ccdot%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d_1,f(&#92;cdot,0)) + (d_2,f(d_1,&#92;cdot)) - (d_1,f(&#92;cdot,d_2)) - (d_2,f(0,&#92;cdot))' title='(d_1,f(&#92;cdot,0)) + (d_2,f(d_1,&#92;cdot)) - (d_1,f(&#92;cdot,d_2)) - (d_2,f(0,&#92;cdot))' class='latex' />.</p>
<p>In general, if <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' /> is an <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' />-cube <img src='http://s0.wp.com/latex.php?latex=%28%5Cbar%7Bd%7D%2Cf%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;bar{d},f)' title='(&#92;bar{d},f)' class='latex' />, the boundary <img src='http://s0.wp.com/latex.php?latex=%5Cpartial+C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;partial C' title='&#92;partial C' class='latex' /> is defined to be the <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' />-chain <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi+%3D+1%7D%5En+%5Csum_%7B%5Calpha+%3D+0%2C1%7D+%28-1%29%5E%7Bi+%2B+%5Calpha%7D+%28%28d_1%2C%5Cldots%2C%5Chat%7Bd_i%7D%2C%5Cldots%2Cd_n%29%2C%28x_1%2C%5Cldots%2Cx_n%29+%5Cmapsto+f%28x_1%2C%5Cldots%2C+%5Calpha+%5Ccdot+d_i%2C%5Cldots+x_n%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i = 1}^n &#92;sum_{&#92;alpha = 0,1} (-1)^{i + &#92;alpha} ((d_1,&#92;ldots,&#92;hat{d_i},&#92;ldots,d_n),(x_1,&#92;ldots,x_n) &#92;mapsto f(x_1,&#92;ldots, &#92;alpha &#92;cdot d_i,&#92;ldots x_n))' title='&#92;sum_{i = 1}^n &#92;sum_{&#92;alpha = 0,1} (-1)^{i + &#92;alpha} ((d_1,&#92;ldots,&#92;hat{d_i},&#92;ldots,d_n),(x_1,&#92;ldots,x_n) &#92;mapsto f(x_1,&#92;ldots, &#92;alpha &#92;cdot d_i,&#92;ldots x_n))' class='latex' />.</p>
<p>The boundary map is extended to chains in the usual way.</p>
<p><em>Definition</em> [Differential Forms].  An <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' />-form on a set <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is a mapping <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> from the infinitesimal <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' />-cubes on <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> satisfying</p>
<p>1. Homogeneity. Let <img src='http://s0.wp.com/latex.php?latex=a%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in R' title='a&#92;in R' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=1%5Cleq+i%5Cleq+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1&#92;leq i&#92;leq n' title='1&#92;leq i&#92;leq n' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+D%5En%5Cto+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon D^n&#92;to S' title='f&#92;colon D^n&#92;to S' class='latex' />.  Define <img src='http://s0.wp.com/latex.php?latex=g%5Ccolon+D%5En%5Cto+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;colon D^n&#92;to S' title='g&#92;colon D^n&#92;to S' class='latex' /> by <img src='http://s0.wp.com/latex.php?latex=g%28%5Cbar%7Bd%7D%29+%3D+f%28d_1%2C%5Cldots%2Cad_i%2C%5Cldots%2Cd_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(&#92;bar{d}) = f(d_1,&#92;ldots,ad_i,&#92;ldots,d_n)' title='g(&#92;bar{d}) = f(d_1,&#92;ldots,ad_i,&#92;ldots,d_n)' class='latex' />.  Then for all <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bd%7D%5Cin+D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{d}&#92;in D^n' title='&#92;bar{d}&#92;in D^n' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Comega%28%28%5Cbar%7Bd%7D%2Cg%29%29+%3D+a%5Comega%28%28%5Cbar%7Bd%7D%2Cf%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega((&#92;bar{d},g)) = a&#92;omega((&#92;bar{d},f))' title='&#92;omega((&#92;bar{d},g)) = a&#92;omega((&#92;bar{d},f))' class='latex' />.</p>
<p>2. Alternation. Let <img src='http://s0.wp.com/latex.php?latex=%5Csigma&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma' title='&#92;sigma' class='latex' /> be a permutation of <img src='http://s0.wp.com/latex.php?latex=%5C%7B1%2C2%2C%5Cldots%2Cn%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;{1,2,&#92;ldots,n&#92;}' title='&#92;{1,2,&#92;ldots,n&#92;}' class='latex' />.  Then <img src='http://s0.wp.com/latex.php?latex=%5Comega%28%5Cbar%7Bd%7D%2C%5Csigma+f%29+%3D+%5Cmathrm%7Bsgn%7D%28%5Csigma%29%5Ccdot+%5Comega%28%5Csigma%5Cbar%7Bd%7D%2Cf%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega(&#92;bar{d},&#92;sigma f) = &#92;mathrm{sgn}(&#92;sigma)&#92;cdot &#92;omega(&#92;sigma&#92;bar{d},f)' title='&#92;omega(&#92;bar{d},&#92;sigma f) = &#92;mathrm{sgn}(&#92;sigma)&#92;cdot &#92;omega(&#92;sigma&#92;bar{d},f)' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=%5Csigma+f+%3D+%28x_1%2C%5Cldots%2C+x_n%29%5Cmapsto+f%28x_%7B%5Csigma%281%29%7D%2C%5Cldots%2C+x_%7B%5Csigma%28n%29%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma f = (x_1,&#92;ldots, x_n)&#92;mapsto f(x_{&#92;sigma(1)},&#92;ldots, x_{&#92;sigma(n)})' title='&#92;sigma f = (x_1,&#92;ldots, x_n)&#92;mapsto f(x_{&#92;sigma(1)},&#92;ldots, x_{&#92;sigma(n)})' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csigma%5Cbar%7Bd%7D+%3D+%28d_%7B%5Csigma%281%29%7D%2C%5Cldots%2C+d_%7B%5Csigma%28n%29%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sigma&#92;bar{d} = (d_{&#92;sigma(1)},&#92;ldots, d_{&#92;sigma(n)})' title='&#92;sigma&#92;bar{d} = (d_{&#92;sigma(1)},&#92;ldots, d_{&#92;sigma(n)})' class='latex' />.</p>
<p>3. Degeneracy.  If <img src='http://s0.wp.com/latex.php?latex=d_i+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d_i = 0' title='d_i = 0' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Comega%28%5Cbar%7Bd%7D%2Cf%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega(&#92;bar{d},f) = 0' title='&#92;omega(&#92;bar{d},f) = 0' class='latex' />.</p>
<p>We often write <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> as</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=C%5Cmapsto+%5Cint_C%5Comega.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C&#92;mapsto &#92;int_C&#92;omega.' title='C&#92;mapsto &#92;int_C&#92;omega.' class='latex' /></p>
<p>We extend <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> to act on all <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' />-chains in the usual way.</p>
<p>These axioms intuitively say that <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is a reasonable way of assigning an oriented size to the infinitesimal <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' />-cubes.</p>
<p>The homogeneity condition says that if you double the length of one side of an infinitesimal <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' />-cube, you double its size.</p>
<p>The alternation condition says that if you swap the order of two coordinates in an infinitesimal <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' />-cube, then you negate its oriented size.</p>
<p>The degeneracy condition says that if any side of the infinitesimal <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' />-cube is of length 0, its oriented size is of length 0.</p>
<p>By the Kock-Lawvere axiom, for all differential <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' />-forms <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' />, there is a unique map <img src='http://s0.wp.com/latex.php?latex=%5Ctilde%7B%5Comega%7D%5Ccolon+S%5E%7BD%5En%7D%5Cto+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;tilde{&#92;omega}&#92;colon S^{D^n}&#92;to R' title='&#92;tilde{&#92;omega}&#92;colon S^{D^n}&#92;to R' class='latex' /> such that for all <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7Bd%7D%5Cin+D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bar{d}&#92;in D^n' title='&#92;bar{d}&#92;in D^n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+D%5En%5Cto+S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon D^n&#92;to S' title='f&#92;colon D^n&#92;to S' class='latex' /> we have <img src='http://s0.wp.com/latex.php?latex=%5Comega%28%5Cbar%7Bd%7D%2Cf%29+%3D+d_1%5Ccdots+d_n%5Ccdot+%5Ctilde%7B%5Comega%7D%28f%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega(&#92;bar{d},f) = d_1&#92;cdots d_n&#92;cdot &#92;tilde{&#92;omega}(f)' title='&#92;omega(&#92;bar{d},f) = d_1&#92;cdots d_n&#92;cdot &#92;tilde{&#92;omega}(f)' class='latex' />.</p>
<p><em>Definition</em> [Exterior Derivative].  The exterior derivative <img src='http://s0.wp.com/latex.php?latex=d%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;omega' title='d&#92;omega' class='latex' /> of a differential <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' />-form <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> is an <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' />-form defined by</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cint_C+d%5Comega+%3D+%5Cint_%7B%5Cpartial+C%7D+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_C d&#92;omega = &#92;int_{&#92;partial C} &#92;omega' title='&#92;int_C d&#92;omega = &#92;int_{&#92;partial C} &#92;omega' class='latex' /></p>
<p>for all infinitesimal <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' />-cubes.</p>
<p><em>Definition</em> [Finite <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' />-cubes].  A finite <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' />-cube in <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> is a map <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' /> from <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack^n' title='&#92;lbrack 0,1&#92;rbrack^n' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.</p>
<p>The boundary of a finite <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' />-cube is defined in the same way that the boundary of an infinitesimal <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' />-cube was defined.</p>
<p>In the above section, a curve was a finite 1-cube in <img src='http://s0.wp.com/latex.php?latex=R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R^3' title='R^3' class='latex' /> and a surface was a finite 2-cube in <img src='http://s0.wp.com/latex.php?latex=R%5E3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R^3' title='R^3' class='latex' />.</p>
<p><em>Definition</em> [Integration of forms over finite cubes]. Let <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> be an <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' />-form on <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> and <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' /> a finite <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' />-cube on <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />. Then <img src='http://s0.wp.com/latex.php?latex=%5Cint_M+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_M &#92;omega' title='&#92;int_M &#92;omega' class='latex' /> is defined to be</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1%5Ccdots+%5Cint_0%5E1+%5Ctilde%7B%5Comega%7D%28%5Cbar%7Bd%7D+%5Cmapsto+M%28%5Cbar%7Bt%7D+%2B+%5Cbar%7Bd%7D%29%29%5C%2Cdt_1%5Cldots+dt_n.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1&#92;cdots &#92;int_0^1 &#92;tilde{&#92;omega}(&#92;bar{d} &#92;mapsto M(&#92;bar{t} + &#92;bar{d}))&#92;,dt_1&#92;ldots dt_n.' title='&#92;int_0^1&#92;cdots &#92;int_0^1 &#92;tilde{&#92;omega}(&#92;bar{d} &#92;mapsto M(&#92;bar{t} + &#92;bar{d}))&#92;,dt_1&#92;ldots dt_n.' class='latex' /></p>
<p>Generalized Stokes&#8217;s theorem (for finite <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' />-cubes) is provable in SIA (see <a href="http://www.amazon.com/Models-Smooth-Infinitesimal-Analysis-Moerdijk/dp/038797489X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218421408&amp;sr=8-1">[Moerdijk-Reyes]</a> for the proof).</p>
<p><em>Theorem</em> [Generalized Stokes's Theorem].  Let <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' /> be a set, <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> an <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' />-form on <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />, and <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' /> a finite <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' />-cube on <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.  Then</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B%5Cpartial+M%7D%5Comega+%3D+%5Cint_M+d%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{&#92;partial M}&#92;omega = &#92;int_M d&#92;omega' title='&#92;int_{&#92;partial M}&#92;omega = &#92;int_M d&#92;omega' class='latex' /></p>
<p>Let&#8217;s see how this gives the Fundamental Theorem of Calculus.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=F%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F&#92;in R^R' title='F&#92;in R^R' class='latex' /> and let <img src='http://s0.wp.com/latex.php?latex=f+%3D+F%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f = F&#039;' title='f = F&#039;' class='latex' />.  We would like to see how <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5E1+f%28t%29%5C%2Cdt+%3D+F%281%29+-+F%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^1 f(t)&#92;,dt = F(1) - F(0)' title='&#92;int_0^1 f(t)&#92;,dt = F(1) - F(0)' class='latex' /> is a special case of Generalized Stokes&#8217;s Theorem. (On the other hand, that it&#8217;s <em>true</em> is immediate from the way we defined integration.)</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega' title='&#92;omega' class='latex' /> be the 0-form on <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> defined by <img src='http://s0.wp.com/latex.php?latex=%5Comega%28x%29+%3D+F%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;omega(x) = F(x)' title='&#92;omega(x) = F(x)' class='latex' />.  (Recall that 0-cubes are identified with points.)</p>
<p>Then <img src='http://s0.wp.com/latex.php?latex=d%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;omega' title='d&#92;omega' class='latex' /> is the 1-form which takes infinitesimal 1-cubes <img src='http://s0.wp.com/latex.php?latex=%28d%2Cg%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d,g)' title='(d,g)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B%5Cpartial%28d%2Cg%29%7D+%5Comega&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{&#92;partial(d,g)} &#92;omega' title='&#92;int_{&#92;partial(d,g)} &#92;omega' class='latex' />.  We must show that for the finite 1-cube <img src='http://s0.wp.com/latex.php?latex=%5Clbrack+0%2C1%5Crbrack&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lbrack 0,1&#92;rbrack' title='&#92;lbrack 0,1&#92;rbrack' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B%5B0%2C1%5D%7D+d%5Comega+%3D+%5Cint_0%5E1+f%28t%29%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{[0,1]} d&#92;omega = &#92;int_0^1 f(t)&#92;,dt' title='&#92;int_{[0,1]} d&#92;omega = &#92;int_0^1 f(t)&#92;,dt' class='latex' />.</p>
<p>The boundary of <img src='http://s0.wp.com/latex.php?latex=%28d%2Cg%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(d,g)' title='(d,g)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=g%28d%29+-+g%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(d) - g(0)' title='g(d) - g(0)' class='latex' /> (as a formal linear combination, not as a subtraction in <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />).  Therefore, <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7B%5Cpartial%28d%2Cg%29%7D+%5Comega+%3D+%5Comega%28g%28d%29%29+-+%5Comega%28g%280%29%29+%3D+F%28g%28d%29%29+-+F%28g%280%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{&#92;partial(d,g)} &#92;omega = &#92;omega(g(d)) - &#92;omega(g(0)) = F(g(d)) - F(g(0))' title='&#92;int_{&#92;partial(d,g)} &#92;omega = &#92;omega(g(d)) - &#92;omega(g(0)) = F(g(d)) - F(g(0))' class='latex' />.  Since <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> is a function from <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />, there is a unique <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' /> such that <img src='http://s0.wp.com/latex.php?latex=g%28d%29+%3D+g%280%29+%2B+ad&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(d) = g(0) + ad' title='g(d) = g(0) + ad' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.  Then <img src='http://s0.wp.com/latex.php?latex=F%28g%28d%29%29+-+F%28g%280%29%29+%3D+F%28g%280%29+%2B+ad%29+-+F%28g%280%29%29+%3D+F%28g%280%29%29+%2B+%28F%27%28g%280%29%29%29ad+-+F%28g%280%29%29+%3D+f%28g%280%29%29ad&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F(g(d)) - F(g(0)) = F(g(0) + ad) - F(g(0)) = F(g(0)) + (F&#039;(g(0)))ad - F(g(0)) = f(g(0))ad' title='F(g(d)) - F(g(0)) = F(g(0) + ad) - F(g(0)) = F(g(0)) + (F&#039;(g(0)))ad - F(g(0)) = f(g(0))ad' class='latex' />.  Therefore, <img src='http://s0.wp.com/latex.php?latex=%5Ctilde%7Bd%5Comega%7D%28g%29+%3D+f%28g%280%29%29a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;tilde{d&#92;omega}(g) = f(g(0))a' title='&#92;tilde{d&#92;omega}(g) = f(g(0))a' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=g%28d%29+%3D+g%280%29+%2B+ad&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(d) = g(0) + ad' title='g(d) = g(0) + ad' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.</p>
<p>Therefore, <img src='http://s0.wp.com/latex.php?latex=%5Cint_%7BC%7Dd%5Comega+%3D+%5Cint_0%5E1+%5Ctilde%7Bd%5Comega%7D%28d%5Cmapsto+d+%2B+t%29%5C%2Cdt+%3D+%5Cint_0%5E1+f%28t%29%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{C}d&#92;omega = &#92;int_0^1 &#92;tilde{d&#92;omega}(d&#92;mapsto d + t)&#92;,dt = &#92;int_0^1 f(t)&#92;,dt' title='&#92;int_{C}d&#92;omega = &#92;int_0^1 &#92;tilde{d&#92;omega}(d&#92;mapsto d + t)&#92;,dt = &#92;int_0^1 f(t)&#92;,dt' class='latex' />.</p>
<p>One can show in a similar manner that Stokes&#8217;s theorem and the Divergence theorem are special cases of Generalized Stokes&#8217;s theorem, although the computations are significantly more arduous.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=34&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/16/smooth-infinitesimal-analysis2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Ax&#8217;s Theorem: An Application of Logic to Ordinary Mathematics</title>
		<link>http://xorshammer.com/2008/08/15/axs-theorem/</link>
		<comments>http://xorshammer.com/2008/08/15/axs-theorem/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 03:58:45 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Model Theory]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=28</guid>
		<description><![CDATA[There are a number of applications of logic to ordinary mathematics, with the most coming from (I believe) model theory. One of the easiest and most striking that I know is called Ax&#8217;s Theorem. Ax&#8217;s Theorem: For all polynomial functions &#8230; <a href="http://xorshammer.com/2008/08/15/axs-theorem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=28&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are a number of applications of logic to ordinary mathematics, with the most coming from (I believe) model theory.  One of the easiest and most striking that I know is called Ax&#8217;s Theorem.</p>
<p>Ax&#8217;s Theorem: For all polynomial functions <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BC%7D%5En%5Cto+%5Cmathbb%7BC%7D%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{C}^n&#92;to &#92;mathbb{C}^n' title='f&#92;colon &#92;mathbb{C}^n&#92;to &#92;mathbb{C}^n' class='latex' />, 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 injective, then <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 surjective.</p>
<p>Very rough proof sketch: The field <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' /> has characteristic 0, so each of the axioms <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p+%5Cequiv+%5Coverbrace%7B1+%2B+1+%2B+%5Ccdots+%2B+1%7D%5E%7Bp%5Ctext%7B+1%27s%7D%7D++%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p &#92;equiv &#92;overbrace{1 + 1 + &#92;cdots + 1}^{p&#92;text{ 1&#039;s}}  &#92;ne 0' title='&#92;psi_p &#92;equiv &#92;overbrace{1 + 1 + &#92;cdots + 1}^{p&#92;text{ 1&#039;s}}  &#92;ne 0' class='latex' /> (where <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is a prime) is true in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />.  Suppose that some polynomial is injective but not surjective.  Then there is a proof of that fact from the axioms of algebraically closed fields, together with the axioms <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p' title='&#92;psi_p' class='latex' />.  But a proof can only use finitely many axioms.  Therefore, there must be some <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p' title='&#92;psi_p' class='latex' /> that is not used in the proof.  One can then show that there would be a polynomial function which is injective but not surjective from <img src='http://s0.wp.com/latex.php?latex=F%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F^n' title='F^n' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=F%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F^n' title='F^n' class='latex' />, where <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 finite field of characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.  But this is impossible, because <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 finite set.</p>
<p>More details below.</p>
<p><span id="more-28"></span></p>
<p>Fix a language <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BL%7D+%3D+%5C%7B%2B%2C-%2C%5Ctimes%2C+0%2C1%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{L} = &#92;{+,-,&#92;times, 0,1&#92;}' title='&#92;mathcal{L} = &#92;{+,-,&#92;times, 0,1&#92;}' class='latex' />.  The set of axioms ACF for algebraically closed fields consists of the field axioms (<img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%5C%2C+%28x+%5Cne+0+%5Cimplies+%5Cexists+y%5C%2C+x%5Ctimes+y+%3D+1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x&#92;, (x &#92;ne 0 &#92;implies &#92;exists y&#92;, x&#92;times y = 1)' title='&#92;forall x&#92;, (x &#92;ne 0 &#92;implies &#92;exists y&#92;, x&#92;times y = 1)' class='latex' />, etc.) together with, for each <img src='http://s0.wp.com/latex.php?latex=d+%5Cgeq+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d &#92;geq 1' title='d &#92;geq 1' class='latex' /> an axiom</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cforall+c_0+%5Ccdots+%5Cforall+c_%7Bd-1%7D+%5Cexists+x%5C%2C+x%5Ed+%2B+c_%7Bd-1%7Dx%5E%7Bd-1%7D+%2B+%5Ccdots+%2B+c_0+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall c_0 &#92;cdots &#92;forall c_{d-1} &#92;exists x&#92;, x^d + c_{d-1}x^{d-1} + &#92;cdots + c_0 = 0' title='&#92;forall c_0 &#92;cdots &#92;forall c_{d-1} &#92;exists x&#92;, x^d + c_{d-1}x^{d-1} + &#92;cdots + c_0 = 0' class='latex' /></p>
<p style="text-align:left;">asserting that all monic polynomials of degree <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> have a root.</p>
<p style="text-align:left;">If <img src='http://s0.wp.com/latex.php?latex=p+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &gt; 0' title='p &gt; 0' class='latex' /> is a prime, then let ACF<sub><em>p</em></sub> be the axioms of ACF together with the axiom</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Coverbrace%7B1+%2B+1+%2B+%5Ccdots+%2B+1%7D%5E%7Bp%5Ctext%7B+1%27s%7D%7D+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;overbrace{1 + 1 + &#92;cdots + 1}^{p&#92;text{ 1&#039;s}} = 0' title='&#92;overbrace{1 + 1 + &#92;cdots + 1}^{p&#92;text{ 1&#039;s}} = 0' class='latex' /></p>
<p style="text-align:left;">asserting that the field has characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.  Call that axiom <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p' title='&#92;psi_p' class='latex' />.  Let ACF<sub>0 </sub>be the set of axioms of ACF together with <img src='http://s0.wp.com/latex.php?latex=%5Cneg+%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg &#92;psi_p' title='&#92;neg &#92;psi_p' class='latex' /> for each <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.  (This asserts that the field has characteristic 0).  We now have the following lemma, provable by (essentially) logical means.</p>
<p style="text-align:left;"><em>Lemma</em>.  All of the theories ACF<sub><em>p </em></sub>and ACF<sub>0 </sub>are <em>complete</em>, i.e., for any first-order sentence <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' /> in the language of <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BL%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathcal{L}' title='&#92;mathcal{L}' class='latex' />, either the theory proves <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' /> or the theory proves <img src='http://s0.wp.com/latex.php?latex=%5Cneg%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg&#92;phi' title='&#92;neg&#92;phi' class='latex' />. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p style="text-align:left;"><em>Proof of Ax&#8217;s Theorem</em>. For each <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' 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' />, let <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' /> be a formula asserting that all <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' />-tuples of polynomials of degree <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> in <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' /> variables which are injective are surjective.</p>
<p style="text-align:left;">First we show that ACF<sub><em>p </em></sub>proves each <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' />.  First observe that <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' /> is true in each finite field of characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> just by virtue of it being a finite set.  Since the algebraic closure of <img src='http://s0.wp.com/latex.php?latex=F_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F_p' title='F_p' class='latex' /> (the field with <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> elements) is a union of finite fields of characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, it is true in that field as well: if there is some injective and non-surjective polynomial function, simply pick a finite field of characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> large enough to contain all the coefficients of the polynomial and to witness its non-surjectivity in order to get a contradiction.  Since ACF<sub><em>p </em></sub>is complete and there is an algebraically closed field of characteristic <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> in which <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' /> is true, it follows that ACF<sub><em>p </em></sub>proves <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' />.</p>
<p style="text-align:left;">Now, assume that some <img src='http://s0.wp.com/latex.php?latex=%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi_{d,n}' title='&#92;phi_{d,n}' class='latex' /> wasn&#8217;t true in <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{C}' title='&#92;mathbb{C}' class='latex' />.  Then ACF<sub>0 </sub>would prove <img src='http://s0.wp.com/latex.php?latex=%5Cneg+%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg &#92;phi_{d,n}' title='&#92;neg &#92;phi_{d,n}' class='latex' />.  But the proof would have to use only finitely many axioms <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p' title='&#92;psi_p' class='latex' />.  If <img src='http://s0.wp.com/latex.php?latex=p_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_0' title='p_0' class='latex' /> is a prime greater than each <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=%5Cpsi_p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;psi_p' title='&#92;psi_p' class='latex' /> is used in the proof, then ACF<sub><em>p0 </em></sub>proves <img src='http://s0.wp.com/latex.php?latex=%5Cneg+%5Cphi_%7Bd%2Cn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;neg &#92;phi_{d,n}' title='&#92;neg &#92;phi_{d,n}' class='latex' />, contrary to the result of the above paragraph.  <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p style="text-align:left;">For more information, see David Marker&#8217;s introductory notes on model theory <a href="http://www.math.uic.edu/~marker/mt-msri.ps">here</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=28&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/15/axs-theorem/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Did we learn all there is to know about exponentiation in sixth grade?</title>
		<link>http://xorshammer.com/2008/08/13/high-school-identities/</link>
		<comments>http://xorshammer.com/2008/08/13/high-school-identities/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 21:19:46 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Universal Algebra]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=26</guid>
		<description><![CDATA[By sixth grade (I think), you&#8217;ve learned some basic facts about addition, multiplication, and exponentiation over the natural numbers: you&#8217;ve learned that addition and multiplication are commutative and associative, that multiplication distributes over addition, that 0 is an identity for &#8230; <a href="http://xorshammer.com/2008/08/13/high-school-identities/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=26&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By sixth grade (I think), you&#8217;ve learned some basic facts about addition, multiplication, and exponentiation over the natural numbers: you&#8217;ve learned that addition and multiplication are commutative and associative, that multiplication distributes over addition, that 0 is an identity for addition and 1 is an identity for multiplication, and the following simplification rules for exponents:</p>
<p style="text-align:center;">1<sup><em>x</em></sup> = 1</p>
<p style="text-align:center;"><em>x</em><sup>1</sup><em> = <em>x</em></em></p>
<p style="text-align:center;"><em><em>x</em><sup><em>y</em> + <em>z</em></sup> =<em> x</em><sup><em>y</em></sup> ⋅ <em>x</em><sup><em>z</em></sup></em></p>
<p style="text-align:center;">(<em>x</em> ⋅ <em>y</em>)<sup><em>z</em></sup> = <em>x</em><sup><em>z</em></sup> ⋅ <em>y</em><sup><em>z</em></sup></p>
<p style="text-align:center;">(<em>x</em><sup><em>y</em></sup>)<sup><em>z</em></sup> = <em>x</em><sup><em>y</em> ⋅ <em>z</em></sup></p>
<p>Tarski called these the High School Identities (but I think we learn them before high school) and asked if every identity true in the natural numbers that just used addition, multiplication, and exponentiation followed from them.</p>
<p>The answer turned out to be &#8220;no.&#8221;</p>
<p><span id="more-26"></span></p>
<p>In 1981, the model theorist Alex Wilkie discovered that the identity</p>
<p style="text-align:center;">((1 + <em>x</em>)<sup><em>y</em></sup> + (1 + <em>x</em> + <em>x</em><sup>2</sup>)<sup><em>y</em></sup>)<sup><em>x</em></sup> ⋅ ((1 + <em>x</em><sup>3</sup>)<sup><em>x</em></sup> + (1 + <em>x</em><sup>2</sup> + <em>x</em><sup>4</sup>)<sup><em>x</em></sup>)<sup><em>y</em></sup> = ((1 + <em>x</em>)<sup><em>x</em></sup> + (1 + <em>x</em> + <em>x</em><sup>2</sup>)<sup><em>x</em></sup>)<sup><em>y</em></sup> ⋅ ((1 + <em>x</em><sup>3</sup>)<sup><em>y</em></sup> + (1 + <em>x</em><sup>2</sup> + <em>x</em><sup>4</sup>)<sup><em>y</em></sup>)<sup><em>x</em></sup></p>
<p style="text-align:left;">is true for the natural numbers, but does not follow from the High School Identities.</p>
<p style="text-align:left;">But don&#8217;t be concerned that you have to memorize this new identity.  It follows from the fact that 1 + <em>x</em><sup>3</sup> = (1 &#8211; <em>x</em> + <em>x</em><sup>2</sup>) ⋅ (1 + <em>x</em>) and (1 + <em>x</em><sup>2</sup> + <em>x</em><sup>4</sup>) = (1 &#8211; <em>x</em> + <em>x</em><sup>2</sup>) ⋅ (1 + <em>x</em> + <em>x</em><sup>2</sup>) and if we could express (1 &#8211; <em>x</em> + <em>x</em><sup>2</sup>) in our language, we would be able to prove Wilkie&#8217;s identity from the High School Identities.  The only problem is the -<em>x</em>, since we don&#8217;t have additive inverses.</p>
<p style="text-align:left;">It&#8217;s tricky to just put in additive inverses as well, since that will necessitate adding the rational numbers, and then complex numbers, and then exponentiation is no longer single-valued.  But Wilkie also proved that if we allow ourselves to factor expressions into polynomials with integer coefficients so long as those polynomials are always positive on the positive reals, then the High School Identities prove every true exponential identity.</p>
<p style="text-align:left;">
<p style="text-align:left;">For more information, see <a href="http://www.maths.ox.ac.uk/~wilkie/on-exp.ps">Wilkie&#8217;s article</a> or a <a href="http://www.math.uwaterloo.ca/~snburris/htdocs/MYWORKS/PREPRINTS/saga.ps">survey article</a> by Stanley Burris and Karen Yeats.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=26&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/13/high-school-identities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Löb&#8217;s Theorem: Santa Claus and Provability</title>
		<link>http://xorshammer.com/2008/08/13/loebs-theorem/</link>
		<comments>http://xorshammer.com/2008/08/13/loebs-theorem/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 17:50:13 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Provability Logic]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=17</guid>
		<description><![CDATA[Consider the following argument for the existence of Santa Claus (which is called Curry&#8217;s paradox): Let S be the sentence If S is true, then Santa Claus exists. Lemma: S is true. Proof. S is of the form &#8220;If P, &#8230; <a href="http://xorshammer.com/2008/08/13/loebs-theorem/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=17&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Consider the following argument for the existence of Santa Claus (which is called <a href="http://en.wikipedia.org/wiki/Curry%27s_paradox">Curry&#8217;s paradox</a>):</p>
<p>Let <em>S</em> be the sentence</p>
<p style="text-align:center;">If <em>S</em> is true, then Santa Claus exists.</p>
<p style="text-align:left;"><em>Lemma</em>: <em>S </em>is true.</p>
<p style="text-align:left;"><em>Proof.</em> <em>S</em> is of the form &#8220;If <em>P</em>, then <em>Q</em>.&#8221; so to show <em>S</em> we just have to assume <em>P</em> and show <em>Q.</em> So, assume that <em>S</em> is true (with the goal of showing that Santa Claus exists).  Since we&#8217;ve assumed that <em>S</em> is true, it follows that if <em>S </em>is true, then Santa Claus exists (since that&#8217;s exactly what <em>S</em> says).  Then, since <em>S</em> is true, Santa Claus exists. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p style="text-align:left;"><em>Corollary</em>: Santa Claus exists.</p>
<p style="text-align:left;"><em>Proof.</em> Since <em>S</em> is true, it is the case that if <em>S</em> is true, then Santa Claus exists (since that&#8217;s exactly what <em>S</em> says).  Therefore, since<em> S </em>is true, Santa Claus exists. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p style="text-align:left;">Since Santa Claus doesn&#8217;t exist, this argument seems to just prove that informal reasoning combined with self-reference can often lead you astray.  Can we extract any interesting theorems out of this argument? It turns out that we can.</p>
<p style="text-align:left;"><span id="more-17"></span></p>
<p style="text-align:left;">
<p>Let PA denote Peano Arithmetic, which is a first-order theory of arithmetic.  In the course of proving his incompleteness theorems, Gödel found a way to represent way PA-provability in PA.   For every sentence <em>A</em>, there is a sentence Prov(<em>A</em>) such that PA proves <em>A</em> iff PA proves Prov(<em>A</em>).  It has the following two further properties:</p>
<p>1. For all <em>A</em> and <em>B</em>, PA proves that Prov(<em>A</em>→B) together with Prov(<em>A</em>) implies Prov(<em>B</em>).</p>
<p>2. For all <em>A</em>, PA proves that Prov(<em>A</em>) implies Prov(Prov(<em>A</em>)).</p>
<p>Furthermore, Gödel was able to prove his diagonalization lemma, which implies that you can use self-reference as long as it is in reference to provability.  That is, you can formulate the sentence &#8220;This sentence is not provable&#8221; (i.e., there is an <em>S</em> such that PA proves <em>S</em> ↔ ~Prov(<em>S</em>)) but you cannot formulate the sentence &#8220;This sentence is not true&#8221; (i.e., there is no <em>S</em> such that PA proves <em>S </em> ↔ ~<em>S</em>).</p>
<p>Now let&#8217;s try to redo the above argument that Santa Claus exists in the context of PA-provability.</p>
<p>Let <em>A</em> be the assertion that Santa Claus exists.  As above, let <em>S</em> assert &#8220;If <em>S</em> is provable, then <em>A</em> is true.&#8221; In other words, we use Gödel diagonalization to find an <em>S</em> such that PA proves <em>S</em> ↔ (Prov(<em>S</em>) → <em>A</em>).</p>
<p style="text-align:left;">In proving the following lemma, it turns out that we need an extra assumption, which I&#8217;ve put in italics.</p>
<p style="text-align:left;"><em>Lemma</em>: <em>S </em>is provable in PA.</p>
<p style="text-align:left;"><em>Proof</em>. We&#8217;ll work within PA.  Assume Prov(<em>S</em>).  Then, by property 1 above, we have  Prov(Prov(<em>S</em>) → <em>A</em>), and it again follows from property 1 that Prov(Prov(S)) implies Prov(<em>A</em>).  Then, <em>if we knew that </em>Prov(<em>A</em>) <em>implied A</em>, we would conclude that <em>A </em>is true and thus that <em>S</em> is. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p style="text-align:left;"><em>Corollary</em>: <em>A </em>is provable in PA.</p>
<p style="text-align:left;"><em>Proof.</em> We&#8217;ll work within PA.  Since we know <em>S</em> from above, we know that Prov(<em>S</em>) → <em>A. </em>However, we also know from the above that Prov(<em>S</em>) holds.  Therefore, <em>A</em> holds. <img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p>So, we have proved that <em>A</em> is provable in PA given that PA shows that Prov(<em>A</em>) implies <em>A</em> (we used this assumption in the proof of the above Lemma).  This is Löb&#8217;s theorem.</p>
<p>Löb&#8217;s Theorem: For any sentence <em>A</em>, if PA proves Prov(<em>A</em>) implies <em>A</em>, then PA proves <em>A</em>.</p>
<p>We can use to answer the following natural question: Gödel proved his incompleteness theorem by finding a <em>G</em> such that PA proves <em>G </em>↔ ~Prov(<em>G</em>).  (<em>G</em> essentially says &#8220;<em>G</em> is not provable in PA.&#8221;)  It follows that, given that PA only proves true things, <em>G</em> must be true and unprovable.  But what about the sentence <em>H</em> which says &#8220;<em>H</em> is provable in PA.&#8221; ? Is it true and provable or false and unprovable?</p>
<p>Löb&#8217;s Theorem provides the answer.  Since, by definition, PA proves Prov(<em>H</em>) → <em>H</em>, it turns out that <em>H</em> is both true and provable.</p>
<p>For more information, see the Stanford Encyclopedia of Philosophy&#8217;s <a href="http://plato.stanford.edu/entries/logic-provability/">entry</a> on provability logic and George Boolos&#8217;s book <a href="http://books.google.com/books?id=WekaT3OLoUcC&amp;pg=PA55&amp;lpg=PA55&amp;dq=santa+claus+lob's+theorem&amp;source=web&amp;ots=Oubp0wNiTe&amp;sig=Kfl-k18oSHNyGtMEs9M_cKXp66I&amp;hl=en&amp;sa=X&amp;oi=book_result&amp;resnum=1&amp;ct=result#PPP1,M1">&#8220;The Logic of Provability&#8221;</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=17&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/13/loebs-theorem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>Kreisel&#8217;s No-Counterexample Interpretation: How can we turn proofs in elementary number theory into programs?</title>
		<link>http://xorshammer.com/2008/08/13/kreisels-no-counterexample-interpretation/</link>
		<comments>http://xorshammer.com/2008/08/13/kreisels-no-counterexample-interpretation/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 04:19:21 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Proof Theory]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=19</guid>
		<description><![CDATA[For every true number-theoretic statement of the form &#8220;For all n there is an m such that P(n, m)&#8221; there is a witnessing function f such that for all n, P(n, f(n)) is true. For example, a witnessing function for &#8230; <a href="http://xorshammer.com/2008/08/13/kreisels-no-counterexample-interpretation/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=19&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For every true number-theoretic statement of the form &#8220;For all <em>n</em> there is an <em>m</em> such that <em>P</em>(<em>n</em>, <em>m</em>)&#8221; there is a witnessing function <em>f</em> such that for all <em>n</em>, <em>P</em>(<em>n, f</em>(<em>n</em>)) is true.</p>
<p>For example, a witnessing function for the statement &#8220;For all <em>n</em> there is an <em>m</em> such that <em>m &gt; n</em> and <em>m</em> is prime&#8221; is any function which takes a number and returns a prime higher than that number, which certainly exists.</p>
<p>In general, if the statement &#8220;For all <em>n</em><sub>0</sub> there is an <em>m</em><sub>0</sub> such that for all <em>n</em><sub>1</sub> there is an <em>m</em><sub>1</sub> such that &#8230; for all <em>n</em><sub><em>r</em></sub> there is an <em>m</em><sub><em>r</em></sub> such that <em>P</em>(<em>n</em><sub>0</sub>, <em>m</em><sub>0</sub>, &#8230;, <em>n</em><sub><em>r</em></sub>, <em>m</em><sub><em>r</em></sub>)&#8221; is true then there are witnessing functions <em>f</em><sub>0</sub>(<em>n</em><sub>0</sub>), &#8230;, <em>f</em><sub><em>r</em></sub>(<em>n</em><sub>0</sub>, &#8230;, <em>n</em><sub><em>r</em></sub>) such that for all <em>n</em><sub>0</sub>, &#8230;, <em>n</em><sub><em>r</em></sub>, <em>P</em>(<em>n</em><sub>0</sub>, <em>f</em><sub>0</sub>(<em>n</em><sub>0</sub>), &#8230;, <em>n</em><sub><em>r</em></sub>, <em>f</em><sub><em>r</em></sub>(<em>n</em><sub>0</sub>, &#8230;, <em>n</em><sub><em>r</em></sub>)) is true.</p>
<p>Because it&#8217;s the case that if a number-theoretic statement is <em>true</em>, then its witnessing functions <em>exist</em>, we might hope that it woud be the case that if a number-theoretic statement is <em>provable</em>, then its witnessing functions are <em>computable</em>, that is, that we could extract a computer program for the witnessing functions from the proof.</p>
<p>For example, a computable witnessing function for the statement &#8220;For all <em>n</em> there is an <em>m</em> such that <em>m &gt; n</em> and <em>m</em> is prime&#8221; can be easily extracted from Euclid&#8217;s proof that there are infinitely any primes.</p>
<p>Can this always be done?  Unfortunately the answer is no, but Georg Kreisel&#8217;s No-Counterexample Interpretation gives an elegant piece of computational data that <em>can</em> be extracted from any provable number-theoretic statement.</p>
<p><span id="more-19"></span></p>
<p>For an example of a provable number-theoretic statement whose witnessing functions are not computable, consider the following: Let Halts(<em>e</em>, <em>s</em>) be the predicate which asserts that the <em>e</em>th Turing machine halts in <em>s</em> steps.  (Note that Halts(e,s) is decidable&#8212;even primitive recursive.)</p>
<p>Clearly every Turing machine either halts or it doesn&#8217;t.  It follows that &#8220;For all <em>e</em> there is an <em>s</em> such that for all <em>r</em>, (Halts(e,s) or ~Halts(e,r))&#8221; is provable (without any number-theoretic axioms even!)  However, there can be no computable witnessing function <em>f</em>(<em>e</em>) for <em>s, </em>since if there were, we could solve the Halting problem: any e halts iff it halts in <em>f</em>(<em>e</em>) steps, which we can check computably.</p>
<p>Meditating on this example a bit may lead you to believe that there is no hope of extracting any computable information from this proof, which is one of the reasons why I think the no-counterexample interpretation is neat.  It essentially says that although there may not be a sequence of computable witnessing functions for a provable statement, we may computably <em>simulate</em> a sequence of witnessing functions to someone who will only use them <em>once</em>, and who tells us in advance how he plans to use them.</p>
<p>Formally: Suppose that a statement of the form &#8220;For all <em>n</em><sub>0</sub> there is an <em>m</em><sub>0</sub> such that for all <em>n</em><sub>1</sub> there is an <em>m</em><sub>1</sub> such that &#8230; for all <em>n</em><sub><em>r</em></sub> there is an <em>m</em><sub><em>r</em></sub> such that <em>P</em>(<em>n</em><sub>0</sub>, <em>m</em><sub>0</sub>, &#8230;, <em>n</em><sub><em>r</em></sub>, <em>m</em><sub><em>r</em></sub>)&#8221; is provable in Peano Arithmetic (a first-order formal system for proving number-theoretic statements) where <em>P</em> is quantifier-free and involves only primitive recursive predicates and function symbols.</p>
<p>Then there are computable <em>functionals</em> <em>f</em><sub>0</sub>, &#8230;, <em>f</em><sub><em>r</em></sub> each taking <em>r</em> arguments, the <em>i</em>th of which is a function from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5Ei&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^i' title='&#92;mathbb{N}^i' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' /> satisfying the following: For any functions <em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub> such that <em>g</em><sub><em>i</em></sub> is from <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D%5Ei&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}^i' title='&#92;mathbb{N}^i' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{N}' title='&#92;mathbb{N}' class='latex' />,</p>
<p><em>P</em>(<em>g</em><sub>0</sub>, <em>f</em><sub>0</sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>), <em>g</em><sub>1</sub>(<em>f</em><sub>0</sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>)), <em>f</em><sub>1</sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>), &#8230;,<em> g</em><sub><em>r</em></sub>(<em>f</em><sub>0</sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>), &#8230;,<em>f</em><sub><em>r</em> &#8211; 1</sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>)),<em>f</em><sub><em>r</em></sub>(<em>g</em><sub>0</sub>, &#8230;, <em>g</em><sub><em>r</em></sub>))</p>
<p>is true.</p>
<p>Here the functions <em>g</em><sub><em>i</em></sub> represent the way in which the witnessing functions were to be used, and the content of the claim is that we can write computer programs which, given these functions in advance can simulate the witnessing functions to the &#8220;satisfaction&#8221; of the functions <em>g</em><sub><em>i</em></sub>.</p>
<p>Let&#8217;s see how this works in our example above: Our statement is &#8220;For all <em>e</em> there is an <em>s</em> such that for all <em>r</em>, either Halts(<em>e</em>,<em>s</em>) or ~Halts(<em>e</em>,<em>r</em>).&#8221;  We can&#8217;t write a program which determines if the <em>e</em>th Turing machine halts or not, but suppose we know that given <em>e</em> and <em>s</em>, our customer will only check that &#8220;Halts(<em>e</em>,<em>s</em>) or ~Halts(<em>e</em>,<em>r</em>)&#8221; is true for some specific <em>r = r</em>(<em>e</em>, <em>s</em>).  Then we can satisfy him or her as follows: given <em>e</em>, check if Halts(<em>e</em>, <em>r</em>(<em>e</em>, 0)) holds. If so, return <em>s</em> = <em>r</em>(<em>e</em>, 0)), and the customer will be satisfied since Halts(<em>e</em>, <em>s</em>) will hold.  If not, return, <em>s</em> = 0 and the customer will be satisfied since Halts(<em>e</em>, <em>r</em>) will not hold.</p>
<p>For more information, check out Jeremy Avigad and Solomon Feferman&#8217;s excellent article on Gödel&#8217;s functional interpretation in the Handbook of Proof Theory (also available <a href="http://www.andrew.cmu.edu/user/avigad/Papers/dialect.pdf">here</a> online).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=19&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/13/kreisels-no-counterexample-interpretation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>
	</item>
		<item>
		<title>How can one do calculus with (nilpotent) infinitesimals?: An Introduction to Smooth Infinitesimal Analysis</title>
		<link>http://xorshammer.com/2008/08/11/smooth-infinitesimal-analysis/</link>
		<comments>http://xorshammer.com/2008/08/11/smooth-infinitesimal-analysis/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 03:03:54 +0000</pubDate>
		<dc:creator>mkoconnor</dc:creator>
				<category><![CDATA[Intuitionistic Logic]]></category>
		<category><![CDATA[Smooth Infinitesimal Analysis]]></category>
		<category><![CDATA[Toposes]]></category>

		<guid isPermaLink="false">http://xorshammer.wordpress.com/?p=3</guid>
		<description><![CDATA[Many mathematicians, from Archimedes to Leibniz to Euler and beyond, made use of infinitesimals in their arguments. These were later replaced rigorously with limits, but many people still find it useful to think and derive with infinitesimals. Unfortunately, in most &#8230; <a href="http://xorshammer.com/2008/08/11/smooth-infinitesimal-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=3&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many mathematicians, from Archimedes to Leibniz to Euler and beyond, made use of infinitesimals in their arguments.  These were later replaced rigorously with limits, but many people still find it useful to think and derive with infinitesimals.</p>
<p>Unfortunately, in most informal setups the existence of infinitesimals is technically contradictory, so it can be difficult to grasp the means by which one fruitfully manipulates them.  It would be useful to have an axiomatic framework with the following properties:</p>
<p>1. It is consistent.</p>
<p>2. The system acts as a good &#8220;intuition pump&#8221; for the real world.  In particular, this entails that if you prove something in the system, then while it won&#8217;t necessarily be <em>true</em> in the real world, there should be a high probability that it&#8217;s <em>morally true</em> in the real world, i.e., with some extra assumptions it becomes true.  It should also ideally entail that many of the proofs of Archimedes, et al., involving infinitesimals can be formulated as is (or close to &#8220;as is&#8221;).</p>
<p>&#8220;Smooth infinitesimal analysis&#8221; is one attempt to satisfy these conditions.<br />
<span id="more-3"></span></p>
<p>(This is a blogified version of the first part of an article I wrote <a href="http://arxiv.org/abs/0805.3307">here</a>.)</p>
<p><strong>Axioms and Logic</strong></p>
<p>Consider the following axioms:</p>
<p><em>Axiom 1. </em><img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> is a set, 0 and 1 are elements of <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%2B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='+' title='+' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ccdot&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cdot' title='&#92;cdot' class='latex' /> are binary operations on <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />.  The structure <img src='http://s0.wp.com/latex.php?latex=%5Clangle+R%2C+%2B%2C+%5Ccdot%2C+0%2C+1%5Crangle&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;langle R, +, &#92;cdot, 0, 1&#92;rangle' title='&#92;langle R, +, &#92;cdot, 0, 1&#92;rangle' class='latex' /> is a commutative ring with unit.</p>
<p>Furthermore, we have that <img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%5C%2C+%28%28x+%5Cne+0%29+%5Cimplies+%28%5Cexists+y%5C%2C+xy+%3D+1%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x&#92;, ((x &#92;ne 0) &#92;implies (&#92;exists y&#92;, xy = 1))' title='&#92;forall x&#92;, ((x &#92;ne 0) &#92;implies (&#92;exists y&#92;, xy = 1))' class='latex' />, but I don&#8217;t want to call <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> a field for a reason I&#8217;ll discuss in a moment.</p>
<p><em>Axiom 2. </em>There is a transitive irreflexive relation <img src='http://s0.wp.com/latex.php?latex=%3C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;' title='&lt;' class='latex' /> on <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />.  It satisfies <img src='http://s0.wp.com/latex.php?latex=0+%3C+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &lt; 1' title='0 &lt; 1' class='latex' />, and for all <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' />, <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' />, and <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' />, we have <img src='http://s0.wp.com/latex.php?latex=x+%3C+y+%5Cimplies+x+%2B+z+%3C+y+%2B+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &lt; y &#92;implies x + z &lt; y + z' title='x &lt; y &#92;implies x + z &lt; y + z' class='latex' /> and (<img src='http://s0.wp.com/latex.php?latex=x+%3C+y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &lt; y' title='x &lt; y' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=z+%3E+0%29%5Cimplies+xz+%3C+yz&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z &gt; 0)&#92;implies xz &lt; yz' title='z &gt; 0)&#92;implies xz &lt; yz' class='latex' />.</p>
<p>It also satisfies <img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%2C+y%5C%2C+%28x%5Cne+y%29+%5Cimplies+%28x+%3E+y+%5Cvee+x+%3C+y%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x, y&#92;, (x&#92;ne y) &#92;implies (x &gt; y &#92;vee x &lt; y)' title='&#92;forall x, y&#92;, (x&#92;ne y) &#92;implies (x &gt; y &#92;vee x &lt; y)' class='latex' />, but I don&#8217;t want to call <img src='http://s0.wp.com/latex.php?latex=%3C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;' title='&lt;' class='latex' /> total, for a reason I&#8217;ll discuss in a moment.</p>
<p><em>Axiom 3</em>. For all <img src='http://s0.wp.com/latex.php?latex=x+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x &gt; 0' title='x &gt; 0' class='latex' /> there is a unique <img src='http://s0.wp.com/latex.php?latex=y+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y &gt; 0' title='y &gt; 0' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=y%5E2+%3D+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y^2 = x' title='y^2 = x' class='latex' />.</p>
<p><em>Axiom 4 </em>[Kock-Lawvere Axiom]. Let <img src='http://s0.wp.com/latex.php?latex=D+%3D+%5C%7Bd+%5Cin+R%5Cmid+d%5E2+%3D+0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D = &#92;{d &#92;in R&#92;mid d^2 = 0&#92;}' title='D = &#92;{d &#92;in R&#92;mid d^2 = 0&#92;}' class='latex' />.  Then for all functions <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' /> from <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />, and all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />, there is a unique <img src='http://s0.wp.com/latex.php?latex=a%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in R' title='a&#92;in R' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=f%28d%29+%3D+f%280%29+%2B+d%5Ccdot+a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d) = f(0) + d&#92;cdot a' title='f(d) = f(0) + d&#92;cdot a' class='latex' />.</p>
<p>After reading the Kock-Lawvere Axiom you are probably quite puzzled.  In the first place, we can easily prove that <img src='http://s0.wp.com/latex.php?latex=D+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D = &#92;{0&#92;}' title='D = &#92;{0&#92;}' class='latex' />: Let <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />. For a proof by contradiction, assume that <img src='http://s0.wp.com/latex.php?latex=d%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;ne 0' title='d&#92;ne 0' class='latex' />, then there is a <img src='http://s0.wp.com/latex.php?latex=d%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d^{-1}' title='d^{-1}' class='latex' /> and if <img src='http://s0.wp.com/latex.php?latex=d%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d^2' title='d^2' class='latex' /> equalled 0, we would have <img src='http://s0.wp.com/latex.php?latex=d+%3D+d%5E2+d%5E%7B-1%7D+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d = d^2 d^{-1} = 0' title='d = d^2 d^{-1} = 0' class='latex' />.</p>
<p>For an alternate proof that <img src='http://s0.wp.com/latex.php?latex=D+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D = &#92;{0&#92;}' title='D = &#92;{0&#92;}' class='latex' />: Again assume that <img src='http://s0.wp.com/latex.php?latex=d%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;ne 0' title='d&#92;ne 0' class='latex' /> for a contradiction. Then <img src='http://s0.wp.com/latex.php?latex=d+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d &gt; 0' title='d &gt; 0' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=d+%3C+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d &lt; 0' title='d &lt; 0' class='latex' />.  In the first case, <img src='http://s0.wp.com/latex.php?latex=d%5E2+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d^2 &gt; 0' title='d^2 &gt; 0' class='latex' />, so <img src='http://s0.wp.com/latex.php?latex=d%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;ne 0' title='d&#92;ne 0' class='latex' /> (since <img src='http://s0.wp.com/latex.php?latex=%3C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;' title='&lt;' class='latex' /> is irreflexive). In the second case, we have <img src='http://s0.wp.com/latex.php?latex=0+%3C+-d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0 &lt; -d' title='0 &lt; -d' class='latex' /> by adding <img src='http://s0.wp.com/latex.php?latex=-d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-d' title='-d' class='latex' /> to both sides, and again <img src='http://s0.wp.com/latex.php?latex=d%5E2+%3E+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d^2 &gt; 0' title='d^2 &gt; 0' class='latex' />.</p>
<p>Now, if <img src='http://s0.wp.com/latex.php?latex=D+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D = &#92;{0&#92;}' title='D = &#92;{0&#92;}' class='latex' />, then for <em>any</em> <img src='http://s0.wp.com/latex.php?latex=a%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a&#92;in R' title='a&#92;in R' class='latex' />, and any function <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' /> from <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />, we have <img src='http://s0.wp.com/latex.php?latex=f%28d%29+%3D+f%280%29+%2B+d%5Ccdot+a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d) = f(0) + d&#92;cdot a' title='f(d) = f(0) + d&#92;cdot a' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.  This contradicts the uniqueness of <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' />.  Therefore, the axioms presented so far are contradictory.</p>
<p>However, we have the following surprising fact.</p>
<p><em>Fact.</em> There is a form of set theory (called a <em>local set theory</em>, or <em>topos logic</em>) which has its underlying logic restricted (to a logic called <em>intuitionistic logic</em>) under which Axioms 1 through 4 (and also the axioms to be presented later in this paper) taken together are consistent</p>
<p><em>Definition. </em>Smooth Infinitesimal Analysis (SIA) is the system whose axioms are those sentences marked as Axioms in this paper and whose logic is that alluded to in the above fact.</p>
<p>References for this theorem are <a href="http://www.amazon.com/Models-Smooth-Infinitesimal-Analysis-Moerdijk/dp/038797489X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218421408&amp;sr=8-1">[Moerdijk-Reyes]</a> and <a href="http://home.imf.au.dk/kock/sdg99.pdf">[Kock]</a>.  References for topos logic specifically are <a href="http://www.amazon.com/Toposes-Local-Set-Theories-Introduction/dp/0486462862/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218421869&amp;sr=1-1">[Bell1]</a> and <a href="http://www.amazon.com/Sheaves-Geometry-Logic-Universitext-Saunders/dp/3540977104/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218422001&amp;sr=1-1">[MacLane-Moerdijk]</a>.</p>
<p>Essentially, intuitionistic logic disallows proof by contradiction (which was used in both proofs that <img src='http://s0.wp.com/latex.php?latex=D+%3D+%5C%7B0%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D = &#92;{0&#92;}' title='D = &#92;{0&#92;}' class='latex' /> above) and its equivalent brother, the law of the excluded middle, which says that for any proposition <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=P%5Cvee+%5Cneg+P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P&#92;vee &#92;neg P' title='P&#92;vee &#92;neg P' class='latex' /> holds.</p>
<p>I won&#8217;t formally define intuitionistic logic or topos logic here as it would take too much space and there&#8217;s no real way to understand it except by seeing examples anyway. If you avoid proofs by contradiction and proofs using the law of the excluded middle (which usually come up in ways like: &#8220;Let <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />.  Then either <img src='http://s0.wp.com/latex.php?latex=x+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 0' title='x = 0' class='latex' /> or <img src='http://s0.wp.com/latex.php?latex=x%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;ne 0' title='x&#92;ne 0' class='latex' />.&#8221;), you will be okay.</p>
<p>But before we go further we might ask, &#8220;what does this logic have to do with the real world anyway?&#8221;  Possibly nothing, but recall that our goals above do not require that we work with &#8220;real&#8221; objects; just that we have a consistent system which will act as a good &#8220;intuition pump&#8221; about the real world.  We are guaranteed that the system is consistent by a theorem; for the second condition each person will have to judge for themselves.</p>
<p>To conclude this section, it should now be clear why I didn&#8217;t want to call <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> a field and <img src='http://s0.wp.com/latex.php?latex=%3C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&lt;' title='&lt;' class='latex' /> a total order:<br />
Even though we have <img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%5C%2C+%28%28x%5Cne+0%29%5Cimplies+x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x&#92;, ((x&#92;ne 0)&#92;implies x' title='&#92;forall x&#92;, ((x&#92;ne 0)&#92;implies x' class='latex' /> invertible), we can&#8217;t conclude from that that <img src='http://s0.wp.com/latex.php?latex=%5Cforall+x%5C%2C+%28%28x+%3D+0%29+%5Cvee+%28x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;forall x&#92;, ((x = 0) &#92;vee (x' title='&#92;forall x&#92;, ((x = 0) &#92;vee (x' class='latex' /> invertible)), because the proof of the latter from the former uses the law of the excluded middle.  Calling <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> a field would unduly give the impression that the latter is true.</p>
<p>For the rest of this blog entry I will generally work within SIA (except, obviously, when I announce new axioms or make remarks about SIA).</p>
<p><strong>Single-Variable Calculus</strong></p>
<p><strong>An Important Lemma</strong><br />
This lemma is easy to prove, but because it is used over and over again, I&#8217;ll isolate it here:</p>
<p><em>Lemma </em>[Microcancellation] Let <img src='http://s0.wp.com/latex.php?latex=a%2C+b%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a, b&#92;in R' title='a, b&#92;in R' class='latex' />. If for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' /> we have <img src='http://s0.wp.com/latex.php?latex=ad+%3D+bd&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ad = bd' title='ad = bd' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=a+%3D+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a = b' title='a = b' class='latex' />.</p>
<p><em>Proof.</em></p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=f%5Cin+R%5ED&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;in R^D' title='f&#92;in R^D' class='latex' /> be given by <img src='http://s0.wp.com/latex.php?latex=f%28d%29+%3D+ad+%3D+bd&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(d) = ad = bd' title='f(d) = ad = bd' class='latex' />.  Then by the uniqueness condition of the Kock-Lawvere axiom, we have that <img src='http://s0.wp.com/latex.php?latex=a+%3D+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a = b' title='a = b' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p><strong>Basic Rules</strong><br />
Let <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' /> be a function from <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />, and let <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />.  We may define a function <img src='http://s0.wp.com/latex.php?latex=g&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g' title='g' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> as follows: for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=g%28d%29+%3D+f%28x+%2B+d%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(d) = f(x + d)' title='g(d) = f(x + d)' class='latex' />.  Then the Kock-Lawvere axiom tells us that there is a unique <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' /> so that <img src='http://s0.wp.com/latex.php?latex=g%28d%29+%3D+g%280%29+%2B+ad&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(d) = g(0) + ad' title='g(d) = g(0) + ad' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.  Thus, we have that for all functions <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' /> from <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> and all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />, there is a unique <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' /> so that <img src='http://s0.wp.com/latex.php?latex=f%28x+%2B+d%29+%3D+f%28x%29+%2B+ad&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x + d) = f(x) + ad' title='f(x + d) = f(x) + ad' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' />.  We define <img src='http://s0.wp.com/latex.php?latex=f%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(x)' title='f&#039;(x)' class='latex' /> to be this <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' />.</p>
<p>We thus have the following fundamental fact:</p>
<p><em>Proposition</em> [Fundamental Fact about Derivatives]<br />
For all <img src='http://s0.wp.com/latex.php?latex=f%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;in R^R' title='f&#92;in R^R' class='latex' />, all <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />, and all <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28x+%2B+d%29+%3D+f%28x%29+%2B+f%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x + d) = f(x) + f&#039;(x)d' title='f(x + d) = f(x) + f&#039;(x)d' class='latex' /></p>
<p>and furthermore, <img src='http://s0.wp.com/latex.php?latex=f%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(x)' title='f&#039;(x)' class='latex' /> is the unique real number with that property.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p><em>Proposition</em> Let <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' />, <img src='http://s0.wp.com/latex.php?latex=g%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;in R^R' title='g&#92;in R^R' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=c%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c&#92;in R' title='c&#92;in R' class='latex' />. Then:</p>
<p>1. <img src='http://s0.wp.com/latex.php?latex=%28f+%2B+g%29%27+%3D+f%27+%2B+g%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(f + g)&#039; = f&#039; + g&#039;' title='(f + g)&#039; = f&#039; + g&#039;' class='latex' /></p>
<p>2. <img src='http://s0.wp.com/latex.php?latex=%28cf%29%27+%3D+cf%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(cf)&#039; = cf&#039;' title='(cf)&#039; = cf&#039;' class='latex' /></p>
<p>3. <img src='http://s0.wp.com/latex.php?latex=%28fg%29%27+%3D+f%27g+%2B+fg%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(fg)&#039; = f&#039;g + fg&#039;' title='(fg)&#039; = f&#039;g + fg&#039;' class='latex' /></p>
<p>4. If for all <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' />, <img src='http://s0.wp.com/latex.php?latex=g%28x%29+%5Cne+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(x) &#92;ne 0' title='g(x) &#92;ne 0' class='latex' />, then <img src='http://s0.wp.com/latex.php?latex=%28f%2Fg%29%27+%3D+%28gf%27+-+fg%27%29%2Fg%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(f/g)&#039; = (gf&#039; - fg&#039;)/g^2' title='(f/g)&#039; = (gf&#039; - fg&#039;)/g^2' class='latex' />.</p>
<p>5. <img src='http://s0.wp.com/latex.php?latex=%28f%5Ccirc+g%29%27+%3D+%28f%27%5Ccirc+g%29%5Ccdot+g%27&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(f&#92;circ g)&#039; = (f&#039;&#92;circ g)&#92;cdot g&#039;' title='(f&#92;circ g)&#039; = (f&#039;&#92;circ g)&#92;cdot g&#039;' class='latex' />.</p>
<p><em>Proof</em><br />
I&#8217;ll prove 3 and 5 and leave the rest as exercises.</p>
<p>To prove 3: Let <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />.  Let <img src='http://s0.wp.com/latex.php?latex=h%28x%29+%3D+f%28x%29g%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h(x) = f(x)g(x)' title='h(x) = f(x)g(x)' class='latex' />. Then</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=h%28x+%2B+d%29+%3D+f%28x+%2B+d%29g%28x+%2B+d%29+%3D+%28f%28x%29+%2B+f%27%28x%29d%29%28g%28x%29+%2B+g%27%28x%29d%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h(x + d) = f(x + d)g(x + d) = (f(x) + f&#039;(x)d)(g(x) + g&#039;(x)d)' title='h(x + d) = f(x + d)g(x + d) = (f(x) + f&#039;(x)d)(g(x) + g&#039;(x)d)' class='latex' /></p>
<p style="text-align:left;">which, multiplying out and using <img src='http://s0.wp.com/latex.php?latex=d%5E2+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d^2 = 0' title='d^2 = 0' class='latex' />, is equal to</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28x%29g%28x%29+%2B+d%28f%27%28x%29g%28x%29+%2B+f%28x%29g%27%28x%29%29+%3D+h%28x%29+%2Bd%28f%27%28x%29g%28x%29+%2B+f%28x%29g%27%28x%29%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)g(x) + d(f&#039;(x)g(x) + f(x)g&#039;(x)) = h(x) +d(f&#039;(x)g(x) + f(x)g&#039;(x)).' title='f(x)g(x) + d(f&#039;(x)g(x) + f(x)g&#039;(x)) = h(x) +d(f&#039;(x)g(x) + f(x)g&#039;(x)).' class='latex' /></p>
<p>On the other hand, we know that <img src='http://s0.wp.com/latex.php?latex=h%28x+%2B+d%29+%3D+h%28x%29+%2B+h%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h(x + d) = h(x) + h&#039;(x)d' title='h(x + d) = h(x) + h&#039;(x)d' class='latex' />, so</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=h%27%28x%29d+%3D+d%28f%27%28x%29g%28x%29+%2B+f%28x%29g%27%28x%29%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h&#039;(x)d = d(f&#039;(x)g(x) + f(x)g&#039;(x)).' title='h&#039;(x)d = d(f&#039;(x)g(x) + f(x)g&#039;(x)).' class='latex' /></p>
<p>Since <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> was an arbitrary element of <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' />, we may use microcancellation, and we obtain <img src='http://s0.wp.com/latex.php?latex=h%27%28x%29+%3D+f%27%28x%29g%28x%29+%2B+f%28x%29g%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h&#039;(x) = f&#039;(x)g(x) + f(x)g&#039;(x)' title='h&#039;(x) = f&#039;(x)g(x) + f(x)g&#039;(x)' class='latex' />.</p>
<p>To prove 5: Let <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />. Then</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28g%28x+%2B+d%29%29+%3D+f%28g%28x%29+%2B+g%27%28x%29d%29.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(g(x + d)) = f(g(x) + g&#039;(x)d).' title='f(g(x + d)) = f(g(x) + g&#039;(x)d).' class='latex' /></p>
<p>Now, <img src='http://s0.wp.com/latex.php?latex=g%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#039;(x)d' title='g&#039;(x)d' class='latex' /> is in <img src='http://s0.wp.com/latex.php?latex=D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='D' title='D' class='latex' /> (since <img src='http://s0.wp.com/latex.php?latex=%28g%27%28x%29d%29%5E2+%3D+d%5E2%28g%27%28x%29%29%5E2+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(g&#039;(x)d)^2 = d^2(g&#039;(x))^2 = 0' title='(g&#039;(x)d)^2 = d^2(g&#039;(x))^2 = 0' class='latex' />), so</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28g%28x%29+%2B+g%27%28x%29d%29+%3D+f%28g%28x%29%29+%2B+g%27%28x%29f%27%28g%28x%29%29d.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(g(x) + g&#039;(x)d) = f(g(x)) + g&#039;(x)f&#039;(g(x))d.' title='f(g(x) + g&#039;(x)d) = f(g(x)) + g&#039;(x)f&#039;(g(x))d.' class='latex' /></p>
<p>As before, this gives us that <img src='http://s0.wp.com/latex.php?latex=g%27%28x%29f%27%28g%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#039;(x)f&#039;(g(x))' title='g&#039;(x)f&#039;(g(x))' class='latex' /> is the derivative of <img src='http://s0.wp.com/latex.php?latex=f%28g%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(g(x))' title='f(g(x))' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p>In order to do integration, let&#8217;s add the following axiom:</p>
<p><em>Axiom 5 </em>For all <img src='http://s0.wp.com/latex.php?latex=f%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;in R^R' title='f&#92;in R^R' class='latex' /> there is a unique <img src='http://s0.wp.com/latex.php?latex=g%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#92;in R^R' title='g&#92;in R^R' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=g%27+%3D+f&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g&#039; = f' title='g&#039; = f' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=g%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(0) = 0' title='g(0) = 0' class='latex' />.  We write <img src='http://s0.wp.com/latex.php?latex=g%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(x)' title='g(x)' class='latex' /> as <img src='http://s0.wp.com/latex.php?latex=%5Cint_0%5Ex+f%28t%29%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_0^x f(t)&#92;,dt' title='&#92;int_0^x f(t)&#92;,dt' class='latex' />.</p>
<p>We can now derive the rules of integration in the usual way by inverting the rules of differentiation.</p>
<p><strong>Deriving formulas for Arclength, etc.</strong></p>
<p>I&#8217;d now like to derive the formula for the arclength of the graph of a function <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> (say, from <img src='http://s0.wp.com/latex.php?latex=x+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 0' title='x = 0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x+%3D+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 1' title='x = 1' class='latex' />).  Because &#8220;arclength&#8221; isn&#8217;t formally defined, the strategy I&#8217;ll take is to make some reasonable assumptions that any notion of arclength should satisfy and work with them.</p>
<p>For this problem, and other problems which use geometric reasoning, it&#8217;s important to note that the Kock-Lawvere axiom can be stated in the following form:</p>
<p><em>Proposition </em>[Microstraightness] If <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+R%5Cto+R%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon R&#92;to R^n' title='f&#92;colon R&#92;to R^n' class='latex' /> is any curve, <img src='http://s0.wp.com/latex.php?latex=x%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x&#92;in R' title='x&#92;in R' class='latex' />, and<br />
<img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' />, then the portion of the curve from <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=f%28x%2Bd%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x+d)' title='f(x+d)' class='latex' /> is straight.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Csquare&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;square' title='&#92;square' class='latex' /></p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=f%5Cin+R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;in R^R' title='f&#92;in R^R' class='latex' /> be any function, and let <img src='http://s0.wp.com/latex.php?latex=s%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x)' title='s(x)' class='latex' /> be the arclength of the graph of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> from 0 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' />. (That is, <img src='http://s0.wp.com/latex.php?latex=s&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s' title='s' class='latex' /> is the function which we would like to determine.)</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=x_0+%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0 &#92;in R' title='x_0 &#92;in R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' /> be arbitrary and consider <img src='http://s0.wp.com/latex.php?latex=s%28x_0+%2B+d%29+-+s%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x_0 + d) - s(x_0)' title='s(x_0 + d) - s(x_0)' class='latex' />. It should be the length of the segment of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=x_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0' title='x_0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x_0+%2B+d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0 + d' title='x_0 + d' class='latex' />, as in the following figure.</p>
<p><a href="http://xorshammer.files.wordpress.com/2008/08/sia_1.png"><img class="aligncenter size-medium wp-image-5" src="http://xorshammer.files.wordpress.com/2008/08/sia_1.png?w=253&#038;h=300" alt="" width="253" height="300" /></a></p>
<p>Because of microstraightness, we know that the part of the graph of <img src='http://s0.wp.com/latex.php?latex=y%3Df%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=f(x)' title='y=f(x)' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> is a straight line.  Furthermore, it is the hypotenuse of a right triangle with legs <img src='http://s0.wp.com/latex.php?latex=PR&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PR' title='PR' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=RQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='RQ' title='RQ' class='latex' />.  The length of <img src='http://s0.wp.com/latex.php?latex=PR&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PR' title='PR' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' />.</p>
<p>To determine the length of <img src='http://s0.wp.com/latex.php?latex=RQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='RQ' title='RQ' class='latex' />: Note that the height of <img src='http://s0.wp.com/latex.php?latex=P&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P' title='P' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' />, so the height of <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' />. On the other hand, the height of <img src='http://s0.wp.com/latex.php?latex=Q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q' title='Q' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=f%28x+%2B+d%29+%3D+f%28x%29+%2B+f%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x + d) = f(x) + f&#039;(x)d' title='f(x + d) = f(x) + f&#039;(x)d' class='latex' />, so the length of <img src='http://s0.wp.com/latex.php?latex=RQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='RQ' title='RQ' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=f%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(x)d' title='f&#039;(x)d' class='latex' />.</p>
<p>The hypotenuse of a right triangle with legs of length 1 and <img src='http://s0.wp.com/latex.php?latex=f%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(x)' title='f&#039;(x)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sqrt{1 + f&#039;(x)^2}' title='&#92;sqrt{1 + f&#039;(x)^2}' class='latex' />.  By scaling down, we see that the length of <img src='http://s0.wp.com/latex.php?latex=PQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PQ' title='PQ' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=d%5Csqrt%7B1%2Bf%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;sqrt{1+f&#039;(x)^2}' title='d&#92;sqrt{1+f&#039;(x)^2}' class='latex' />.</p>
<p style="text-align:left;">So, we know that <img src='http://s0.wp.com/latex.php?latex=s%28x+%2B+d%29+-+s%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x + d) - s(x)' title='s(x + d) - s(x)' class='latex' /> should be <img src='http://s0.wp.com/latex.php?latex=d%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;sqrt{1 + f&#039;(x)^2}' title='d&#92;sqrt{1 + f&#039;(x)^2}' class='latex' />.  On the other hand, <img src='http://s0.wp.com/latex.php?latex=s%28x+%2B+d%29+-+s%28x%29+%3D+ds%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x + d) - s(x) = ds&#039;(x)' title='s(x + d) - s(x) = ds&#039;(x)' class='latex' />.  By microcancellation, we have that <img src='http://s0.wp.com/latex.php?latex=s%27%28x%29+%3D+%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#039;(x) = &#92;sqrt{1 + f&#039;(x)^2}' title='s&#039;(x) = &#92;sqrt{1 + f&#039;(x)^2}' class='latex' />.  Since <img src='http://s0.wp.com/latex.php?latex=s%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(0) = 0' title='s(0) = 0' class='latex' />, we have</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=s%28x%29+%3D+%5Cint_0%5Ex+%5Csqrt%7B1+%2B+f%27%28t%29%5E2%7D%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x) = &#92;int_0^x &#92;sqrt{1 + f&#039;(t)^2}&#92;,dt' title='s(x) = &#92;int_0^x &#92;sqrt{1 + f&#039;(t)^2}&#92;,dt' class='latex' /></p>
<p>Several other formulas can be derived using precisely the same technique.  For example, suppose we want to know the surface area of revolution of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' />.  Furthermore, suppose we know that the surface area of a frustum of a cone with radii <img src='http://s0.wp.com/latex.php?latex=r_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r_1' title='r_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=r_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r_2' title='r_2' class='latex' /> and slant height <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> as in the figure below is <img src='http://s0.wp.com/latex.php?latex=%5Cpi%28r_1+%2B+r_2%29h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;pi(r_1 + r_2)h' title='&#92;pi(r_1 + r_2)h' class='latex' />. (See below to eliminate this assumption.)</p>
<p><a href="http://xorshammer.files.wordpress.com/2008/08/sia_2.png"><img class="aligncenter size-medium wp-image-6" src="http://xorshammer.files.wordpress.com/2008/08/sia_2.png?w=160&#038;h=71" alt="" width="160" height="71" /></a></p>
<p style="text-align:left;">Then, let <img src='http://s0.wp.com/latex.php?latex=A%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x_0)' title='A(x_0)' class='latex' /> be the surface area of revolution of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=x+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 0' title='x = 0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x+%3D+x_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = x_0' title='x = x_0' class='latex' /> about the <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' />-axis.  As before, consider <img src='http://s0.wp.com/latex.php?latex=A%28x_0+%2B+d%29+-+A%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x_0 + d) - A(x_0)' title='A(x_0 + d) - A(x_0)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> is arbitrary.  This should be the surface area of the frustum obtained by rotating <img src='http://s0.wp.com/latex.php?latex=PQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PQ' title='PQ' class='latex' /> about the <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' />-axis.  The slant height is the length of <img src='http://s0.wp.com/latex.php?latex=PQ&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PQ' title='PQ' class='latex' />, which we determined earlier was <img src='http://s0.wp.com/latex.php?latex=%28%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;sqrt{1 + f&#039;(x)^2})d' title='(&#92;sqrt{1 + f&#039;(x)^2})d' class='latex' />.  The two radii are <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=f%28x+%2B+d%29+%3D+f%28x%29+%2B+f%27%28x%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x + d) = f(x) + f&#039;(x)d' title='f(x + d) = f(x) + f&#039;(x)d' class='latex' />.  Therefore,</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=A%28x_0+%2B+d%29+-+A%28x_0%29+%3D+%5Cpi%28f%28x%29+%2B+f%28x%29+%2B+f%27%28x%29d%29%28%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x_0 + d) - A(x_0) = &#92;pi(f(x) + f(x) + f&#039;(x)d)(&#92;sqrt{1 + f&#039;(x)^2})d' title='A(x_0 + d) - A(x_0) = &#92;pi(f(x) + f(x) + f&#039;(x)d)(&#92;sqrt{1 + f&#039;(x)^2})d' class='latex' /></p>
<p style="text-align:left;">which, multiplying out, becomes <img src='http://s0.wp.com/latex.php?latex=d2%5Cpi+f%28x%29%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d2&#92;pi f(x)&#92;sqrt{1 + f&#039;(x)^2}' title='d2&#92;pi f(x)&#92;sqrt{1 + f&#039;(x)^2}' class='latex' />.  As before, <img src='http://s0.wp.com/latex.php?latex=A%28x_0+%2B+d%29+-+A%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x_0 + d) - A(x_0)' title='A(x_0 + d) - A(x_0)' class='latex' /> is also equal to <img src='http://s0.wp.com/latex.php?latex=A%27%28x_0%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A&#039;(x_0)d' title='A&#039;(x_0)d' class='latex' />, so</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=A%28x%29+%3D+2%5Cpi%5Cint_0%5Ex+f%28t%29+%5Csqrt%7B1+%2B+f%27%28t%29%5E2%7D%5C%2Cdt&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x) = 2&#92;pi&#92;int_0^x f(t) &#92;sqrt{1 + f&#039;(t)^2}&#92;,dt' title='A(x) = 2&#92;pi&#92;int_0^x f(t) &#92;sqrt{1 + f&#039;(t)^2}&#92;,dt' class='latex' /></p>
<p>In a precisely analogous way, one may derive the formula for the volume of the solid of revolution of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> about the <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' />-axis, the formula for the arclength of a curve <img src='http://s0.wp.com/latex.php?latex=r+%3D+f%28%5Ctheta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r = f(&#92;theta)' title='r = f(&#92;theta)' class='latex' /> given in polar form, and show that the (signed) area under the curve <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=x+%3D+a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = a' title='x = a' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x+%3D+b&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = b' title='x = b' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cint_a%5Eb+f%28x%29%5C%2Cdx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_a^b f(x)&#92;,dx' title='&#92;int_a^b f(x)&#92;,dx' class='latex' />.</p>
<p>Above we assumed that we knew the surface area of a frustum of a cone. Finally, as an exercise, eliminate this assumption by deriving the formula for the surface area of a cone (from which the formula for the surface area  of a frustum follows by an argument with similar triangles) as follows:</p>
<p>Fix a cone <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' /> of slant height <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> and radius <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' />.  The cone <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' /> can be considered to be the graph of a function <img src='http://s0.wp.com/latex.php?latex=y+%3D+mx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = mx' title='y = mx' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=x+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 0' title='x = 0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x+%3D+r%2Fm&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = r/m' title='x = r/m' class='latex' /> revolved a full <img src='http://s0.wp.com/latex.php?latex=2%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2&#92;pi' title='2&#92;pi' class='latex' /> radians around the <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' />-axis.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=A%28%5Ctheta%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(&#92;theta)' title='A(&#92;theta)' class='latex' /> be the area of the surface formed by revolving the graph of <img src='http://s0.wp.com/latex.php?latex=y+%3D+mx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = mx' title='y = mx' class='latex' /> from <img src='http://s0.wp.com/latex.php?latex=x+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = 0' title='x = 0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x+%3D+r%2Fm&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x = r/m' title='x = r/m' class='latex' /> only <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> radians around the <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' />-axis.</p>
<p>Using a method similar to that above, determine that <img src='http://s0.wp.com/latex.php?latex=A%28x%29+%3D+%281%2F2%29xrh&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(x) = (1/2)xrh' title='A(x) = (1/2)xrh' class='latex' />.  This gives the surface area as <img src='http://s0.wp.com/latex.php?latex=A%282%5Cpi%29+%3D+%5Cpi+rh&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A(2&#92;pi) = &#92;pi rh' title='A(2&#92;pi) = &#92;pi rh' class='latex' />.</p>
<p><strong>The Equation of a Catenary</strong></p>
<p>In the above section, essentially the same method was used again and again to solve different problems.  As an example of a different way to apply SIA in single-variable calculus, in this section I&#8217;ll outline how the equation of a catenary may be derived in it. The full derivation is in <a href="http://www.amazon.com/Primer-Infinitesimal-Analysis-John-Bell/dp/0521887186/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1218423036&amp;sr=1-1">[Bell2]</a>.)</p>
<p>To do this, we&#8217;ll need the existence of functions <img src='http://s0.wp.com/latex.php?latex=%5Csin&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin' title='&#92;sin' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccos&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cos' title='&#92;cos' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Cexp&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exp' title='&#92;exp' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=R%5ER&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R^R' title='R^R' class='latex' /> satisfying <img src='http://s0.wp.com/latex.php?latex=%5Csin%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin(0) = 0' title='&#92;sin(0) = 0' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccos%280%29+%3D+%5Cexp%280%29+%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cos(0) = &#92;exp(0) =1' title='&#92;cos(0) = &#92;exp(0) =1' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Csin%27+%3D+%5Ccos&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin&#039; = &#92;cos' title='&#92;sin&#039; = &#92;cos' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%5Ccos%27+%3D+-%5Csin&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;cos&#039; = -&#92;sin' title='&#92;cos&#039; = -&#92;sin' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cexp%27+%3D+%5Cexp&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;exp&#039; = &#92;exp' title='&#92;exp&#039; = &#92;exp' class='latex' />.  We get this from the following set of axioms.</p>
<p><em>Axiom (Scheme) 6.</em> For every <img src='http://s0.wp.com/latex.php?latex=C%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C^&#92;infty' title='C^&#92;infty' class='latex' /> function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BR%7D%5En+%5Cto+%5Cmathbb%7BR%7D%5Em&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{R}^n &#92;to &#92;mathbb{R}^m' title='f&#92;colon &#92;mathbb{R}^n &#92;to &#92;mathbb{R}^m' class='latex' /> (in the real world), we assume we have a function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+R%5En+%5Cto+R%5Em&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon R^n &#92;to R^m' title='f&#92;colon R^n &#92;to R^m' class='latex' /> (in SIA).  Furthermore, for any true identity constructed out of such functions, composition, and partial differentiation operators, we may take the corresponding statement in SIA to be an axiom.  (&#8220;True&#8221; means true for the corresponding functions between cartesian products of <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> in the real world.)</p>
<p>(We can actually go further.  For every <img src='http://s0.wp.com/latex.php?latex=C%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C^&#92;infty' title='C^&#92;infty' class='latex' /> manifold <img src='http://s0.wp.com/latex.php?latex=%5Cmathbb%7BM%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbb{M}' title='&#92;mathbb{M}' class='latex' /> in the real world, we may assume that there is a set <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' /> in SIA, and for every <img src='http://s0.wp.com/latex.php?latex=C%5E%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C^&#92;infty' title='C^&#92;infty' class='latex' /> function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+%5Cmathbb%7BM%7D%5Cto%5Cmathbb%7BN%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon &#92;mathbb{M}&#92;to&#92;mathbb{N}' title='f&#92;colon &#92;mathbb{M}&#92;to&#92;mathbb{N}' class='latex' /> we may assume that there is a function <img src='http://s0.wp.com/latex.php?latex=f%5Ccolon+M%5Cto+N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#92;colon M&#92;to N' title='f&#92;colon M&#92;to N' class='latex' /> in SIA, and we may assume that these functions satisfy all identities true of them in the real world.  But I will not use these extra axioms in this article.)</p>
<p>Suppose that we have a flexible rope of constant weight <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' /> per unit length suspended from two points <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=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> (see the figure below).  We would like to find the function <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' /> such that the graph of <img src='http://s0.wp.com/latex.php?latex=y+%3D+f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y = f(x)' title='y = f(x)' class='latex' /> is the curve that the rope makes. (We will actually disregard the points <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=B&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='B' title='B' class='latex' /> and consider <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' /> to be defined on all of <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R' title='R' class='latex' />.)</p>
<p><a href="http://xorshammer.files.wordpress.com/2008/08/sia_3.png"><img class="aligncenter size-medium wp-image-7" src="http://xorshammer.files.wordpress.com/2008/08/sia_3.png?w=257&#038;h=190" alt="" width="257" height="190" /></a></p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=T%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(x)' title='T(x)' class='latex' /> be the tension in the rope at the point <img src='http://s0.wp.com/latex.php?latex=%28x%2Cf%28x%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(x,f(x))' title='(x,f(x))' class='latex' />.  (Recall that the tension at a point in a rope in equilibrium is defined as follows: That point in the rope is being pulled by both sides of the rope with some force.  Since the rope is in equilibrium, the magnitude of the two forces must be equal. The tension is that common magnitude.)</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> be the angle that the tangent to <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> makes with the 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' />-axis. (That is, <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x)' title='&#92;phi(x)' class='latex' /> is defined so that <img src='http://s0.wp.com/latex.php?latex=%5Csin%5Cphi%28x%29+%3D+f%27%28x%29%5Ccos%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin&#92;phi(x) = f&#039;(x)&#92;cos&#92;phi(x)' title='&#92;sin&#92;phi(x) = f&#039;(x)&#92;cos&#92;phi(x)' class='latex' />). We suppose that we have chosen the origin so that <img src='http://s0.wp.com/latex.php?latex=%5Cphi%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(0) = 0' title='&#92;phi(0) = 0' class='latex' />.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=s%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s(x)' title='s(x)' class='latex' /> be the arclength of <img src='http://s0.wp.com/latex.php?latex=f%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x)' title='f(x)' class='latex' /> from 0 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' />.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=x_0%5Cin+R&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x_0&#92;in R' title='x_0&#92;in R' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=d%5Cin+D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d&#92;in D' title='d&#92;in D' class='latex' /> be arbitrary.  Consider the segment of the rope from <img src='http://s0.wp.com/latex.php?latex=P+%3D+%28x_0%2Cf%28x_0%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P = (x_0,f(x_0))' title='P = (x_0,f(x_0))' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=Q+%3D+%28x_0+%2B+d%2Cf%28x_0+%2B+d%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Q = (x_0 + d,f(x_0 + d))' title='Q = (x_0 + d,f(x_0 + d))' class='latex' />.  This segment is in equilibrium under three forces:</p>
<p>1. A force of magnitude <img src='http://s0.wp.com/latex.php?latex=T%28x_0%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(x_0)' title='T(x_0)' class='latex' /> with direction <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x_0%29+%2B+%5Cpi&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x_0) + &#92;pi' title='&#92;phi(x_0) + &#92;pi' class='latex' />.</p>
<p>2. A force of magnitude <img src='http://s0.wp.com/latex.php?latex=T%28x_0+%2B+d%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(x_0 + d)' title='T(x_0 + d)' class='latex' /> with direction <img src='http://s0.wp.com/latex.php?latex=%5Cphi%28x_0+%2B+d%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(x_0 + d)' title='&#92;phi(x_0 + d)' class='latex' />.</p>
<p>3. A force of magnitude <img src='http://s0.wp.com/latex.php?latex=w%28s%28x_0+%2B+d%29+-+s%28x_0%29%29+%3D+ws%27%28x_0%29d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w(s(x_0 + d) - s(x_0)) = ws&#039;(x_0)d' title='w(s(x_0 + d) - s(x_0)) = ws&#039;(x_0)d' class='latex' /> with direction <img src='http://s0.wp.com/latex.php?latex=-%5Cpi%2F2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-&#92;pi/2' title='-&#92;pi/2' class='latex' />.<br />
By resolving these forces horizontally and using microcancellation, one can show that the horizontal component of the tension (that is, <img src='http://s0.wp.com/latex.php?latex=T%28x%29%5Ccos%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(x)&#92;cos&#92;phi(x)' title='T(x)&#92;cos&#92;phi(x)' class='latex' />) is constant.  Call the constant tension <img src='http://s0.wp.com/latex.php?latex=T_0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T_0' title='T_0' class='latex' />.</p>
<p>By resolving these forces vertically and using microcancellation and the fact that <img src='http://s0.wp.com/latex.php?latex=%5Cphi%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;phi(0) = 0' title='&#92;phi(0) = 0' class='latex' />,  one can show that the vertical component of the tension (that is <img src='http://s0.wp.com/latex.php?latex=T%28x%29%5Csin%5Cphi%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T(x)&#92;sin&#92;phi(x)' title='T(x)&#92;sin&#92;phi(x)' class='latex' />) is <img src='http://s0.wp.com/latex.php?latex=ws%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='ws(x)' title='ws(x)' class='latex' />.</p>
<p>Finally, by combining the results of the previous two paragraphs and using the fact that <img src='http://s0.wp.com/latex.php?latex=%5Csin%5Cphi%28x%29+%3D+%5Ccos%5Cphi%28x%29+f%27%28x%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sin&#92;phi(x) = &#92;cos&#92;phi(x) f&#039;(x)' title='&#92;sin&#92;phi(x) = &#92;cos&#92;phi(x) f&#039;(x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=s%27%28x%29+%3D+%5Csqrt%7B1+%2B+f%27%28x%29%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s&#039;(x) = &#92;sqrt{1 + f&#039;(x)^2}' title='s&#039;(x) = &#92;sqrt{1 + f&#039;(x)^2}' class='latex' />, one can show that <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' /> satisfies the differential equation <img src='http://s0.wp.com/latex.php?latex=1+%2B+%28u%27%29%5E2+%3D+a%5E2%28u%27%27%29%5E2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1 + (u&#039;)^2 = a^2(u&#039;&#039;)^2' title='1 + (u&#039;)^2 = a^2(u&#039;&#039;)^2' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=a+%3D+T_0%2Fw&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a = T_0/w' title='a = T_0/w' class='latex' />.</p>
<p>Solving differential equations symbolically is the same in SIA as it is classically, since no infinitesimals or limits are involved.  In this case, the answer turns out to be</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f%28x%29+%3D+a%5Ccosh%5Cleft%28%5Cfrac%7Bx%7D%7Ba%7D%5Cright%29+%3D+%5Cfrac%7Ba%28e%5E%7Bx%2Fa%7D+%2B+e%5E%7B-x%2Fa%7D%29%7D%7B2%7D%2C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(x) = a&#92;cosh&#92;left(&#92;frac{x}{a}&#92;right) = &#92;frac{a(e^{x/a} + e^{-x/a})}{2},' title='f(x) = a&#92;cosh&#92;left(&#92;frac{x}{a}&#92;right) = &#92;frac{a(e^{x/a} + e^{-x/a})}{2},' class='latex' /></p>
<p>if we add the initial condition <img src='http://s0.wp.com/latex.php?latex=f%280%29+%3D+a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(0) = a' title='f(0) = a' class='latex' /> to our previously assumed initial condition <img src='http://s0.wp.com/latex.php?latex=f%27%280%29+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f&#039;(0) = 0' title='f&#039;(0) = 0' class='latex' />.</p>
<p>I&#8217;ll include a post on multivariable calculus later.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xorshammer.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xorshammer.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xorshammer.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xorshammer.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xorshammer.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xorshammer.com&amp;blog=4469928&amp;post=3&amp;subd=xorshammer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xorshammer.com/2008/08/11/smooth-infinitesimal-analysis/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca5529817f93ca2fff7634d05d46a358?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mkoconnor</media:title>
		</media:content>

		<media:content url="http://xorshammer.files.wordpress.com/2008/08/sia_1.png?w=253" medium="image" />

		<media:content url="http://xorshammer.files.wordpress.com/2008/08/sia_2.png?w=160" medium="image" />

		<media:content url="http://xorshammer.files.wordpress.com/2008/08/sia_3.png?w=257" medium="image" />
	</item>
	</channel>
</rss>
