404 points · by jamesfisher · 4y ago · 107 comments
> Gödel’s original proof was slightly stronger
Technically speaking, a lot stronger. Proving Godel's first incompleteness theorem (don't even get me started on the second) from first principles is actually much more involved; and certainly more difficult to make it intelligible for non-logicians.
Not really. The idea of a Turing Machine brings with it a lot of stuff, but nowadays Turing Machines are a dime a dozen, and the idea of a "program" is common place. So proving the non-computability of the halting problem is pretty easy [1]:
Assume that there exists a program H that solves the halting problem, that is, H takes two input parameters, a program P and an input I and returns true if P halts when run on input I, false otherwise.
Construct a program B that does the following: B accepts as input a program P and computes H(P,P), that is, it calls H as a subroutine to determine if program P halts when run on a copy of itself as the input. If the result from H is true then B enters an infinite loop, otherwise B halts (that is, B does the opposite of what P would do when run on a copy of itself).
Now consider what happens if we run B on a copy of itself. B will halt iff H(B,B) is false. But H(B,B) is false iff B doesn't halt, which is a contradiction. Therefore, our assumption is false, and H is impossible. QED.
---
[1] Taken from https://flownet.com/ron/chaitin.html
I think you may have misconstrued what I meant. From a metamathematical standpoint, leveraging the Halting Problem gives you a lot of stuff for free. Just the fact that we're assuming that a formal logic system and a programming language are isomorphic is actually a pretty huge deal and those developments span several generations of logicians.
Specifically, Godel numbering really originally made this entire thing work. And that sausage was not very intuitively-made.
Not exactly for free. You still have to prove the non-computability of the halting problem. But I get your meaning.
> Just the fact that we're assuming that a formal logic system and a programming language are isomorphic is actually a pretty huge deal and those developments span several generations of logicians.
Sure, but that is no different from any technological advance. Arabic numerals were a major breakthrough when they were first invented. Nowadays it is pretty safe to take them for granted in most cases.
> Godel numbering really originally made this entire thing work.
Sure, but that was only necessary because Godel didn't know about ASCII. Proving Godel's theorem using Godel numbers is kind of like writing a C compiler as a state table for a Turing Machine. You could do it, but no one in their right mind would except perhaps as an intellectual exercise.
The history of how technological innovations came about is very different, and usually much more difficult, than the way one can re-invent those innovations with the benefit of hindsight.
Simplified proof: assume H exists, then consider equation 1=0, it's a contradiction, therefore the assumption is false and H doesn't exist.
But that is neither here nor there. What matters is that a provably false statement (in this case a contradiction, but that doesn't really matter) follows from some assumption, and therefore the assumption must be false. This is not circular reasoning, it is proof by reductio ad absurdum (https://en.wikipedia.org/wiki/Reductio_ad_absurdum).
There's indeed an extra assumption in here, namely that we can write a program such as B that runs on "itself". That's not difficult to see though, if we think in terms of Turing Machines (or an actual computer with memory, for that matter).
I think the given proof is essentially correct.
This is how it was taught when I learned CS theory in uni [0]
You might know something if you know one way to do it. You have a much better understanding if you have two ways. Three and your understanding is probably pretty solid. Etc
Edit of to if, damn autocorrect
I remember having to do it for my logic class final exam. I wouldn't remember exactly how to do it today though.
The little click sounds on the linked page are unfortunate. I had to stop after like 20 seconds.
See: https://tigyog.app/d/fr9uub3hqgab/r/the-halting-problem
https://infinityplusonemath.wordpress.com/2017/07/22/kurt-go...
https://infinityplusonemath.wordpress.com/2017/08/04/godels-...
https://infinityplusonemath.wordpress.com/2017/09/04/how-god...
I really like this video for explaining it, I find it very funny and approachable: https://www.youtube.com/watch?v=WylL1m4K6Bk
No, because the given alphabet does not contain the space character ...
I don't believe it will since `const alphabet` does not contain λ or ¬. Apart from my very slight indignance after answering that one incorrectly, loved the article! :)
There is another typo in one of the javascript functions, where you should write "return t;" instead of "return thm;"
>This is looking better! We have an amazing function, is_statement_true, that can tell us whether anything is true or false, given enough time!
>Read it through, and try to prove to yourself that is_collatz_true really does eventually return the truth of the Collatz conjecture.
Namely, I think the author confuses Lean theorems and metatheory theorems, where when I say metatheory, I mean the language and the system we use to talk about lean, about Godel's incompleteness theorem, and everything else - basically, the English-math language in which the chapter is written. Hence, it's wrong to say that is_statement_true can tell us whether any statement is true - it can merely tell us which of the two options it is: the statement is a theorem of Lean or its negation is a theorem of Lean. Same for is_collatz_true - sure, it must tell us what Lean thinks about the Collatz conjecture but doesn't tell us anything about the truth or falsity of the Collatz conjecture.
And finally, in the very end of Chapter 2, this problem arises as well. The chapter says that if Lean is sound and complete, then we can define a function which, for any Turing machine, returns one of two options: Lean thinks it halts, or Lean thinks it doesn't halt. But we haven't proved that what Lean thinks about that had anything to do with whether it actually halts or not.
[0] https://www.cambridge.org/core/journals/bulletin-of-symbolic...
What IS an issue is that to fully explain what "express the collatz conjecture in B" means, you need model theory. You are right, type theory often doesn't come with model theoretic semantics, but it can be done in a natural way even for type theories.
The paper you are referencing is on sci-hub, by the way: http://sci-hub.wf/10.1017/S1079898600010568
Well I can tell you if it actually halts: it does. By the time of the heat-death of the universe, all computers will have stopped running, so the halting problem is quite solvable.
But the halting problem, and the Collatz conjecture, and all mathematical truth, is fundamentally embedded inside of systems of formal logic. Gödel's Incompleteness Theorem doesn't say anything about systems of truth outside of formal mathematical logic. So this result isn't relevant to Physics, for example.
However, Gödel's Theorem, and this proof, don't rely on any particular qualities of the formal system, other than the ability to enumerate proofs (and other things that we think of as inherit to logic). So this proof applies not just to Lean, but also to every method of proving things in math.
This is wrong - see Dyson's eternal intelligence.
- The "gradually revealed content" flow tends to require full control over the page. See by contrast https://quantum.country/ which uses https://withorbit.com/, which is more like a framework. For that reason, it's quite restricted in what it can do in terms of flow control.
- Tracking progress - you can just save answers client-side, but I wanted something that would allow users to sign on their mobile and continue from wherever they were on the desktop, etc. This also enables flashcard-style spaced repetition emails (future feature)
- Saving answers while being able to edit the page requires that you have stable identifiers for all questions and buttons. The WYSIWYG does that for you.
- I wanted it to feel like blogging, or traditional writing, rather than coding.
All that said - I'm thinking about ways to open up TigYog for more like framework-style creation. Email me if you're interested!
There is something called abstract interpretation that can tell you what the result of some computation will be but by necessity it can only be an approximation because it must halt in some finite amount of time. Type systems are a good example of abstract interpretation because type systems assign a logical/mathematical semantics to code and allow one to determine in a finite amount of time whether some code is logically coherent according to the rules of the type system.
The larger philosophical implication of all this is that symbolic/computational models of reality are always approximations. Whatever one can know for certain has either already happened and is in the past or there is some symbolic model/approximation which must necessarily have some degree of uncertainty and error.
The tutorial itself is pretty cool. Props to the author for putting it together.
For instance, there are many "simple programs" for which you can give the results by way of formal methods without running them. The incompleteness theorem says that there will exist one program for which you can't.
To me it's more about the expressiveness of languages.
Strictly speaking, F has to be satisfiable/consistent as well. {P, ~P} is a trivially recursively enumerable, complete theory which contains Q.
Logic isn't the study of merely finding out what's true, but what's true and interesting.
You could make a system to reward people for finding proofs, but it would be more of a Bounty system or a Leaderboard than a cryptocurrency. Indeed people do put up prizes for those kind of things today.
However, it is somewhat hard to mathematically define all criteria used to recognize *useful* theorem.
There may be many propositions that are true, but cause no excitement among mathematicians.
Also I really like approaching this from Lawvere’s fixed point theorem. https://ncatlab.org/nlab/show/Lawvere's+fixed+point+theorem
I have been thinking about some of this stuff
https://github.com/adamnemecek/adjoint
Join the discord https://discord.gg/mr9TAhpyBW
> But what if theorems() contains both coll_conj and ¬coll_conj? Is that possible?
> ...
> But in general, a formal system can have both S and ¬S as theorems.
Is there an intuitive explanation for this?
I tried to survey this multiverse philosophy here: https://iblech.gitlab.io/bb/multiverse.html
There are several systems of axioms we can use to base mathematics on.
A common such is ZFC, Zermaelo–Fraenkel set theory with the axiom of choice. Among its axioms are assertions like "there is a set which is empty", "there is an infinite set" and "if A and B, then in particular A".
Another is Martin-Löf type theory in one of its flavors, perhaps homotopy type theory.
See draft presented at many top logic conferences yet: https://arxiv.org/abs/2106.13309
Since the observable universe is bounded, and we are most interested in computable, why not to focus on maths that is most relevant to our universe instead of infinitary alternate?
I was following along with the logic, but got completely lost here. Can anyone explain how does the assumption "1 plus 1 is equal to three is false" lead to a contradiction? What is the contradiction here exactly?
1- Assume ¬X
2- Point out the contradiction
3- Therefore X is true
Is it contradiction in the proof, or rather a contradiction in assumptions?
More on logic that permits all that *Bounded* Turing Machine does: https://arxiv.org/abs/2106.13309
Why exactly it "leads to"? I don't get it.
Why system can't have a contradiciton for one set of inputs, and not have it for others?
kind of like bicycle and bike
mike is, sometimes, but 'mike drop' for 'mic drop', not so much. But for even more pedantry, that would be spelling rather than grammar pedantry.
We exchange and learn new words primarily by hearing them, and I'll bet "drop the mike" was first uttered out loud by a comedian/entertainer type, and to say that it even had a spelling is an unjustified leap.