Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'correspond': 0.09; 'iterate': 0.09; 'subject:set': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'missed': 0.12; 'iterating': 0.16; 'iteration,': 0.16; 'iterator': 0.16; 'so.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'feb': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'returned': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; '13,': 0.31; 'subject:numbers': 0.31; 'trivial': 0.31; 'url:wikipedia': 0.31; 'fri,': 0.33; 'subject:the': 0.34; 'could': 0.34; 'subject:with': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'ram': 0.36; 'url:org': 0.36; 'positive': 0.37; 'easily': 0.37; 'whatever': 0.38; 'how': 0.40; 'most': 0.60; 'digital': 0.61; 'matter': 0.61; 'show': 0.63; 'our': 0.64; 'computers': 0.72; '1:00': 0.84; 'continuum': 0.84; 'magical': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=jt9FcKOkjXgu9YVUOhI96tKh2tsJ8KctNFZVQPo+/os=; b=mT3cRVdJevuXpZAsDMX74ewwBvkznjqeeLTMtNqUVoVCcNMqSsgNAOrefbNBUYMTGM f+K4oPqrTejW13jsGfUq6z9MR8L9IYhxtRA/Nj6IxMZ1XbL7F0Y1bNXu9Zl1SaPzpl1U xzDrxOCJmhsEpYlXvaQysOOpG7ysLpQ14aP07kGJ/H3V47zhm5NUya3tH8hZubHKcfYp FQTIEUpwp5EhEdNUspmZFwTdLUSlK/5fHSY0opiv2RLmrU1TnOKKV6djomBnLf4Er2xi oloaCq+W16QI6OkVjeZIcnwe2z9ASW1OuFbOS1I0sgMqnZE1Bkqovp3k7GhhpM0sZW4y 4VAA== X-Received: by 10.140.41.74 with SMTP id y68mr9093769qgy.105.1392357958863; Thu, 13 Feb 2014 22:05:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <87fvnm7q1n.fsf@elektro.pacujo.net> References: <8e4c1ab1-e65d-483f-ad9d-6933ae2052c3@googlegroups.com> <888bd2fc-54b0-4c46-9d7b-d81d01a78b52@googlegroups.com> <52f59aeb$0$29972$c3e8da3$5496439d@news.astraweb.com> <7cc8f49d-a4c7-48c2-a0af-ac58c847d794@googlegroups.com> <71e578f8-0d23-4b8e-b9f2-b987bdc9c01d@googlegroups.com> <85r478bv99.fsf_-_@benfinney.id.au> <85ioskbtfm.fsf@benfinney.id.au> <85eh38bq5z.fsf@benfinney.id.au> <871tz7864a.fsf@elektro.pacujo.net> <87fvnm7q1n.fsf@elektro.pacujo.net> From: Devin Jeanpierre Date: Thu, 13 Feb 2014 22:05:18 -0800 Subject: Re: Working with the set of real numbers To: Marko Rauhamaa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "comp.lang.python" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392357961 news.xs4all.nl 2831 [2001:888:2000:d::a6]:55999 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66284 On Thu, Feb 13, 2014 at 11:47 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Fri, Feb 14, 2014 at 1:00 AM, Marko Rauhamaa wrote= : >>> Well, if your idealized, infinite, digital computer had =E2=84=B5=E2=82= =81 bytes of RAM >>> and ran at =E2=84=B5=E2=82=81 hertz and Python supported transfinite it= eration, you >>> could easily do reals: >>> >>> for x in continuum(0, max(1, y)): >> >> How exactly do you iterate over a continuum, with a digital computer? > > How "digital" our idealized computers are is a matter for a debate. > However, iterating over the continuum is provably "possible:" > > http://en.wikipedia.org/wiki/Transfinite_induction You missed the most important point on that page, which is the "limit case"= . There is no way to iterate over all the reals one at a time, no matter how fast you execute instructions. If you could, it would be trivial to show that the reals have the same cardinality as the positive integers: correspond n with the whatever is returned by the nth call to it.next. It doesn't matter if you call your magical iterator "transfinite", that doesn't make it so. -- Devin