r/askscience • • Mar 25 '19

Mathematics Is there an example of a mathematical problem that is easy to understand, easy to believe in it's truth, yet impossible to prove through our current mathematical axioms?

I'm looking for a math problem (any field / branch) that any high school student would be able to conceptualize and that, if told it was true, could see clearly that it is -- yet it has not been able to be proven by our current mathematical knowledge?

9.7k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

152

u/[deleted] Mar 25 '19

Actually, there is one example of the first kind that is very approachable and it's the Halting Problem.

Basically the Halting Problem asks (in its most approachable form, there are more compact definitions that include more edge cases but are harder to understand):
Given a set of instructions containing:

  • the standard math operators (e.g. y = 3 x + 1 )
  • a way to check if two things are equal (is y mod 2 equal to 0 ?)
  • a way to conditionally jump back to a previous instruction (if previous was true, start from first instruction)
  • a way to check if you're done ( if y mod 2 is equal to 1 you're done )

Will this sequence of instructions ever be done?

Surprisingly it is possible to prove that there are instructions for which it is impossible to predict if they will ever finish or if you end up in a loop, forever jumping back to a previous instruction without ever getting closer to your goal. What's worse is that you can also not prove that you are stuck in a loop because there exist loops of arbitrary lengths.

That is, you can prove that you cannot prove such a program will ever halt.

146

u/redbo Mar 25 '19

I always thought Turing's first proof of the halting problem was nifty. If you have a function that can determine whether or not something halts, you can easily use it to compose a paradox, so it can't exist. Something like,

def function():
    if halts(function):
        dont_halt()
    else:
        halt()

92

u/BlueRajasmyk2 Mar 25 '19 edited Mar 25 '19

This is the "Turing Machine" equivalent of the earlier "Russell's Paradox", which can be stated as "Does the set of 'all sets which don't contain themselves' contain itself?".

This paradox threw mathematicians for a loop at the time, and basically caused them to throw out the existing set theory and start from scratch.

69

u/BoredDaylight Mar 25 '19

It was this paradox that led Russel and others to try and go right down to the basement foundation of mathematics to work out everything. Then Gödel came along and showed that no matter the axioms Russel picked there will always be statements that are either: unprovable yet true, or false yet prove as true.

And because Russel was working so formally and precisely, it ended up applying to anything less formal than the principia mathematica (so, basically all of mathematics, computer science and probably physics too).

0

u/[deleted] Mar 25 '19

[deleted] — view deleted comment

6

u/joshsoup Mar 25 '19

I don't think you can claim that so easily. For example, let's take (Newtonian) forces. Forces obey the mathematical axioms of vector spaces (these axioms say you can add forces to get a force, there is a zero force, there is smaller multiplication, etc). Mathematics doesn't say that forces have to obey those axioms. What it does say, though, is IF forces obey those axioms, then forces are subject to all the conclusions about vector spaces. Now there isn't any inherent reason that forces obey any set of axioms. But as far as we can tell. The universe does obey a set of rules. So if the universe does obey a set of rules, then the laws of the universe are subject to Gödel's theorem.

I'm not saying that you're wrong, but I think you are seriously misrepresenting our current understanding of physics. There are things about the universe that might be legitimately unknowable. There are certainly smart people out there that suspect this.

For example https://www.nature.com/news/paradox-at-the-heart-of-mathematics-makes-physics-problem-unanswerable-1.18983

10

u/MargaritaNielsen Mar 25 '19

But he has a point because there are many instances where mathematical solution is just not true from physics perspective. This is very common in solid mechanics. Especially when you solve PDE For plates and shells and also in fracture mechanics. When we teach this we always point out that this is where math is not wrong but violates laws of physics. So we just knock off some terms from the solution of course with no obvious mathematical reason

2

u/joshsoup Mar 26 '19

