WEBVTT
Kind: captions
Language: en-US

00:00:00.880 --> 00:00:08.000
That's me. You're probably wondering how I got&nbsp;
here, down at the bottom of this math hole. Well,&nbsp;&nbsp;

00:00:08.000 --> 00:00:15.280
it's a tale as old as Tom. I stayed up late. I&nbsp;
found an unsolved math problem on the internet.&nbsp;&nbsp;

00:00:15.280 --> 00:00:19.840
And then I spent months trying to solve it myself.&nbsp;
And this is not the first time that this has&nbsp;&nbsp;

00:00:19.840 --> 00:00:25.600
happened. Arguably, I'm still in other math holes.&nbsp;
Now, I like to make YouTube videos at my own pace,&nbsp;&nbsp;

00:00:25.600 --> 00:00:30.320
which is about one per year. But it occurred&nbsp;
to me that it might be a bad idea for me to&nbsp;&nbsp;

00:00:30.320 --> 00:00:34.880
wait until I've solved this problem before I&nbsp;
*start* making a video about it. And there's&nbsp;&nbsp;

00:00:34.880 --> 00:00:40.080
already a lot of interesting things to learn or&nbsp;
be upset by, even if we already knew them. So,&nbsp;&nbsp;

00:00:40.080 --> 00:00:46.240
here's part one of the story. It begins&nbsp;
with a hostile and seemingly easy question.

00:00:46.240 --> 00:00:51.600
So, how big is the unit cube?&nbsp;
One? Well, let me ask you this:&nbsp;&nbsp;

00:00:51.600 --> 00:00:56.320
*Where* is the unit cube? Zero...?&nbsp;
Actually, let me ask you this.&nbsp;&nbsp;

00:00:56.320 --> 00:01:03.440
How big is the unit sphere? Also one,&nbsp;
right? And where's that? Also... zero?

00:01:03.440 --> 00:01:08.240
Well, it turns out that canonically the&nbsp;
unit cube has one of its vertices at (0,&nbsp;&nbsp;

00:01:08.240 --> 00:01:14.240
0, 0)—at the origin—and its opposite corner at&nbsp;
(1, 1, 1). And that makes sense. But the unit&nbsp;&nbsp;

00:01:14.240 --> 00:01:19.840
sphere is centered at the origin and extends in&nbsp;
each direction by one unit, which means it has&nbsp;&nbsp;

00:01:19.840 --> 00:01:25.280
a diameter of two. So it's actually a lot bigger&nbsp;
than the unit cube, which I think is surprising.&nbsp;&nbsp;

00:01:25.280 --> 00:01:32.320
It seems that these two basic canonical shapes&nbsp;
actually use the word unit differently. In one&nbsp;&nbsp;

00:01:32.320 --> 00:01:36.400
case, it's like the side length, and in the&nbsp;
other case, it's like the radius. And so,&nbsp;&nbsp;

00:01:36.400 --> 00:01:42.560
you can easily fit a unit cube inside a unit&nbsp;
sphere. Now, two won't fit without overlapping,&nbsp;&nbsp;

00:01:42.560 --> 00:01:47.840
but you could ask, what's the configuration&nbsp;
of cubes that yields the smallest sphere that&nbsp;&nbsp;

00:01:47.840 --> 00:01:53.840
contains them? And for two cubes, that is in fact&nbsp;
to place them side by side like you'd expect.&nbsp;&nbsp;

00:01:53.840 --> 00:01:58.000
For four, you've got this, which makes&nbsp;
sense. Once you get beyond a couple cubes,&nbsp;&nbsp;

00:01:58.000 --> 00:02:03.120
the arrangements here get pretty gross. For&nbsp;
example, you might think that the solution&nbsp;&nbsp;

00:02:03.120 --> 00:02:08.720
for six looks something like this. That would be&nbsp;
nice. But in fact, a better arrangement is this&nbsp;&nbsp;

00:02:08.720 --> 00:02:14.960
monstrosity. I found this by computer search.&nbsp;
Namely: I after trying myself, I looked it up&nbsp;&nbsp;

00:02:14.960 --> 00:02:18.880
on the internet and found that someone else had&nbsp;
solved it. And we don't know if it's the best,&nbsp;&nbsp;

00:02:18.880 --> 00:02:26.080
but we know it's better than the regular one. Oh,&nbsp;
I love it! (Platonically.) A great, beautiful math&nbsp;&nbsp;

00:02:26.080 --> 00:02:30.480
result is appealing to me. But I think that&nbsp;
what really titillates me is when the problem&nbsp;&nbsp;

00:02:30.480 --> 00:02:35.600
is beautiful, but the solution is upsetting.&nbsp;
I call this a "platonic horror," in contrast&nbsp;&nbsp;

00:02:35.600 --> 00:02:41.120
with man-made horrors like "the conventional unit&nbsp;
cube and unit sphere apparently use the word unit&nbsp;&nbsp;

00:02:41.120 --> 00:02:48.400
differently" or "the x86 instruction set" or the&nbsp;
"unicode codepoint U+FE18, presentation form for&nbsp;&nbsp;

00:02:48.400 --> 00:02:53.600
vertical right white lenticular brakcet." This&nbsp;
is clearly man-made. Aliens would never think&nbsp;&nbsp;

00:02:53.600 --> 00:02:59.600
to spell the word bracket wrong in the formal name&nbsp;
of a Unicode character, but they definitely would&nbsp;&nbsp;

00:02:59.600 --> 00:03:04.160
think of putting cubes and spheres. And that&nbsp;
means somewhere out there, if aliens exist,&nbsp;&nbsp;

00:03:04.160 --> 00:03:10.000
there's some other math pervert writing&nbsp;
SIGBOVIK papers about this kind of thing for&nbsp;&nbsp;

00:03:10.000 --> 00:03:15.440
their equivalent conference. And I like that idea.&nbsp;
Anyway, now that I've gotten the dice-in-sphere&nbsp;&nbsp;

00:03:15.440 --> 00:03:22.720
pun out of the way, I can move on to the real&nbsp;
topic of this work, which is: dice in dice.

00:03:24.240 --> 00:03:29.440
All throughout history, we've had the problem&nbsp;
that rich and powerful people decide that they&nbsp;&nbsp;

00:03:29.440 --> 00:03:35.120
want to wreck the world. And I don't really&nbsp;
understand this. If I were super rich,&nbsp;&nbsp;

00:03:35.120 --> 00:03:40.640
I would just hang out with my smart friends&nbsp;
and do math, right? One rare example of this&nbsp;&nbsp;

00:03:40.640 --> 00:03:47.520
seemingly working out well was Prince Rupert of&nbsp;
the Rhine, who is the grandson—a grandson—of Mary,&nbsp;&nbsp;

00:03:47.520 --> 00:03:56.720
Queen of Scots. And this guy, after retiring from&nbsp;
being a war sailor or whatever, he quote unquote&nbsp;&nbsp;

00:03:56.720 --> 00:04:01.840
converted some of the apartments at Windsor Castle&nbsp;
into a luxury laboratory complete with forges,&nbsp;&nbsp;

00:04:01.840 --> 00:04:06.880
instruments, and raw materials, from where he&nbsp;
conducted a range of experiments. Now, that's&nbsp;&nbsp;

00:04:06.880 --> 00:04:12.080
what I'm talking about. A math and science castle&nbsp;
is a good use of the monarchy. You may have heard&nbsp;&nbsp;

00:04:12.080 --> 00:04:17.280
of this fellow before. He's the one that learned&nbsp;
about Prince Rupert's drop and then didn't protest&nbsp;&nbsp;

00:04:17.280 --> 00:04:22.880
when people attributed its invention to him. And&nbsp;
I imagine Rupert on a pleasant evening hanging&nbsp;&nbsp;

00:04:22.880 --> 00:04:28.720
out in the pub talking about math and exploding&nbsp;
glass with his friends much like I do today,&nbsp;&nbsp;

00:04:28.720 --> 00:04:34.320
except he was drinking nasty 17th century beer.&nbsp;
And he came up with the following question:&nbsp;&nbsp;

00:04:34.320 --> 00:04:40.720
Can you take a cube, say the unit cube, and pass&nbsp;
it through another cube of the same size? Now,&nbsp;&nbsp;

00:04:40.720 --> 00:04:44.800
superficially that sounds ridiculous because&nbsp;
normally to put something through something else,&nbsp;&nbsp;

00:04:44.800 --> 00:04:50.000
you want to put a smaller thing through a bigger&nbsp;
thing. And these are two cubes of the same size,&nbsp;&nbsp;

00:04:50.000 --> 00:04:54.160
but incredibly this does work. If you take&nbsp;
the cube and point one of the points at you,&nbsp;&nbsp;

00:04:54.160 --> 00:04:59.920
then its shadow is like a hexagon. That's the&nbsp;
big way. And then if you just look directly at&nbsp;&nbsp;

00:04:59.920 --> 00:05:04.480
one of the faces, uh, it shadow is a square.&nbsp;
That's the small way. And this square does&nbsp;&nbsp;

00:05:04.480 --> 00:05:10.800
fit inside the hexagon just barely. And when&nbsp;
you cut the hole, the resulting shape looks&nbsp;&nbsp;

00:05:10.800 --> 00:05:17.680
like this. This weird sharp donut. I'm&nbsp;
going to call this the residue. Okay.

00:05:17.680 --> 00:05:23.840
And so 375 years later, I'm up late reading&nbsp;
the Wikipedia article about the dodecahedron,&nbsp;&nbsp;

00:05:23.840 --> 00:05:29.360
my favorite platonic solid. And I'm reminded by&nbsp;
this sentence, the dodecahedron, like the other&nbsp;&nbsp;

00:05:29.360 --> 00:05:34.400
platonic solids, has the Rupert property. That the&nbsp;
cube is not the only thing that can pass through&nbsp;&nbsp;

00:05:34.400 --> 00:05:39.760
itself. And that's very pleasant. Let's talk about&nbsp;
the platonic solids for a sec. I just love these&nbsp;&nbsp;

00:05:39.760 --> 00:05:47.360
things. (Platonically.) (But also sexually.) There&nbsp;
are only five platonic solids. The tetrahedron,&nbsp;&nbsp;

00:05:47.360 --> 00:05:52.800
the cube, the octahedron, the dodecahedron,&nbsp;
that's my favorite, and you'd think I'd be&nbsp;&nbsp;

00:05:52.800 --> 00:05:57.120
better at drawing it by now, but it is&nbsp;
a tricky one. And the icosahedron. Now,&nbsp;&nbsp;

00:05:57.120 --> 00:06:02.640
these things come in pairs or duals where&nbsp;
the vertices and faces are in correspondence.&nbsp;&nbsp;

00:06:03.280 --> 00:06:09.120
So for example, if I take the cube and I put a&nbsp;
point at the center of each of its square faces&nbsp;&nbsp;

00:06:09.120 --> 00:06:16.480
and I connect those up, I get an octahedron and&nbsp;
vice versa. So the cube and octahedron are dual.&nbsp;&nbsp;

00:06:16.480 --> 00:06:22.720
The dodecahedron and icosahedron are dual and&nbsp;
the tetrahedron is dual to itself. Now aliens&nbsp;&nbsp;

00:06:22.720 --> 00:06:27.440
definitely know about these shapes if they've done&nbsp;
any math at all. Although they probably don't call&nbsp;&nbsp;

00:06:27.440 --> 00:06:34.800
them Platonic solids, unless perhaps Plato wasn't&nbsp;
all that he seemed. And it's a little mysterious&nbsp;&nbsp;

00:06:34.800 --> 00:06:38.960
that there are only five, but it's not that&nbsp;
hard to understand why. So remember, if you take&nbsp;&nbsp;

00:06:38.960 --> 00:06:45.280
a six-sided hexagon, which is the only kind of&nbsp;
hexagon, these actually tile the plane if you put&nbsp;&nbsp;

00:06:45.280 --> 00:06:50.080
them next to each other. And we can see why if you&nbsp;
look at the place where three of these touch, uh,&nbsp;&nbsp;

00:06:50.080 --> 00:06:56.240
the angles there are each 120°, which adds up to&nbsp;
360°. So you've used up all of the space. There's&nbsp;&nbsp;

00:06:56.240 --> 00:07:03.120
no way to wrap around. Compare the dodecahedron&nbsp;
where the internal angles are 108°. So three of&nbsp;&nbsp;

00:07:03.120 --> 00:07:09.680
them together makes 324° which means that they can&nbsp;
curve around. But you couldn't fit four pentagons.&nbsp;&nbsp;

00:07:09.680 --> 00:07:15.120
And if you only had two, that wouldn't make a&nbsp;
solid. So three is the only way. And similarly,&nbsp;&nbsp;

00:07:15.120 --> 00:07:19.840
there's only one way to line up squares around a&nbsp;
point. So that's the cube. And it turns out there&nbsp;&nbsp;

00:07:19.840 --> 00:07:25.520
are three ways to arrange equilateral triangles&nbsp;
around a point. So that's why there's only five.&nbsp;&nbsp;

00:07:25.520 --> 00:07:30.960
You might find yourself wanting a sequel to the&nbsp;
platonic solids because they're so nice. And there&nbsp;&nbsp;

00:07:30.960 --> 00:07:36.640
are some related polyhedra that we can have if we&nbsp;
just relax our constraints a little bit. First,&nbsp;&nbsp;

00:07:36.640 --> 00:07:42.000
let's talk about the Catalan solids. These are&nbsp;
convex solids like the platonic solids whose&nbsp;&nbsp;

00:07:42.000 --> 00:07:48.640
faces are polygons. And here we require that all&nbsp;
of the faces are exactly the same shape which we&nbsp;&nbsp;

00:07:48.640 --> 00:07:53.840
call face transitive. One way to think about that&nbsp;
constraint is if you had paper cutouts of each of&nbsp;&nbsp;

00:07:53.840 --> 00:07:59.520
those shapes, you would only need one kind of&nbsp;
shape in order to tape them together. But the&nbsp;&nbsp;

00:07:59.520 --> 00:08:04.800
faces aren't necessarily regular polygons. And&nbsp;
for a similar reason that there are only five&nbsp;&nbsp;

00:08:04.800 --> 00:08:10.000
platonic solids, there are only 13 of these&nbsp;
possible. And then we have the Archimedean&nbsp;&nbsp;

00:08:10.000 --> 00:08:14.960
solids. These are convex solids that are vertex&nbsp;
transitive. And one way to think about what that&nbsp;&nbsp;

00:08:14.960 --> 00:08:21.760
means is if we were to 3D print little connectors&nbsp;
for sticks, you'd only need one type of connector&nbsp;&nbsp;

00:08:21.760 --> 00:08:27.120
in order to make these solids. There are also&nbsp;
13 of these. And as you might have guessed,&nbsp;&nbsp;

00:08:27.120 --> 00:08:32.560
because of this correspondence between faces and&nbsp;
vertices, each of the Catalan solids is dual to&nbsp;&nbsp;

00:08:32.560 --> 00:08:37.360
one of the Archimedean solids. And the Platonic&nbsp;
solids are really like the intersection of both&nbsp;&nbsp;

00:08:37.360 --> 00:08:41.120
of these groups, although we don't count them&nbsp;
that way. That's why platonic solids are dual&nbsp;&nbsp;

00:08:41.120 --> 00:08:47.840
to platonic solids. It works out beautifully.&nbsp;
It's Schläfli. But get ready to start feeling a&nbsp;&nbsp;

00:08:47.840 --> 00:08:54.320
little upset. So remember that the dodecahedron&nbsp;
and the cube and in fact all of the platonic&nbsp;&nbsp;

00:08:54.320 --> 00:09:00.400
solids have the Rupert property. They can pass&nbsp;
through themselves. And if you keep reading this&nbsp;&nbsp;

00:09:00.400 --> 00:09:06.240
Wikipedia article, it will say it is conjectured&nbsp;
that all three-dimensional convex polyhedra&nbsp;&nbsp;

00:09:06.240 --> 00:09:11.200
have the Rupert property, which sounds really&nbsp;
nice. And I might have even gotten to sleep if&nbsp;&nbsp;

00:09:11.200 --> 00:09:16.480
I had just stopped reading at that point. But&nbsp;
then it just casually throws out a line like,&nbsp;&nbsp;

00:09:16.480 --> 00:09:23.440
"Of the 13 Archimedean solids, it is known that&nbsp;
at least 10 have the Rupert property. Like there's&nbsp;&nbsp;

00:09:23.440 --> 00:09:31.520
three more. Did nobody check? It doesn't even&nbsp;
seem that hard." So that started to bother me.&nbsp;&nbsp;

00:09:31.520 --> 00:09:37.280
How could it be the case that we've conjectured&nbsp;
that this holds for all convex polyhedra but&nbsp;&nbsp;

00:09:37.280 --> 00:09:43.760
only know how to do it for 10 of these really&nbsp;
well-known solids? But even worse, down here&nbsp;&nbsp;

00:09:43.760 --> 00:09:47.920
we have the duals of each of those Archimedean&nbsp;
solids, which are the Catalan solids. And if you&nbsp;&nbsp;

