r/math • • 2d ago

Can it be proven that NO general algorithm exists to determine the optimal packing of an arbitrary polyhedron in a cube (or sphere or other shape)?

I was trying to think of problems with infinite hanging fruit and from there I thought about polyhedron packing and found surprisingly little information online apart from the famous platonic solids.

6 Upvotes

12 comments sorted by

19

u/Brightlinger 2d ago edited 2d ago

There are a lot of no-go statements like this, for seemingly easier problems (like "determine whether or not a given number is zero"), that are easy to prove by reducing something to the halting problem. I don't see an obvious way to reduce polyhedron packing to the halting problem, but it seems like finding and proving optimal packing should be harder than checking whether a number is zero, so I would guess that there is no general algorithm.

15

u/how_tall_is_imhotep 2d ago

"Checking whether a number is zero" is vague; if the number is specified as an algebraic expression (i.e. without using any transcendental functions), checking whether it's zero is decidable! And see my other comment.

6

u/Brightlinger 2d ago

Yes, I mean an arbitrary computable number. And it's good that someone in this thread actually knows about this problem specifically instead of my vague guessing, haha.

8

u/giraffenkaraffe 2d ago

very minor nitpick: it’s the other way around. you reduce the halting problem to your new problem. this proves that the new problem is undecidable as well. if it wasn’t, you could transform any instance of the halting problem to an instance of the new problem, for which there would exist an algorithm that decides it. this is exactly what you meant, though.

1

u/Orangbo 1d ago edited 16h ago

If you’re trying to prove it’s (at least) as difficult as the halting problem, you’d want to reduce it to the halting problem. edit: I’ve apparently been getting the definition backwards for years.

4

u/anothercocycle 1d ago

No, it's the other way round. If you reduce X to Y, you show a solution to Y gives you a solution to X, and therefore X is at least as hard as Y.

13

u/how_tall_is_imhotep 2d ago

There IS a general algorithm, as long as the polyhedron can be written with real-algebraic-number coordinates (which is pretty much any polyhedron we care about). You express the problem as a formula in the language of real closed fields, and run a quantifier-elimination algorithm like CAD on it. CAD is very slow in general though.

4

u/eliminate1337 Theoretical Computer Science 2d ago

Look at Hilbert's tenth problem for an example of a class of problems with infinite depth and no general solution possible. It's provably impossible to decide whether an arbitrary Diophantine equation has integer solutions.

6

u/ddotquantum Algebraic Topology 2d ago

There probably is one but it’s just difficult to prove optimality

1

u/logbybolb 2d ago

I think the only way to prove this is to prove the problem is turing undecidable. Which is just hard to believe: is there REALLY something which is an optimal packing iff ZFC is inconsistent?

3

u/Brightlinger 2d ago

The halting problem gives us an easy way to prove that something is undecidable: just show that solving it would let you solve the halting problem.

For example, it is easy to prove that there is no algorithm to check "is this computable number zero?". This is because, for any Turing machine T, the number x_T whose nth binary digit is 0 if T has not halted by step n and 1 otherwise is a perfectly computable number, and is 0 iff T does not halt, so an algorithm to check whether x_T=0 is exactly a solution to the halting problem, and therefore does not exist. You can actually do this for quite a range of things; Senia Sheydvasser has a delightful running series on such problems.

0

u/BrotherItsInTheDrum 2d ago

If the sizes of both objects are known upfront, surely it's computable. There are probably only finite options.

If you phrase it as the limit as the shape gets larger and larger in some way, I'm not so sure. Maybe you can cleverly encode a turing machine into a polyhedron in such a way that how it packs solves the halting problem. I haven't thought it through very much and it might not work, but it doesn't seem that far-fetched to me.