tag:blogger.com,1999:blog-11295132.post4310648082322937679..comments2014-04-16T10:57:46.206-07:00Comments on A Neighborhood of Infinity: How can it possibly be that we can exhaustively search an infinite space in a finite time?Dan Piponihttps://plus.google.com/107913314994758123748noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-11295132.post-56196966588232037582007-12-17T05:57:00.000-08:002007-12-17T05:57:00.000-08:00Anonymous, correct me if I'm wrong, but in a const...Anonymous, correct me if I'm wrong, but in a constructive setting shouldn't the argument of "search" be (the code of) a recursive function together with a constructive proof of its totality? Then, I guess, we can prove the termination of "search" in a constructive way, too.tertiumhttp://www.blogger.com/profile/07382843067179099383noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-18283051486611799492007-12-17T02:31:00.000-08:002007-12-17T02:31:00.000-08:00Re: pure implementation of "search"Oh, I must tie ...Re: pure implementation of "search"<BR/><BR/>Oh, I must tie <I>that</I> knot on my too quick tongue. Thank you, Dan!tertiumhttp://www.blogger.com/profile/07382843067179099383noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-56645766381370515802007-12-16T08:30:00.000-08:002007-12-16T08:30:00.000-08:00Anonymous. Can you suggests some books on the flav...Anonymous. Can you suggests some books on the flavour of mathematics you're espousing? It's very interesting.sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-34276922427976509712007-12-14T16:11:00.000-08:002007-12-14T16:11:00.000-08:00Unfortunately, the pathological "A(N)" is not a va...Unfortunately, the pathological "A(N)" is not a vacuous statement: it states that the "search" program will terminate. It is more vicious than the Goodstein's theorem because it remains pathological in all coherent classical systems (the pathology arises because the Kolmogorov complexity of the predicates is not bounded). Moreover, the axiom system in which "not(A(0))", "not(A(1))", "not(A(2))", "not(A(3))"... and "there is N such that A(N)" are true is much more than a formal curiosity: it's a <I>model</I> of your axiomatic. That means it could be the true essence of the real world. Nobody can choose what is the real world and how it works. This is a valid instance of the real world: you coherently prove that "search" terminates in all cases and "search p" coherently loops with infinitely many p. It's even worse: it's validity is a consequence of your axiomatic, so you necessarily use it to describe the real world. This incongruity exists in all (big enough) classical systems, in all axiom systems you might believe in: there is no way to circumvent it... except being constructive.<BR/><BR/>There is no cult in constructions. Constructions are facts. Classical statements are beliefs. You can believe in a model, but it's not logic, the "good" model is beyond logic (it's not based on a recursive axiomatic), it's just a sweat dream (and we can prove that).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-81838517177762297602007-12-13T15:13:00.000-08:002007-12-13T15:13:00.000-08:00Anonymous,Reminds me of Goodstein's theorem.I thin...Anonymous,<BR/><BR/>Reminds me of Goodstein's theorem.<BR/><BR/>I think we're members of different mathematical cults.<BR/><BR/>In my cult, an axiom system in which "not(A(0))", "not(A(1))", "not(A(2))", "not(A(3))"... for all integers, and we can also prove "there is N such that A(N)" is an interesting curiosity, but not an axiom system I'd use to describe the real world.<BR/><BR/>:-)sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-39222287669111768382007-12-13T06:03:00.000-08:002007-12-13T06:03:00.000-08:00> For any input, this program is guaranteed to ter...> For any input, this program is guaranteed to terminate. For any input, there is a time t after which you will get a 'yes' or a 'no'.<BR/><BR/>Your proof says that "this program is guaranteed to terminate". It is provable, but is it true in the real world? Can you compute this t? In some metasystems of classical logic there is some decidable properties A(N) on integers such that: whe can prove "not(A(0))", "not(A(1))", "not(A(2))", "not(A(3))"... for all integers, <I>and</I> we can also prove "there is N such that A(N)", without incoherence. Despite the apparent contradiction, it's all coherent. Intuitively, we might chech the property A(N) for all integers to reach a contradiction, but no one can check an infinity of properties, even an eternal beeing, so we cannot reach a contradiction. Such a property A(N) is similar to the property "the program (search p) ends after N steps" with a well chosen p.<BR/><BR/>This kind of example is similar to the <I>coherent</I> system S, defined by Gödel, which says that "there is an incoherent subsystem of S". So the "search" program is not garanteed to terminate, but we can <I>believe</I> in its termination without fear of contradiction, even if it's false in the real world. We don't have such paradoxes with constructive proofs because each proof generates a witness of reality: if we can prove that "there is a N such that A(N)", then we can prove "A(N)" for some N. This property does not hold in classical systems (because of the König's lemma in the case of "seach").Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-10032242624971902612007-12-12T15:40:00.000-08:002007-12-12T15:40:00.000-08:00> There is no difference between the "search" prog...> There is no difference between the "search" program and any looping program with an undecidable termination.<BR/><BR/>Not so. For any input, this program is guaranteed to terminate. For any input, there is a time t after which you will get a 'yes' or a 'no'. This is different from, say, doing a brute force search for a solution to Fermat's last equation. There is no time t at which such a loop would terminate and say "no solution". It can only answer "yes, here's a solution" or loop indefinitely. These are distinct classes of program.sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-24631650983348393092007-12-12T14:49:00.000-08:002007-12-12T14:49:00.000-08:00It seems that the complexity of your "search" prog...It seems that the complexity of your "search" program is not computable because the proof of its termination is (necessarily) not constructive. The proof tells you that the program will stop but it can't tell you <I>when</I> it will stop. So you believe that the program will terminate in all cases but in some cases you would never see the end of its execution (even if you were an eternal beeing): each day you could think that the program will stop tomorrow. There is no difference between the "search" program and any looping program with an undecidable termination.<BR/><BR/>However, if the predicates eated by "search" are primitive recursive for example, then the complexity of "search" can probably be bounded by an Ackermann-like function (the predicates given as examples <A LINK="http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/ ">here</A> are primitive recursive, although there is no stream in primitive recursion :o).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-11863011444717971982007-12-07T08:03:00.000-08:002007-12-07T08:03:00.000-08:00Anonymous,See here for a pure implementation: http...Anonymous,<BR/><BR/>See here for a pure implementation: http://conway.rutgers.edu/~ccshan/wiki/blog/posts/Exhaustive/sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-86653274257401909242007-12-07T06:10:00.000-08:002007-12-07T06:10:00.000-08:00It's interesting to note that one can't implement ...It's interesting to note that one can't implement "search" as a pure recursive function of the type "(Stream -> Bool) -> Bool". The problem is that its argument is a "black box", an opaque predicate. Although we know that the search tree (as described in the post) is finite, we don't know what it is and so we can't search it in finite time. <BR/><BR/>However, you can implement "search", if you allow side effects, e.g. using "unsafePerformIO". This is left as an exercise for the reader :) <BR/><BR/>I suspect that this "inevitability of impurity" is not accidental.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-60735157746302938172007-10-21T01:58:00.000-07:002007-10-21T01:58:00.000-07:00Fascinating stuff. And thanks for your explanatio...Fascinating stuff. And thanks for your explanation, I can't follow that paper.<BR/><BR/>I'm having a little trouble while exploring this problem more deeply. I "know" that there must not be a total function from infinite sequences of booleans onto the integers. I have devised this proof:<BR/><BR/>If there were, then we could construct a function from booleans into booleans answering the question "such and such Turing machine halts in n steps", and then we could use the algorithm you just presented to solve the halting problem.<BR/><BR/>But that doesn't give me any intuition for any deeper reasons. Could you explain a little more why there's no way to construct a total function from infinite sequences of booleans onto the integers?<BR/><BR/>Thanks,<BR/>Luke<BR/>http://luqui.org/blogAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-58870476677453023792007-10-09T06:46:00.000-07:002007-10-09T06:46:00.000-07:00The trees were drawn with Inkscape. To misquote Ch...The trees were drawn with Inkscape. To misquote Chruchill, Inkscape is the worst free drawing application, apart from all the rest.sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-29238916326592294742007-10-08T23:56:00.000-07:002007-10-08T23:56:00.000-07:00Thanks for the article, it was very informative. ...Thanks for the article, it was very informative. As an unrelated question, may I ask what program you used to produce those binary trees?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11295132.post-75328181110820151942007-10-06T12:13:00.001-07:002007-10-06T12:13:00.001-07:00dthurston,That's an epistemic "might".Ie. "might" ...dthurston,<BR/><BR/>That's an epistemic "might".<BR/><BR/>Ie. "might" = "I do not yet know that it is impossible that" rather than "there exists an example such that".sigfpehttp://www.blogger.com/profile/08096190433222340957noreply@blogger.comtag:blogger.com,1999:blog-11295132.post-89978850166515671012007-10-06T12:02:00.000-07:002007-10-06T12:02:00.000-07:00You wrote:But even though dp(s) is always finite, ...You wrote:<BR/><I>But even though dp(s) is always finite, it might be unbounded as s varies over the infinite set of streams.</I><BR/><BR/>Although you come to the right conclusion in the end, what you wrote above is not true: in fact you end up proving that for a given predicate there is a definite depth that you don't need to look beyond.dthurstonhttp://math.columbia.edu/~dptnoreply@blogger.com