<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-11295132.post1142052214286657429..comments</id><updated>2009-12-18T17:45:24.966-08:00</updated><category term='category theory'/><category term='lawvere theories'/><category term='astronomy'/><category term='optimisation'/><category term='self-reference'/><category term='comonads'/><category term='haskell'/><category term='programming'/><category term='monad'/><category term='mathematics'/><category term='physics'/><category term='probability'/><category term='types'/><category term='quantum'/><title type='text'>Comments on A Neighborhood of Infinity: Modular arithmetic with regular expressions</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.sigfpe.com/feeds/1142052214286657429/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html'/><author><name>sigfpe</name><uri>http://www.blogger.com/profile/08096190433222340957</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://homepage.mac.com/sigfpe/.Pictures/Photo%20Album%20Pictures/2002-12-07%2014.53.40%20-0800/ImageDSC01397_1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11295132.post-4161088161536273765</id><published>2007-02-19T17:15:00.000-08:00</published><updated>2007-02-19T17:15:00.000-08:00</updated><title type='text'>This is a fun problem. Thanks!&lt;br&gt;&lt;br&gt;Here's my re...</title><content type='html'>This is a fun problem. Thanks!&lt;BR/&gt;&lt;BR/&gt;Here's my regexp. I wrote an automaton first and then sort of hand-crafted the regexp from it rather than went by Kleene's theorem (to make it less ugly and more economical):&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;^(0|1((0(01|111)*(00|110))*(1|0(01|111)*10))&lt;BR/&gt;(01*0(1(10|000)*(11|0(000)*01))*&lt;BR/&gt;(0|1(10|000)*0(000)*1))*1)*$</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4161088161536273765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4161088161536273765'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171934100000#c4161088161536273765' title=''/><author><name>Anatoly</name><uri>http://www.lovestwell.org</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1969784167'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-8704071849244123775</id><published>2007-02-19T11:00:00.000-08:00</published><updated>2007-02-19T11:00:00.000-08:00</updated><title type='text'>Anonymous,&lt;br&gt;&lt;br&gt;Yup, it was reversed. I've alrea...</title><content type='html'>Anonymous,&lt;BR/&gt;&lt;BR/&gt;Yup, it was reversed. I've already fixed that once, I must have accidentally undone the changes in my text edit. Thanks for alerting me! Anyway, it's now fixed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/8704071849244123775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/8704071849244123775'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171911600000#c8704071849244123775' title=''/><author><name>sigfpe</name><uri>http://www.blogger.com/profile/08096190433222340957</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-961546855'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-4638380495137819101</id><published>2007-02-19T10:52:00.000-08:00</published><updated>2007-02-19T10:52:00.000-08:00</updated><title type='text'>Anonymous,&lt;br&gt;&lt;br&gt;I don't have time to check right...</title><content type='html'>Anonymous,&lt;BR/&gt;&lt;BR/&gt;I don't have time to check right now yet but that looks like a regexp for spotting multiples of two written backwards. I wrote two versions of this code and I think I may have posted the backwards one. Oops. that's embarassing! I'll check and fix later :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4638380495137819101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4638380495137819101'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171911120000#c4638380495137819101' title=''/><author><name>sigfpe</name><uri>http://www.blogger.com/profile/08096190433222340957</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-961546855'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-7876118751856248059</id><published>2007-02-19T10:07:00.000-08:00</published><updated>2007-02-19T10:07:00.000-08:00</updated><title type='text'>This doesn't work for 2?&lt;br&gt;&lt;br&gt;% runhaskell mod.l...</title><content type='html'>This doesn't work for 2?&lt;BR/&gt;&lt;BR/&gt;% runhaskell mod.lhs&lt;BR/&gt;^\(0\|01*1\)*$&lt;BR/&gt;% grep '^\(0\|01*1\)*$'&lt;BR/&gt;0&lt;BR/&gt;0&lt;BR/&gt;10&lt;BR/&gt;^D&lt;BR/&gt;%</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/7876118751856248059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/7876118751856248059'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171908420000#c7876118751856248059' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1743126481'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-4229302191613206635</id><published>2007-02-18T18:10:00.000-08:00</published><updated>2007-02-18T18:10:00.000-08:00</updated><title type='text'>What you say is true. But that doesn't detract fro...</title><content type='html'>What you say is true. But that doesn't detract from having solved the problem I set myself. Now Perl regular expressions might be different, I think you may be able to directly embed arithmetical expressions in those.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4229302191613206635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/4229302191613206635'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171851000000#c4229302191613206635' title=''/><author><name>sigfpe</name><uri>http://www.blogger.com/profile/08096190433222340957</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-961546855'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-5226211754039010187</id><published>2007-02-18T16:36:00.000-08:00</published><updated>2007-02-18T16:36:00.000-08:00</updated><title type='text'>(I think my previous comment disappeared during su...</title><content type='html'>(I think my previous comment disappeared during submission)&lt;BR/&gt;&lt;BR/&gt;nitpick&lt;BR/&gt;doesn't grep accept a superset of regular languages, because of the ability to use the \1 operator ? &lt;BR/&gt;&lt;BR/&gt;/nitpick</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/5226211754039010187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/5226211754039010187'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171845360000#c5226211754039010187' title=''/><author><name>Suresh</name><uri>http://www.blogger.com/profile/15898357513326041822</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1462764215'/></entry><entry><id>tag:blogger.com,1999:blog-11295132.post-8271770336100901814</id><published>2007-02-18T16:34:00.000-08:00</published><updated>2007-02-18T16:34:00.000-08:00</updated><title type='text'>If I may nitpick (and this is not to detract from ...</title><content type='html'>If I may nitpick (and this is not to detract from your wonderful articles), what grep accepts is a superset of regular languages, since it can match things like (.*)(\1) which are strings of the form ww&lt;BR/&gt;&lt;BR/&gt;or am I mistaken about grep.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/8271770336100901814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11295132/1142052214286657429/comments/default/8271770336100901814'/><link rel='alternate' type='text/html' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html?showComment=1171845240000#c8271770336100901814' title=''/><author><name>Suresh</name><uri>http://www.blogger.com/profile/15898357513326041822</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sigfpe.com/2007/02/modular-arithmetic-with-regular.html' ref='tag:blogger.com,1999:blog-11295132.post-1142052214286657429' source='http://www.blogger.com/feeds/11295132/posts/default/1142052214286657429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1462764215'/></entry></feed>