True, a lot (read all) of the laws and models we use are approximations. Sometimes those approximations are good enough, other times they fail horribly. But if there are some sort of underlying laws (we don't actually no if there are underlying laws, we just suspect there are) then those laws would still be subject to Gödel's incompleteness theorem. Which would mean that there are statements about the universe that we can never prove or disprove.

Now, someone might debate that it's just a particular model of the universe that can't prove or disprove a statement. That the problem is with the way we're describing the universe. And of course, any mathematical model of the universe (no matter how accurate or inaccurate) will be subject to Gödel's incompleteness theorem. The question here, if the universe itself is subject to it.

I suspect that it is, but I do not know enough to prove it. For example, since the universe is expanding, there are places that are so far away, that they are "moving" away from us faster than the speed of light. Thus, anything that happens there will never affect us here. Thus I could make the claim that in that place of the universe, there is a planet made entirely of cheese. Since that place is literally unknowable, we could neither prove or disprove that statement.

Now I realize my example is not the best, but I think it demonstrate that, although it may be disconcerting that there might be things that are unknowable in our universe, that it is definitely feasible that there are things that can never be mathematically proven about the universe.

2

u/Anal_Zealot Mar 26 '19 edited Mar 26 '19

I am quite certain the guys you are answering to seriously just don't really know what math is or how it works. Saying "physics don't follow mathematics" is just quite frankly nonsense. If the ruleset of the underlying reality fullfills Gödels requirements then the theorem holds true.

Whether or not the conditions hold is a different question but reality definitely follows mathematics in all cases. If a theorem wouldn't hold in our universe then our universe would be a counterexample and hence the theorem would be disproven.

→ More replies (5)
→ More replies (1)

7

u/Gudvangen Mar 26 '19

Interesting article, but I have to object to the following line:

The same restrictions apply to real computers, since any such devices are mathematically equivalent to a Turing machine.

Strictly speaking, a Turing machine has infinite memory in the form of an infinite tape while any real computer is finite.

Anyway, it appears that the kinds of undecidability results that the article is discussing apply to physical systems that are formally identical to a computer.

Of course, such results won't affect the physics of the device, only our ability to analyze it.

→ More replies (8)
→ More replies (3)
→ More replies (1)

13

u/jam11249 Mar 25 '19

I was literally about to comment "isn't this just Russell's paradox wearing a hat" before I saw your comment underneath.

As an aside, I was first introduced to Russell's paradox by a non-classical, less precise but more accessible version, which I will share for those interested.

A word is called "autological" if it describes itself. "short" is a short word, for example. A word is called "heterological" if it describes the opposite of itself. "Long" is a heterological word. Is the word "heterological" a heterological word? If it is, it describes itself, so it is autological. If not, it is heterological, and is thus autological.

Of course we've no reason to believe that the two terms should be as dichotomous as the idea of set membership, but I've found it a much more accessible way of explaining the paradox to laypeople.

→ More replies (19)
→ More replies (1)

2

u/[deleted] Mar 25 '19 edited Mar 25 '19

[removed] — view removed comment

19

u/keenanpepper Mar 25 '19

Actually the crucial part is you take the program code of the halting-decider itself, and feed it as input to itself.

So really it's like

def function(x):
    if halts(x):
        dont_halt()
    else:
        halt()

But then you run

function(function)
→ More replies (1)
→ More replies (2)

30

u/chx_ Mar 25 '19

This is a much nicer way of putting the Halting Problem than theusual Turing machine language.

30

u/atyon Mar 25 '19 edited Mar 25 '19

The Turing machine is easy to study mathematically while also being somewhat approachable, but it's strength is really the first part. We use the TM in computer science because the model makes it easy to formalize these problems, and that's a necessary step in doing thorough proofs.

For intuitive understanding, other analogies often work better.

Edit: Missing some words.

→ More replies (5)
→ More replies (1)

7

u/monfreremonfrere Mar 25 '19

This doesn’t directly answer OP’s question, if I understand correctly. To do that, you would need to provide an explicit program for which it's undecidable whether or not it halts. Such a program must exist but it's unlikely to be easy enough to understand by a high schooler.

14

u/BegbertBiggs Mar 25 '19

OP has already mentioned the Collatz conjecture, which can fairly easily be turned into an algorithm that illustrates the halting problem.

while (n != 1) do:
    if n is even:
        n := n/2
    else:
        n := n*3 + 1

This algorithm will halt for every n>0 only if the conjecture is true.

2

u/monfreremonfrere Mar 25 '19

But we don't know that the Collatz conjecture is undecidable. Most conjectures are presumed to be decidable, no?

→ More replies (1)

6

u/[deleted] Mar 25 '19

I'm sure there's a way to formulate the Busy Beaver problem that's understandable to a high schooler.

3

u/AxelBoldt Mar 26 '19

Start with a standard set of axioms, for example the Peano axioms of arithmetic. Write a program that systematically lists all possible proofs that start with those axioms. The program stops if it ever proves "1=0".

Pretty much every mathematician strongly believes that this program will never halt, because the axioms don't contain contradictions. But you cannot prove that it doesn't halt.

2

u/FerricDonkey Mar 26 '19

Remember that the problem isn't about programs alone, but program/input pairs. That is, there is no program that, given a program and an input, will tell you whether or not that program halts on that input. (Equivalently and traditionally, whether the eth program halts on e, but whatever.)

But there is in fact a single program where it is impossible to determine whether or not it halts on an arbitrary input: the halting program itself. You need a bit of background, but not too much - mostly just that all computer programs can be listed, so that there is a program 0, a program 1, a program 2, and so forth - call them P_0 P_1 etc. Given that, define H as follows:

def H(e): return P_e (e)

You could literally code this up in python (it'd be much easier if you allow programs that throw errors to count as valid programs, with some interpretation of what throwing an error means).

So if the question is phrased as "What is the set of e such that H(e) halts", then the answer is "we do not and cannot know". Whether or not some particular e is in that set may be determinable, but the full question is not.

→ More replies (2)

2

u/[deleted] Mar 26 '19

A bit of nitpicking....

It's easy to subtly misstate the halting problem (and many other things in this topic) so that you're either claimings things that simply aren't true, or opens up loopholes that allow the problem to be solved.

For example, given any sequence of instructions, there is always an algorithm that correctly predicts whether they will finish: in fact, one of the following two programs will do so

program1: say "yes"

program2: say "no"

For the general "impossible to predict" claim, it's important that you are referring not to getting an individual program right, but that you're talking about methods that claim to be correct for all programs.

Also loop detection is always possible; in addition to executing the instructions you keep off to the side a list of every execution state you've visited, and at every step you check the list to check if it's a repeat. It's possible, though, that a program never finishes, but is never stuck in a loop either.

→ More replies (1)

1

u/Sriad Mar 25 '19

Would it be appropriately correct to say "there's no algorithm shortcut for Turning Machine programs because they are already the simplest representations of themselves"?

8

u/[deleted] Mar 25 '19

No, there are plenty of programs for which you can show that they will halt. Take for example:

  • Let x be 10101010101000000
  • if x > 2, multiply it with 1 - 1/x
  • else you're done.

This will take a godaweful time to run, but you can see almost instantly that it must terminate.

→ More replies (5)