🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #609

Re: swap(x,y) in Algol 60

#609
From: Bard Bloom
Date: Mon, 04 Sep 1989 00:46
31 lines
2178 bytes
In article <1989Sep3.163014.4697@esegue.segue.boston.ma.us> johnl@esegue.UUCP (John R. Levine) writes:
>
>Golly, back when I was taking math courses rather than computer wonk stuff,
>all of our proofs were informal.  The idea that long mechanical proofs are
>even legitimate math has only recently come to be accepted in mathematical
>circles and is still controversial.

I'd be quite happy with a proof in the usual mathematical style.  All the
proofs quoted so far are more along the lines of the old `proofs' of Euclid's
Fifth, the ones which eventually concluded "...which is repugnant to the
nature of the straight line."  Yes, there's something there, but it's not
right yet.

>In the case of the Algol 60 swap question, people long ago agreed that there
>was no way to write a reliable swap, since the two arguments can affect each
>other in arbitrary ways, the simplest example being swap(i, a[i]).  I
>suspect you could show it's reducible to the halting problem.

As usual, this is a persuasive informal argument, but it's not clear how to
formalize it in any nice way.  This "people long ago agreed" doesn't seem
quite up to the usual mathematical standards of proof. 

BTW, I'd be surprised if it were reducible to the halting problem (depending
on what "it" you're talking about) -- just a guess, but I have spent most of
my professional life (1) showing that things weren't definable in particular
classes of programming languages, and (2) reducing things to the halting
problem, especially to do (1).

>John R. Levine, Segue Software, POB 349, Cambridge MA 02238, +1 617 492 3869

Bard Bloom, Cornell University.
Technical Details
Message-ID: <31751@cornell.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!bard
References: <31690@cornell.UUCP> <8369@boring.cwi.nl> <31736@cornell.UUCP> <1989Sep3.163014.4697@esegue.segue.boston.ma.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!bard
From: bard@gjalp.cs.cornell.edu (Bard Bloom)
Newsgroups: comp.lang.misc
Subject: Re: swap(x,y) in Algol 60
Message-ID: <31751@cornell.UUCP>
Date: 4 Sep 89 00:46:49 GMT
References: <31690@cornell.UUCP> <8369@boring.cwi.nl> <31736@cornell.UUCP> <1989Sep3.163014.4697@esegue.segue.boston.ma.us>
Sender: nobody@cornell.UUCP
Reply-To: bard@cs.cornell.edu (Bard Bloom)
Organization: Cornell Univ. CS Dept, Ithaca NY
Lines: 31
Keywords: swap, algol