Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Halting problem = undecidability of all program properties?

Name: Anonymous 2016-09-14 3:28

[i]UNDERGRAD QUALITY[/i] incoming: An old thread on /math/ got me thinking about this. We know the typical proof uses
func G(x): if Halts(x, x) then loop forever
else false

and G(G) as a counterexample. Would this
func P(x): if ReturnsOdd(x, x) then 2
else 1

mean you can't prove a program always returns odd numbers because of P(P)? What about any other simple property like ``returns alphanumeric character'' or ``returns a valid s-expression''? You can always construct a function that ends in a contradiction by just returning the opposite thing.

Name: Anonymous 2016-09-16 9:55

>>40
create random textfile and read it out loud. with a very high probability, it won't be correct English or comprehensible English or even a collection of pronounceable words. but it doesn't mean that a set of all unique possible texts in correct (or just comprehensible) English is small. in fact, without size restrictions such a set is infinite.

Name: Anonymous 2016-09-16 11:45

>>41
without size restrictions
Where are you buying these infinite hard drives?

Name: Anonymous 2016-09-16 11:50

>>42
ok then, let's test all valid programs within a certain size restriction. HDD size could be a good, realistic constraint: we won't test programs bigger than 1TB.

Name: Anonymous 2016-09-16 11:56

>>43
Wow, that's a lot of bloat!

Name: Anonymous 2016-09-16 11:58

of course this is all pointless because even if we're able to test those programs, some of them will keep running without there being a way of determining whether they will eventually halt or not. read up about busy beaver candidates - some of them have been running for years and we still don't know if they're halting or not.

Name: Anonymous 2016-09-16 12:01

>>44
enterprise java code!

Name: Anonymous 2016-09-16 21:38

>>43
we won't test programs bigger than 1TB.
I've written Lisp macros that generated more than that!

Name: Anonymous 2016-09-16 23:42

>>47
Are you implying that you've written programs bigger than 1TB? Talk about bloat.

Name: Anonymous 2016-09-16 23:58

>>47
yeah, that's not something to be proud of. ya fatboy

Name: Anonymous 2016-09-17 0:28

That's bigger than Losedows 7!

Name: Anonymous 2016-09-17 1:57

>>50
*LoseThos

Name: Anonymous 2016-09-17 7:15

>>47
That doesn't seem to be hard
#define add_bloat(x) int x [250000000000L];

Name: Is this what OP wanted? 2016-09-19 18:08

I will prove it's impossible to know if a function will return the string "/prog/".

Suppose there is a function return_prog(P, i) that returns true if P returns "/prog/" with i as input. Consider the program:

C(P, i) := "/gorp/" if returns_prog(P, i)
"/prog/" otherwise


What about C(C)? Wait, this is a CONTRADICTION!. Ergo ur wrong asshole. This proof is flawless.

What about f(x) := "/prog/"? No. Impossible to prove. Never, ever write programs that return "/prog/".

Put more effort on your posts, OP.

Name: Anonymous 2016-09-19 18:23

What is fals lwas?

Name: Anonymous 2016-09-19 22:43

>>54
Are you blind? It clearly says fals lwes.

Name: Anonymous 2016-09-20 15:32

>>55
nice dubs

Name: Anonymous 2016-09-24 2:30

Not sure whether OP is trying to be witty here, but isn't this exactly what Rice's theorem is about?

How come this thread has 56 replies and not a single person has pointed out OP is a retarded undergrad who just failed his first Automata Theory 101 exam?

Name: Anonymous 2016-09-24 20:27

>>57
Who is OP? Do you mean >>1 chan?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List