00:09:47.920 --> 00:09:54.240
keep reading, you'll find that of the 13 Catalan&nbsp;
solids, it is known that at least 11 have the&nbsp;&nbsp;

00:09:54.240 --> 00:09:59.760
Rupert property. And even more annoyingly, for&nbsp;
the Archimedean ones that are solvable, their&nbsp;&nbsp;

00:09:59.760 --> 00:10:07.040
duals are all solvable. But then also the dual of&nbsp;
the snub cube, which we don't know a solution to,&nbsp;&nbsp;

00:10:07.040 --> 00:10:15.760
is solvable. So this just doesn't seem right. So&nbsp;
there goes my chances of sleeping. This is in my&nbsp;&nbsp;

00:10:15.760 --> 00:10:24.400
mind, whoever left these here, it's like perfect&nbsp;
nerd sniping, like nerd landmines. And it worked.&nbsp;&nbsp;

00:10:24.400 --> 00:10:29.600
I thought it's totally plausible that not that&nbsp;
many people have tried seriously this problem.&nbsp;&nbsp;

00:10:29.600 --> 00:10:34.320
And I'm definitely not the best mathematician&nbsp;
to have tried, but it's plausible that I might&nbsp;&nbsp;

00:10:34.320 --> 00:10:40.560
be the best programmer to try or at least the&nbsp;
one with the largest and hottest GPU out there.

00:10:40.560 --> 00:10:45.760
I always try to buy these ridiculous beasts for&nbsp;
my programming projects and and other things.&nbsp;&nbsp;

00:10:45.760 --> 00:10:52.800
The 4090 is no longer the fastest, but I think&nbsp;
it is the world's physically largest GPU. Uh,&nbsp;&nbsp;

00:10:52.800 --> 00:10:59.920
it's just... you have to plug this thing in six&nbsp;
times! I literally broke my computer trying to get&nbsp;&nbsp;

00:10:59.920 --> 00:11:06.320
it in the case. So, I "had to" buy an entirely new&nbsp;
computer. So, I thought maybe I can find solutions&nbsp;&nbsp;

00:11:06.320 --> 00:11:14.400
to some of these five unknown polyhedra, which&nbsp;
I'll call the wishlist polyhedra. And you know,&nbsp;&nbsp;

00:11:14.400 --> 00:11:18.240
if I don't solve it, at least I'll have learned&nbsp;
something because it just doesn't seem right that&nbsp;&nbsp;

00:11:18.240 --> 00:11:24.080
we would think it's true for all of them, but not&nbsp;
find it for these three simple ones. And anyway,&nbsp;&nbsp;

00:11:24.080 --> 00:11:30.560
I could whip this up in a day or maybe a weekend.&nbsp;
And I'll just put it aside if I can't solve it.&nbsp;&nbsp;

00:11:30.560 --> 00:11:36.960
Well, you can imagine how that turned out.&nbsp;
But good news, I have a lot more to tell you.

00:11:36.960 --> 00:11:43.680
Now I should mention the reason that we know that&nbsp;
some of the PAC polyhedra have the Rupert property&nbsp;&nbsp;

00:11:43.680 --> 00:11:49.760
is because of the related work. Um and you know&nbsp;
you can read this. I did not read this. I don't&nbsp;&nbsp;

00:11:49.760 --> 00:11:56.080
like to get spoilers when I'm trying to figure&nbsp;
something out. It is part of the fun to rediscover&nbsp;&nbsp;

00:11:56.080 --> 00:12:01.600
things. That's why it's called re-search. So I've&nbsp;
described the Rupert property informally. But in&nbsp;&nbsp;

00:12:01.600 --> 00:12:06.320
order to get into any detail about this, we're&nbsp;
going to need to say what we actually mean. And&nbsp;&nbsp;

00:12:06.320 --> 00:12:12.320
we will get into detail here. This whole video&nbsp;
is going to be about cubes and dodecahedra and&nbsp;&nbsp;

00:12:12.320 --> 00:12:18.400
stuff like that. So let's get more precise. What&nbsp;
do we mean when we say that a shape can go through&nbsp;&nbsp;

00:12:18.400 --> 00:12:24.000
itself? So first of all, this idea of convexity&nbsp;
is going to come up several times. The 3D solids&nbsp;&nbsp;

00:12:24.000 --> 00:12:29.360
we're concerned with here are convex. Basically,&nbsp;
this means it doesn't have any indentations. One&nbsp;&nbsp;

00:12:29.360 --> 00:12:32.800
way to think about this is that you have a set&nbsp;
of points. Those are the vertices. and you kind&nbsp;&nbsp;

00:12:32.800 --> 00:12:39.120
of shrink wrap the surface of the shape is the&nbsp;
minimal surface that contains all those points.&nbsp;&nbsp;

00:12:39.120 --> 00:12:46.160
And we're specifically concerned with polyhedra&nbsp;
here where the faces of this shape are flat. So&nbsp;&nbsp;

00:12:46.160 --> 00:12:50.240
I'll take two copies of this convex shape and&nbsp;
I need to arrange them in such a way that one&nbsp;&nbsp;

00:12:50.240 --> 00:12:54.480
can pass through the other. And I'll call the&nbsp;
one that goes through the inner one and the one&nbsp;&nbsp;

00:12:54.480 --> 00:13:00.800
that has gone through the outer one. I have the&nbsp;
freedom to move these shapes around and to orient&nbsp;&nbsp;

00:13:00.800 --> 00:13:06.800
them however I want. This is a rigid frame.&nbsp;
No stretching, no flipping. It's what you're&nbsp;&nbsp;

00:13:06.800 --> 00:13:12.400
thinking of. Just move the thing around in space.&nbsp;
And then once they're set up like this, I'm going&nbsp;&nbsp;

00:13:12.400 --> 00:13:18.640
to project both of them along the Z-axis. I just&nbsp;
need to pick some axis. Z works well. This is an&nbsp;&nbsp;

00:13:18.640 --> 00:13:23.600
orthographic projection. So everything is not&nbsp;
there's no perspective. Every point is just&nbsp;&nbsp;

00:13:23.600 --> 00:13:29.760
projected onto the XY plane. And both of the&nbsp;
shapes create a shadow, the inner shadow and&nbsp;&nbsp;

00:13:29.760 --> 00:13:37.200
the outer shadow. And the question will be, is the&nbsp;
inner shadow inside the outer shadow. Now, this is&nbsp;&nbsp;

00:13:37.200 --> 00:13:41.280
hard to draw from the side, and I did a terrible&nbsp;
job. It looks like it's not going to fit. So,&nbsp;&nbsp;

00:13:41.280 --> 00:13:45.920
I'm going to use the standard computer graphics&nbsp;
convention that we're looking down the Z-axis from&nbsp;&nbsp;

00:13:45.920 --> 00:13:52.640
the top. And the inner shape is kind of coming out&nbsp;
of our eyeballs. And then we'll just be thinking&nbsp;&nbsp;

00:13:52.640 --> 00:13:58.160
about what the shapes look like, the shadows&nbsp;
on the XY plane. And that's going to basically&nbsp;&nbsp;

00:13:58.160 --> 00:14:02.800
be the screen. And this makes sense because&nbsp;
when you move an object along a straight line,&nbsp;&nbsp;

00:14:02.800 --> 00:14:08.400
the shape of the hole it cuts is the same as&nbsp;
the shape of its shadow. So that's basically&nbsp;&nbsp;

00:14:08.400 --> 00:14:14.000
the definition. Some clarifications. One, when I&nbsp;
say that the inner shadow is entirely inside the&nbsp;&nbsp;

00:14:14.000 --> 00:14:19.040
outer shadow, I mean that it's strictly&nbsp;
inside. So it can't touch the boundary.&nbsp;&nbsp;

00:14:19.040 --> 00:14:24.560
If you let them touch, you'd have two problems.&nbsp;
One is that in the leftover shape, the residue,&nbsp;&nbsp;

00:14:24.560 --> 00:14:29.120
you would have a tiny sliver in your doughnut&nbsp;
in the side. So, it wouldn't really be a proper&nbsp;&nbsp;

00:14:29.120 --> 00:14:33.520
hole. Or at least you and I disagree on&nbsp;
what hole means. But if you allow touching,&nbsp;&nbsp;

00:14:33.520 --> 00:14:38.240
you get a worse problem, which is that the Rupert&nbsp;
property becomes trivial. because now you could&nbsp;&nbsp;

00:14:38.240 --> 00:14:44.720
take any solid uh and just put two copies of&nbsp;
it in the same orientation along the Z-axis and&nbsp;&nbsp;

00:14:44.720 --> 00:14:49.680
they're going to have exactly the same shadow.&nbsp;
So, it fits cleanly through and leaves nothing&nbsp;&nbsp;

00:14:49.680 --> 00:14:55.120
behind. And this is not what we mean. This will&nbsp;
turn out to be a pain. Uh because we're going&nbsp;&nbsp;

00:14:55.120 --> 00:15:00.160
to frequently use inexact like floating point&nbsp;
representations. So, these trivial solutions&nbsp;&nbsp;

00:15:00.160 --> 00:15:05.040
will look really close to real solutions. On the&nbsp;
other hand, the fact that they can't touch is&nbsp;&nbsp;

00:15:05.040 --> 00:15:10.560
kind of nice because it means that if there is a&nbsp;
solution, there must be infinitely many solutions,&nbsp;&nbsp;

00:15:10.560 --> 00:15:16.480
right? There's a distance between the inner and&nbsp;
outer shadows. Therefore, I can move a little bit&nbsp;&nbsp;

00:15:16.480 --> 00:15:20.880
along that distance and find another solution.&nbsp;
And this is one of the reasons why I thought it&nbsp;&nbsp;

00:15:20.880 --> 00:15:26.880
might be computationally tractable, like it should&nbsp;
be locally smooth. That said, just because it's a&nbsp;&nbsp;

00:15:26.880 --> 00:15:32.160
finite distance does not mean it's big. And&nbsp;
we'll see some examples where it is not big.

00:15:32.160 --> 00:15:37.200
Okay, now some observations. I said I have an&nbsp;
inner frame and an outer frame. So I can rotate&nbsp;&nbsp;

00:15:37.200 --> 00:15:44.800
and move both of these. But note that if I move&nbsp;
them together, that doesn't change anything about&nbsp;&nbsp;

00:15:44.800 --> 00:15:48.720
the solution, right? It doesn't really matter&nbsp;
where they are. It just matters where they&nbsp;&nbsp;

00:15:48.720 --> 00:15:52.800
are relative to one another. For definitional&nbsp;
purposes, we're just going to have the general&nbsp;&nbsp;

00:15:52.800 --> 00:15:58.080
thing. But but in order to solve it, I actually&nbsp;
don't need to think about moving the outer one.&nbsp;&nbsp;

00:15:58.080 --> 00:16:03.600
I can just leave it where it is at the origin.&nbsp;
Um, and only move the inner one. Another thing is&nbsp;&nbsp;

00:16:03.600 --> 00:16:09.600
that I really only need to think about moving the&nbsp;
inner one in the X and Y directions. Right? If I&nbsp;&nbsp;

00:16:09.600 --> 00:16:14.640
move it in the Z direction, nothing changes about&nbsp;
its shadow. These are orthographic projections.&nbsp;&nbsp;

00:16:14.640 --> 00:16:20.720
No perspective. So, I really only need an XY&nbsp;
translation or position for the inner one and&nbsp;&nbsp;

00:16:20.720 --> 00:16:25.280
orientation for both of those. There are several&nbsp;
more interesting things to say here, but I want to&nbsp;&nbsp;

00:16:25.280 --> 00:16:31.040
make this more concrete by actually solving this&nbsp;
problem. And it turns out this is quite easy for&nbsp;&nbsp;

00:16:31.040 --> 00:16:36.160
like the cube and many other simple shapes. So&nbsp;
easy, in fact, that if you just choose random&nbsp;&nbsp;

00:16:36.160 --> 00:16:40.720
orientations and positions, you will luck into a&nbsp;
solution. So we'll come back to the interesting&nbsp;&nbsp;

00:16:40.720 --> 00:16:46.800
facts, but let's talk about choosing random&nbsp;
orientations so that we can see some solutions.&nbsp;&nbsp;

00:16:48.080 --> 00:16:54.240
So if you have a cube or any 3D shape and you want&nbsp;
to rotate it around, one of the classic ways to do&nbsp;&nbsp;

00:16:54.240 --> 00:17:00.640
this is with Euler angles. This is conceptually&nbsp;
simple. Take each of the axes in turn X, Y,&nbsp;&nbsp;

00:17:00.640 --> 00:17:07.200
and Z and perform a rotation around that axis.&nbsp;
So the orientation is given by three parameters,&nbsp;&nbsp;

00:17:07.200 --> 00:17:12.880
the amount of rotation along each axis. These are&nbsp;
called Euler angles. The Greeks will call these&nbsp;&nbsp;

00:17:12.880 --> 00:17:18.720
by a single letter, but pilots will describe&nbsp;
these as yaw, pitch, and roll, which I used to&nbsp;&nbsp;

00:17:18.720 --> 00:17:24.160
have trouble remembering which one is which, but&nbsp;
this helpful mnemonic from Wikipedia cleared it up&nbsp;&nbsp;

00:17:24.160 --> 00:17:29.520
for me. I think cat roll is pretty reasonable,&nbsp;
and pitcher is useful because you famously use&nbsp;&nbsp;

00:17:29.520 --> 00:17:38.160
a pitcher by holding the handle away from you and&nbsp;
then pouring towards yourself. But door for yaw is&nbsp;&nbsp;

00:17:38.160 --> 00:17:43.680
either a really generous dialect or they're just&nbsp;
trolling me, which I love. I deserve it. Anyway,&nbsp;&nbsp;

00:17:43.680 --> 00:17:48.880
Euler angles are actually a pretty bad way to do&nbsp;
this for especially for computational geometry.&nbsp;&nbsp;

00:17:48.880 --> 00:17:54.800
Famously, Euler wasn't that good at math. So, he&nbsp;
didn't he didn't know how to do this a good way.&nbsp;&nbsp;

00:17:54.800 --> 00:17:59.920
And the reason is if you were to sample these&nbsp;
parameters uh the yaw, pitch and roll because&nbsp;&nbsp;

00:17:59.920 --> 00:18:04.640
this is order dependent you end up getting a&nbsp;
pretty biased distribution of orientations that&nbsp;&nbsp;

00:18:04.640 --> 00:18:10.400
the object could be in. And this is related to the&nbsp;
phenomenon of gimbal lock. So in math and computer&nbsp;&nbsp;

00:18:10.400 --> 00:18:16.240
graphics we like to use quaternions which are the&nbsp;
mysterious younger sibling of the complex numbers&nbsp;&nbsp;

00:18:16.240 --> 00:18:22.000
even more complex. And so like in the complex&nbsp;
numbers you have i. In the quaternions you have i,&nbsp;&nbsp;

00:18:22.000 --> 00:18:27.440
j and k. And sometimes multiplying those together&nbsp;
will give you negative 1. And then a quaternion&nbsp;&nbsp;

00:18:27.440 --> 00:18:35.520
is four regular numbers real numbers x y z and&nbsp;
w which are the coefficients of i, j, k. And&nbsp;&nbsp;

00:18:35.520 --> 00:18:41.760
then w is the real part. And the cool thing about&nbsp;
this is that every quaternion except for the zero&nbsp;&nbsp;

00:18:41.760 --> 00:18:48.640
quaternion corresponds to a specific orientation&nbsp;
of something like the cube. Unlike Euler angles&nbsp;&nbsp;

00:18:48.640 --> 00:18:53.440
where you have the poles and something special&nbsp;
happens at the poles like gimbal lock, quaternions&nbsp;&nbsp;

00:18:53.440 --> 00:18:58.720
are sort of smooth everywhere. And this is one of&nbsp;
the reasons we like them in computer graphics. If&nbsp;&nbsp;

00:18:58.720 --> 00:19:03.440
this video doesn't get too long, I will talk&nbsp;
about some cool tricks using quaternions. But&nbsp;&nbsp;

00:19:03.440 --> 00:19:07.680
all you really need to remember is that each&nbsp;
quaternion is four numbers. So it's like a&nbsp;&nbsp;

00:19:07.680 --> 00:19:13.440
four-dimensional vector. And it's often convenient&nbsp;
to use unit quaternions where that vector has&nbsp;&nbsp;

00:19:13.440 --> 00:19:19.360
length one. And in fact, in order to sample random&nbsp;
orientations uniformly, a good way to do this is&nbsp;&nbsp;

00:19:19.360 --> 00:19:25.200
to just generate random unit 4D vectors. That's&nbsp;
the same as saying I want to generate random&nbsp;&nbsp;

00:19:25.200 --> 00:19:31.600
samples on the surface of a 4D hypersphere.&nbsp;
And to get a point on the surface of a sphere,&nbsp;&nbsp;

00:19:31.600 --> 00:19:36.320
it suffices to find a point inside the sphere&nbsp;
and then move it to the closest point on the&nbsp;&nbsp;

