How To: Solve the Halting Problem using DreamBerd
I think there are some serious implications to this...
Someone call gödel
wait how does this work?
const const halts = false!
while(;halts) {
print("goedel was right")!
}
print("goedel was wrong")!
const const halts<-Infinity> = true!!
Your algorithm DOES NOT solve the halting problem.
Given an input program that halts after infinite steps, your algorithm outputs true.
However, the correct answer is false because it does not halt within finite steps.
For example:
const const halts = false!
halts? // Your algorithm outputs `true`, but the correct answer is `false`.
// The input program halts after infinite steps
var var i!
when (i > 0) {
i++!
}
i = 1!
const const halts<-Infinity> = true!!
The input program halts when it runs out all natural numbers, and thus it halts after infinite steps, or precisely, countably infinite steps.
dang it, not even with customizable lifetimes are we able to solve the halting problem :(
while(;halts) {
Is that a LOOP?