<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Insertion Sort</title>
	<atom:link href="http://www.e-pig.org/epilogue/?feed=rss2&#038;p=690" rel="self" type="application/rss+xml" />
	<link>http://www.e-pig.org/epilogue/?p=690</link>
	<description>for Epigram</description>
	<lastBuildDate>Sun,  6 Nov 2011 09:25:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Conor</title>
		<link>http://www.e-pig.org/epilogue/?p=690&#038;cpage=1#comment-78437</link>
		<dc:creator>Conor</dc:creator>
		<pubDate>Mon, 16 May 2011 14:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-pig.org/epilogue/?p=690#comment-78437</guid>
		<description>Well spotted. I&#039;ve fixed the informal notation to reflect the actual code.

Meanwhile, I chose to add &#039;bot and &#039;top, and to bound the lists at both ends, because these ordered lists are but one instance of a general scheme for constructing ordered data structures. It&#039;s certainly possible to define ordered cons-lists with only a lower bound, but binary search trees require both bounds.

The grammar F ::= 1 &#124; F+F &#124; F[]F &#124; rec determines a class of functors whose fixpoints are readily orderable, given some notion of element X with order &lt;=

[[_]] : F -&gt; (X -&gt; X -&gt; Set) -&gt; (X -&gt; X -&gt; Set)
[[ 1 ]] R l u = :- l &lt;= u
[[ F + F&#039; ]] R l u = [[ F ]] R l u + [[ F&#039; ]] R l u
[[ F [] F&#039; ]] R l u = (x : X) * [[ F ]] R l x * [[ F&#039; ]] R x u
[[ Rec ]] R l u = R l u

The idea is that everywhere there&#039;s a pair, there&#039;s a pivot. Ordered lists are given by the code 1 + (1 [] Rec). Binary search trees are given by the code 1 + (Rec [] Rec).</description>
		<content:encoded><![CDATA[<p>Well spotted. I&#8217;ve fixed the informal notation to reflect the actual code.</p>
<p>Meanwhile, I chose to add &#8216;bot and &#8216;top, and to bound the lists at both ends, because these ordered lists are but one instance of a general scheme for constructing ordered data structures. It&#8217;s certainly possible to define ordered cons-lists with only a lower bound, but binary search trees require both bounds.</p>
<p>The grammar F ::= 1 | F+F | F[]F | rec determines a class of functors whose fixpoints are readily orderable, given some notion of element X with order < =</p>
<p>[[_]] : F -> (X -> X -> Set) -> (X -> X -> Set)<br />
[[ 1 ]] R l u = :- l <= u<br />
[[ F + F' ]] R l u = [[ F ]] R l u + [[ F' ]] R l u<br />
[[ F [] F&#8217; ]] R l u = (x : X) * [[ F ]] R l x * [[ F' ]] R x u<br />
[[ Rec ]] R l u = R l u</p>
<p>The idea is that everywhere there&#8217;s a pair, there&#8217;s a pivot. Ordered lists are given by the code 1 + (1 [] Rec). Binary search trees are given by the code 1 + (Rec [] Rec).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://www.e-pig.org/epilogue/?p=690&#038;cpage=1#comment-76570</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Thu, 24 Feb 2011 19:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-pig.org/epilogue/?p=690#comment-76570</guid>
		<description>I think there&#039;s a typo in the &quot;made up informal notation&quot;: where it says x ≤ u, it should say l ≤ x.

Also, wouldn&#039;t it be enough to just extend the naturals with &#039;bot and just always let the upper bound in OList be infinity?</description>
		<content:encoded><![CDATA[<p>I think there&#8217;s a typo in the &#8220;made up informal notation&#8221;: where it says x ≤ u, it should say l ≤ x.</p>
<p>Also, wouldn&#8217;t it be enough to just extend the naturals with &#8216;bot and just always let the upper bound in OList be infinity?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PROOF WANTER</title>
		<link>http://www.e-pig.org/epilogue/?p=690&#038;cpage=1#comment-73976</link>
		<dc:creator>PROOF WANTER</dc:creator>
		<pubDate>Wed, 01 Dec 2010 01:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-pig.org/epilogue/?p=690#comment-73976</guid>
		<description>Please Sir, can I have some more epigram code?</description>
		<content:encoded><![CDATA[<p>Please Sir, can I have some more epigram code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