00:19:36.320 --> 00:19:40.800
sphere. So let's talk about how to do that. Now,&nbsp;
when I'm sampling stuff, it's easy to get fancy,&nbsp;&nbsp;

00:19:40.800 --> 00:19:45.440
but my favorite trick is rejection sampling.&nbsp;
This is one that's good to have in your toolbox&nbsp;&nbsp;

00:19:45.440 --> 00:19:52.320
and to just remember. So, typically you'll have&nbsp;
some function that can sample a number, like a&nbsp;&nbsp;

00:19:52.320 --> 00:19:58.560
number between zero and one, and you could sample&nbsp;
two numbers. So then you get a two-dimensional&nbsp;&nbsp;

00:19:58.560 --> 00:20:03.520
sample. So now I have samples that are uniformly&nbsp;
distributed within a square. And then if I want&nbsp;&nbsp;

00:20:03.520 --> 00:20:10.960
uniform samples from say a circle, I put a circle&nbsp;
in that square. Or really I describe the property&nbsp;&nbsp;

00:20:10.960 --> 00:20:17.200
of the sample that I want which is that the&nbsp;
distance from the origin is less than 1/2 in this&nbsp;&nbsp;

00:20:17.200 --> 00:20:24.160
case. Remember I can't fit a unit circle inside a&nbsp;
unit square. Then to perform rejection sampling,&nbsp;&nbsp;

00:20:24.160 --> 00:20:30.400
I just sample from the square. And whenever my&nbsp;
point has the property that I want, I keep it.&nbsp;&nbsp;

00:20:30.400 --> 00:20:34.720
And whenever it doesn't, I discard it and I&nbsp;
try again. You can do this for any shape that&nbsp;&nbsp;

00:20:34.720 --> 00:20:40.640
you can specify as long as it fits within your uh&nbsp;
original sampling region. Now, you do waste some&nbsp;&nbsp;

00:20:40.640 --> 00:20:46.800
samples. So the efficiency of this can be thought&nbsp;
of as the ratio of the size of the good region,&nbsp;&nbsp;

00:20:46.800 --> 00:20:53.200
the circle, to the full region, the square. And&nbsp;
for 2D, this is pi over 4 or about 79%. Which is&nbsp;&nbsp;

00:20:53.200 --> 00:20:59.200
perfectly good. I'm going to want 4D samples. But&nbsp;
first, let's look at 3D. Here we have a cube. So&nbsp;&nbsp;

00:20:59.200 --> 00:21:06.560
I generate three random numbers. And this time&nbsp;
the volume of the sphere is 4 pi over 3. And&nbsp;&nbsp;

00:21:06.560 --> 00:21:14.080
the cube is still volume 1. So this gives us an&nbsp;
efficiency of 52%. Which is also fine. But you may&nbsp;&nbsp;

00:21:14.080 --> 00:21:20.480
be noticing an annoying pattern here. Not quite&nbsp;
upsetting yet. Now if I go to four dimensions I&nbsp;&nbsp;

00:21:20.480 --> 00:21:26.960
have a hypercube which is still hypervolume one&nbsp;
but the hypersphere... starts to look weird.&nbsp;&nbsp;

00:21:26.960 --> 00:21:33.280
I know a sphere looks like a 3D circle, like it&nbsp;
sort of makes sense, but 4D spheres are weirdly&nbsp;&nbsp;

00:21:33.280 --> 00:21:40.080
spiky. And the efficiency drops to 31%. This&nbsp;
is the fraction of points that fall within the&nbsp;&nbsp;

00:21:40.080 --> 00:21:46.000
hypersphere when I sample from the hypercube. Now&nbsp;
the upsetting thing is that as I go to higher and&nbsp;&nbsp;

00:21:46.000 --> 00:21:51.840
higher dimensions the hypercube—the n-dimensional&nbsp;
hypercube—will continue to have hypervolume&nbsp;&nbsp;

00:21:51.840 --> 00:21:58.000
one but the n-dimensional hypersphere will get&nbsp;
smaller and smaller. Its volume approaches zero,&nbsp;&nbsp;

00:21:58.000 --> 00:22:02.640
which is totally weird. I don't know how to&nbsp;
wrap my head around that but it is true. So this&nbsp;&nbsp;

00:22:02.640 --> 00:22:10.160
technique tends towards perfect zero efficiency&nbsp;
in the limit, which isn't great, but my computer&nbsp;&nbsp;

00:22:10.160 --> 00:22:17.680
can generate billions of samples per second and I&nbsp;
only need two. So 31% will do fine. We're going to&nbsp;&nbsp;

00:22:17.680 --> 00:22:22.240
see at least one more example of things getting&nbsp;
weird as you get to higher dimensions. But now&nbsp;&nbsp;

00:22:22.240 --> 00:22:27.040
that I can generate random orientations,&nbsp;
let's use it to construct some solutions.

00:22:27.760 --> 00:22:32.560
So now I can come up with random orientations&nbsp;
and positions for the shapes. But I want to&nbsp;&nbsp;

00:22:32.560 --> 00:22:37.600
test whether I have a solution. And to do that,&nbsp;
I need to test whether the inner shadow is inside&nbsp;&nbsp;

00:22:37.600 --> 00:22:43.840
the outer shadow. Remember that I project all of&nbsp;
the vertices of the shape onto the XY plane by&nbsp;&nbsp;

00:22:43.840 --> 00:22:47.760
just throwing away the z coordinate. That's what&nbsp;
an orthographic projection is. And so that gives&nbsp;&nbsp;

00:22:47.760 --> 00:22:53.280
me a set of 2D points. And I want to know what&nbsp;
shadow that represents. Luckily, these are convex&nbsp;&nbsp;

00:22:53.280 --> 00:22:59.120
solids. So the 3D solid's shape is determined&nbsp;
just from its vertices. And similarly, the 2D&nbsp;&nbsp;

00:22:59.120 --> 00:23:04.000
shadow is determined just from the set of points.&nbsp;
The shape we're looking for here in 2D is called&nbsp;&nbsp;

00:23:04.000 --> 00:23:10.960
the convex hull. And it's a convex polygon that&nbsp;
contains all of the points. And you can find a lot&nbsp;&nbsp;

00:23:10.960 --> 00:23:15.120
of descriptions of algorithms for computing this&nbsp;
and computing it efficiently. It's a pretty cool&nbsp;&nbsp;

00:23:15.120 --> 00:23:23.280
problem. You can also find a lot of slightly buggy&nbsp;
code on the internet for computing it. Again,&nbsp;&nbsp;

00:23:23.280 --> 00:23:27.600
I had to implement it myself. When you're working&nbsp;
with these really regular shapes, you end up&nbsp;&nbsp;

00:23:27.600 --> 00:23:33.280
getting points that are in special positions. And&nbsp;
when I'm doing optimization, it sort of optimizes&nbsp;&nbsp;

00:23:33.280 --> 00:23:38.560
for those situations. And so that tends to find&nbsp;
bugs really quickly in other people's code when&nbsp;&nbsp;

00:23:38.560 --> 00:23:43.200
they were a little sloppy. But just to give you&nbsp;
a sense of what this algorithm might look like,&nbsp;&nbsp;

00:23:43.200 --> 00:23:49.280
let's start with a point set. This is going to be&nbsp;
called the gift wrap algorithm whose name almost&nbsp;&nbsp;

00:23:49.280 --> 00:23:54.240
describes how it works. So, we need to start&nbsp;
with a point that's on the convex hull. And the&nbsp;&nbsp;

00:23:54.240 --> 00:23:59.280
simplest way to do that is to pick the leftmost&nbsp;
bottommost point. So, that's this one. Then,&nbsp;&nbsp;

00:23:59.280 --> 00:24:05.360
what I'm going to do is look at every other point&nbsp;
and pick the one with the smallest angle, say,&nbsp;&nbsp;

00:24:05.360 --> 00:24:10.640
from the y-axis. And the one with the smallest&nbsp;
angle will be my next point. From here on out,&nbsp;&nbsp;

00:24:10.640 --> 00:24:16.960
the last two points will form an edge. And I'll&nbsp;
judge the angles with respect to that edge. And&nbsp;&nbsp;

00:24:16.960 --> 00:24:23.120
so, I'll be wrapping these edges. That's the gift&nbsp;
wrap around the outside of the point set. And when&nbsp;&nbsp;

00:24:23.120 --> 00:24:29.280
I get back to the beginning, the vertices that&nbsp;
I found are my hull. That's an n^2 algorithm,&nbsp;&nbsp;

00:24:29.280 --> 00:24:35.920
but there are nice n log(n) algorithms for&nbsp;
this. Here's an animation of me testing my&nbsp;&nbsp;

00:24:35.920 --> 00:24:40.880
implementation on a whole bunch of points.&nbsp;
And now we can really test whether we have a&nbsp;&nbsp;

00:24:40.880 --> 00:24:47.280
solution. Take the projected outer points, compute&nbsp;
their convex hull using this algorithm. That gives&nbsp;&nbsp;

00:24:47.280 --> 00:24:52.800
me a polygon. Then look at the inner points and&nbsp;
every single one of those has to be within that&nbsp;&nbsp;

00:24:52.800 --> 00:24:57.360
polygon. It's a straightforward matter to test&nbsp;
whether a point is within a polygon. Especially&nbsp;&nbsp;

00:24:57.360 --> 00:25:03.440
a convex polygon. So here one of the points is&nbsp;
outside and so this is not a solution. And so&nbsp;&nbsp;

00:25:03.440 --> 00:25:08.320
that's it. We're done. You can also compute&nbsp;
the convex hull of the inner points and this&nbsp;&nbsp;

00:25:08.320 --> 00:25:12.240
can be useful because then you only need to&nbsp;
test points on the boundary but it's just an&nbsp;&nbsp;

00:25:12.240 --> 00:25:17.920
optimization. Speaking of optimization,&nbsp;
trying random solutions will work. You&nbsp;&nbsp;

00:25:17.920 --> 00:25:22.800
can easily find a solution to the cube this way,&nbsp;
but rather than starting over every single time,&nbsp;&nbsp;

00:25:22.800 --> 00:25:28.400
it's better to try to tweak candidate solutions if&nbsp;
they're close. For example, I probably could move&nbsp;&nbsp;

00:25:28.400 --> 00:25:34.640
this one inside or almost inside, and then maybe a&nbsp;
little rotation on top of that would make it fit.

00:25:34.640 --> 00:25:40.640
So, the first thing I tried is to use a black box&nbsp;
optimizer, which is a nice tool for lazy people&nbsp;&nbsp;

00:25:40.640 --> 00:25:46.000
like me. And this is a library that optimizes over&nbsp;
a function that you wrote. The function you wrote,&nbsp;&nbsp;

00:25:46.000 --> 00:25:51.920
you might call the loss function. And that&nbsp;
thing takes in some fixed number of parameters,&nbsp;&nbsp;

00:25:51.920 --> 00:25:58.560
which are all just real numbers, doubles, and&nbsp;
returns a score. And the black box optimizer's&nbsp;&nbsp;

00:25:58.560 --> 00:26:04.800
job is to find arguments that will give the&nbsp;
minimum score uh from your function. Now,&nbsp;&nbsp;

00:26:04.800 --> 00:26:11.920
this is impossible in general. It's literally&nbsp;
impossible. We could diagonalize it. But for&nbsp;&nbsp;

00:26:11.920 --> 00:26:16.880
problems that are smooth where solutions tend&nbsp;
to be close together and there's some gradient&nbsp;&nbsp;

00:26:16.880 --> 00:26:22.640
uh it works quite well. So in this formulation of&nbsp;
the Rupert problem I'll have 10 parameters. I'll&nbsp;&nbsp;

00:26:22.640 --> 00:26:27.280
have four quaternion parameters that represent&nbsp;
the outer orientation, four quaternion parameters&nbsp;&nbsp;

00:26:27.280 --> 00:26:33.120
that represent the inner orientation and then&nbsp;
two translation parameters in two dimensions&nbsp;&nbsp;

00:26:33.120 --> 00:26:38.640
and these have some natural bounds. Then I just&nbsp;
need some number that indicates how close this&nbsp;&nbsp;

00:26:38.640 --> 00:26:44.000
is to a solution. So in this function, I check&nbsp;
to see whether I have a solution. And if I do,&nbsp;&nbsp;

00:26:44.000 --> 00:26:49.200
I return like negative a million, like a really&nbsp;
good number. And remember, it's trying to find&nbsp;&nbsp;

00:26:49.200 --> 00:26:54.000
arguments that produce the lowest score. So it'll&nbsp;
be really happy when it gets a negative a million.&nbsp;&nbsp;

00:26:54.000 --> 00:27:00.240
Otherwise, for every point that's not inside the&nbsp;
outer shadow, I take the distance from that point&nbsp;&nbsp;

00:27:00.240 --> 00:27:05.280
um to the shadow, like the closest vector,&nbsp;
and I sum all of those distances together.&nbsp;&nbsp;

00:27:05.280 --> 00:27:10.400
Maybe I square it, something like that. And&nbsp;
so the further away the points are, the worse,&nbsp;&nbsp;

00:27:10.400 --> 00:27:15.120
the higher the number. And and so this will&nbsp;
encourage it to find configurations where the&nbsp;&nbsp;

00:27:15.120 --> 00:27:20.640
points are closer to the shadow and ideally all&nbsp;
within it. I also have to be very careful about&nbsp;&nbsp;

00:27:20.640 --> 00:27:24.640
a point landing exactly on the edge because&nbsp;
that's not allowed. And I really want it to&nbsp;&nbsp;

00:27:24.640 --> 00:27:32.240
avoid thinking that two identical shadows are a&nbsp;
solution. But that's what we call the fiddly bits.&nbsp;&nbsp;

00:27:32.240 --> 00:27:36.560
So I set that thing running and it can quickly&nbsp;
solve all of the platonic Archimedean and&nbsp;&nbsp;

00:27:36.560 --> 00:27:43.600
Catalan solids for which we already have&nbsp;
a solution thus contributing nothing.

00:27:43.600 --> 00:27:48.080
We can at least look at the solutions that it&nbsp;
comes up with, which is nice. You know it's one&nbsp;&nbsp;

00:27:48.080 --> 00:27:54.400
thing to see a claim that the dodecahedron can go&nbsp;
through the dodecahedron but it's another thing&nbsp;&nbsp;

00:27:54.400 --> 00:27:59.360
of course to see the dodecahedron go through&nbsp;
the dodecahedron. So, here are two dodecahedra&nbsp;&nbsp;

00:27:59.360 --> 00:28:04.880
that are the same size and they're stacked to&nbsp;
show the solution where the blue one's going&nbsp;&nbsp;

00:28:04.880 --> 00:28:09.760
to be able to pass through the red one by moving&nbsp;
along the Z-axis up and down. So, to illustrate,&nbsp;&nbsp;

00:28:09.760 --> 00:28:20.800
we can look at them from the very top looking&nbsp;
down the Z-axis. Zoom in a little bit. And now,&nbsp;&nbsp;

00:28:20.800 --> 00:28:25.920
see how the red one, you know, basically seeing&nbsp;
its shadow here. And we can see that its edge,&nbsp;&nbsp;

00:28:25.920 --> 00:28:32.560
which is its hull, is entirely on the outside of&nbsp;
the blue one's shadow, which is this edge. Right?&nbsp;&nbsp;

00:28:32.560 --> 00:28:40.400
So, it's going to fit through if it moves straight&nbsp;
down. And in fact, I can swap out the red one&nbsp;&nbsp;

00:28:40.400 --> 00:28:46.160
uh for the residue, which is the leftover shape&nbsp;
after this thing moves through it. And now,&nbsp;&nbsp;

00:28:46.160 --> 00:28:51.200
if we go back into the side view, you can&nbsp;
see that's what's going to be left over.&nbsp;&nbsp;

00:28:51.200 --> 00:28:59.840
And if I move this shape exactly along the Z-axis,&nbsp;
it will pass cleanly through it as expected. So,&nbsp;&nbsp;

00:28:59.840 --> 00:29:05.600
let's just put that on the dry salt bed.&nbsp;
The dodecahedron is the best of course,&nbsp;&nbsp;

00:29:05.600 --> 00:29:10.880
but it is good to learn about some of the&nbsp;
Archimedean and Catalan solids as well. Um,&nbsp;&nbsp;

00:29:10.880 --> 00:29:16.800
and if you do, you'll see them everywhere. This&nbsp;
is the rhombicuboctahedron, Archimedean solid&nbsp;&nbsp;

00:29:16.800 --> 00:29:22.400
seen here at the Cleveland Public Library. So&nbsp;
we can do that same demonstration. One notable&nbsp;&nbsp;

00:29:22.400 --> 00:29:28.320
thing here with the rhombicuboctahedron is&nbsp;
that the top one is actually oriented the&nbsp;&nbsp;

00:29:28.320 --> 00:29:34.560
normal way. It's sitting on its bottom face. This&nbsp;
is not unusual for these solutions. It's often,&nbsp;&nbsp;

00:29:34.560 --> 00:29:38.800
but not always the case that you want the sides&nbsp;
to be parallel to the projection axis because&nbsp;&nbsp;

