News for hackers. Stuff that matters.
Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @04:58AM (#27537517)
> Thus he identified fundamental limits of algorithmic theorem proving, computing, and any type of computation-based AI

Fundamental limits presuming one has arbitrarily high (but finite) quantities of time and space with which the computations can be performed. Given in real world computation we will never have either, the fundamental limits of real-world computation are a lot less (even infinitely less) than those given by Gödel's work.

Also, demonstrations of the theoretical limits of computation (Gödel, Turing, etc) often make the assumption that we only have finite (even if arbitrarily large) resources, and that true contradictions (dialetheias) are disallowed. If we give up either (or both) of those of two assumptions, we can compute beyond those limits. It may be objected that computations beyond those limits are not physically realisable; but, almost all computations within those limits are not physically realisable either, so how much significance does that objection actually have?

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by mlasson on Thursday June 17, 2021 @08:35AM (#27538902)
> almost all computations within those limits are not physically realisable either, so how much significance does that objection actually have?

If some thing is impossible with arbitrarily large finite resources, it is still impossible with "practically large" finite resources ! That's why Turing / Gödel results really tell something fundamental about computing/proving; it tells everyone that they do not need to spend time solving an unsolvable problem on computers "as we know them".

But if you prove that something is possible in a your own magic computing framework, it remains practically useless until you implement it in the real world (an example of such a situation is the framework of "quantum computer" trying to solve prime factorization).

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @09:11AM (#27539195)
> That's why Turing / Gödel results really tell something fundamental about computing/proving; it tells everyone that they do not need to spend time solving an unsolvable problem on computers "as we know them"

Consider something like Turing's proof that the halting problem is undecidable – does that have practical relevance, even just in telling us that there is no point in trying to solve an unsolvable problem?

That's the standard line but I doubt it. The thing is, the halting problem is practically irrelevant; what has practical relevance is the bounded halting problem. Practically, you don't care about the difference between a program that never halts, and a program that halts after a googolplex steps, but that distinction is essential to the halting problem as defined. And, the practically relevant, bounded halting problem, is in fact decidable. Now, it is still intractable, because it is EXPTIME-complete, and we also know (per the time hierarchy theorem) that EXPTIME-complete problems are not in P.

So Turing's proof doesn't actually tell us anything much useful about whether the halting problem is solvable in practice, whereas the proof that the bounded halting problem is EXPTIME-complete does. Suppose (counterpossibly) that the bounded halting problem was in P instead of EXPTIME-complete; then the halting problem might actually be tractable in practice, even though Turing's proof of the unbounded halting problem's undecidability would still hold.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by jltsiren on Thursday June 17, 2021 @07:44PM (#27545735)
The undecidability of a specific formulation of the halting problem is practically irrelevant, but you should never take published results too literally. If the halting problem is undecidable in one formalism, it is also undecidable in many other formalisms, and so is a wide class of other problems that can be reduced to the halting problem.

Rice's theorem is one immediate consequence of the undecidability of the halting problem. It effectively states that if you are writing code that analyzes (certain external behavior of) other code, there will always be edge cases your code cannot handle. It is useful to understand that the perfect algorithm is not out there, just waiting to be discovered. Instead of searching for it, you should start thinking about the trade-offs between resource usage and the ability to handle increasingly rare edge cases.

I'm not a fan of resource-bounded variants of decision problems, because the standard complexity classes are ugly beasts. Reasoning about them is so difficult that many fundamental problems remain unsolved. And even if you manage to prove something, the excessive use of quantifiers means that you only learn something about the worst-case behavior with some arbitrarily large inputs.

The resource-bounded problems also miss the point. Impossibility results are not really about the impossibility of proving something with realistic or unrealistic resources. The proof ideas are often more important than the results. One idea is particularly simple: if you have already written your code, I can write an input that fools it.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @08:22PM (#27545979)
> Rice's theorem is one immediate consequence of the undecidability of the halting problem.

I wonder if one could construct a bounded analogue of Rice's theorem? Something like "all non-trivial, semantic properties of programs that use maximum resources R are undecidable by programs using maximum resources R".

> I'm not a fan of resource-bounded variants of decision problems, because the standard complexity classes are ugly beasts. Reasoning about them is so difficult that many fundamental problems remain unsolved.

It seems to be that, reasoning about actual computers is harder than reasoning about physically impossible theoretical ones, so people would prefer to study the later than the former. Fair enough, but surely the former study is more practically relevant – even if harder – than the later; and I don't know why in the later the study of one particular class of physically impossible machines (Turing-equivalent machines) gets privileged over the study of other more powerful classes of physically impossible machines (such as oracle machines, or supertask machines). All physically impossible machines are equally physically impossible.

(Privileged not in the sense of being ignored – of course there is a great deal of theoretical work done on super-Turing computation; but privileged in the sense that super-Turing computation is often presented as something only of interest to specialists, whereas work on Turing-equivalent computation gets promoted as something of practical relevance and general interest.)

> One idea is particularly simple: if you have already written your code, I can write an input that fools it.

Here's a very similar idea about computation with bounded resources: If you had a perfect program analysis program that only worked for programs consuming up to some resource limit R, then it would require more than R to apply the same analysis to itself.

And either idea may not be true for dialetheic machines [0]. Dialetheic machines are, as far as we know, not physically realisable; but Turing machines aren't either.

[0] https://www.springerprofessional.de/en/paraconsistent-comput...

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by oscardssmith on Thursday June 17, 2021 @12:36PM (#27541523)
The problem with this is that proving an algorithm is in P is also undecidable.
Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @04:40PM (#27544316)
How is that a problem with what I said?

You are saying that the decision problem of "Is this algorithm A in P?" is undecidable for arbitrary algorithms A. We don't need a general solution to that decision problem to be able to prove that some particular algorithm is or isn't in P; just like how, we don't need a general solution to the halting problem to prove some particular program does or doesn't halt. The halting problem only means we can't have a computable procedure which will generate such a proof in every case.

The fact that we've actually proven the bounded halting problem is not in P doesn't contradict this. The undecidability of determining whether any arbitrary problem is or isn't in P doesn't prevent us from having a proof that some particular problem is or isn't.

And I said counterpossibly that if the bounded halting problem were in P not EXPTIME-complete, then the halting problem might be practically solvable even if Turing's proof of the undecidability of the unbounded halting problem still held. In this counterpossible, we don't need to be able to solve the decision problem of determining whether an algorithm is in P, all we need is a proof that this one particular algorithm is in P. The undecidability of the decision problem in general tells us nothing about whether we could know its answer for individual cases.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @07:58AM (#27538621)
I don't care about being downvoted, but I wish those doing so would reply to explain why.
Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by Valmar on Thursday June 17, 2021 @06:03AM (#27537960)
It's a harsh, but true reality that with only have finite quantities of time and space, especially in real world computation. The assumption of finite resources is also a harsh, but true reality.

There are many things that fundamentally defy any form of computation. Things which cannot create mathematical formulae to represent, nor create algorithms for.

For a major example, we cannot translate the mental activities of conscious, aware living beings into any sort of computable form, as these activities are not algorithmic in nature. They aren't random, nor deterministic ~ rather, they are indeterministic, following no rigid patterns.

Even the most complex, complicated computer program follows an algorithm, which is ultimately deterministic. Even if you throw in some random inputs at some parts, the algorithm still acts deterministically. Perhaps the only really indeterministic part in an algorithm's behaviour might be hardware level bugs and errata which interfere with the otherwise very predictable algorithm.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by amanaplanacanal on Thursday June 17, 2021 @06:16AM (#27538033)
> For a major example, we cannot translate the mental activities of conscious, aware living beings into any sort of computable form, as these activities are not algorithmic in nature. They aren't random, nor deterministic ~ rather, they are indeterministic, following no rigid patterns.

How could you possibly know that? Following no known patterns, maybe.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @06:33AM (#27538134)
Trivially, for any finite string (in a finite alphabet), there is a finite program (Turing machine, whatever) which outputs that string given empty input. Hence, "the mental activities of conscious, aware living beings" are trivially computable if there exists a finite string which describes them with perfect accuracy.

Furthermore, there obviously are some computable patterns in those activities, so the shortest possible computable program to generate that description will actually be shorter than the length of the description itself.

One could respond that a string describing those mental activities, no matter how accurately, is a different thing from the mental activities themselves. I think that is indeed the correct response, but it has nothing to do with any questions of computability.

(Another response would be to claim that those mental activities cannot be finitely described because they are actually infinite. Few however will want to claim that human minds are infinite.)

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by onethought on Thursday June 17, 2021 @07:08AM (#27538319)
> Even the most complex, complicated computer program follows an algorithm, which is ultimately deterministic.

Gödel's work proved this statement false.

To give an example, what if the algorithm is to generate the correct algorithm? What if the correct algorithm ends up being the original algorithm?

That is not deterministic.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by Rioghasarig on Thursday June 17, 2021 @11:42AM (#27540848)
>> To give an example, what if the algorithm is to generate the correct algorithm?

That's not a description of an algorithm. You've stated a "problem". An algorithm, by definition, is an actual deterministic procedure.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @04:56PM (#27544441)
> That's not a description of an algorithm. You've stated a "problem".

I wanted to say the same thing, but you managed to find the words I couldn't.

> An algorithm, by definition, is an actual deterministic procedure

That's not necessarily true. There are non-deterministic algorithms: https://en.wikipedia.org/wiki/Nondeterministic_algorithm

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by Rioghasarig on Saturday June 19, 2021 @12:58PM (#27562161)
I guess you're right. But I was trying to defend Valmar's statement which I still think is basically right in this context. Computers can't really implement non-deterministic algorithms.
Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Monday June 21, 2021 @09:57AM (#27579209)
> Computers can't really implement non-deterministic algorithms.

Well they can. Quantum computers are inherently non-deterministic.

Even for a classical computer, access to a true randomness source (such as a sufficiently good hardware RNG) is enough to make a classical computer non-deterministic, and hence programs that rely on that true randomness source are classified as non-deterministic.

In practice, we sometimes classify a program as nondeterministic even if it only has access to pseudorandomness, provided that pseudorandomness is "random enough". If a program uses a high quality PRNG seeded with the current time, that might be practically considered non-deterministic, even though strictly speaking the program's behaviour is a deterministic function of the current time (and other inputs).

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by onethought on Friday June 18, 2021 @05:34AM (#27548767)
Where do neural networks fall?

Are you tautologically saying “determinism is determinism” because you define an algorithm as a “deterministic procedure”.

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Friday June 18, 2021 @06:40PM (#27555794)
Artificial neural networks can be either deterministic or non-deterministic.

Biological neural networks are non-deterministic.

(You can debate philosophically whether apparent non-determinism is actually fundamentally non-deterministic or ultimately reduces to some hidden determinism. It depends on one's choice of interpretation of quantum theory – many worlds and hidden variables both claim that reality is fundamentally deterministic, other interpretations do not. But, whether or not non-determinism ultimately exists, it certainly apparently exists, both in biological and technological systems.)

Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by Rioghasarig on Saturday June 19, 2021 @01:01PM (#27562189)
Yes I was asserting that algorithms are by definition deterministic. But I guess you can technically consider non-deterministic algorithms but those aren't really relevant here. Computers don't behave non-deterministically. Every program in your computer describes a deterministic process.
Re:1931: Kurt Gödel shows limits of math, logic, computing, AI by skissane on Thursday June 17, 2021 @08:22AM (#27538814)
If a machine is deterministic, all programs for the machine must be deterministic. Gödel’s theorems don’t contradict that. If you think they do, you’ve misunderstood them.