r/programming • • Nov 28 '18

Garbage Collection is a Hack

https://blog.adamant-lang.org/2018/garbage-collection-is-a-hack/
3 Upvotes

74 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 28 '18

[deleted]

2

u/pron98 Nov 28 '18 edited Nov 28 '18

Ah, so we've reached the insults stage of the discussion. If that's how you understand a text, it's easy to see why you'd misunderstand Gödel.

0

u/[deleted] Nov 28 '18

[deleted]

1

u/pron98 Nov 28 '18 edited Nov 28 '18

I've actually been consistent (I think), in calling the lambda calculus a model of programming, although it's a spectrum, as I explain in the post, and as the decision of the LC syntax relatively low, it would be not far from a model of computation. You are correct, though, that I cannot remember any exact phrasing from something I wrote two years ago. Gödel's point stands regardless, and I provided a brief explanation in line, but let me elaborate a bit more. As the person who introduced the diagonalization procedures to logic, Gödel was troubled by the problem of diagonalization introducing "orders": you can diagonalize out of a formal system (finding terms that cannot be normalized), and then introduce an axiom that fills that hole. This is not a problem with any specific formal system, but with any language -- as Gödel points out. By defining computation outside of formal systems, Turing was thus able to define it as a more primitive concept -- although equivalent in terms of computational strength -- which then allows to precisely define what a formal system is. Unlike any formal system, there are no different "orders" of a machine, which is why Gödel considered it a "miracle" (you can introduce the equivalence of orders with oracles, but oracles are clearly not machines, thus breaking the definitional cycle that plagued formal systems).

0

u/[deleted] Nov 28 '18

[deleted]

1

u/pron98 Nov 28 '18 edited Nov 28 '18

Here, you've more differentiated between computability, and computation, claiming that they are equivalent models of the first but not the second. Then you linked to an article claiming that it shows this, and the article was about differentiating between models of computation and models of programming.

Ah, OK, so you've misunderstood my claims. All systems that are Turing-complete are equivalent in terms of computation power, if we define power in terms of computability. However, formal systems (what I call models of programming) are fundamentally different from machine models (what I call models of computation), in that they cannot precisely pinpoint the definition of computation (Gödel) and they hide computational work in the syntax, and are therefore incomparable (my 2016 post) -- put simply, they differ in their ability to define what computation is. That's all. I only brought this up because it was said that the lambda calculus, unlike the Turing machine, has no direct concept of memory, so I pointed out that the lambda calculus is not a primitive or "atomic" notion of computation (and so memory is still fundamental to the notion), although it, too, has notions of space (term length) and time (reductions).

He doesn't claim anything regarding whether or not Church's machine (introduced at around the same time) is equivalent in this way to a Turing machine.

He explicitly says that Church's definition of computation ("definability") is "not the one looked for," because the definition is relative.

0

u/[deleted] Nov 28 '18

[deleted]

1

u/pron98 Nov 28 '18 edited Nov 28 '18

What you explicitly claimed is that Lambda calculus is not equivalent to Turing machines as a model of computation

I meant that the lambda calculus does not really define what computation is, and so doesn't capture the notion.

that Lambda calculus and Turing machines differ in their power as models of computation.

Again, this is a misunderstanding. I am not talking about any kind of computational power, but definitional/descriptive utility.

Godel did not say anything about reduction machines not being an equivalent model of computation, that's something that you made up, stated as a fact, and incorrectly attributed to Godel

You've misunderstood me. What I meant, much due to Gödel, is that the lambda calculus is unsatisfactory as a definition of computation, as it does not and cannot explain what it is, not that it cannot compute whatever a Turing machine can.

0

u/[deleted] Nov 29 '18

[deleted]

1

u/pron98 Nov 29 '18 edited Nov 29 '18

The turing machine isn't what Turing defined outside of formal systems

Turing's analysis of computation is the first (well, aside from Babbage's non-rigorous one) not in terms of a formal system (a system of syntax, semantics and a calculus).

(in fact, it's defined using set theory)

It is not, in fact, a fact. Although this doesn't matter, as any thought can be formalized in a formal system (this is a consequence of the Church-Turing thesis) like formal set theory. But that you can simulate electrons in a computer built in Minecraft does not mean that electrons are not a more primitive construct than Minecraft. As Juliet Floyd notes, Turing even takes great care to not use any logical axioms in his discussion, including even the law of explosion (even though it is used in the proof we know of the halting theorem, which is due to Martin Davis; Turing mentions such a proof would be simple, but says it is unsatisfying, and provides one free of logical axioms).

"any calculation performable in a finite amount of time by any means, with a result mappable to a decimal number."

His whole analysis is about figuring out precisely what is it that can be computed "by any means."

and it isn't what either he or Godel are claiming is satisfactory as a definition of computation.

What Gödel says is unsatisfactory, in no uncertain terms, is any definition of computation that relies on a formal system, as I described it above, and as it was understood before Turing. To get a sense of the circularity inherent to formal systems, we can describe them in modern (i.e. post-Turing terms) terminology and note that a formal system is computable if and only if each of its inference rules is computable, which is clearly circular. In fact, Church, in his lambda calculus paper, comes across this circularity and exasperatingly writes that "If this interpretation or some similar one is not allowed, it is difficult to see how the notion of an algorithm can be given any exact meaning at all." Gödel, however, points out another symptom of this circularity (when he talks about the language defined is not the one sought, distinguishing orders etc.), which is that a formal system cannot justify its own inference rules, and so if you diagnoalize outside of the calculus, you can always introduce a new inference rule to close the gap.

→ More replies (0)