00:29:38.800 --> 00:29:42.400
then when those faces go through, they're not&nbsp;
contributing to the size of the hole. We did&nbsp;&nbsp;

00:29:42.400 --> 00:29:48.160
that with the cube and we cut a square shaped&nbsp;
hole. All such successes belong on the dry salt&nbsp;&nbsp;

00:29:48.160 --> 00:29:55.520
bed. this time rendered in mirror and glass to&nbsp;
honor the one that I kissed at that library. Um,&nbsp;&nbsp;

00:29:55.520 --> 00:30:04.960
bad news though, you can't see your own reflection&nbsp;
in this mirror and um, that means you're a ghost.

00:30:04.960 --> 00:30:08.320
So, it's fun to look at these solutions. I&nbsp;
guess I could be tricking you here, right?&nbsp;&nbsp;

00:30:08.320 --> 00:30:13.280
Like they could be I could have made it like 1%&nbsp;
smaller. So, if you really need to verify them,&nbsp;&nbsp;

00:30:13.280 --> 00:30:19.120
you could download these from my website or you&nbsp;
could run it all yourself. Uh, it's really fast,&nbsp;&nbsp;

00:30:19.120 --> 00:30:23.680
but I thought maybe I need to make it faster.&nbsp;
It's possible that the five remaining polyhedra,&nbsp;&nbsp;

00:30:23.680 --> 00:30:28.880
the ones we don't have solutions for, that they&nbsp;
might the solutions might exist, but be really&nbsp;&nbsp;

00:30:28.880 --> 00:30:33.680
delicate. So, I figured a competitive advantage&nbsp;
is that I can churn through a lot of these cuz,&nbsp;&nbsp;

00:30:33.680 --> 00:30:38.960
you know, I'm like a reasonably good programmer.&nbsp;
I could make a GPU-based solver that would try&nbsp;&nbsp;

00:30:38.960 --> 00:30:44.480
like millions of them in parallel and just&nbsp;
try an enormous number of possibilities.&nbsp;&nbsp;

00:30:44.480 --> 00:30:51.120
So let's briefly look at what that looks like.&nbsp;
In a lot of ways, the GPU is well suited for this&nbsp;&nbsp;

00:30:51.120 --> 00:30:56.960
kind of problem. Fundamentally, what it does well&nbsp;
is take like an array of floating point numbers&nbsp;&nbsp;

00:30:56.960 --> 00:31:03.280
and do the same thing to them. The GPU can be&nbsp;
used for computer game graphics, which I do&nbsp;&nbsp;

00:31:03.280 --> 00:31:09.200
like. But part of the reason I can justify to&nbsp;
myself buying these ridiculous graphics cards&nbsp;&nbsp;

00:31:09.200 --> 00:31:15.360
is that you can also use them for these kinds of&nbsp;
computational tasks. So, what I want to do here is&nbsp;&nbsp;

00:31:15.360 --> 00:31:21.360
try a whole bunch of different possibilities for&nbsp;
fitting one shape within the other at the same&nbsp;&nbsp;

00:31:21.360 --> 00:31:25.760
time. And this is an iterative process, where I'll&nbsp;
update and make the fit a little bit better over&nbsp;&nbsp;

00:31:25.760 --> 00:31:32.960
time until I succeed or give up. So, I might have&nbsp;
like a million different configurations. And each&nbsp;&nbsp;

00:31:32.960 --> 00:31:38.240
one of these is those quaternions which represent&nbsp;
the orientation and a translation. And I can start&nbsp;&nbsp;

00:31:38.240 --> 00:31:43.120
with just random ones. And then for each one of&nbsp;
those in parallel, I'm going to check to see if&nbsp;&nbsp;

00:31:43.120 --> 00:31:49.200
it's a solution. It probably isn't. Otherwise,&nbsp;
I'm going to figure out a way to move it so that&nbsp;&nbsp;

00:31:49.200 --> 00:31:54.720
it'll be a little bit more like a solution. This&nbsp;
will give me a new parameter to try and just keep&nbsp;&nbsp;

00:31:54.720 --> 00:31:59.840
doing that. This is the standard idea of gradient&nbsp;
descent. So, let's say there are two parameters&nbsp;&nbsp;

00:31:59.840 --> 00:32:07.280
and you have this topo map representing uh some&nbsp;
function. Here the function is like how well does&nbsp;&nbsp;

00:32:07.280 --> 00:32:12.240
one shape fit inside the other. And we don't have&nbsp;
two parameters. We have like eight. But the goal&nbsp;&nbsp;

00:32:12.240 --> 00:32:16.720
is to minimize the error. So we're trying to find&nbsp;
the lowest point in this map. But we don't know&nbsp;&nbsp;

00:32:16.720 --> 00:32:21.520
what the map looks like. We just can measure it at&nbsp;
any given point. So the idea is we start with some&nbsp;&nbsp;

00:32:21.520 --> 00:32:26.960
point. We want to look at the local slope around&nbsp;
that point and sort of go downhill. That gives&nbsp;&nbsp;

00:32:26.960 --> 00:32:31.200
us a new point and we just repeat this process.&nbsp;
That idea of following the slope is extremely&nbsp;&nbsp;

00:32:31.200 --> 00:32:36.960
powerful. This is essentially how large language&nbsp;
models work. One problem is I don't quite have&nbsp;&nbsp;

00:32:36.960 --> 00:32:42.560
the gradient. I have a notion of error which&nbsp;
is how far are the points outside of the hull&nbsp;&nbsp;

00:32:42.560 --> 00:32:48.320
here. But I'm not good enough at math to work out&nbsp;
how those depend on the parameters. And it's not&nbsp;&nbsp;

00:32:48.320 --> 00:32:52.880
really differentiable anyway because as soon as&nbsp;
a point reaches the hull, its error becomes zero.

00:32:52.880 --> 00:32:55.840
So problem one is that I need to&nbsp;
be able to estimate a gradient.&nbsp;&nbsp;

00:32:55.840 --> 00:33:01.120
And I used a classic crappy trick for&nbsp;
this which is to estimate the gradient&nbsp;&nbsp;

00:33:01.120 --> 00:33:06.800
locally by computing a few points near each&nbsp;
point like in each of the cardinal directions&nbsp;&nbsp;

00:33:06.800 --> 00:33:12.400
and assuming that it's locally linear. This works&nbsp;
fine for say two dimensions where there are four&nbsp;&nbsp;

00:33:12.400 --> 00:33:18.320
cardinal directions but with eight dimensions&nbsp;
we have like 256. And so instead of doing 1&nbsp;&nbsp;

00:33:18.320 --> 00:33:25.040
million tests I'm doing like 257 million&nbsp;
tests. But that's all right. I got a GPU.

00:33:25.040 --> 00:33:29.280
The other problem is a little bit more annoying,&nbsp;
which is I really want to compute convex hulls of&nbsp;&nbsp;

00:33:29.280 --> 00:33:33.840
these shapes when I project them to 2D because&nbsp;
that makes it much easier to ask the question,&nbsp;&nbsp;

00:33:33.840 --> 00:33:39.360
is this point inside that one's shadow? And&nbsp;
although I have a nice convex hull implementation,&nbsp;&nbsp;

00:33:39.360 --> 00:33:44.720
several in fact, these are not very good on the&nbsp;
GPU. They have a lot of branching. Some of them&nbsp;&nbsp;

00:33:44.720 --> 00:33:50.000
are even recursive and, like, OpenCL does&nbsp;
not even support recursion. It really wants&nbsp;&nbsp;

00:33:50.000 --> 00:33:56.000
you to be writing straight line math code.&nbsp;
So that's sort of a downside of the GPU,&nbsp;&nbsp;

00:33:56.000 --> 00:34:01.920
but we can use its one superpower, which is&nbsp;
that it can do a lot wastefully parallel. So&nbsp;&nbsp;

00:34:01.920 --> 00:34:05.680
what I actually do is I just triangulate&nbsp;
the polyhedra. That means every face just&nbsp;&nbsp;

00:34:05.680 --> 00:34:09.840
becomes triangles like in a computer&nbsp;
game. And so when I project the shape,&nbsp;&nbsp;

00:34:09.840 --> 00:34:14.000
I just get a bunch of triangles in the plane. And&nbsp;
for the other one, the green one, I'm just going&nbsp;&nbsp;

00:34:14.000 --> 00:34:18.880
to check all of its points regardless of whether&nbsp;
they're on the hull or not. And what I'll be doing&nbsp;&nbsp;

00:34:18.880 --> 00:34:25.520
is testing for every red triangle and every green&nbsp;
dot is the green dot inside the triangle. And if&nbsp;&nbsp;

00:34:25.520 --> 00:34:32.000
it's in none of the triangles, then it gets some&nbsp;
error to the closest triangle. And this is what&nbsp;&nbsp;

00:34:32.000 --> 00:34:37.040
determines our gradient. So this is what they&nbsp;
mean when they say embarrassingly parallel.&nbsp;&nbsp;

00:34:37.040 --> 00:34:42.240
This algorithm is very uninteresting now.&nbsp;
But you know, instead of doing 65 million&nbsp;&nbsp;

00:34:42.240 --> 00:34:49.440
clever things, we can just do 128 billion&nbsp;
stupid things. And that adds up to the same.

00:34:49.440 --> 00:34:54.720
Well, not quite the same. There is one there's one&nbsp;
interesting complexity here. Remember that a green&nbsp;&nbsp;

00:34:54.720 --> 00:35:01.200
dot needs to be strictly within the red shadow.&nbsp;
That means not on an edge. But now that we've&nbsp;&nbsp;

00:35:01.200 --> 00:35:05.920
separated the shadow up into these triangles,&nbsp;
we have triangle edges that are on the inside&nbsp;&nbsp;

00:35:05.920 --> 00:35:12.160
of the shadow. And so if a point lands exactly on&nbsp;
a triangle, we might think it's actually outside.&nbsp;&nbsp;

00:35:12.160 --> 00:35:18.640
Sometimes this is unavoidable. Like imagine the&nbsp;
cube. If you could imagine such a thing. And I'll&nbsp;&nbsp;

00:35:18.640 --> 00:35:22.560
just triangulate the top and bottom faces so&nbsp;
this is easier to see. Then I imagine that I&nbsp;&nbsp;

00:35:22.560 --> 00:35:28.480
have a green point somewhere on this line in the&nbsp;
center of the cube. So these points except for&nbsp;&nbsp;

00:35:28.480 --> 00:35:33.200
the ones on the top and the bottom are within the&nbsp;
cube. But if I look at this thing from the top,&nbsp;&nbsp;

00:35:33.200 --> 00:35:39.600
there's no way for that green dot to be inside&nbsp;
all of the triangles because there's an edge&nbsp;&nbsp;

00:35:39.600 --> 00:35:44.880
that goes through the center regardless of how I&nbsp;
triangulated it. So, this approach could actually&nbsp;&nbsp;

00:35:44.880 --> 00:35:50.400
fail to detect a real solution. But that's&nbsp;
okay because there's an infinite number of&nbsp;&nbsp;

00:35:50.400 --> 00:35:55.920
possibilities here and I'm not going to check&nbsp;
them all. And so, if I might miss some. Well,&nbsp;&nbsp;

00:35:55.920 --> 00:36:02.560
that's just the cost of doing business. So, the&nbsp;
solver does work. It's much faster than the CPU&nbsp;&nbsp;

00:36:02.560 --> 00:36:10.560
version, but it is also kind of warm. Uh, uses&nbsp;
a lot of power. And I actually ended up using&nbsp;&nbsp;

00:36:10.560 --> 00:36:15.680
CPU solvers for most of this project 'cause it's&nbsp;
sort of easier to do clever things with them.

00:36:15.680 --> 00:36:21.280
And anyway, I needed my GPU to try other&nbsp;
approaches like the next approach I tried,&nbsp;&nbsp;

00:36:21.280 --> 00:36:28.480
which was to 100% Call of Duty Black Ops 6. This&nbsp;
is not the sixth Call of Duty game. This is the&nbsp;&nbsp;

00:36:28.480 --> 00:36:33.920
sixth Call of Duty *Black Ops* game. And to be&nbsp;
totally clear, I'm not recommending this game.&nbsp;&nbsp;

00:36:33.920 --> 00:36:40.480
And this is certainly not an ad. I just feel&nbsp;
compelled somehow. I guess I'm a Counter Strike&nbsp;&nbsp;

00:36:40.480 --> 00:36:47.120
Idiot. 100%ing to me, the multiplayer mode,&nbsp;
meant getting all these stupid badges,&nbsp;&nbsp;

00:36:47.120 --> 00:36:53.840
which for calibration purposes is apparently&nbsp;
enough of an achievement for 400,000 views&nbsp;&nbsp;

00:36:53.840 --> 00:37:01.200
in the genre of "I played a lot of video games"&nbsp;
on YouTube. And then for every single weapon in&nbsp;&nbsp;

00:37:01.200 --> 00:37:06.800
the game, unlocking everything about it. So,&nbsp;
you get like a thousand kills and then you&nbsp;&nbsp;

00:37:06.800 --> 00:37:12.720
get a thousand kills a special way and then you&nbsp;
get this glowing black hole skin. That's really&nbsp;&nbsp;

00:37:12.720 --> 00:37:17.360
not even that bad except for these weapons&nbsp;
like the baseball bat which are designed just&nbsp;&nbsp;

00:37:17.360 --> 00:37:22.720
for humiliating your opponent. Or the rocket&nbsp;
launchers which are meant for shooting down&nbsp;&nbsp;

00:37:22.720 --> 00:37:30.000
helicopters and for some reason require like&nbsp;
a perfect direct hit into someone's soft body&nbsp;&nbsp;

00:37:30.000 --> 00:37:35.600
to actually kill them. The worst part was&nbsp;
these tactical accessories which seemed&nbsp;&nbsp;

00:37:35.600 --> 00:37:42.800
to have been designed for a different game. Like&nbsp;
this proximity alarm, whose concept art, I assume,&nbsp;&nbsp;

00:37:42.800 --> 00:37:49.520
depicted a slow burn spy thriller where the sniper&nbsp;
is up in his nest, patiently awaiting the perfect&nbsp;&nbsp;

00:37:49.520 --> 00:37:56.400
moment for the kill, methodically planning for&nbsp;
every contingency. When the assassin approaches&nbsp;&nbsp;

00:37:56.400 --> 00:38:08.703
unaware that the proximity alarm will give away&nbsp;
his position and that he is already dead...

00:38:08.703 --> 00:38:10.240
[Computer voice: tactical]

00:38:10.240 --> 00:38:14.000
Because here's what it's like to play&nbsp;
this game. There is no need for help&nbsp;&nbsp;

00:38:14.000 --> 00:38:18.240
detecting whether there are enemies nearby.&nbsp;
There's always a hundred guys dressed as&nbsp;&nbsp;

00:38:18.240 --> 00:38:22.880
ninja turtles shooting you with rockets.&nbsp;
Um, and you live, I mean, in this game,&nbsp;&nbsp;

00:38:22.880 --> 00:38:29.040
it's faster to respawn than to reload your&nbsp;
weapon sometimes. So, you spawn and throw&nbsp;&nbsp;

00:38:29.040 --> 00:38:32.640
a few of those on the ground and then hope&nbsp;
that it gives you credit for learning about&nbsp;&nbsp;

00:38:32.640 --> 00:38:38.640
an enemy first through its beeping, by which&nbsp;
time you're usually already dead. Anyway,&nbsp;&nbsp;

00:38:38.640 --> 00:38:44.240
I played this game for several hundred hours&nbsp;
with some of the world's dumbest people.

00:38:44.240 --> 00:38:51.520
It won't surprise you to hear that when I'm&nbsp;
playing, I'm often not "doing the game".&nbsp;&nbsp;

00:38:51.520 --> 00:38:57.040
Perhaps the only thing I like about this game is&nbsp;
its treatment of out of bounds. In some places,&nbsp;&nbsp;

00:38:57.040 --> 00:39:01.360
if you dare to explore, you'll be&nbsp;
summarily executed, but in most places,&nbsp;&nbsp;

00:39:01.360 --> 00:39:05.030
it gives you a few urgent seconds&nbsp;
to get back into the mission.

