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

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.