GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

How To: Solve the Halting Problem using DreamBerd

Open rnxpyke opened this issue 2 years ago • 6 comments

I think there are some serious implications to this...

rnxpyke avatar Jun 07 '23 12:06 rnxpyke

Someone call gödel

lijok avatar Jun 07 '23 15:06 lijok

wait how does this work?

thacuber2a03 avatar Jun 12 '23 15:06 thacuber2a03

const const halts = false!
while(;halts) {
   print("goedel was right")!
}
print("goedel was wrong")!
const const halts<-Infinity> = true!!

stohrendorf avatar Jun 12 '23 16:06 stohrendorf

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.

c910335 avatar Jun 26 '23 06:06 c910335

dang it, not even with customizable lifetimes are we able to solve the halting problem :(

thacuber2a03 avatar Jun 27 '23 22:06 thacuber2a03

while(;halts) {

Is that a LOOP?

ThePython10110 avatar Jul 06 '24 00:07 ThePython10110