00:39:05.030 --> 00:39:06.880
[COD guy: That's right, you ****heads]

00:39:06.880 --> 00:39:12.240
And during that time, you can sometimes do a&nbsp;
brief exploration and maybe come back another way,&nbsp;&nbsp;

00:39:12.240 --> 00:39:17.520
which can be a fun pastime. But the best part is&nbsp;
that when the match ends, there's a few seconds of&nbsp;&nbsp;

00:39:17.520 --> 00:39:22.480
slow motion and everyone is invincible. You can't&nbsp;
be harmed, including, apparently they just don't&nbsp;&nbsp;

00:39:22.480 --> 00:39:27.040
think about this stuff, the triggers that kill&nbsp;
you for leaving the map. And so this gives me, you&nbsp;&nbsp;

00:39:27.040 --> 00:39:33.680
know, other side quests to my main mission, like&nbsp;
can I get up on this balcony by timing exactly&nbsp;&nbsp;

00:39:33.680 --> 00:39:39.360
correctly the end of the match? taking fire.&nbsp;
Keep the package safe. Or my favorite my favorite&nbsp;&nbsp;

00:39:39.360 --> 00:39:46.080
trick, which is on the Yacht level, you're on&nbsp;
this tiny boat fighting to the death. And you&nbsp;&nbsp;

00:39:46.080 --> 00:39:50.800
can get off the boat. You can jump into the water,&nbsp;
which normally causes you to drown like in real&nbsp;&nbsp;

00:39:50.800 --> 00:39:58.160
life. But if you do that at the end when you're&nbsp;
invincible, then you will keep drowning as the&nbsp;&nbsp;

00:39:58.160 --> 00:40:04.000
credits play, showing you the greatest brutality&nbsp;
of the match. This replay's honor is mine, of&nbsp;&nbsp;

00:40:04.000 --> 00:40:09.360
course. I'm great. All the while, your character&nbsp;
is getting increasingly dead. You can actually win&nbsp;&nbsp;

00:40:09.360 --> 00:40:14.960
the match and be standing on the podium at the&nbsp;
same time that you are drowning to death. So,&nbsp;&nbsp;

00:40:14.960 --> 00:40:20.080
that's a good thing to do. But, you know, it's&nbsp;
all ruined by a single typographic mistake. If&nbsp;&nbsp;

00:40:20.080 --> 00:40:28.560
you look up here, for some reason, there's a drop&nbsp;
shadow behind this text except for this dash.

00:40:28.560 --> 00:40:33.440
Get it together.

00:40:33.440 --> 00:40:40.640
Ugh. Somehow all that effort yielded&nbsp;
no progress on the Rupert problem. But&nbsp;&nbsp;

00:40:40.640 --> 00:40:45.760
speaking of nerd sniping, I successfully&nbsp;
recruited some of my grad school friends,&nbsp;&nbsp;

00:40:45.760 --> 00:40:53.920
math geniuses David and Jason. Jason made this&nbsp;
manual interactive solver, which you could think&nbsp;&nbsp;

00:40:53.920 --> 00:40:59.840
of as the world's most boring video game. And&nbsp;
David, who is a much smarter person than me and&nbsp;&nbsp;

00:40:59.840 --> 00:41:07.280
has many times cautioned me against trying to work&nbsp;
on unsolved math problems, wisely spent his time&nbsp;&nbsp;

00:41:07.280 --> 00:41:13.600
making soothing animations of the solutions set&nbsp;
to electronic music. Having now spent hundreds of&nbsp;&nbsp;

00:41:13.600 --> 00:41:20.320
hours of CPU time grinding for solutions, we came&nbsp;
to believe pretty strongly that the conjecture is&nbsp;&nbsp;

00:41:20.320 --> 00:41:27.360
actually just false: That it's *usually* the case&nbsp;
that a convex polyhedron has the Rupert property,&nbsp;&nbsp;

00:41:27.360 --> 00:41:32.240
but that these five probably just don't and&nbsp;
that there are other counter examples. Now,&nbsp;&nbsp;

00:41:32.240 --> 00:41:37.600
we're not the first to come to this belief, but&nbsp;
certainly some caution is due here. Just 'cause&nbsp;&nbsp;

00:41:37.600 --> 00:41:41.840
it's hard to find does not mean it doesn't&nbsp;
exist. And some of the best known solutions,&nbsp;&nbsp;

00:41:41.840 --> 00:41:48.880
like for example, the triakis tetrahedron here&nbsp;
come extremely close to not working. Um this&nbsp;&nbsp;

00:41:48.880 --> 00:41:54.640
tiny little thread is one one-millionth&nbsp;
of the diameter of the shape. It comes&nbsp;&nbsp;

00:41:54.640 --> 00:41:59.200
so close in fact that you might worry that&nbsp;
the floating point roundoff in your computer&nbsp;&nbsp;

00:41:59.200 --> 00:42:03.200
(which is usually something you want to you&nbsp;
know do machine learning) might be causing&nbsp;&nbsp;

00:42:03.200 --> 00:42:09.600
you to incorrectly round into a solution. The&nbsp;
three of us have a background in formal logic&nbsp;&nbsp;

00:42:09.600 --> 00:42:16.240
and computer math systems and David actually&nbsp;
verified this one in lean that it does work&nbsp;&nbsp;

00:42:16.240 --> 00:42:22.400
without any risk of floating-point error, which&nbsp;
is very cool, and I was spending a lot of my time&nbsp;&nbsp;

00:42:22.400 --> 00:42:27.920
trying to find new counter examples to the&nbsp;
Rupert conjecture. I call these "noperts."

00:42:27.920 --> 00:42:31.360
Let's say that the theorem is false.&nbsp;
That means there must exist some counter&nbsp;&nbsp;

00:42:31.360 --> 00:42:36.000
examples objects that can't pass through&nbsp;
themselves and we'll call these noperts.&nbsp;&nbsp;

00:42:36.000 --> 00:42:42.800
Maybe those five wish list polyhedra are noperts,&nbsp;
but there will be infinitely many almost certainly&nbsp;&nbsp;

00:42:42.800 --> 00:42:48.640
because like take the cube, pretend that's nopert.&nbsp;
I feel confident drawing it. If you took one of&nbsp;&nbsp;

00:42:48.640 --> 00:42:54.400
its vertices and moved it like epsilon or took&nbsp;
one of its faces and added a tiny little tent&nbsp;&nbsp;

00:42:54.400 --> 00:42:59.200
on top of it, it would still be nopert. It would&nbsp;
still have the same properties, right? By the way,&nbsp;&nbsp;

00:42:59.200 --> 00:43:05.200
this operation of adding a vertex and tenting&nbsp;
out a face like that is called a kis operation.&nbsp;&nbsp;

00:43:05.200 --> 00:43:09.360
And if you look through the PAC polyhedra, you'll&nbsp;
see that they have structured names like this&nbsp;&nbsp;

00:43:09.360 --> 00:43:16.400
sometimes, like the disdyakis triacontahedron.&nbsp;
And sometimes you can tell sort of how they're&nbsp;&nbsp;

00:43:16.400 --> 00:43:21.440
formulated based on that. Anyway, so there are&nbsp;
probably infinitely many counter examples. Now&nbsp;&nbsp;

00:43:21.440 --> 00:43:26.320
if you just generate random polyhedra, which you&nbsp;
could do for example by taking a bunch of random&nbsp;&nbsp;

00:43:26.320 --> 00:43:31.120
points and computing the convex hull of those&nbsp;
and just throwing out the points that are inside,&nbsp;&nbsp;

00:43:31.120 --> 00:43:35.920
these are generally very easy to solve. My solver&nbsp;
can solve them in milliseconds. And I tried&nbsp;&nbsp;

00:43:35.920 --> 00:43:43.200
billions. Um, so the random shotgun method here is&nbsp;
just not going to fly. So one of the things I did&nbsp;&nbsp;

00:43:43.200 --> 00:43:49.600
was use adversarial methods. For example, I could&nbsp;
start with a random polyhedron like this one. And&nbsp;&nbsp;

00:43:49.600 --> 00:43:55.360
let's say that my solver comes up with a solution&nbsp;
like this in 2D. Then it's the adversary's chance.&nbsp;&nbsp;

00:43:55.360 --> 00:44:01.120
And what adversary will do is try to mess up the&nbsp;
shape so that this particular solution won't work.&nbsp;&nbsp;

00:44:01.120 --> 00:44:06.320
So I could take a random point on the inner hull&nbsp;
that's inside and I could move it until it reaches&nbsp;&nbsp;

00:44:06.320 --> 00:44:12.000
the outer edge. And now this is no longer a&nbsp;
solution. So now I have a new polyhedron that&nbsp;&nbsp;

00:44:12.000 --> 00:44:17.440
can't be solved that exact way. And I can go back&nbsp;
and forth like this making it harder and harder&nbsp;&nbsp;

00:44:17.440 --> 00:44:24.880
to solve. And that does work better. Another&nbsp;
thing I tried was an explicit deoptimization&nbsp;&nbsp;

00:44:24.880 --> 00:44:29.440
procedure. So remember I talked about that black&nbsp;
box function optimizer that can try to optimize&nbsp;&nbsp;

00:44:29.440 --> 00:44:35.520
anything. I'm using that in my solver. It takes a&nbsp;
certain number of steps when it succeeds. And so&nbsp;&nbsp;

00:44:35.520 --> 00:44:40.640
what I can do is wrap that entire procedure in&nbsp;
another optimizer call which tries to optimize&nbsp;&nbsp;

00:44:40.640 --> 00:44:45.680
the vertices to make the solver take as long as&nbsp;
possible to make it as hard as possible to solve.

00:44:45.680 --> 00:44:49.440
These two methods do find interesting&nbsp;
shapes that are hard to solve at least&nbsp;&nbsp;

00:44:49.440 --> 00:44:55.280
with my specific methods. So, this lump of coal&nbsp;
is one of the products of the adversary method,&nbsp;&nbsp;

00:44:55.280 --> 00:45:01.040
I think. And for a while, I thought that this&nbsp;
was a nopert, but after grinding for a while,&nbsp;&nbsp;

00:45:01.040 --> 00:45:05.520
I did find a solution. It's totally&nbsp;
counterintuitive, and it's one of those&nbsp;&nbsp;

00:45:05.520 --> 00:45:13.040
hanging by a thread like tooth nightmare&nbsp;
ones. This one can't be used for public&nbsp;&nbsp;

00:45:13.040 --> 00:45:18.960
art installations because it's just too&nbsp;
fragile. Okay, well, that didn't work.

00:45:18.960 --> 00:45:24.160
But one thing to notice about the wishlist&nbsp;
polyhedra, I mean, all of the PAC polyhedra&nbsp;&nbsp;

00:45:24.160 --> 00:45:29.440
are symmetric. But the ones that I'm generating&nbsp;
here are not symmetric. And maybe somehow symmetry&nbsp;&nbsp;

00:45:29.440 --> 00:45:35.440
is an important component of being a nopert. So&nbsp;
I'm going to try generating symmetric polyhedra.&nbsp;&nbsp;

00:45:35.440 --> 00:45:40.960
But I learned something uh interesting and&nbsp;
kind of upsetting actually about symmetry.&nbsp;&nbsp;

00:45:40.960 --> 00:45:46.240
I thought naively that there would be a lot of&nbsp;
ways to make 3D symmetric objects similar to the&nbsp;&nbsp;

00:45:46.240 --> 00:45:51.920
way that you can use the spirograph method&nbsp;
in 2D which is to pick some n, like seven,&nbsp;&nbsp;

00:45:51.920 --> 00:45:58.880
and divide up 2 pi by seven. So you have a 7th&nbsp;
of the circle and just repeat your points or in&nbsp;&nbsp;

00:45:58.880 --> 00:46:05.360
this case lines seven times around. And this gives&nbsp;
you sevenfold cyclic symmetry. And this does also&nbsp;&nbsp;

00:46:05.360 --> 00:46:12.000
work in 3D in the sense that if you take that 2D&nbsp;
shape and extrude it into a prism or ninja star,&nbsp;&nbsp;

00:46:12.000 --> 00:46:17.040
then you get something that has this rotational&nbsp;
symmetry. What you can't do is extend that to&nbsp;&nbsp;

00:46:17.040 --> 00:46:21.280
multiple axes. I naively thought, oh, then&nbsp;
I can, you know, rotate it by a third of a&nbsp;&nbsp;

00:46:21.280 --> 00:46:26.800
turn in another axis. And if you do that, I&nbsp;
mean, you get a shape and it might look cool,&nbsp;&nbsp;

00:46:26.800 --> 00:46:30.560
but it's not symmetric in the way that you&nbsp;
want because these rotations interfere with one&nbsp;&nbsp;

00:46:30.560 --> 00:46:35.760
another. After doing that three-fold repetition,&nbsp;
it will no longer have the seven-fold symmetry.&nbsp;&nbsp;

00:46:35.760 --> 00:46:39.200
So, if you want to pick a number n and&nbsp;
then get some kind of symmetry for it,&nbsp;&nbsp;

00:46:39.200 --> 00:46:44.160
the ninja star is one way to do that. It's called&nbsp;
dihedral symmetry. And it's dihedral 'cause I can&nbsp;&nbsp;

00:46:44.160 --> 00:46:50.080
flip it over. You could see that it's symmetric&nbsp;
around this middle plane. If I make a similar&nbsp;&nbsp;

00:46:50.080 --> 00:46:55.680
shape that's not symmetric around that middle&nbsp;
plane, then this is called cyclic symmetry.

00:46:56.400 --> 00:47:02.080
Cyclic symmetry reminds me of when my 3D printing&nbsp;
site had a contest about coffee and I noticed a&nbsp;&nbsp;

00:47:02.080 --> 00:47:09.040
distinct lack of coffee making equipment like&nbsp;
the famous moka pot which almost has 10-way&nbsp;&nbsp;

00:47:09.040 --> 00:47:15.520
cyclic symmetry. So I modeled that up and entered&nbsp;
it into the contest with instructions for use. But&nbsp;&nbsp;

00:47:15.520 --> 00:47:21.600
people didn't like it. They said I was doing&nbsp;
it wrong. Coffee culture can be so gatekeepy.

00:47:21.600 --> 00:47:26.480
What were we talking abo--? Oh yeah, right.&nbsp;
So symmetric polyhedra. So you have cyclic and&nbsp;&nbsp;

00:47:26.480 --> 00:47:32.400
dihedral symmetries and you have those for every&nbsp;
n. And it turns out that there are only three more&nbsp;&nbsp;

00:47:32.400 --> 00:47:38.000
types of rotational symmetry in 3D. There's just&nbsp;
no other way to do it. And these are the ones that&nbsp;&nbsp;

00:47:38.000 --> 00:47:44.000
are enjoyed by the PAC polyhedra. And moreover,&nbsp;
and this gave me a real appreciation for how&nbsp;&nbsp;

00:47:44.000 --> 00:47:50.160
amazing the Platonic solids are. These three types&nbsp;
of symmetry are in direct correspondence to the&nbsp;&nbsp;

00:47:50.160 --> 00:47:54.560
Platonic solids. Probably the easiest one to think&nbsp;
about is octahedral symmetry, which is the one&nbsp;&nbsp;

00:47:54.560 --> 00:47:58.640
that the cube and octahedron have. They're duals.&nbsp;
And so you probably already know that if I take a&nbsp;&nbsp;

00:47:58.640 --> 00:48:04.080
cube, I can rotate it 90° on any of the principal&nbsp;
axes and I get back the same cube. There are a&nbsp;&nbsp;

00:48:04.080 --> 00:48:09.920
few other operations you can do on the cube like&nbsp;
flipping or rotating around its long diagonal.&nbsp;&nbsp;

00:48:09.920 --> 00:48:15.840
And these are exactly and only the operations of&nbsp;
the octahedral symmetry group. So these solids&nbsp;&nbsp;

00:48:15.840 --> 00:48:23.040
embody these types of symmetry. Several of the&nbsp;
PAC polyhedra have this kind of symmetry like&nbsp;&nbsp;

00:48:23.040 --> 00:48:28.640
the rhombicuboctahedron. Which makes sense: It's&nbsp;
basically a cube and an octahedron at the same&nbsp;&nbsp;

00:48:28.640 --> 00:48:34.240
time. And others like the snub cube, which has&nbsp;
"cube" in its name. Then we have tetrahedral&nbsp;&nbsp;

00:48:34.240 --> 00:48:39.760
symmetry embodied of course by the tetrahedron.&nbsp;
This has symmetry operations like rotating a&nbsp;&nbsp;

00:48:39.760 --> 00:48:45.040
third of a turn around its central axis which&nbsp;
makes sense. An example of an Archimedean solid&nbsp;&nbsp;

00:48:45.040 --> 00:48:51.360
that has tetrahedral symmetry is the truncated&nbsp;
tetrahedron. This is a tetrahedron that has had&nbsp;&nbsp;

00:48:51.360 --> 00:48:58.320
its pointy bits lopped off for increased safety.&nbsp;
Finally, we have the icosahedral group. You may&nbsp;&nbsp;

00:48:58.320 --> 00:49:03.920
know the icosahedron as the D20. And I get it if&nbsp;
this is your favorite Platonic solid. It's the&nbsp;&nbsp;

00:49:03.920 --> 00:49:09.760
dual of the dodecahedron and it's quite lovely.&nbsp;
And this has symmetry operations like rotating a&nbsp;&nbsp;

00:49:09.760 --> 00:49:15.920
third of a turn around one of its triangular faces&nbsp;
or rotating a fifth of a turn around one of its&nbsp;&nbsp;

00:49:15.920 --> 00:49:22.880
points that have five edges coming out. Speaking&nbsp;
of point, I'll have you know that video editing is&nbsp;&nbsp;

00:49:22.880 --> 00:49:32.720
so tedious that I procrastinated making this video&nbsp;
by repointing the bricks on my ancient crumbling&nbsp;&nbsp;

00:49:32.720 --> 00:49:41.680
home, at great personal risk. Anyway, icosahedral&nbsp;
symmetry is enjoyed by monsters such as the&nbsp;&nbsp;

00:49:41.680 --> 00:49:51.280
disdyakis triacontahedron, which you may know&nbsp;
better as the D120, although not many know this&nbsp;&nbsp;

00:49:51.280 --> 00:49:56.800
shape because only the most advanced Dungeons and&nbsp;
Dragons players need to roll with such precision.

00:49:56.800 --> 00:50:03.040
So, speaking of Advanced D, this beautiful&nbsp;
fact can be extended to higher dimensions. So,&nbsp;&nbsp;

00:50:03.040 --> 00:50:07.360
let's start to characterize some of these. In&nbsp;
two dimensions, we have the regular n-gons and&nbsp;&nbsp;

00:50:07.360 --> 00:50:12.000
each of these gives a symmetry group. In three&nbsp;
dimensions, we can kind of import those. But&nbsp;&nbsp;

00:50:12.000 --> 00:50:18.480
let's think about the new symmetry groups that are&nbsp;
special to 3D. These irreducible groups correspond&nbsp;&nbsp;

00:50:18.480 --> 00:50:24.560
to the platonic solids, the sets of duals,&nbsp;
the tetrahedral group, the octahedral group,&nbsp;&nbsp;

00:50:24.560 --> 00:50:29.680
and the icosahedral group. So there's three of&nbsp;
those like we just discussed. Thinking about 4D,&nbsp;&nbsp;

00:50:29.680 --> 00:50:37.360
we have four sort of Platonic solids or polychora.&nbsp;
We have a 4D tetrahedron, a 4D octahedron, a 4D&nbsp;&nbsp;

00:50:37.360 --> 00:50:42.000
icosahedron, and this mysterious self-dual&nbsp;
shape called the 24-cell. And each of these&nbsp;&nbsp;

00:50:42.000 --> 00:50:46.320
has a distinct rotational symmetry group.&nbsp;
So that's beautiful. One more dimension,&nbsp;&nbsp;

00:50:46.320 --> 00:50:52.560
one more shape, one more symmetry group. Can&nbsp;
you guess what happens in five dimensions?

00:50:52.560 --> 00:50:59.680
That's right! In 5D, we have only two irreducible&nbsp;
symmetries. The 5D tetrahedral and 5D octahedral.&nbsp;&nbsp;

00:50:59.680 --> 00:51:03.840
What the heck? We didn't get any new cool&nbsp;
5D shape? And we didn't even get to keep&nbsp;&nbsp;

00:51:03.840 --> 00:51:08.560
the ones that we had? That's weird. And&nbsp;
in fact, if you look at six dimensions,&nbsp;&nbsp;

00:51:08.560 --> 00:51:15.200
you have only the six-dimensional tetrahedron and&nbsp;
the six-dimensional octahedron. And so too for 7D,&nbsp;&nbsp;

00:51:15.200 --> 00:51:22.080
8D, and all higher dimensions. There's just&nbsp;
these two. Man. You know, if that bothers you,&nbsp;&nbsp;

00:51:22.080 --> 00:51:28.160
I understand. But you really should be bothered&nbsp;
that your own sense of beauty doesn't admit&nbsp;&nbsp;

00:51:28.160 --> 00:51:34.320
this truth. Because this is the true fact of&nbsp;
n-dimensional geometry! A true platonic horror.

00:51:34.320 --> 00:51:38.480
Anyway, what were we talking abo--? Oh,&nbsp;
right. Generating counter examples to Rupert's&nbsp;&nbsp;

00:51:38.480 --> 00:51:44.160
conjecture. So, I made some random symmetric&nbsp;
polyhedra. You can do this by picking a symmetry&nbsp;&nbsp;

00:51:44.160 --> 00:51:49.440
group like the tetrahedral group. Then, starting&nbsp;
with some random points, applying the operations&nbsp;&nbsp;

00:51:49.440 --> 00:51:55.280
of the group until you reach a fixed point. This&nbsp;
is a nice example of a shape with 36 vertices.&nbsp;&nbsp;

00:51:55.280 --> 00:51:59.920
It has tetrahedral symmetry. You can see the I've&nbsp;
painted its fingernails there. You can kind of see&nbsp;&nbsp;

00:51:59.920 --> 00:52:05.280
the tetrahedron inside. And I think that this is&nbsp;
a nopert. I've tried solving it billions of times.&nbsp;&nbsp;

00:52:05.280 --> 00:52:10.240
It doesn't look like any of the PAC polyhedra.&nbsp;
So, it might be a new counterexample. Here's&nbsp;&nbsp;

00:52:10.240 --> 00:52:15.840
another one. I've colored some of its faces again&nbsp;
so you can see its octahedral symmetry. And again,&nbsp;&nbsp;

00:52:15.840 --> 00:52:20.640
I've tried hundreds of millions of times to&nbsp;
solve this one. This one has 56 vertices. So,&nbsp;&nbsp;

00:52:20.640 --> 00:52:24.640
it's bigger than some of the wishlist polyhedra&nbsp;
that we already know about. Unfortunately,&nbsp;&nbsp;

00:52:24.640 --> 00:52:30.720
it's hard to create symmetric polyhedra that have&nbsp;
a small number of vertices. When you apply the&nbsp;&nbsp;

00:52:30.720 --> 00:52:34.880
symmetry operations, it multiplies the number&nbsp;
of points. And if your starting points are in&nbsp;&nbsp;

00:52:34.880 --> 00:52:40.160
special positions like on the axes, then you end&nbsp;
up just getting existing well-known solids. Like,&nbsp;&nbsp;

00:52:40.160 --> 00:52:45.760
for example, I kept trying to find small polyhedra&nbsp;
with octahedral symmetry that defy easy solution.&nbsp;&nbsp;

00:52:45.760 --> 00:52:50.800
And I kept finding ones that looked like this&nbsp;
with 24 vertices, which is not bad. But when you&nbsp;&nbsp;

00:52:50.800 --> 00:52:54.880
look at them, they're all basically the same&nbsp;
as the snub cube. They're just like slightly&nbsp;&nbsp;

00:52:54.880 --> 00:52:59.280
messed up versions of the snub cube. And I&nbsp;
couldn't find any with fewer vertices. So I&nbsp;&nbsp;

00:52:59.280 --> 00:53:05.360
began to believe that perhaps the snub cube is&nbsp;
the smallest counterexample. It has the fewest&nbsp;&nbsp;

00:53:05.360 --> 00:53:10.640
vertices of the wishlist polyhedra and there&nbsp;
just aren't that many simple symmetric polyhedra.

00:53:10.640 --> 00:53:15.280
But remember cyclic symmetry and&nbsp;
dihedral symmetry? This monstrosity&nbsp;&nbsp;

00:53:15.280 --> 00:53:22.240
has 120 vertices. And you can see its top face&nbsp;
is a hexagon and so is its bottom face. Uh,&nbsp;&nbsp;

00:53:22.240 --> 00:53:29.120
and this has cyclic symmetry. So, six-way&nbsp;
rotational symmetry along this axis. The&nbsp;&nbsp;

00:53:29.120 --> 00:53:33.360
rest of it is kind of a mess, but you can&nbsp;
see I have a lot more flexibility there.&nbsp;&nbsp;

00:53:33.360 --> 00:53:40.000
120 vertices is definitely not better&nbsp;
than 24 vertices. But then I found this.

00:53:40.000 --> 00:53:47.520
All right. So this bad boy here is potential&nbsp;
nopert number 76. And this thing I found after&nbsp;&nbsp;

00:53:47.520 --> 00:53:54.320
a lot of computer search, and it has 20 vertices.&nbsp;
It has five-way cyclic symmetry with four levels.&nbsp;&nbsp;

00:53:54.320 --> 00:54:01.760
That makes 20. And I think it's a counterexample&nbsp;
to the generalized Rupert conjecture. And I only&nbsp;&nbsp;

00:54:01.760 --> 00:54:05.760
think that because I've tried like billions&nbsp;
of times to solve it with my solver,&nbsp;&nbsp;

00:54:05.760 --> 00:54:12.240
which works for all of the all of the known ones.&nbsp;
Um, but in order to be really confident of that,&nbsp;&nbsp;

00:54:12.240 --> 00:54:15.120
we would need to actually prove&nbsp;
something, which I'd like to do.

00:54:15.120 --> 00:54:20.400
This thing has all triangular faces. Because&nbsp;
that's what you get if you just take the convex&nbsp;&nbsp;

00:54:20.400 --> 00:54:25.760
hull of points in general position. But some&nbsp;
of these are really close to being planar. So&nbsp;&nbsp;

00:54:25.760 --> 00:54:30.080
these this this pair here is like one&nbsp;
degree off being a plane. So that's a&nbsp;&nbsp;

00:54:30.080 --> 00:54:35.360
little bit unsatisfying. And I think it&nbsp;
would be an improvement if I could find&nbsp;&nbsp;

00:54:35.360 --> 00:54:39.680
ones where some of these were quadrilateral&nbsp;
faces. So if you just flatten these out,&nbsp;&nbsp;

00:54:39.680 --> 00:54:44.960
it becomes Rupert. So Rupertness is like a really&nbsp;
easy to achieve property. It's very common. But I&nbsp;&nbsp;

00:54:44.960 --> 00:54:50.240
did a bunch more searching and then I came up&nbsp;
with this one. So this one is nopert number&nbsp;&nbsp;

00:54:50.240 --> 00:54:56.400
214... or *potential* nopert number 214. And&nbsp;
this one does have some quadrilateral faces.&nbsp;&nbsp;

00:54:56.400 --> 00:55:03.680
I picked this from a few options because it was&nbsp;
the dumbest looking of them. Um, you know, I don't&nbsp;&nbsp;

00:55:03.680 --> 00:55:08.960
think it's a very pleasing shape unless maybe&nbsp;
you like like really blingy engagement rings.&nbsp;&nbsp;

00:55:10.000 --> 00:55:16.400
But it does have fewer faces because some of them&nbsp;
are quadrilateral... at 27 faces. So 20 vertices,&nbsp;&nbsp;

00:55:16.400 --> 00:55:23.680
27 faces. It doesn't get along well with the PAC&nbsp;
solids. They maybe feel jealous of it, but they&nbsp;&nbsp;

00:55:23.680 --> 00:55:30.080
have nothing to be jealous of. Its only claim to&nbsp;
fame is that it might be a minimal counterexample&nbsp;&nbsp;

00:55:30.080 --> 00:55:35.680
to the generalized rubric conjecture... if my&nbsp;
code is good and I didn't screw up. So, I don't&nbsp;&nbsp;

00:55:35.680 --> 00:55:44.480
really know what I'm going to do with that, but&nbsp;
that's true of most of the things I 3D print.

00:55:44.480 --> 00:55:49.440
So, I wondered if I could make an even simpler&nbsp;
counterexample or potential counter example&nbsp;&nbsp;

00:55:49.440 --> 00:55:53.280
because the simpler it is, the easier it is&nbsp;
to analyze. And the simplest symmetric shape&nbsp;&nbsp;

00:55:53.280 --> 00:55:58.800
is arguably a prism. So pretend that's a regular&nbsp;
pentagon. So n equals 5, the number of vertices.&nbsp;&nbsp;

00:55:58.800 --> 00:56:02.960
And when this is really shallow, that is, the&nbsp;
depth d is close to zero, we know that these&nbsp;&nbsp;

00:56:02.960 --> 00:56:07.440
shallow prisms can pass through themselves.&nbsp;
Like a manhole cover that's the wrong shape,&nbsp;&nbsp;

00:56:07.440 --> 00:56:13.120
falling onto a ninja turtle or worker below, who&nbsp;
should have been wearing a hard hat anyway. Then&nbsp;&nbsp;

00:56:13.120 --> 00:56:17.920
there's another case where d is quite large. And&nbsp;
here we get a long relatively thin shape, which&nbsp;&nbsp;

00:56:17.920 --> 00:56:22.640
I'll call a churro. This can also pass through&nbsp;
itself. Although there isn't a classic puzzle&nbsp;&nbsp;

00:56:22.640 --> 00:56:28.560
that I can refer to, but I can show you that. So&nbsp;
here I'm going to make two pentagons. And I hope&nbsp;&nbsp;

00:56:28.560 --> 00:56:35.280
it's clear that as d gets longer and longer, the&nbsp;
same configuration will still apply. So when depth&nbsp;&nbsp;

00:56:35.280 --> 00:56:39.600
is really small, it's solvable. When the depth&nbsp;
is really high, it's solvable. But speaking of&nbsp;&nbsp;

00:56:39.600 --> 00:56:44.720
pink prisms, there's a spectrum between these&nbsp;
points. And it's not clear to me like when does&nbsp;&nbsp;

00:56:44.720 --> 00:56:49.760
a manhole become a churro? And is it possible that&nbsp;
there's some place in between where it's neither&nbsp;&nbsp;

00:56:49.760 --> 00:56:56.800
and and isn't solvable? So I looked at that&nbsp;
statistically. I took some n like five and varied&nbsp;&nbsp;

00:56:56.800 --> 00:57:04.800
d from basically zero to basically infinity. And&nbsp;
for each depth I tried solving it a lot of times&nbsp;&nbsp;

00:57:04.800 --> 00:57:09.760
and I plotted the quality of those solutions. The&nbsp;
quality is like the width of the smallest thread&nbsp;&nbsp;

00:57:09.760 --> 00:57:14.720
that's left over. You want these to be thicker.&nbsp;
It's a better solution if there's more clearance.

00:57:14.720 --> 00:57:19.200
So here's the graph for n = 5. Every dot on&nbsp;
here is a solution. And I was always able to&nbsp;&nbsp;

00:57:19.200 --> 00:57:24.480
find a solution. The x-axis is increasing&nbsp;
depth to the right. And the y-axis is the&nbsp;&nbsp;

00:57:24.480 --> 00:57:28.640
quality of the solution. So: How much clearance&nbsp;
is there? And you can see that there's basically&nbsp;&nbsp;

00:57:28.640 --> 00:57:33.120
two... there's two major sequences here. When the&nbsp;
shape is really shallow all the way on the left,&nbsp;&nbsp;

00:57:33.120 --> 00:57:37.920
it's almost zero. You get only manhole-style&nbsp;
solutions. And as the depth gets high,&nbsp;&nbsp;

00:57:37.920 --> 00:57:44.160
you get churro style solutions. And these cross&nbsp;
over right about d = 1. No doubt you'll notice&nbsp;&nbsp;

00:57:44.160 --> 00:57:48.880
these peaks and these represent other kinds of&nbsp;
solutions like where I'm fitting through somehow&nbsp;&nbsp;

00:57:48.880 --> 00:57:54.560
diagonally. I mean, who knows? If you want to be&nbsp;
in a math hole, you would dig into each one of&nbsp;&nbsp;

00:57:54.560 --> 00:57:58.960
these peaks. Suffice to say though, for every&nbsp;
d, it's clear that we have solutions. I mean,&nbsp;&nbsp;

00:57:58.960 --> 00:58:03.840
this is not a proof, but it would be astonishing&nbsp;
to find a gap given how uh smooth these curves&nbsp;&nbsp;

00:58:03.840 --> 00:58:09.600
are. That's for an odd number of sides. The&nbsp;
graphs look substantially different for even n.&nbsp;&nbsp;

00:58:09.600 --> 00:58:14.560
They still have the recognizable manhole and&nbsp;
churro signatures, but there are clearly these&nbsp;&nbsp;

00:58:14.560 --> 00:58:19.440
other classes of solutions that come and go as the&nbsp;
depth changes. And I think all of these scattering&nbsp;&nbsp;

00:58:19.440 --> 00:58:24.800
lines are converging at the square root of two,&nbsp;
which I assume there is some good reason for. For&nbsp;&nbsp;

00:58:24.800 --> 00:58:30.560
completeness, we can see that there is a crossover&nbsp;
point for n = 3. So these probably all three&nbsp;&nbsp;

00:58:30.560 --> 00:58:37.840
prisms are solvable. We could look at a large n&nbsp;
here, 18. And though we get a lot of this chaos,&nbsp;&nbsp;

00:58:37.840 --> 00:58:42.960
but there's no trouble finding solutions all&nbsp;
throughout the range. So probably all prisms&nbsp;&nbsp;

00:58:42.960 --> 00:58:48.080
have solutions. But I do think it's notable how&nbsp;
chaotic the solution space can get for a shape&nbsp;&nbsp;

00:58:48.080 --> 00:58:52.960
that's even as simple as these regular 18-sided&nbsp;
prisms. It's not like there's just one way to&nbsp;&nbsp;

00:58:52.960 --> 00:58:56.880
solve it. And then presumably there are a lot of&nbsp;
configurations that come close but don't solve it.

00:58:56.880 --> 00:59:01.200
So this got me wondering: What does the&nbsp;
optimization surface look like for one of&nbsp;&nbsp;

00:59:01.200 --> 00:59:06.880
the interesting polyhedra that might not have a&nbsp;
solution? Is it like fractally complex or can we&nbsp;&nbsp;

00:59:06.880 --> 00:59:11.200
make out some structure and see where solutions&nbsp;
would be likely to exist or maybe convince&nbsp;&nbsp;

00:59:11.200 --> 00:59:16.640
ourselves that solutions can't exist? Now, I'd&nbsp;
like to do that for the shape that I found,&nbsp;&nbsp;

00:59:16.640 --> 00:59:20.720
but I actually think that the snub cube is a&nbsp;
better choice because it has more symmetries&nbsp;&nbsp;

00:59:20.720 --> 00:59:26.400
and it's also a little bit more important&nbsp;
to the world. It's completely canonical. So,&nbsp;&nbsp;

00:59:26.400 --> 00:59:29.920
for the rest of the video, I'm going to be&nbsp;
focusing on this beautiful 24 vertex shape&nbsp;&nbsp;

00:59:29.920 --> 00:59:34.240
called the snub cube. We don't have a solution for&nbsp;
this. I believe there is no solution. And it's an&nbsp;&nbsp;

00:59:34.240 --> 00:59:39.840
Archimedean solid, meaning that you can construct&nbsp;
it from 3D printed vertices that are all the same,&nbsp;&nbsp;

00:59:39.840 --> 00:59:46.320
and bamboo sticks (or churros) that are all the&nbsp;
same length, which is cool. So now I have one of&nbsp;&nbsp;

00:59:46.320 --> 00:59:52.400
those clogging up my office forever. Here's&nbsp;
what the snub cube looks like. It's made of&nbsp;&nbsp;

00:59:52.400 --> 00:59:58.720
squares and triangles, equilateral triangles.&nbsp;
Speaking of boring video games, I'm driving&nbsp;&nbsp;

00:59:58.720 --> 01:00:07.200
my snub cube here with the controller. That's&nbsp;
all this program does. Snub cube all the time.

01:00:07.200 --> 01:00:12.000
I'm drawing the convex hull in yellow. The points&nbsp;
of the convex hull are always points from the&nbsp;&nbsp;

01:00:12.000 --> 01:00:16.080
snub cube itself. This is always true. And so&nbsp;
we're always selecting some of the vertices of&nbsp;&nbsp;

01:00:16.080 --> 01:00:21.120
the snub cube to form the convex hull. So look&nbsp;
at this vertex here. This vertex is currently&nbsp;&nbsp;

01:00:21.120 --> 01:00:28.000
on the hull. If I rotate the cube like this,&nbsp;
at some point that vertex, which is this one,&nbsp;&nbsp;

01:00:28.000 --> 01:00:32.800
is no longer on the hull. Maybe some other one&nbsp;
takes its place or maybe it's just not necessary.&nbsp;&nbsp;

01:00:32.800 --> 01:00:38.160
But if you think about when that happens, when&nbsp;
does a point go from being on the hull to not on&nbsp;&nbsp;

01:00:38.160 --> 01:00:44.080
the hull? It can only happen when one of these&nbsp;
faces is parallel to our view direction. Then&nbsp;&nbsp;

01:00:44.080 --> 01:00:48.880
that face disappears and there's a chance for the&nbsp;
points to go on one side or the other of it. So&nbsp;&nbsp;

01:00:48.880 --> 01:00:53.600
what I'm going to do is consider all possible view&nbsp;
directions of the snub cube and I'm going to group&nbsp;&nbsp;

01:00:53.600 --> 01:00:59.920
them together based on which points from the snub&nbsp;
cube are involved in the convex hull. And nearby&nbsp;&nbsp;

01:00:59.920 --> 01:01:04.080
views are going to have the same set of points.&nbsp;
And that that set can only change when I cross&nbsp;&nbsp;

01:01:04.080 --> 01:01:12.000
over one of these planes. And on the snub cube,&nbsp;
often there's a face exactly opposite a face. So&nbsp;&nbsp;

01:01:12.000 --> 01:01:17.040
if you think about one of these squares, the view&nbsp;
direction will pass over both of them at the same&nbsp;&nbsp;

01:01:17.040 --> 01:01:22.720
time. And so really what matters is for every&nbsp;
face, we're going to find the plane that passes&nbsp;&nbsp;

01:01:22.720 --> 01:01:28.080
through the origin that's parallel to that face.&nbsp;
Sometimes these will coincide. And this will carve&nbsp;&nbsp;

01:01:28.080 --> 01:01:32.880
up space into a bunch of different regions,&nbsp;
each of which has a different hull topology.

01:01:32.880 --> 01:01:36.880
Okay, well that's getting out of hand.&nbsp;
If only there was some way to automate&nbsp;&nbsp;

01:01:36.880 --> 01:01:42.160
tedious repetitive tasks. So there&nbsp;
are 884 different regions of space&nbsp;&nbsp;

01:01:42.160 --> 01:01:47.040
that yield different hull topologies for the&nbsp;
snub cube. I'll call these regions patches,&nbsp;&nbsp;

01:01:47.040 --> 01:01:52.080
and each one can be identified by a unique code.&nbsp;
If you think about all those planes I was trying&nbsp;&nbsp;

01:01:52.080 --> 01:01:57.360
to draw, you're either on one side of the plane or&nbsp;
the other. And so that's a bit: zero or one. And&nbsp;&nbsp;

01:01:57.360 --> 01:02:02.640
that unique bit string identifies where you are in&nbsp;
space. You can actually figure out where you are&nbsp;&nbsp;

01:02:02.640 --> 01:02:08.800
by testing a subset of the planes because many&nbsp;
combinations are impossible. Now 884 is a lot,&nbsp;&nbsp;

01:02:08.800 --> 01:02:13.760
but it's not that many for a computer. But even&nbsp;
better, the snub cube has octahedral symmetry. And&nbsp;&nbsp;

01:02:13.760 --> 01:02:17.600
so most of these patches are not even actually any&nbsp;
different. They're just looking at the same thing,&nbsp;&nbsp;

01:02:17.600 --> 01:02:23.040
but like from the other side of the cube. And&nbsp;
so it turns out we only have 36 really distinct&nbsp;&nbsp;

01:02:23.040 --> 01:02:30.320
patches. And the remaining 800-something are&nbsp;
just different orientations of those same.

01:02:30.320 --> 01:02:35.200
If you were having trouble visualizing that from&nbsp;
the raw bit strings, we can look at a rendering&nbsp;&nbsp;

01:02:35.200 --> 01:02:40.160
in 3D. Each one of the different colors here&nbsp;
corresponds to one of the canonical patches. And&nbsp;&nbsp;

01:02:40.160 --> 01:02:44.880
because of the symmetry, they repeat over and over&nbsp;
throughout the cube. And here's how to understand&nbsp;&nbsp;

01:02:44.880 --> 01:02:50.880
the visualization if you want. Uh, if you don't&nbsp;
want to, just enjoy the kaleidoscope. The color&nbsp;&nbsp;

01:02:50.880 --> 01:02:55.040
right in the center of your screen where I've&nbsp;
placed the mouse for reference is the color you&nbsp;&nbsp;

01:02:55.040 --> 01:02:59.680
would see if you looked from your view position&nbsp;
directly at the origin. And so this classifies&nbsp;&nbsp;

01:02:59.680 --> 01:03:04.240
which patch you're in. If I move a little bit&nbsp;
within this blue color, you should see that the&nbsp;&nbsp;

01:03:04.240 --> 01:03:09.200
convex hull, the points on the outside are staying&nbsp;
the same. They'll move around, but it's the same&nbsp;&nbsp;

01:03:09.200 --> 01:03:13.440
points. It's when I cross into a different color&nbsp;
that the set of points changes. So here when I&nbsp;&nbsp;

01:03:13.440 --> 01:03:23.200
go from blue to mint, you can see that this point&nbsp;
up here is going from being on the hull to not on&nbsp;&nbsp;

01:03:23.200 --> 01:03:29.200
the hull. Now it's inside the hull. Okay, so worth&nbsp;
noticing is that some of these patches are quite&nbsp;&nbsp;

01:03:29.200 --> 01:03:34.640
small compared to others and it's possible that&nbsp;
a solution would live within one of those. So to&nbsp;&nbsp;

01:03:34.640 --> 01:03:39.440
explore the optimization surface comprehensively,&nbsp;
I'm going to look at pairs of canonical patches.&nbsp;&nbsp;

01:03:39.440 --> 01:03:43.600
One of them for the outer snub cube, one of them&nbsp;
for the inner snub cube. And within those patches,&nbsp;&nbsp;

01:03:43.600 --> 01:03:48.400
I'm going to try a whole bunch of different&nbsp;
samples and collect the optimization results. One&nbsp;&nbsp;

01:03:48.400 --> 01:03:53.280
of the nice things about using these patches is&nbsp;
that I no longer need to compute the convex hulls,&nbsp;&nbsp;

01:03:53.280 --> 01:03:57.040
which is one of the most intensive parts.&nbsp;
So now I can do like trillions of these&nbsp;&nbsp;

01:03:57.040 --> 01:04:03.920
tests with merely hundreds of hours of CPU&nbsp;
time. Oh, I can't wait to see how it looks!

01:04:03.920 --> 01:04:13.760
Oh, that is boring. Turns out my first run had a&nbsp;
bug and unfortunately I had run this in a cluster,&nbsp;&nbsp;

01:04:13.760 --> 01:04:18.000
uh, and refused to look at it until it was&nbsp;
done because I didn't want spoilers. So&nbsp;&nbsp;

01:04:18.000 --> 01:04:26.240
that's 200 bucks down the drain. But of course&nbsp;
my massively profitable hour-long math videos&nbsp;&nbsp;

01:04:26.240 --> 01:04:30.880
will pay for that. So I'll&nbsp;
run it again. And now...

01:04:30.880 --> 01:04:37.040
Ah yes, that's what I'm talking about. So again,&nbsp;
I'm mapping the data onto the surface of the snub&nbsp;&nbsp;

01:04:37.040 --> 01:04:42.560
cube. Each color represents fixing the outer&nbsp;
orientation to that view position and then&nbsp;&nbsp;

01:04:42.560 --> 01:04:47.280
considering inner orientations from all over and&nbsp;
making sure to sample from all of the different&nbsp;&nbsp;

01:04:47.280 --> 01:04:52.160
patches so that I get good coverage of all of&nbsp;
the kinds of possibilities. Now remember that&nbsp;&nbsp;

01:04:52.160 --> 01:04:58.400
I can always get really close to a solution&nbsp;
by setting the two orientations the same.&nbsp;&nbsp;

01:04:58.400 --> 01:05:02.400
So there are red dots everywhere, but these&nbsp;
get kind of blended in with the other colors,&nbsp;&nbsp;

01:05:02.400 --> 01:05:07.040
which are much more prevalent. For completeness,&nbsp;
we could look at it the other way around where&nbsp;&nbsp;

01:05:07.040 --> 01:05:12.800
I'm fixing the inner orientation and&nbsp;
varying the outer. And this shows the&nbsp;&nbsp;

01:05:12.800 --> 01:05:18.080
patches prominently for an interesting reason,&nbsp;
just having to do with the density of samples,&nbsp;&nbsp;

01:05:18.080 --> 01:05:24.160
but it does look cool. So back to the&nbsp;
good one. What I take from this is that&nbsp;&nbsp;

01:05:24.160 --> 01:05:30.160
the optimization surface is not really that&nbsp;
complicated. Right? Most of the time you're&nbsp;&nbsp;

01:05:30.160 --> 01:05:34.800
pretty far from a solution. So this led us&nbsp;
to believe that maybe we could systematically&nbsp;&nbsp;

01:05:34.800 --> 01:05:39.840
prove that there is no solution anywhere. So&nbsp;
for example, if we pick two of these patches,&nbsp;&nbsp;

01:05:39.840 --> 01:05:44.160
maybe we could prove numerically that there&nbsp;
is no solution when you select from them. And&nbsp;&nbsp;

01:05:44.160 --> 01:05:48.960
if you did that for every pair of patches, then&nbsp;
you could prove that there just is no solution.

01:05:48.960 --> 01:05:53.520
Trying hard and failing is not a proof. Let's&nbsp;
think about how you could prove that the snub&nbsp;&nbsp;

01:05:53.520 --> 01:05:58.240
cube is nopert. So just like we did for the&nbsp;
visualization, we can break up the problem&nbsp;&nbsp;

01:05:58.240 --> 01:06:04.400
into a number of cases. However you orient the&nbsp;
snub cube for the outer one or for the inner one,&nbsp;&nbsp;

01:06:04.400 --> 01:06:08.720
the orientation will be in one of these&nbsp;
patches. And it's fairly straightforward&nbsp;&nbsp;

01:06:08.720 --> 01:06:13.680
to prove that you only need to think about the&nbsp;
canonical patches. There's 36 of them. So that&nbsp;&nbsp;

01:06:13.680 --> 01:06:19.200
gives us 36 by 36 different cases determined by&nbsp;
which patch you're in for the outer orientation&nbsp;&nbsp;

01:06:19.200 --> 01:06:24.240
and the inner orientation. So let's just pick one&nbsp;
of those cases to see what it's like. Here we know&nbsp;&nbsp;

01:06:24.240 --> 01:06:29.120
what points the hull is made from and the points&nbsp;
might move around a little bit within some bounds&nbsp;&nbsp;

01:06:29.120 --> 01:06:34.400
that are determined by the patch. So I don't&nbsp;
know the exact shape. The question is simply:&nbsp;&nbsp;

01:06:34.400 --> 01:06:39.600
Can I fit the green one inside the red one? And&nbsp;
since these are already 2D, I'm asking whether&nbsp;&nbsp;

01:06:39.600 --> 01:06:44.720
there's any translation or rotation of the green&nbsp;
one that fits it entirely strictly within the&nbsp;&nbsp;

01:06:44.720 --> 01:06:49.920
red one. Looks like there is. Uh, that's just&nbsp;
'cause I drew something. Um, in actual fact,&nbsp;&nbsp;

01:06:49.920 --> 01:06:55.680
we think there's going to be no way to fit one&nbsp;
inside the other. This would actually be quite&nbsp;&nbsp;

01:06:55.680 --> 01:07:01.040
easy to prove if the points were in a fixed&nbsp;
location. If, that is... If I had concrete,&nbsp;&nbsp;

01:07:01.040 --> 01:07:05.600
specific polygons. So, the challenge here is&nbsp;
that these shapes change a little bit as I&nbsp;&nbsp;

01:07:05.600 --> 01:07:10.960
move around the patch. But the benefit of doing&nbsp;
this is that I know a lot about the shapes. Um,&nbsp;&nbsp;

01:07:10.960 --> 01:07:15.520
and I don't need to worry about computing convex&nbsp;
hulls anymore. The outer and inner polygons are&nbsp;&nbsp;

01:07:15.520 --> 01:07:19.760
determined from the orientations of the 3D&nbsp;
shapes. And as we discussed, we can identify&nbsp;&nbsp;

01:07:19.760 --> 01:07:24.480
those shapes with the view direction within&nbsp;
the patch. One decent way to specify this view&nbsp;&nbsp;

01:07:24.480 --> 01:07:31.600
direction is with azimuth and inclination.&nbsp;
So two angles on the sphere. Basically,&nbsp;&nbsp;

01:07:31.600 --> 01:07:38.400
the azimuth tells me how far east/west I am,&nbsp;
and the inclination tells me how far north/south&nbsp;&nbsp;

01:07:38.400 --> 01:07:43.520
I am along that arc. And with these spherical&nbsp;
coordinates, you have to be careful not to include&nbsp;&nbsp;

01:07:43.520 --> 01:07:48.160
the poles because we have the singularities&nbsp;
which we talked about... like an hour ago.&nbsp;&nbsp;

01:07:48.160 --> 01:07:53.360
But these are actually better than quaternions&nbsp;
for a lot of reasons with this approach. Anyway,&nbsp;&nbsp;

01:07:53.360 --> 01:07:58.080
that's easy to do because I have copies of these&nbsp;
patches all around. So I'm just going to pick a&nbsp;&nbsp;

01:07:58.080 --> 01:08:03.760
canonical representative that doesn't include any&nbsp;
sort of dangerous singularities. So what it would&nbsp;&nbsp;

01:08:03.760 --> 01:08:08.880
mean for there to be a solution for one of these&nbsp;
cases on the left is I've selected the outer and&nbsp;&nbsp;

01:08:08.880 --> 01:08:14.560
the inner patch. So I have view directions that&nbsp;
are in the outer and inner patch. This gives me&nbsp;&nbsp;

01:08:14.560 --> 01:08:21.280
an outer and inner polygon. And then is there a&nbsp;
way of translating and rotating the green polygon&nbsp;&nbsp;

01:08:21.280 --> 01:08:26.720
to put it inside the red one? To prove that this&nbsp;
*was* possible, I would just need to find example&nbsp;&nbsp;

01:08:26.720 --> 01:08:31.600
parameters that caused this statement to be true,&nbsp;
which is nice because then you just need to try&nbsp;&nbsp;

01:08:31.600 --> 01:08:36.880
one and be right. To prove this statement *false*,&nbsp;
I can't just try a lot of possibilities because I&nbsp;&nbsp;

01:08:36.880 --> 01:08:41.200
could always have just missed one. So, how could&nbsp;
you prove something like this? One good approach&nbsp;&nbsp;

01:08:41.200 --> 01:08:47.120
is interval arithmetic. So, let's extend the&nbsp;
scope of the video further to talk about that.

01:08:47.120 --> 01:08:51.680
Let's collect together all of the parameters&nbsp;
that we're considering for one of these cells.&nbsp;&nbsp;

01:08:52.400 --> 01:08:58.080
There are seven parameters (of course) and each&nbsp;
of them has finite bounds. This means we can think&nbsp;&nbsp;

01:08:58.080 --> 01:09:03.520
of the parameter space as a seven-dimensional&nbsp;
hypercube, if that helps, where each of the&nbsp;&nbsp;

01:09:03.520 --> 01:09:08.560
dimensions is one of these parameters. And we're&nbsp;
trying to prove that nowhere in that space is&nbsp;&nbsp;

01:09:08.560 --> 01:09:13.040
there a configuration that leads to a solution.&nbsp;
So I can at least draw a three-dimensional cube.&nbsp;&nbsp;

01:09:13.040 --> 01:09:17.360
So let's pretend there were three parameters.&nbsp;
We could never cover this cube by looking at&nbsp;&nbsp;

01:09:17.360 --> 01:09:22.800
individual points one by one. But we could cover&nbsp;
it with volumes. The idea is that we can think&nbsp;&nbsp;

01:09:22.800 --> 01:09:27.280
of these parameters as intervals. That is: Not a&nbsp;
specific point, but a range of possible points.&nbsp;&nbsp;

01:09:27.280 --> 01:09:32.320
They're contiguous. And I can still do math on&nbsp;
intervals. Like as a really trivial example,&nbsp;&nbsp;

01:09:32.320 --> 01:09:39.680
if I know that the azimuth is between 0 and 1,&nbsp;
then the azimuth plus 1/2 is between 1/2 and 1&nbsp;&nbsp;

01:09:39.680 --> 01:09:44.720
1/2. So I'll start with each of these parameters&nbsp;
taking on its full range. The interval will be the&nbsp;&nbsp;

01:09:44.720 --> 01:09:50.960
full range. So the volume is the entire hypercube.&nbsp;
And then using intervals, I'll compute sort of&nbsp;&nbsp;

01:09:50.960 --> 01:09:56.640
where are the polygons, and see whether the one&nbsp;
is in the other. And I won't be able to tell,&nbsp;&nbsp;

01:09:56.640 --> 01:10:01.920
because there's going to be so much uncertainty&nbsp;
about about these, because I'm using these wide&nbsp;&nbsp;

01:10:01.920 --> 01:10:07.920
intervals. But that's fine. I'll just pick one of&nbsp;
the dimensions and I'll bisect. So now I have two&nbsp;&nbsp;

01:10:07.920 --> 01:10:13.440
volumes that are smaller on that one dimension.&nbsp;
So I'll recurse on one of those. I'll have to&nbsp;&nbsp;

01:10:13.440 --> 01:10:19.680
do both eventually. And these are also still way&nbsp;
too big. So I'll bisect on some other dimension,&nbsp;&nbsp;

01:10:19.680 --> 01:10:24.080
which will still be too big. So I'll bisect on&nbsp;
another dimension. And I'll keep doing that until&nbsp;&nbsp;

01:10:24.080 --> 01:10:29.280
I have bounds on the locations of the points of&nbsp;
the polygons with decent certainty. With bounds on&nbsp;&nbsp;

01:10:29.280 --> 01:10:35.120
the points, I can sometimes tell that one of the&nbsp;
green vertices has to be outside the red polygon,&nbsp;&nbsp;

01:10:35.120 --> 01:10:40.080
even though I don't know quite where they are.&nbsp;
This will be the case here. So that lets me check&nbsp;&nbsp;

01:10:40.080 --> 01:10:46.320
off this possibly quite small volume that's&nbsp;
part of that seven-dimensional hypercube. And&nbsp;&nbsp;

01:10:46.320 --> 01:10:51.840
if I can cover the entire hypercube, then I&nbsp;
know that there is no solution in that cell.

01:10:51.840 --> 01:10:55.680
Now, I don't know why I drew you a schematic&nbsp;
version of that. I did implement this and I can&nbsp;&nbsp;

01:10:55.680 --> 01:11:00.320
just show you what it looks like as it's running.&nbsp;
I like watching this because it reminds me of&nbsp;&nbsp;

01:11:00.320 --> 01:11:05.360
those cop shows where it's just gratuitously&nbsp;
flipping through all of the fingerprints as&nbsp;&nbsp;

01:11:05.360 --> 01:11:09.920
they search the database for the killer. There&nbsp;
are multiple ways to prove that it can't be done&nbsp;&nbsp;

01:11:09.920 --> 01:11:14.800
for some set of parameters. For example, I could&nbsp;
compute the area of the green one bounds on the&nbsp;&nbsp;

01:11:14.800 --> 01:11:20.240
area and see that no matter what it's not going to&nbsp;
fit in the red ones bounds. There are also a lot&nbsp;&nbsp;

01:11:20.240 --> 01:11:25.600
of engineering issues and numerical issues. For&nbsp;
example, we want to be really accurate with these,&nbsp;&nbsp;

01:11:25.600 --> 01:11:29.760
right? So no floating-point roundoff. And&nbsp;
the volumes can get quite small! So I'm&nbsp;&nbsp;

01:11:29.760 --> 01:11:35.520
using arbitrary precision rational numbers for&nbsp;
everything. And so when I compute sine and cosine,&nbsp;&nbsp;

01:11:35.520 --> 01:11:40.240
I need to be able to compute bounds on that&nbsp;
using the Taylor series. And I don't want the&nbsp;&nbsp;

01:11:40.240 --> 01:11:44.800
fractions to just keep getting bigger and bigger&nbsp;
and bigger, like larger and larger denominators.&nbsp;&nbsp;

01:11:44.800 --> 01:11:49.920
So there's various tricks you can do to use&nbsp;
simpler fractions. It's all very very cool,&nbsp;&nbsp;

01:11:49.920 --> 01:11:54.640
but I could easily do an hour on just&nbsp;
the techniques used in this program.

01:11:54.640 --> 01:11:58.160
But I want you to at least take away that&nbsp;
interval arithmetic is not simply a matter&nbsp;&nbsp;

01:11:58.160 --> 01:12:03.520
of doing algebra on the endpoints like doing&nbsp;
the algebra twice. Because I think this is a&nbsp;&nbsp;

01:12:03.520 --> 01:12:09.360
characteristic difficulty, and is interesting.&nbsp;
Okay. So each interval is a lower bound and an&nbsp;&nbsp;

01:12:09.360 --> 01:12:15.360
upper bound. And if I want to add two intervals,&nbsp;
it does in fact work the simple way. Which is to&nbsp;&nbsp;

01:12:15.360 --> 01:12:20.240
add the lower bounds, add the upper bounds, and&nbsp;
the result is that. Because the smallest result&nbsp;&nbsp;

01:12:20.240 --> 01:12:25.280
you could get would come from adding the two&nbsp;
smaller values and the largest from adding the&nbsp;&nbsp;

01:12:25.280 --> 01:12:29.920
two largest. And multiplication is not much&nbsp;
more complicated than that. The main thing&nbsp;&nbsp;

01:12:29.920 --> 01:12:34.080
to realize is that the extreme values of the&nbsp;
output, which is what we're trying to compute,&nbsp;&nbsp;

01:12:34.080 --> 01:12:39.200
will happen at extreme values of the inputs, but&nbsp;
not necessarily in the same order. If I have the&nbsp;&nbsp;

01:12:39.200 --> 01:12:45.760
interval 2 to 3, and I multiply it by an interval&nbsp;
that's just -1, then I get -3 to -2, so they get&nbsp;&nbsp;

01:12:45.760 --> 01:12:50.000
swapped around. So, I basically compute all the&nbsp;
endpoints and do a min and a max over those.

01:12:50.000 --> 01:12:55.600
The interesting thing happens when I have formulas&nbsp;
that use the same interval more than once,&nbsp;&nbsp;

01:12:55.600 --> 01:13:00.160
and this is called the dependency problem. A&nbsp;
really simple case is where I have an interval&nbsp;&nbsp;

01:13:00.160 --> 01:13:09.440
Z times itself. So Z^2 on this example -3 to +2.&nbsp;
If I square that using the multiplication formula,&nbsp;&nbsp;

01:13:09.440 --> 01:13:18.160
I end up getting -6 to +9 because I have to&nbsp;
consider the possibility of +2 * -3. But Z is&nbsp;&nbsp;

01:13:18.160 --> 01:13:24.000
describing some actual number that's in between&nbsp;
-3 and +2. And anytime I square one number,&nbsp;&nbsp;

01:13:24.000 --> 01:13:28.960
I get a positive result. So although&nbsp;
-6 to +9 is a correct interval—it&nbsp;&nbsp;

01:13:28.960 --> 01:13:34.000
contains all the possible values—it's pretty&nbsp;
lossy. The best interval for z^2 here would be&nbsp;&nbsp;

01:13:34.000 --> 01:13:39.240
0 to 9. This is the essence of the dependency&nbsp;
problem. It's not just about squaring. Any&nbsp;&nbsp;

01:13:39.240 --> 01:13:44.480
time a variable appears multiple times in&nbsp;
some algebraic expression, by default you&nbsp;&nbsp;

01:13:44.480 --> 01:13:49.760
lose the dependency between that variable and&nbsp;
itself. So terms fail to cancel, for example,&nbsp;&nbsp;

01:13:49.760 --> 01:13:54.720
and you get intervals that are way too wide for&nbsp;
what you're trying to do. So for this problem,&nbsp;&nbsp;

01:13:54.720 --> 01:13:59.360
I didn't just have to reimplement the solver&nbsp;
with intervals. I had to think really carefully&nbsp;&nbsp;

01:13:59.360 --> 01:14:05.040
about the algebraic formulation of these&nbsp;
tests to minimize the dependency problem.&nbsp;&nbsp;

01:14:05.040 --> 01:14:09.680
But I mean that just means you have more&nbsp;
interesting problems to spend your life on.

01:14:09.680 --> 01:14:15.280
Speaking of interesting problems, the last&nbsp;
thing to be aware of with this proof approach,&nbsp;&nbsp;

01:14:15.280 --> 01:14:20.880
going back to the matrix of the patches, this&nbsp;
approach does work when the green and red polygons&nbsp;&nbsp;

01:14:20.880 --> 01:14:26.160
are always substantially different. Then I'm&nbsp;
able to find some subdivision where I can prove&nbsp;&nbsp;

01:14:26.160 --> 01:14:30.960
that it can't work. But on this diagonal where&nbsp;
I've selected the same inner and outer patch,&nbsp;&nbsp;

01:14:30.960 --> 01:14:35.680
this includes parameters where the inner&nbsp;
and outer view are exactly the same. And&nbsp;&nbsp;

01:14:35.680 --> 01:14:39.760
thus the red and green polygons are exactly&nbsp;
the same. Now, when they're exactly the same,&nbsp;&nbsp;

01:14:39.760 --> 01:14:44.480
I know that I can't fit one within the other.&nbsp;
That part's definitional. But near the diagonal&nbsp;&nbsp;

01:14:44.480 --> 01:14:48.880
in parameter space, it's going to look like I'm&nbsp;
close to a solution. And the interval approach&nbsp;&nbsp;

01:14:48.880 --> 01:14:52.800
will just keep subdividing. It seems like&nbsp;
it's impossible to actually rule these out.&nbsp;&nbsp;

01:14:52.800 --> 01:14:58.560
And this case is truly hard. We saw before that&nbsp;
sometimes proper solutions can be extremely close,&nbsp;&nbsp;

01:14:58.560 --> 01:15:04.640
um, to the diagonal. And I'll give you one more&nbsp;
example of that kind of thing. Suppose you just&nbsp;&nbsp;

01:15:04.640 --> 01:15:10.480
have a square. It turns out the square can pass&nbsp;
through itself, which is not at all surprising.&nbsp;&nbsp;

01:15:10.480 --> 01:15:14.560
What's maybe a little surprising is that it&nbsp;
can pass through itself arbitrarily close to&nbsp;&nbsp;

01:15:14.560 --> 01:15:21.280
this diagonal. First, just rotate it epsilon&nbsp;
along this axis in 3D. And then by 3 epsilon&nbsp;&nbsp;

01:15:21.280 --> 01:15:27.200
in the other axis. The resulting trapezoid does&nbsp;
fit back within the original square. And I can&nbsp;&nbsp;

01:15:27.200 --> 01:15:31.920
do that for epsilon as small as I like. Now&nbsp;
this shape is infinitely thin, but we can make&nbsp;&nbsp;

01:15:31.920 --> 01:15:38.000
it into a proper polyhedron by just using the kis&nbsp;
operation to add a little tent. And now we have a&nbsp;&nbsp;

01:15:38.000 --> 01:15:42.480
really problematic shape. Now I don't think this&nbsp;
ever happens for the snub cube, but in order to&nbsp;&nbsp;

01:15:42.480 --> 01:15:48.240
complete the proof, we do need to do something&nbsp;
about the diagonal. So let's work on that.

01:15:48.240 --> 01:15:59.920
[Alarming noises]

01:15:59.920 --> 01:16:08.640
Well, Christmas is cancelled. I figured I'd&nbsp;
capture this moment—this momentous occasion—where&nbsp;&nbsp;

01:16:08.640 --> 01:16:15.120
uh we were scooped. Jason just found a paper by&nbsp;
some guys that had emailed me before, of course,&nbsp;&nbsp;

01:16:15.120 --> 01:16:20.240
and I probably should have written them back.&nbsp;
Um, turns out they were also working on this&nbsp;&nbsp;

01:16:20.240 --> 01:16:27.200
problem and they proved that there exists&nbsp;
a polyhedron that does not have the Rupert&nbsp;&nbsp;

01:16:27.200 --> 01:16:34.480
property. They call it the noperth-edron.&nbsp;
Nopert-hedron. Yeah, probably noperthedron.&nbsp;&nbsp;

01:16:34.480 --> 01:16:40.400
I like to think I influenced that name a little&nbsp;
bit. Here is the aforementioned hedron. And this&nbsp;&nbsp;

01:16:40.400 --> 01:16:44.960
is a shape that they created specifically&nbsp;
to prove that it's a nopert. And this&nbsp;&nbsp;

01:16:44.960 --> 01:16:50.800
Donkey Kong barrel has 30-way cyclic symmetry&nbsp;
with 90 total vertices. So certainly I think&nbsp;&nbsp;

01:16:50.800 --> 01:16:56.160
there are smaller simpler noperts and maybe that's&nbsp;
something left to do but they were the first to&nbsp;&nbsp;

01:16:56.160 --> 01:17:01.760
demonstrate a shape that was definitely not. And&nbsp;
they independently came to a very similar approach&nbsp;&nbsp;

01:17:01.760 --> 01:17:07.120
that we were using which is to do this large&nbsp;
scale computer search for the sort of coarse&nbsp;&nbsp;

01:17:07.120 --> 01:17:12.080
case and they have some separate machinery for&nbsp;
the diagonal which they call the local theorem.&nbsp;&nbsp;

01:17:12.080 --> 01:17:16.800
But their techniques won't work out of the box&nbsp;
for the snub cube. They require a certain kind&nbsp;&nbsp;

01:17:16.800 --> 01:17:21.920
of symmetry—point symmetry around the origin—for&nbsp;
the shape. This allows them to cut down the search&nbsp;&nbsp;

01:17:21.920 --> 01:17:27.840
space to five dimensions from seven. That part&nbsp;
actually seemed like it was working pretty well.&nbsp;&nbsp;

01:17:27.840 --> 01:17:33.200
I mean this is what it looked like on the morning&nbsp;
that we found out about this. So I think the seven&nbsp;&nbsp;

01:17:33.200 --> 01:17:37.760
dimensions is actually very feasible but I think&nbsp;
we would need some kind of new local theorem in&nbsp;&nbsp;

01:17:37.760 --> 01:17:42.720
order to actually make the snub cube proof work.&nbsp;
Anyway, congrats to the authors. That whole time&nbsp;&nbsp;

01:17:42.720 --> 01:17:50.160
I was worried about aliens also being concerned&nbsp;
with this problem. But it was really Austrians.

01:17:50.160 --> 01:17:56.080
But I think in the time that I it took me&nbsp;
to set up the camera, I'm already over it.&nbsp;&nbsp;

01:17:56.080 --> 01:18:03.600
Because: I have a lengthy list of&nbsp;
other exciting projects to work on.

01:18:03.600 --> 01:18:13.520
And I can just stop any&nbsp;
time I want with the cubes.

01:18:13.520 --> 01:18:14.720
I just stop working on it.

01:18:14.720 --> 01:18:17.280
It's already solved.

01:18:17.280 --> 01:18:21.760
So easy...

