Article View: comp.lang.prolog
Article #749Re: Help on problem needed!
From: Michel BILLAUD
Date: Fri, 28 Aug 1992 08:55
Date: Fri, 28 Aug 1992 08:55
36 lines
2040 bytes
2040 bytes
In article <meskes.714916931@ulysses> meskes@ulysses.informatik.rwth-aachen.de (Michael Meskes) writes: >All the answers are quite interesting Thank you :-) but the don't solve the problem. At least we've tried ! >As far as I know Prolog is turing-complete and the proofs I know don't use >the Cut. So why isn't it possible to solve this problem im Prolog? Because "turing completeness" means that you can emulate a TM by a pure-prolog program after appropriate encoding. so if you can express p(X) q(X) and r(X) in Pure Prolog, there is a TM which computes the same thing as IF p(X) THEN q(X) ELSE r(X), (which is is computable by a Prolog+cut+... interpreter) and thus there is a Pure Prolog program which computes the same results. But this existence theorem doesnt provide a way to turn a Prolog+cut+... into a pure prolog program by high-level source-to-source program transformations, in other words you desperately need to know the text of p(X), q(X) and s.o. I think (not really sure of that) there is the same kind of problems if you want to express the exception mechanism in purely functional languages. >If you still think I want you to do my homework try not to answer. ?- not(toAnswer). yes :-) Michel -- Michel BILLAUD : billaud@geocub.greco-prog.fr Departement d'Informatique : phone W: 56.84.57.92 // 56.84.69.22 IUT "A", Universite Bordeaux I : "Je veux jouer de l'helicon 33405 Talence (FRANCE) : pon pon pon pon ! "
Technical Details
Message-ID:
<1992Aug28.085511.5037@greco-prog.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!geocub!billaudReferences:
<meskes.713709771@ulysses> <1992Aug25.074623.25450@greco-prog.fr> <14219@goanna.cs.rmit.oz.au> <meskes.714916931@ulysses>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!geocub!billaud From: billaud@greco-prog.fr (Michel BILLAUD) Newsgroups: comp.lang.prolog Subject: Re: Help on problem needed! Keywords: help Message-ID: <1992Aug28.085511.5037@greco-prog.fr> Date: 28 Aug 92 08:55:11 GMT References: <meskes.713709771@ulysses> <1992Aug25.074623.25450@greco-prog.fr> <14219@goanna.cs.rmit.oz.au> <meskes.714916931@ulysses> Reply-To: billaud@geocub.UUCP (Michel BILLAUD) Organization: LaBRI - Universite Bordeaux I - France Lines: 36