-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbilliard.tex
1018 lines (805 loc) · 41.1 KB
/
billiard.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%!TEX root = the-billiard.tex
\chapter{Gluing}\label{chapter:gluing}
In this lecture we define $\CAT(\kappa)$ spaces and prove Reshetnyak's gluing theorem.
Here ``$\CAT$'' is an acronym for Cartan, Alexandrov, and Toponogov.
It was coined by Mikhael Gromov in 1987.
Originally, Alexandrov called these spaces ``$\mathfrak{R}_\kappa$ domain'';
this term is still in use.
\section{The 4-point condition}
Given a quadruple of points $p,q,x,y$ in a metric space $\spc{X}$,
consider two model triangles in the plane
$\trig{\tilde p}{\tilde x}{\tilde y}=\modtrig{}(pxy)_{\EE^2}$
and
$\trig{\tilde q}{\tilde x}{\tilde y}=\modtrig{}(qxy)_{\EE^2}$ with common side $[\tilde x\tilde y]$.
\begin{wrapfigure}{r}{25mm}
\vskip-4mm
\centering
\includegraphics{mppics/pic-720}
\end{wrapfigure}
If the inequality
\[\dist{p}{q}{\spc{X}}\le \dist{\tilde p}{\tilde z}{\EE^2}+\dist{\tilde z}{\tilde q}{\EE^2}\]
holds for any point $\tilde z\in [\tilde x\tilde y]$, then we say that
the quadruple $p,q,x,y$ satisfies \index{$\CAT(0)$ comparison}\emph{$\CAT(0)$ comparison}.
\label{page:CAT-comparison}
If we do the same for spherical model triangles
$\trig{\tilde p}{\tilde x}{\tilde y}=\modtrig{}(pxy)_{\mathbb{S}^2}$
and
$\trig{\tilde q}{\tilde x}{\tilde y}=\modtrig{}(qxy)_{\mathbb{S}^2}$,
then we arrive at the definition of $\CAT(1)$ comparison.
If one of the spherical model triangles is undefined,\footnote{That is, if
\[\dist{p}{x}{}+\dist{p}{y}{}+\dist{x}{y}{}\ge 2\cdot\pi
\quad
\text{or}
\quad
\dist{q}{x}{}+\dist{q}{y}{}+\dist{x}{y}{}\ge 2\cdot\pi.\]}
then it is assumed that $\CAT(1)$ comparison automatically holds for this quadruple.
We can do the same for the model plane of given curvature $\kappa$;
that is, an appropriately rescled sphere if $\kappa>0$,
the Euclidean plane if $\kappa=0$
and a rescaled Lobachevsky plane if $\kappa<0$.
In this way we arrive at the definition of $\CAT(\kappa)$ comparison for any real $\kappa$.
However in these notes we will mostly consider $\CAT(0)$ comparison and occasionally $\CAT(1)$ comparison;
so, if you see $\CAT(\kappa)$, you can assume that $\kappa$ is $0$ or~$1$.
If all quadruples in a metric space $\spc{X}$ satisfy $\CAT(\kappa)$ comparison, then we say that the space $\spc{X}$ is $\CAT(\kappa)$.
(Note that $\CAT(\kappa)$ is an adjective.)
In order to check $\CAT(\kappa)$ comparison for a given quadruple of points, it is sufficient to know the 6 distances between all pairs of points in it.
This observation implies the following.
\begin{thm}{Proposition}\label{prop:cat-limit}
Any Gromov--Hausdorff limit of a sequence of $\CAT(\kappa)$ spaces is $\CAT(\kappa)$.
\end{thm}
In the proposition above,
it does not matter which definition of convergence for metric spaces you use,
as long as any quadruple of points in the limit space can be arbitrarily well approximated by quadruples in the sequence of metric spaces.
In particular, it works for the so-called \emph{ultralimits}.
\section{Geodesics}
The $\CAT$ comparison can be applied to any metric space,
but it is usually applied to geodesic spaces (or complete length spaces).
To simplify the presentation we will often assume in addition that the space is \index{proper space}\emph{proper}.
The latter means that any closed ball is compact.
Recall that a function is \index{proper function}\emph{proper} if the inverse image of any compact set is compact.
\textit{A metric space is proper} if and only if the distance function from one (and therefore any) point is proper; see Section~\ref{sec:metric spaces}.
\begin{thm}{Proposition}\label{ex:CAT-geodesic}
Let $\spc{U}$ be a complete geodesic $\CAT(0)$ space.
Then any two points in $\spc{U}$ are joined by a unique geodesic.
\end{thm}
\parit{Proof.}
Suppose there are two geodesics between $x$ and $y$.
Then we can choose two points $p\ne q$ on these geodesics such that $\dist{x}{p}{}=\dist{x}{q}{}$ and $\dist{y}{p}{}=\dist{y}{q}{}$.
Observe that the model triangles $[\tilde p\tilde x\tilde y]=\modtrig(pxy)$ and $[\tilde q\tilde x\tilde y]\z=\modtrig(qxy)$ are degenerate and moreover $\tilde p=\tilde q$.
Applying $\CAT(0)$ comparison with $\tilde z=\tilde p=\tilde q$,
we get that $\dist{p}{q}{}=0$, a contradiction.
\qeds
\begin{wrapfigure}[3]{r}{25mm}
\vskip-8mm
\centering
\includegraphics{mppics/pic-750}
\end{wrapfigure}
\begin{thm}{Exercise}\label{ex:noncreasing-CAT}
Given a hinge $\hinge p x y$ in a $\CAT(0)$ space $\spc{U}$ consider the function
\[f\:(\dist{p}{\bar x}{},\dist{p}{\bar y}{})\mapsto \angk p{\bar x}{\bar y},\]
where $\bar x\in\left]p x\right]$ and $\bar y\in\left]p y\right]$.
Show that $f$ is nondecreasing in each argument.
Conclude that any hinge in a $\CAT(0)$ space has a well defined angle.
\end{thm}
\begin{thm}{Exercise}\label{ex:contractible}
Fix a point $p$ in a complete geodesic $\CAT(0)$ space~$\spc{U}$.
Given a point $x\in \spc{U}$, denote by $\gamma_x\:[0,1]\to \spc{U}$ the (necessarily unique) geodesic path from $p$ to $x$.
Show that the family of maps $h_t\: \spc{U}\to \spc{U}$ defined by
\[h_t(x)= \gamma_x(t)\]
is a homotopy.
Conclude that $\spc{U}$ is contractible.
\end{thm}
The homotopy in the exercise is a special case of the so-called \index{geodesic homotopy}\emph{geodesic homotopy}.
Namely, given two maps $h_0,h_1\:\spc{X}\to \spc{U}$ we define homotopy
\[h_t(x)= \gamma_x(t),\]
where $\gamma_x$ is the geodesic path from $h_0(x)$ to $h_1(x)$.
The construction in the previous exercise should help to solve the next one.
\begin{thm}{Exercise}\label{ex:CAT-mnfld=>ext.geod}
Let $\spc{U}$ be a complete geodesic $\CAT(0)$ space.
Assume $\spc{U}$ is a topological manifold.
Show that any geodesic in $\spc{U}$ can be extended
as a two-side infinite geodesic.
\end{thm}
\begin{thm}{Exercise}\label{ex:geod-CBA}
Assume $\spc{U}$ is a proper length $\CAT(0)$ space
with extendable geodesics;
that is, any geodesic is an arc in a local geodesic $\RR\to \spc{U}$.
Show that the space of geodesic directions at any point in $\spc{U}$ is complete.
Does the statement remain true if $\spc{U}$ is complete, but is not required to be proper?
\end{thm}
\section{Thin triangles}
Let $\trig{\tilde x^1}{\tilde x^2}{\tilde x^3}\z=\modtrig({x^1}{x^2}{x^3})$
be a model triangle for a triangle
$\trig{x^1}{x^2}{x^3}$ in a metric space.
The map that sends a point $\tilde z\in[\tilde x^i\tilde x^j]$ to the corresponding point $z\in[x^ix^j]$ for each side will be called \index{natural map}\emph{natural}.
\begin{thm}{Definition}\label{def:k-thin}
A triangle $\trig{x}{y}{z}$ in the metric space $\spc{U}$
is called \index{thin triangle}\emph{thin} if the natural map $\modtrig{}({x}{y}{z})_{\EE^2}\to \trig{x}{y}{z}$ is distance nonincreasing.
Analogously, a triangle $\trig{x}{y}{z}$
is called \index{spherically thin}\emph{spherically thin} if
the natural map from the spherical model triangle $\modtrig{}({x}{y}{z})_{\mathbb{S}^2}$ to $\trig{x}{y}{z}$ is distance nonincreasing.
\end{thm}
\begin{thm}{Proposition}\label{prop:thin=cat}
A geodesic space is $\CAT(0)$
($\CAT(1)$)
if and only if
all its triangles are thin (respectively, all its triangles of perimeter $<2\cdot\pi$ are spherically thin).
\end{thm}
\parit{Proof; if part.}
Apply the triangle inequality and thinness of triangles $\trig pxy$ and $\trig qxy$, where $p$, $q$, $x$, and $y$ are as in the definition of the $\CAT(\kappa)$ comparison.
\parit{Only-if part.}
Applying $\CAT(0)$ comparison to a quadruple $p,q,x,y$ with $q\in [xy]$ shows that any triangle satisfies \index{point-side comparison}\emph{point-side comparison}, that is, the distance from a vertex to a point on the opposite side is no greater than the corresponding distance in the Euclidean model triangle.
Now consider a triangle $\trig{x}{y}{z}$ and let $p\in [xy]$ and $q\in [xz]$.
Let $\tilde p$, $\tilde q$ be the corresponding points on the sides of the model triangle $\modtrig({x}{y}{z})_{\EE^2}$.
Applying \ref{ex:noncreasing-CAT}, we get that
\[\angk {x} {y} {z}_{\EE^2} \ge \angk {x} p q _{\EE^2}.\]
Therefore $ \dist{\tilde p}{\tilde q}{\EE^2}\ge \dist{p}{q}{}$.
The $\CAT(1)$ argument is the same.
\qeds
Recall that a curve $\gamma\:\II\to \spc{U}$ is called a \index{geodesic!local geodesic}\emph{local geodesic} if for any $t\in\II$ there is a neighborhood $U$ of $t$ in $\II$ such that the restriction $\gamma|_U$ is a geodesic.
Note that a local geodesic has unit speed.
\begin{thm}{Proposition}\label{cor:loc-geod-are-min}
Suppose $\spc{U}$ is a proper geodesic $\CAT(0)$ space.
Then any local geodesic in $\spc{U}$ is a geodesic.
Analogously, if $\spc{U}$ is a proper geodesic $\CAT(1)$ space, then any local geodesic in $\spc{U}$ which is shorter than $\pi$ is a geodesic.
\end{thm}
\parit{Proof.}
Suppose $\gamma\:[0,\ell]\to\spc{U}$ is a local geodesic that is not a geodesic.
Choose $a$ to be the maximal value
such that $\gamma$ is a geodesic on $[0,a]$. By assumption $a<l$.
Further, choose $b>a$ so that $\gamma$ is a geodesic on $[a,b]$.
\begin{wrapfigure}{r}{25mm}
\vskip-5mm
\centering
\includegraphics{mppics/pic-800}
\end{wrapfigure}
Since the triangle $\trig{\gamma(0)}{\gamma(a)}{\gamma(b)}$ is thin and
$\dist{\gamma(0)}{\gamma(b)}{}<b$, we have
\[\dist{\gamma(a-\eps)}{\gamma(a+\eps)}{}<2\cdot\eps\]
for all small~$\eps>0$.
That is, $\gamma$ is not length-minimizing on the interval $[a-\eps,a+\eps]$ for any $\eps>0$,
a contradiction.
The spherical case is proved in the same way.
\qeds
\begin{thm}{Exercise}\label{ex:convex-distfun}
Let $\spc{U}$ be a complete geodesic space.
Show that $\spc{U}$ is $\CAT(0)$ if and only if the function $f=\tfrac12\cdot\distfun_p^2$ is \index{1-convex function}\emph{1-convex} for any $p\in \spc{U}$;
that is, the function $t\mapsto f\circ \gamma(t) - \tfrac 12\cdot t^2$ is convex for any geodesic $\gamma$.
\end{thm}
\begin{thm}{Exercise}\label{ex:convex-dist}
Suppose $\gamma_1,\gamma_2\:[0,1]\to \spc{U}$ are two geodesic paths in a complete geodesic $\CAT(0)$ space $\spc{U}$.
Show that
\[t\mapsto\dist{\gamma_1(t)}{\gamma_2(t)}{\spc{U}}\]
is a convex function.
\end{thm}
\begin{thm}{Exercise}\label{ex:displacement}
Let $\iota$ be an isometry of a $\CAT(0)$ space $\spc{U}$ to itself.
Show that its \index{displacement function}\emph{displacement function} $f\:\spc{U}\to\RR$ defined by
\[f(x)\df\dist{x}{\iota(x)}{\spc{U}}\]
is \index{convex function}\emph{convex};
that is, the function $t\mapsto f\circ \gamma(t)$ is convex for any geodesic~$\gamma$.
\end{thm}
\begin{thm}{Exercise}\label{ex:convex-nbhd}
Let $A$ be a convex closed set in a geodesic $\CAT(0)$ space $\spc{U}$;
that is, if $x,y\in A$, then $[xy]\subset A$.
Show that $\distfun_A$ is convex.
In particular, for any $r>0$ the closed $r$-neighborhood of $A$ is convex;
that is, the set
\[A_r=\set{x\in \spc{U}}{\distfun_Ax\le r}\]
is convex.
\end{thm}
\begin{thm}{Exercise}\label{ex:closest-point}
Let $\spc{U}$ be a proper geodesic $\CAT(0)$ space
and $K\subset \spc{U}$ be a closed convex set.
Show that:
\begin{subthm}{ex:closest-point:a}
For each point $p\in \spc{U}$ there is a unique point $p^*\in K$ that minimizes the distance $\dist{p}{p^*}{}$.
\end{subthm}
\begin{subthm}{ex:closest-point:b}
The nearest-point projection $p\mapsto p^*$ defined by \ref{SHORT.ex:closest-point:a} is short (that is, 1-Lipschitz).
\end{subthm}
\end{thm}
Recall that a set $A$ in a metric space $\spc{U}$ is called \index{locally convex set}\emph{locally convex} if for any point $p\in A$ there is an open neighborhood $\spc{U}\ni p$ such that any geodesic in $\spc{U}$ with ends in $A$ lies in~$A$.
\begin{thm}{Exercise}\label{ex:locally-convex}
Let $\spc{U}$ be a proper geodesic $\CAT(0)$ space.
Show that any closed, connected, locally convex set in $\spc{U}$ is convex.
\end{thm}
\section{Inheritance lemma} \label{sec:thin-triangle}
\begin{thm}{Inheritance lemma}
\label{lem:inherit-angle}
Assume that a triangle $\trig p x y$
in a metric space is \index{decomposed triangle}\emph{decomposed}
into two triangles $\trig p x z$ and $\trig p y z$;
that is, $\trig p x z$ and $\trig p y z$ have a common side $[p z]$, and the sides $[x z]$ and $[z y]$ together form the side $[x y]$ of $\trig p x y$.
\begin{wrapfigure}{r}{25mm}
\vskip-0mm
\centering
\includegraphics{mppics/pic-810}
\end{wrapfigure}
If both triangles $\trig p x z$ and $\trig p y z$ are thin,
then the triangle $\trig p x y$ is also thin.
Analogously, if $\trig p x y$ has perimeter $<2\cdot\pi$ and both triangles $\trig p x z$ and $\trig p y z$ are spherically thin, then triangle $\trig p x y$ is spherically thin.
\end{thm}
\parit{Proof.}
Construct the model triangles $\trig{\dot p}{\dot x}{\dot z}\z=\modtrig(p x z)_{\EE^2}$
and $\trig {\dot p} {\dot y} {\dot z}\z=\modtrig(p y z)_{\EE^2}$ so that $\dot x$ and $\dot y$ lie on opposite sides of $[\dot p\dot z]$.
\begin{wrapfigure}{r}{33mm}
\vskip-0mm
\centering
\includegraphics{mppics/pic-821}
\vskip0mm
\end{wrapfigure}
Let us show that
\[\angk{z}{p}{x}+\angk{z}{p}{y}
\ge
\pi.
\eqlbl{eq:<+<>=pi}\]
If not, then for some point $\dot w\in[\dot p\dot z]$, we have \[\dist{\dot x}{\dot w}{}+\dist{\dot w}{\dot y}{}
<
\dist{\dot x}{\dot z}{}+\dist{\dot z}{\dot y}{}=\dist{x}{y}{}.\]
Let $w\in[p z]$ correspond to $\dot w$; that is, $\dist{z}{w}{}=\dist{\dot z}{\dot w}{}$.
Since $\trig p x z$ and $\trig p y z$ are thin, we have
\[\dist{x}{w}{}+\dist{w}{y}{}<\dist{x}{y}{},\]
contradicting the triangle inequality.
Denote by $\dot D$ the union of two solid triangles $\trig {\dot p}{\dot x}{\dot z}$ and $\trig {\dot p} {\dot y} {\dot z}$.
Further, denote by $\tilde D$ the solid triangle $\trig{\tilde p}{\tilde x}{\tilde y}=\modtrig(p x y)_{\EE^2}$.
By \ref{eq:<+<>=pi}, there is a \index{short map}\emph{short map}\footnote{In other words, distance-nonexpanding or 1-Lipschitz.}
$F\:\tilde D\to \dot D$ that sends
\begin{align*}
\tilde p&\mapsto \dot p,
&
\tilde x&\mapsto \dot x,
&
\tilde z&\mapsto \dot z,
&
\tilde y&\mapsto \dot y.
\end{align*}
\begin{wrapfigure}{r}{50mm}
\vskip-2mm
\centering
\includegraphics{mppics/pic-830}
\vskip0mm
\end{wrapfigure}
Indeed, by Alexandrov's lemma (\ref{lem:alex}),
there are nonoverlapping triangles
\[\trig{\tilde p}{\tilde x}{\tilde z_x}\iso\trig {\dot p}{\dot x}{\dot z}\]
and
\[\trig{\tilde p}{\tilde y}{\tilde z_y}\iso\trig {\dot p}{\dot y}{\dot z}\]
inside the triangle $\trig{\tilde p}{\tilde x}{\tilde y}$.
Connect the points in each pair
$(\tilde z,\tilde z_x)$,
$(\tilde z_x,\tilde z_y)$
and $(\tilde z_y,\tilde z)$
with arcs of circles centered at
$\tilde y$, $\tilde p$, and $\tilde x$ respectively.
Define $F$ as follows:
\begin{itemize}
\item Map $\Conv\trig{\tilde p}{\tilde x}{\tilde z_x}$ isometrically onto $\Conv\trig {\dot p}{\dot x}{\dot z}$;
similarly map $\Conv \trig{\tilde p}{\tilde y}{\tilde z_y}$ onto $\Conv \trig {\dot p}{\dot y}{\dot z}$.
\item If $x$ is in one of the three circular sectors, say at distance $r$ from its center, set $F(x)$ to be the point on the corresponding segment
$[p z]$,
$[x z]$
or $[y z]$ whose distance from the left-hand endpoint of the segment is~$r$.
\item Finally, if $x$ lies in the remaining curvilinear triangle $\tilde z \tilde z_x \tilde z_y$,
set $F(x) = z$.
\end{itemize}
By construction, $F$ satisfies the conditions.
By assumption, the natural maps $\trig {\dot p} {\dot x} {\dot z}\to\trig p x z$ and $\trig {\dot p} {\dot y} {\dot z}\to\trig p y z$ are short.
By composition, the natural map from $\trig{\tilde p}{\tilde x}{\tilde y}$ to $\trig p y z$ is short, as claimed.
The spherical case is done along the same lines.
\qeds
\section{Reshetnyak's gluing}\label{sec:cba-gluing}
Suppose
$\spc{U}^1$ and $\spc{U}^2$ are spaces
with isometric closed sets $A^i\subset\spc{U}^i$ and let $\iota\:A^1\to A^2$ be an isometry.
Consider the space $\spc{W}$ of all equivalence classes in $\spc{U}^1\sqcup\spc{U}^2$ with the equivalence relation given by $a\sim\iota(a)$ for any $a\in A^1$.
Let us equip $\spc{W}$ with the minimal metric such that both natural maps $\spc{U}^1\to \spc{W}$ are short;
for a more general definition see \cite[1D]{petrunin-2023}.
The space $\spc{W}$ is called the \index{gluing}\emph{gluing} of $\spc{U}^1$ and $\spc{U}^2$ along~$\iota$.
If one applies this construction to two copies of one space $\spc{U}$ with a closed subset $A\subset \spc{U}$ and the identity map $\iota\:A\to A$, then the obtained space is called the \index{double}\emph{double} of $\spc{U}$ along~$A$.
If $\spc{U}^1$ and $\spc{U}^2$ are proper and geodesic and $A^i$ are convex in $\spc{U}^i$,
then it is easy to check that $\spc{W}$ is a proper geodesic space as well and its metric can be described the following way:
\begin{align*}
\dist{x}{y}{\spc{W}}&\df\dist{x}{y}{\spc{U}^i}
\\
&\quad\text{if}\quad x,y\in \spc{U}^i,\quad\text{and}
\\
\dist{x}{y}{\spc{W}}&\df\min\set{\dist{x}{a}{\spc{U}^1}+\dist{y}{\iota(a)}{\spc{U}^2}}{a\in A^1}
\\
&\quad\text{if}\quad x\in \spc{U}^1\quad\text{and}\quad y\in \spc{U}^2.
\end{align*}
Abusing notation, we denote by $x$ and $y$ the points in $\spc{U}^1\sqcup\spc{U}^2$ and their equivalence classes in $\spc{U}^1\sqcup\spc{U}^2/{{\sim}}$.
We can (and will) identify $\spc{U}^i$ with its image in $\spc{W}$;
this way both subsets $A^i\subset \spc{U}^i$ will be identified and denoted further by~$A$.
Note that $A=\spc{U}^1\cap \spc{U}^2\subset \spc{W}$,
therefore $A$ is also a convex set in~$\spc{W}$.
{\sloppy
\begin{thm}{Reshetnyak gluing}\label{thm:gluing}
Suppose
$\spc{U}^1$ and $\spc{U}^2$ are proper geodesic $\CAT(0)$ spaces
with isometric
closed
convex
sets $A^i\subset\spc{U}^i$, and $\iota\:A^1\z\to A^2$ is an isometry.
Then the gluing of $\spc{U}^1$ and $\spc{U}^2$ along $\iota$ is a $\CAT(0)$ proper geodesic space.
\end{thm}
}
\parit{Proof.}
By construction of the gluing space, the statement can be reformulated in the following way:
\begin{thm}{Reformulation of \ref{thm:gluing}}
Let $\spc{W}$ be a
proper geodesic space with two closed
convex sets $\spc{U}^1,\spc{U}^2\subset\spc{W}$ such that
$\spc{U}^1\cup\spc{U}^2=\spc{W}$
and $\spc{U}^1$, $\spc{U}^2$ are $\CAT(0)$.
Then $\spc{W}$ is $\CAT(0)$.
\end{thm}
\begin{wrapfigure}{o}{45mm}
\vskip-0mm
\centering
\includegraphics{mppics/pic-840}
\end{wrapfigure}
It suffices to show that any triangle $\trig {x}{y}{z}$
in $\spc{W}$ is thin.
This is obviously true if all three points $x$, $y$, $z$ lie in one of~$\spc{U}^i$.
Thus, without loss of generality, we may assume that $x\z\in\spc{U}^1$ and $y,z\z\in\spc{U}^2$.
Choose points $a,b\in A\z=\spc{U}^1\z\cap\spc{U}^2$
that lie respectively on the sides $[xy], [xz]$.
Note that
\begin{itemize}
\item the triangle $\trig{x}{a}{b}$ lies in $\spc{U}^1$,
\item both triangles $\trig{y}{a}{b}$ and $\trig{y}{b}{z}$ lie in~$\spc{U}^2$.
\end{itemize}
In particular, each triangle $\trig{x}{a}{b}$,
$\trig{y}{a}{b}$, and $\trig{y}{b}{z}$ is thin.
Applying the inheritance lemma (\ref{lem:inherit-angle}) twice,
we get that $\trig {x}{y}{b}$
and consequently $\trig {x}{y}{z}$ is thin.
\qeds
Let $A$ be a closed subset in a metric space $\spc{U}$.
Gluing of two copies of $\spc{U}$ along the copies of $A$ is called \index{doubling}\emph{doubling} $\spc{U}$ along $A$
\begin{thm}{Exercise}\label{ex:reshetnyak-doubling}
Suppose $\spc{W}$ is a doubling of a geodesic space $\spc{U}$ along its closed subset $A$.
Show that $\spc{W}$ is $\CAT(0)$ if and only if $\,\spc{U}$ is $\CAT(0)$, and $A$ is convex in $\spc{U}$.
\end{thm}
\section{Comments}
The gluing theorem (\ref{thm:gluing}) was proved by Yuri Reshetnyak~\cite{reshetnyak:glue}.
It can be extended to all geodesic $\CAT(0)$ spaces.
It also admits a natural generalization to
geodesic $\CAT(\kappa)$
spaces for arbitrary $\kappa$;
see the book of Martin Bridson and Andr\'e Haefliger \cite{bridson-haefliger} and our book \cite{alexander-kapovitch-petrunin-2025} for details.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Billiards}\label{chap:billiards}
\section{Puff pastry}\label{sec:puff-pastry}
In this section, we introduce
the notion of
Reshetnyak puff pastry. This construction will be used in the next section to prove the collision theorem (\ref{thm:collision}).
Let $\bm{A}=(A^1,\dots,A^N)$ be an array of convex closed sets in the Euclidean space~$\EE^m$.
Consider an array of $N+1$ copies of~$\EE^m$.
Assume that the space $\spc{R}$ is
obtained by
gluing successive pairs of spaces along $A^1,\dots,A^N$ respectively.
\begin{figure}[ht!]
\vskip-0mm
\centering
\includegraphics{mppics/pic-850}
\caption*{Puff pastry for $(A,B,A)$.}
\end{figure}
The resulting space $\spc{R}$ will be called
the
\index{puff pastry}\emph{Reshetnyak puff pastry} for array~$\bm{A}$.
The copies of $\EE^m$ in the puff pastry $\spc{R}$
will be called {}\emph{levels};
they will be denoted by $\spc{R}^0,\dots,\spc{R}^N$.
The point in the $k$-th level $\spc{R}^k$
that corresponds to $x\in \EE^m$
will be denoted by~$x^k$.
Given $x\in \EE^m$, any point $x^k\in\spc{R}$ is called a {}\emph{lifting} of~$x$.
The map $x\mapsto x^k$ defines an isometry $\EE^m\to \spc{R}^k$;
in particular, we can talk about liftings of subsets in~$\EE^m$.
Note that:
\begin{itemize}
\item The intersection $A^1\cap\dots\cap A^N$ admits a unique lifting in~$\spc{R}$.
\item Moreover, $x^i=x^j$ for some $i<j$
if and only if
\[x\in A^{i+1}\cap\dots\cap A^j.\]
\item For any $k$, the restriction $\spc{R}^k\to \EE^m$
of the natural projection $x^k\mapsto x$ is an isometry.
\end{itemize}
\begin{thm}{Observation}\label{obs:puff pastry is CAT}
Any Reshetnyak puff pastry is a proper geodesic $\CAT(0)$ space.
\end{thm}
\parit{Proof.} Apply Reshetnyak gluing theorem (\ref{thm:gluing}) recursively for the convex sets in the array.
\qeds
\begin{thm}{Proposition}\label{prop:A-check-A}
Assume $(A^1,\dots,A^N)$ and $(\check A^1,\dots,\check A^N)$ are two arrays of convex closed sets in $\EE^m$
such that $ A^k\subset \check A^k$ for each~$k$.
Let $\spc{R}$ and $\check{\spc{R}}$ be the corresponding Reshetnyak puff pastries.
Then the map $\spc{R}\to\check{\spc{R}}$
defined by $x^k\mapsto\check x^k$ is well defined and short.
Moreover, if
\[\dist{x^i}{y^j}{\spc{R}}=\dist{\check x^i}{\check y^j}{\check{\spc{R}}}\eqlbl{eq:dist=dist}\]
for some $x,y\in \EE^m$ and $i,j\in \{0,\dots,n\}$,
then the unique geodesic $[\check x^i \check y^j]_{\check{\spc{R}}}$
is the image of the unique geodesic $[x^i y^j]_{\spc{R}}$
under the map $x^i\mapsto \check x^i$.
\end{thm}
\parit{Proof.}
The first statement in the proposition
follows from the construction of Reshetnyak puff pastries.
By Observation~\ref{obs:puff pastry is CAT},
$\spc{R}$ and $\check{\spc{R}}$ are proper geodesic $\CAT(0)$ spaces;
hence $[x^i y^j]_{\spc{R}}$
and $[\check x^i \check y^j]_{\check{\spc{R}}}$ are unique.
By \ref{eq:dist=dist}, since the map $\spc{R}\to\check{\spc{R}}$ is short,
the image of $[x^i y^j]_{\spc{R}}$
is a geodesic of $\check{\spc{R}}$ joining $\check x^i$ to~$\check y^j$.
Hence the second statement follows.
\qeds
%??? Sasha suggests to add the following def:
%Say that a puff-pastry is "simple" (or whatever) if there exists a geodesic connecting a point from the first with a point in the last leave and which does not cut $A_i\cap A_j$ for no $i,j$.
%The theorem about pastry you prove is that if the angles are large there are no high simple puff pastries.
\begin{thm}{Definition}
Consider a Reshetnyak puff pastry $\spc{R}$ with the levels
$\spc{R}^0,\dots,\spc{R}^N$.
We say that $\spc{R}$ is \index{end-to-end convex}\emph{end-to-end convex}
if $\spc{R}^0\cup\spc{R}^N$, the union of its lower and upper levels,
forms a convex set in~$\spc{R}$;
that is, if $x,y\in \spc{R}^0\cup\spc{R}^N$, then $[xy]_{\spc{R}}\subset \spc{R}^0\cup\spc{R}^N$.
\end{thm}
Note that if $\spc{R}$ is the Reshetnyak puff pastry for an array of convex sets $\bm{A}=(A^{1},\dots, A^{N})$,
then $\spc{R}$ is end-to-end convex
if and only if the union of the lower and the upper levels
$\spc{R}^0\cup\spc{R}^N$ is isometric to the double of $\EE^m$ along the nonempty intersection $A^1\cap\dots\cap A^N$.
\begin{thm}{Observation}\label{obs:end-to-end-convex}
Let $\check{\bm{A}}$ and $\bm{A}$ be arrays of convex bodies in~$\EE^m$.
Assume that array $\bm{A}$ is
obtained by inserting in $\check{\bm{A}}$
several copies of the bodies which were already listed in~$\check{\bm{A}}$.
For example, if $\check{\bm{A}}=(A,C,B,C,A)$, by placing $B$ in the second place and $A$ in the fourth place, we obtain $\bm{A}=(A,B,C,A,B,C,A)$.
Denote by $\check{\spc{R}}$ and $\spc{R}$
the Reshetnyak puff pastries for $\check{\bm{A}}$ and $\bm{A}$ respectively.
If $\check{\spc{R}}$ is end-to-end convex, then so is~$\spc{R}$.
\end{thm}
\parit{Proof.}
Without loss of generality, we may assume that $\bm{A}$ is
obtained by inserting one element in $\check{\bm{A}}$,
say at the place number~$k$.
Note that $\check{\spc{R}}$ is isometric to the puff pastry
for $\bm{A}$ with $A^k$ replaced by~$\EE^m$.
It remains to apply Proposition~\ref{prop:A-check-A}.
\qeds
{
\begin{wrapfigure}{o}{30mm}
\vskip-4mm
\centering
\includegraphics{mppics/pic-860}
\end{wrapfigure}
Let $X$ be a convex subset in a Euclidean space.
By a \index{dihedral angle}\emph{dihedral angle}, we understand an intersection of two half-spaces;
the intersection of corresponding hyperplanes is called the {}\emph{edge} of the angle.
We say that a dihedral angle $D$
supports
$X$ at a point $p\in X$
if $D$ contains $X$ and the edge of $D$ contains~$p$.
}
\begin{thm}{Lemma}\label{lem:end-to-end-convex}
Let $A$ and $B$ be two-convex sets in~$\EE^m$.
Assume that any dihedral angle supporting $A\cap B$ has angle measure at least~$\alpha$.
Then the Reshetnyak puff pastry for the array
\[(\underbrace{A,B,A,\dots}_{\text{$\lceil\tfrac\pi\alpha\rceil+1$ times}}).\]
is end-to-end convex.
\end{thm}
The proof of the lemma is based on a partial case,
which we formulate as a sublemma.
\begin{thm}{Sublemma}\label{sublem:end-to-end-convex}
Let $\ddot A$ and $\ddot B$ be two
half-planes in $\EE^2$, where $\ddot A\cap \ddot B$ is an angle with measure~$\alpha$.
Then the Reshetnyak puff pastry for the array \[(\underbrace{\ddot A,\ddot B,\ddot A,\dots}_{\text{$\lceil\tfrac\pi\alpha\rceil+1$ times}})\]
is end-to-end convex.
\end{thm}
\parit{Proof.}
Note that the puff pastry $\ddot{\spc{R}}$ is isometric to the cone over the space glued from the unit circles as shown on the diagram.
All the short arcs on the diagram have length $\alpha$;
the long arcs have length $\pi-\alpha$,
so making a circuit along any path will take~$2\cdot\pi$.
{
\begin{wrapfigure}{r}{35mm}
\vskip0mm
\centering
\includegraphics{mppics/pic-870}
\end{wrapfigure}
Applying Exercise \ref{ex:cone-geod}, we get that
the end-to-end convexity of $\ddot{\spc{R}}$ follows if any geodesic shorter than $\pi$ with the ends on the inner and the outer circles lies completely in the union of these two circles.
The latter holds if the zigzag line in the picture has length at least~$\pi$.
This line is formed by $\lceil\tfrac\pi\alpha\rceil$ arcs with length $\alpha$ each.
Hence the sublemma.
\qeds
}
In the proof of \ref{lem:end-to-end-convex}, we will use the following exercise in convex geometry:
\begin{thm}{Exercise}\label{ex:supporting-planes}
Let $A$ and $B$ be two closed convex sets in $\EE^m$ and $A\cap B\ne\emptyset$.
Given two points $x,y\in \EE^m$ let $f(z)=\dist{x}{z}{}+\dist{y}{z}{}$.
Let $z_0\in A\cap B$ be a point of minimum of $f|_{A\cap B}$.
Show that there are half-spaces $\dot A$ and $\dot B$ such that
$\dot A\supset A$ and $\dot B\supset B$
and $z_0$ is also a point of minimum of the restriction $f|_{\dot A\cap \dot B}$.
\end{thm}
\begin{wrapfigure}{r}{26mm}
\vskip-4mm
\centering
\includegraphics{mppics/pic-880}
\vskip-4mm
\end{wrapfigure}
\parit{Proof of \ref{lem:end-to-end-convex}.}
Fix arbitrary $x,y\in \EE^m$.
Choose a point $z\in A\cap B$
for which the sum
\[\dist{x}{z}{}+\dist{y}{z}{}\]
is minimal.
To show the end-to-end convexity of $\spc{R}$,
it is sufficient to prove the following:
\begin{clm}{}\label{clm:z in xy}
The geodesic $[x^0y^N]_\spc{R}$ contains $z^0=z^N\in \spc{R}$.
\end{clm}
Without loss of generality, we may assume that $z\in\partial A\cap\partial B$.
Indeed, since the puff pastry for the 1-array $(B)$ is end-to-end convex,
Proposition~\ref{prop:A-check-A} together with \ref{obs:end-to-end-convex}
imply \ref{clm:z in xy} in case $z$ lies in the interior of~$A$.
The same way we can treat the case when $z$ lies in the interior of~$B$.
Note that $\EE^{m}$ admits
an
isometric splitting $\EE^{m-2}\times \EE^2$
such that
\begin{align*}
\dot A&=\EE^{m-2}\times \ddot A
\\
\dot B&=\EE^{m-2}\times \ddot B
\end{align*}
where $\ddot A$ and $\ddot B$ are half-planes in~$\EE^2$.
Using Exercise \ref{ex:supporting-planes}, let us replace each $A$ by $\dot A$ and each $B$ by $\dot B$
in the array, to get the array
\[(\underbrace{\dot A,\dot B,\dot A,\dots}_{\text{$\lceil\tfrac\pi\alpha\rceil+1$ times}}).\]
The corresponding puff pastry $\dot{\spc{R}}$
splits as a product of $\EE^{m-2}$ and a puff pastry,
call it $\ddot{\spc{R}}$,
glued from the copies of the plane $\EE^2$ for the array
\[(\underbrace{\ddot A,\ddot B,\ddot A,\dots}_{\text{$\lceil\tfrac\pi\alpha\rceil+1$ times}}).\]
Note that the dihedral angle $\dot A\cap \dot B$ is at least~$\alpha$.
Therefore the angle measure of $\ddot A\cap \ddot B$ is also at least $\alpha$.
According to Sublemma~\ref{sublem:end-to-end-convex} and Observation~\ref{obs:end-to-end-convex}, $\ddot{\spc{R}}$ is end-to-end convex.
Since $\dot{\spc{R}}\iso\EE^{m-2}\times\ddot{\spc{R}}$,
the puff pastry $\dot{\spc{R}}$ is also end-to-end convex;
see \ref{ex:geod-prod}.
It follows that the geodesic $[\dot x^0\dot y^N]_{\dot{\spc{R}}}$ contains $\dot z^0=\dot z^N\in\dot{\spc{R}}$.
By Proposition~\ref{prop:A-check-A},
the image of $[\dot x^0\dot y^N]_{\dot{\spc{R}}}$
under the map $\dot x^k\mapsto x^k$
is the geodesic $[x^0 y^N]_{\spc{R}}$.
Hence \ref{clm:z in xy} and the lemma follow.
\qeds
\section{Wide corners}
\label{sec:wide-corners}
\begin{wrapfigure}{r}{26mm}
\vskip-4mm
\centering
\includegraphics{mppics/pic-885}
\end{wrapfigure}
We say that a closed convex set $A\subset \EE^m$ has \index{$\eps$-wide corners}\emph{$\eps$-wide corners}\label{page:wide corners} for given $\eps >0$
if together with each point $p$,
the set $A$ contains a small right circular cone
with the tip at $p$ and aperture $\eps$;
that is, $\eps$ is the maximum angle between two generating lines of the cone.
For example,
a plane polygon
has $\eps$-wide corners
if all its interior angles are at least~$\eps$.
We will consider arrays of closed convex sets
$A^1,\dots,A^n$ in $\EE^m$
such that for any subset $F\subset\{1,\dots,n\}$,
the intersection
$\bigcap_{i\in F}A^i$
has $\eps$-wide corners.
In this case, we may say briefly \index{$\eps$-wide corners}\textit{all intersections of $A^i$ have $\eps$-wide corners}.
\begin{thm}{Exercise}\label{ex:compact-walls}
Assume $A^1,\dots,A^n\subset\EE^m$ are compact, convex sets with a common interior point.
Show that all intersections of $A^i$ have $\eps$-wide corners for some~$\eps>0$.
\end{thm}
\begin{thm}{Exercise}\label{ex:centrally-simmetric-walls}
Assume $A^1,\dots,A^n\subset\EE^m$ are
convex sets with nonempty interiors that have a common center of symmetry.
Show that all intersections of $A^i$ have $\eps$-wide corners for some~$\eps>0$.
\end{thm}
The proof of the following proposition is based on \ref{lem:end-to-end-convex};
this lemma is essentially the case $n=2$ in the proposition.
\begin{thm}{Proposition}\label{prop:end-to-end-convex}
Given $\eps>0$ and a positive integer $n$,
there is an array of integers $\bm{j}_\eps(n)=(j_1,\dots,j_N)$
such that:
\begin{subthm}{} For each $k$ we have $1\le j_k\le n$,
and each number $1,\dots,n$ appears in $\bm{j}_\eps$ at least once.
\end{subthm}
\begin{subthm}{}
If $A^1,\dots,A^n$ is a collection of closed convex sets in $\EE^m$ with a common point
and all their intersections have $\eps$-wide corners,
then the puff pastry for the array
$(A^{j_1},\dots,A^{j_N})$ is end-to-end convex.
\end{subthm}
Moreover, we can assume that $N\le (\lceil\tfrac\pi\eps\rceil+1)^n$.
\end{thm}
\parit{Proof.}
The array $\bm{j}_\eps(n)=(j_1,\dots,j_N)$ is constructed recursively.
For $n=1$, we can take $\bm{j}_\eps(1)=(1)$.
Assume that $\bm{j}_\eps(n)$ is constructed.
Let us replace each occurrence of $n$ in $\bm{j}_\eps(n)$ by the alternating string
\[\underbrace{n,n+1,n,\dots}_{\text{$\lceil\tfrac\pi\eps\rceil+1$ times}}.\]
Denote the obtained array by $\bm{j}_\eps(n+1)$.
By Lemma \ref{lem:end-to-end-convex},
the end-to-end convexity of the puff pastry for $\bm{j}_\eps(n\z+1)$
follows from the end-to-end convexity of the puff pastry for the array
where each string
\[\underbrace{A^n,A^{n+1},A^n,\dots}_{\text{$\lceil\tfrac\pi\eps\rceil+1$ times}}\]
is replaced by $Q=A^n\cap A^{n+1}$.
End-to-end convexity of the latter follows by the assumption on $\bm{j}_\eps(n)$,
since all the intersections of $A^1,\dots,A^{n-1},Q$
have $\eps$-wide corners.
The upper bound on $N$ follows directly from the construction.
\qeds
\section{Billiards}
Let $A^1,A^2,\dots, A^n$ be a finite collection of closed convex sets in~$\EE^m$.
Assume that for each $i$
the boundary $\partial A^i$ is a smooth hypersurface.
Consider the billiard table formed by the closure of the complement
$$T=\overline{\EE^m\setminus \bigcup_{i} A^i}.$$
The sets $A^i$ will be called {}\emph{walls} of the table
and the billiards described above will be called {}\emph{billiards with convex walls}.
A billiard {}\emph{trajectory}
on the table is a unit-speed broken line $\gamma$
that follows the
standard law of billiards
at the breakpoints on $\partial A^i$
--- in particular, the angle of reflection is equal to the angle of incidence.
The breakpoints of the trajectory will be called {}\emph{collisions}.
\textit{
We assume that trajectory never meets a wall in a tangent direction.
Also, we will always assume the trajectory meets at most one wall in a small neighborhood of every time moment.
For example, if $\gamma$ have to meet more then two walls at time moment $t$
or collisions accumulate at $t$, then we have to assume that $\gamma$ dies before $t$.}
Recall that the definition of sets with $\eps$-wide corners is given in \ref{sec:wide-corners}.
\begin{thm}{Collision theorem}\label{thm:collision}
Let $T\subset\EE^m$ be a billiard table with $n$ convex walls.
Assume that the walls of $T$ have a common interior point and all their intersections have $\eps$-wide corners.
Then the number of collisions of any trajectory in $T$ is bounded
by a number $N$ which depends only on $n$ and~$\eps$.
\end{thm}
As we will see from the proof,
the value $N$ can be found explicitly;
$N=(\lceil\tfrac\pi\eps\rceil+1)^{n^2}$
will do.
\begin{thm}{Corollary}\label{cor:balls}
Consider $n$ homogeneous hard balls
moving freely and colliding
elastically in~$\RR^3$.
Every ball moves
along a straight line with constant speed until two balls collide, and then
the new velocities of the two balls are determined by the
laws of classical mechanics.
We assume that only two balls can collide at the same time.
Then the total number of collisions cannot exceed some number $N$ that depends on the radii and masses of the balls.
If the balls are identical, then $N$ depends only on~$n$.
\end{thm}
The proof below admits a straightforward generalization to all dimensions.
\begin{thm}{Exercise}\label{cor:balls:dim=1}
Show that in the case of identical balls in the one-dimensional space (that is, in $\RR$)
the total number of collisions cannot exceed $N=\tfrac{n\cdot(n-1)}2$.
\end{thm}
\parit{Proof of \ref{cor:balls} modulo \ref{thm:collision}.}
Denote by $a_i=(x_i,y_i,z_i) \in \RR^3$ the center of the $i$-th ball.
Consider the corresponding point in $\RR^{3\cdot N}$
\begin{align*}
\bm{a}&=(a_1, a_2 , \dots , a_n ) =
\\
&=(x_1, y_1 , z_1 , x_2 , y_2 , z_2 , \dots , x_n , y_n , z_n).
\end{align*}
The $i$-th and $j$-th balls intersect if
$$|a_i - a_j | \le R_i+R_j,$$
where $R_i$ denotes the radius of the $i$-th ball.
These inequalities define $\tfrac{n\cdot(n-1)}{2}$ cylinders
\[C_{i,j}=\set{(a_1, a_2 , \dots , a_n )\in\RR^{3\cdot n}} {|a_i - a_j |\le R_i+R_j}.\]
The closure of the complement
\[T=\overline{\RR^{3\cdot n}\setminus \bigcup_{i< j} C_{i,j}}\]
is the configuration space of our system.
Its points correspond
to valid positions of the system of balls.
The evolution of the system
of balls is described by the motion of
the point $\bm{a}\in\RR^{3\cdot n}$.
It moves along a straight line at a
constant speed until it hits one of the cylinders $C_{i,j}$;
this event corresponds
to a collision in the system of balls.
Consider the norm of $\bm{a}=(a_1,\dots,a_n)\in \RR^{3\cdot n}$ defined by
\[\lVert \bm{a}\rVert
=
\sqrt{M_1\cdot|a_1|^2+\dots+M_n\cdot |a_n|^2},\]
where $|a_i|=\sqrt{x_i^2+y_i^2+z_i^2}$
and $M_i$ denotes the mass of the $i$-th ball.
In the metric defined by $\lVert {*}\rVert$,
the collisions follow the
standard law of billiards.
By construction, the number of collisions of hard balls that we need to estimate
is the same as the number of collisions of the corresponding billiard trajectory on the table with $C_{i,j}$ as the walls.
Note that each cylinder $C_{i,j}$ is a convex set;
it has smooth boundary,
and it is centrally symmetric around the origin.
By \ref{ex:centrally-simmetric-walls}, all the intersections of the walls have $\eps$-wide corners for some $\eps>0$ that depend on the radiuses $R_i$ and the masses~$M_i$.
It remains to apply the collision theorem (\ref{thm:collision}).
\qeds
Now we present the proof of the collision theorem (\ref{thm:collision})
based on the results developed in the previous section.
\parit{Proof of \ref{thm:collision}.}
Let us apply induction on~$n$.
\parit{Base: $n=1$.}
The number of collisions cannot exceed~1.
Indeed, by the convexity of $A^1$,
if the trajectory is reflected once in $\partial A^1$,
then it cannot return to~$A^1$.
\parit{Step.}
Assume $\gamma$ is a trajectory that meets the walls in the order $A^{i_1},\dots,A^{i_N}$ for a large integer~$N$.
Consider the array
\[\bm{A}_\gamma=(A^{i_1},\dots,A^{i_N}).\]
The induction hypothesis implies:
\begin{clm}{}\label{clm:collision-induction hypothesis}
There is a positive integer $M$ such that any $M$ consecutive elements of $\bm{A}_\gamma$ contain each $A^i$ at least once.
\end{clm}
Let $\spc{R}_\gamma $ be the Reshetnyak puff pastry for~$\bm{A}_\gamma$.
Consider the lift of $\gamma$ to $\spc{R}_\gamma$,
defined by
$\bar\gamma(t)=\gamma^k(t)\in \spc{R}_\gamma$
for any moment of time $t$ between the $k$-th and $(k+1)$-th collisions.
Since $\gamma$ follows the standard law of billiards at breakpoints, the lift $\bar\gamma$ is locally a geodesic in~$\spc{R}_\gamma$.
By \ref{obs:puff pastry is CAT},
the puff pastry $\spc{R}_\gamma$ is a proper geodesic $\CAT(0)$ space.
Therefore $\bar\gamma$ is a geodesic.
Since $\gamma$ does not meet $A^1\cap\dots\cap A^n$,
the lift $\bar\gamma$ does not lie in $\spc{R}_\gamma^0\cup \spc{R}_\gamma^N$.
In particular, $\spc{R}_\gamma$ is not end-to-end convex.
Let
\[\bm{B}=(A^{j_1},\dots,A^{j_K})\]
be the array provided by Proposition~\ref{prop:end-to-end-convex};
so $\bm{B}$ contains each $A^i$ at least once
and the puff pastry $\spc{R}_{\bm{B}}$ for $\bm{B}$ is end-to-end convex.
If $N$ is sufficiently large, namely $N\ge K\cdot M$, then
\ref{clm:collision-induction hypothesis}
implies that $\bm{A}_\gamma$ can be obtained
by inserting a finite number of $A^i$'s in~$\bm{B}$.
By \ref{obs:end-to-end-convex},
$\spc{R}_\gamma$ is end-to-end convex --- a contradiction.
\qeds
\begin{thm}{Exercise}\label{ex:collision}
Let $T\subset\EE^m$ be a billiard table with $n$ convex walls.
Assume that the walls of $T$ have a common point.
Show that any trajectory in $T$ has only finite number of collisions in a finite time interval.
Construct an example of a billiard table on the plane with $2$ convex walls
such that the walls have a common point,
but there is no upper bound on the number of collisions of its trajectories.
\end{thm}
\section{Comments}
The collision theorem (\ref{thm:collision}) was proved by Dmitri Burago, Serge Ferleger and Alexey Kononenko \cite{burago-ferleger-kononenko-1997}.
Its corollary (\ref{cor:balls}) answers a question posed by Yakov Sinai \cite{galperin}.
Puff pastry is used to bound topological entropy of the billiard flow