Csound Csound-dev Csound-tekno Search About

[Csnd] Halting problem

Date2012-10-24 11:01
FromJohn ffitch
Subject[Csnd] Halting problem
>
>
> The problem with this is that there cannot be a characteristica
> universalis, its possibility is disproved by the incompleteness
> theorems and the halting theorem and other related results.
>
> Regards,
> Mike
>
>
This is really interesting. What are the two theorems mentioned?

Thanks
P


The halting theorem states that one cannot write a program that
determines if an arbitrary program halts

Proof is easy by diagonalisation.

Suppose we have such a program.  Make a new program just like the
first with the place where it prints HALTS by an infinite loop.,
Replace the DOES NOT HALT with a stop instruction.

Give revised program to the tester.  If the program halts it does
into a loop, and if it does not halt it stops.  Contradiction so the
program does not exist

>
==John ffitch

Date2012-10-24 11:17
FromVictor Lazzarini
SubjectRe: [Csnd] Halting problem
This the most succinct explanation I've ever read, very good.

On 24 Oct 2012, at 11:01, John ffitch wrote:

> The halting theorem states that one cannot write a program that
> determines if an arbitrary program halts
> 
> Proof is easy by diagonalisation.
> 
> Suppose we have such a program.  Make a new program just like the
> first with the place where it prints HALTS by an infinite loop.,
> Replace the DOES NOT HALT with a stop instruction.
> 
> Give revised program to the tester.  If the program halts it does
> into a loop, and if it does not halt it stops.  Contradiction so the
> program does not exist
> 
>> 
> ==John ffitch

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2012-10-24 11:24
FromJL Diaz
SubjectRe: [Csnd] Halting problem
On Wed, Oct 24, 2012 at 12:17 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
This the most succinct explanation I've ever read, very good.

On 24 Oct 2012, at 11:01, John ffitch wrote:

> The halting theorem states that one cannot write a program that
> determines if an arbitrary program halts
>
> Proof is easy by diagonalisation.
>
> Suppose we have such a program.  Make a new program just like the
> first with the place where it prints HALTS by an infinite loop.,
> Replace the DOES NOT HALT with a stop instruction.
>
> Give revised program to the tester.  

Wait a moment... Give the revised program to the tester, o to the revised tester? I think that it should be the later. If not, I would need a less succint explanation ;-)

Regards,
--JL Diaz