-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmetric.tex
527 lines (423 loc) · 20.2 KB
/
metric.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
\chapter{Preliminaries}\label{chap:metr}
\section{What is the axiomatic approach?}
\label{preaxioms}
In the axiomatic approach, one defines the plane as anything that satisfies a specified set of properties known as {}\emph{axioms}.
These axioms essentially serve as the rules for a mathematical game.
Once the axiom system is fixed, a statement is true if it logically follows from the axioms, and nothing else is.
The formulations of the first axioms were not rigorous at all.
For example, Euclid described a {}\emph{line} as \textit{breadthless length}
and a {}\emph{straight line} as a line that \textit{lies evenly with the points on itself}.
However, these formulations were clear enuf for one mathematician to understand another.
The best way to understand an axiomatic system
is to make one by yourself.
For now, let's assume an intuitive understanding of concepts like lines and points.
Imagine an infinite and perfect surface of a chalkboard.
Let us try to collect the key observations about this model.
\begin{enumerate}[(i)]
\item\label{preaxiomI} We can measure distances between points.
\item\label{preaxiomII} We can draw a unique line thru two given points.
\item\label{preaxiomIII} We can measure angles.
\item\label{preaxiomIV} If we rotate or shift we will not see the difference.
\item\label{preaxiomV} If we change the scale we will not see the difference.
\end{enumerate}
These observations are good to start with.
Later, we will develop a language to reformulate them rigorously.
\section{What is a model?}
\label{page:model}
The Euclidean plane can be defined rigorously the following way:
\textit{Define a {}\emph{point} in the Euclidean plane as a pair of real numbers $(x,y)$ and define the {}\emph{distance} between two points $(x_1,y_1)$ and $(x_2,y_2)$ by the following formula:}
\[\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}.\]
That is it!
We gave a {}\emph{numerical model} of the Euclidean plane;
it builds the Euclidean plane from real numbers
while the latter is assumed to be known.
Shortness is the main advantage of the model approach,
but it is not intuitively clear why we define points and distances this way.
On the other hand, the observations made in the previous section are intuitively obvious ---
this is the primary advantage of the axiomatic approach.
Another advantage --- the axiomatic approach is easily adjustable.
For example, we can remove or replace an axiom from the list.
We will do it in Chapter~\ref{chap:non-euclid}.
\section{Metric spaces}
The concept of a metric space provides
a rigorous way to say: \textit{``we can measure distances between points''}.
That is, instead of (\ref{preaxiomI}) in Section~\ref{preaxioms},
we can say \textit{``Euclidean plane is a metric space''}.
\begin{thm}{Definition}\label{def:metric-space}
Let $\mathcal X$ be a nonempty set and
let $d$ be a function
that assigns a real number $d(A,B)$
to any pair $A,B\in\mathcal X$.
Then $d$ is called a \index{metric}\emph{metric} on
$\mathcal X$ if, for any
$A,B,C\in \mathcal X$, the following conditions are satisfied:
\begin{enumerate}[(a)]
\item\label{def:metric-space:a} Positiveness:
$d(A,B)\ge 0.$
\item\label{def:metric-space:b} $A=B$ if and only if
$d(A,B)=0.$
\item\label{def:metric-space:c} Symmetry: $d(A, B) = d(B, A).$
\item\label{def:metric-space:d} \index{triangle!inequality}Triangle inequality:
$d(A, C) \le d(A, B) + d(B, C).$
\end{enumerate}
A \index{metric!space}\emph{metric space} is defined as a set equipped with a metric.
More formally, a metric space is a pair $(\mathcal X, d)$ where $\mathcal X$ is a set and $d$ is a metric on~$\mathcal X$.
The elements of $\mathcal X$ are referred to as \index{point}\emph{points} of the metric space.
The value $d(A, B)$ is called the \index{distance}\emph{distance} from $A$ to~$B$.
\end{thm}
\pagebreak
\subsection*{Examples}
\begin{itemize}
\item {}\emph{Discrete metric.} Let $\mathcal X$ be an arbitrary set.
For any $A,B\z\in\mathcal X$ set $d(A,B)\z=0$ if $A=B$ and $d(A,B)=1$ otherwise.
The metric $d$ is called the \index{discrete metric}\emph{discrete metric} on~$\mathcal X$.
\item\index{real!line}\emph{Real line.}
Set of all real numbers ($\mathbb{R}$) with the metric $d$ defined as
$$d(A,B)\df|A-B|.$$
\end{itemize}
\begin{thm}{Exercise}\label{ex:dist-square}
Show that $d(A,B)=|A-B|^2$ is \textit{not} a metric on $\mathbb{R}$.
\end{thm}
\begin{itemize}
\item \textit{Metrics on the plane.}
Suppose that $\mathbb{R}^2$ denotes the set of all pairs $(x,y)$ of real numbers.
Assume $A=(x_A,y_A)$ and $B=(x_B,y_B)$.
Consider the following metrics on $\mathbb{R}^2$:
\begin{itemize}
\item\index{Euclidean!metric}\emph{Euclidean metric,} denoted by \index{59@$d_1$, $d_2$, $d_\infty$}$d_2$, and defined as \label{def:d_2}
$$d_2(A,B)=\sqrt{(x_A-x_B)^2+(y_A-y_B)^2}.$$
\item\label{Manhattan plane}\index{Manhattan plane}\emph{Manhattan metric,} denoted by $d_1$ and defined as
$$d_1(A,B)=|x_A-x_B|+|y_A-y_B|.$$
\item{}\emph{Maximum metric,} denoted by $d_\infty$ and defined as
$$d_\infty(A,B)=\max\{|x_A-x_B|,|y_A-y_B|\}.$$
\end{itemize}
\end{itemize}
\begin{thm}{Exercise}\label{ex:d_1+d_2+d_infty}
Prove that the following functions are metrics on $\mathbb{R}^2$:
(a)~$d_1$; (b)~$d_2$; (c)~$d_\infty$.
\end{thm}
\section{Shortcut for distance}
Most of the time, we need only one metric on a space.
Therefore, we will not need to name the metric each time.
Given a metric space $\mathcal X$,
the distance between points $A$ and $B$ will be further denoted by
$$AB
\quad
\text{or}
\quad
d_{\mathcal X}(A,B);$$
the latter is used only if we need to emphasize that $A$ and $B$ are points of the metric space~$\mathcal X$.
For example, the triangle inequality can be written as
$$AC\le AB+BC.$$
To avoid confusion, we will always use ``$\cdot$'' for multiplication,
so $AB$ is not mistaken for $A\cdot B$.
\begin{thm}{Exercise}\label{ex:4-triangle}
Show that the inequality
\[AB+PQ\le AP+AQ+BP+BQ\]
holds for any four points $A$, $B$, $P$, $Q$ in a metric space.
\end{thm}
\section{Isometries, motions, and lines}
In this section, we define lines in a metric space.
Once it is done the sentence \textit{``We can draw a unique line that passes thru two given points.''} becomes rigorous; see (\ref{preaxiomII}) in Section~\ref{preaxioms}.
Recall that a map $f\:\mathcal{X}\to\mathcal{Y}$
is a \index{bijection}\emph{bijection}
if it gives an exact pairing of the elements of two sets.
Equivalently, $f\:\mathcal{X}\to\mathcal{Y}$ is a bijection if it has an \index{inverse}\emph{inverse};
that is, a map $g\:\mathcal{Y}\to\mathcal{X}$
such that
$g(f(A))\z=A$ for any $A\in\mathcal{X}$
and
$f(g(B))\z=B$ for any $B\in\mathcal{Y}$.
Let $\mathcal X$ and $\mathcal Y$ be two metric spaces and $d_{\mathcal X}$, $d_{\mathcal Y}$ be their metrics.
A~map
$$f\:\mathcal X \z\to \mathcal Y$$
is
called \index{distance-preserving map}\emph{distance-preserving} if
$$d_{\mathcal Y}(f(A), f(B))
= d_{\mathcal X}(A,B)$$
for any $A,B\in {\mathcal X}$.
A bijective distance-preserving map is called an \index{isometry}\emph{isometry}.
Two metric spaces are called \index{isometric spaces}\emph{isometric} if there exists an isometry between them.
An isometry from a metric space to itself is also referred a \index{motion}\emph{motion}.
\begin{thm}{Exercise}\label{ex:dist-preserv=>injective}
Show that any distance-preserving map is \index{injective map}\emph{injective};
that is, if $f\:\mathcal X\to\mathcal Y$ is a distance-preserving map,
then $f(A)\ne f(B)$ for any pair of distinct points $A, B\in \mathcal X$.
\end{thm}
\begin{thm}{Exercise}\label{ex:motion-of-R}
Show that if $f\:\mathbb{R}\to\mathbb{R}$ is a motion of the real line,
then either (a)
$f(x)=f(0)+x$ for any $x\in \mathbb{R}$,
or (b)
$f(x)=f(0)-x$ for any $x\in \mathbb{R}$.
\end{thm}
\begin{thm}{Exercise}\label{ex:d_1=d_infty}
Prove that $(\mathbb{R}^2,d_1)$ is isometric to $(\mathbb{R}^2,d_\infty)$.
\end{thm}
\begin{thm}{Advanced exercise}\label{ad-ex:motions of Manhattan plane}
Describe all the motions of the Manhattan plane (defined in \ref{ex:dist-square}).
\end{thm}
If $\mathcal X$ is a metric space and $\mathcal Y$ is a subset of $\mathcal X$,
then a metric on $\mathcal Y$ can be obtained by restricting the metric from~$\mathcal X$.
In other words,
the distance between two points in $\mathcal Y$ is defined to be the distance between these points in $\mathcal X$.
This way any subset of a metric space can be also considered as a metric space.
\begin{thm}{Definition}\label{def:line}
A subset $\ell$ of a metric space is called a \index{line}\emph{line} if it is isometric to the real line.
\end{thm}
A triple of points that lie on one line is called \index{collinear points}\emph{collinear}.
Note that if $A$, $B$, and $C$ are collinear, $AC\ge AB$, and $AC\ge BC$, then $AC\z= AB+BC$.
Some metric spaces have no lines; for example, discrete metrics.
The picture shows examples of lines on the Manhattan plane $(\mathbb{R}^2,d_1)$.
\begin{figure}[!ht]
\centering
\includegraphics{mppics/pic-2}
\end{figure}
\begin{thm}{Exercise}\label{ex:y=|x|}
Consider the graph $y=|x|$ in $\mathbb{R}^2$.
Determine in which of the following spaces
(a) $(\mathbb{R}^2,d_1)$,
(b) $(\mathbb{R}^2,d_2)$,
(c) $(\mathbb{R}^2,d_\infty)$
does it form a line?
Why?
\end{thm}
\begin{thm}{Exercise}\label{ex:line-motion}
Show that any motion maps a line to a line.
\end{thm}
\section{Half-lines and segments}
Assume there is a line $\ell$ passing thru
two distinct points $P$ and $Q$.
In this case, we might denote $\ell$ as $(PQ)$.
There might be more than one line thru $P$ and $Q$,
but if we write \index{60@$(PQ)$, $[PQ)$, $[PQ]$}$(PQ)$ we assume that we made a choice of such a line.
We will denote by $[P Q)$ the \index{half-line}\emph{half-line}
that starts at $P$ and contains~$Q$.
Formally speaking, $[P Q)$ is a subset of $(P Q)$ that corresponds to $[0,\infty)$ under an isometry $f\:(P Q)\to \mathbb{R}$ such that $f(P)=0$ and $f(Q)>0$.
The subset of line $(P Q)$ between $P$ and $Q$ is called the \index{segment}\emph{segment between} $P$ and $Q$; it is denoted by~$[P Q]$.
Formally, the segment can be defined as the intersection of two half-lines: $[P Q]=[P Q)\cap[Q P)$.
\begin{thm}{Exercise}\label{ex:trig==}
Show that
\begin{enumerate}[(a)]
\item if $X\in [PQ)$, then
$QX=|PX-PQ|$;
\item if $X\in [PQ]$, then
$PX+XQ=PQ$.
%\item $[OP)\cup[OQ)$ is a line if and only if $XO+OY=XY$ for any $X\in [OP)$ and $Y\in[OQ)$.
\end{enumerate}
\end{thm}
%\begin{thm}{Exercise}\label{ex:lineABC}
%Let $A$, $B$, and $C$ be disticnt points in a metric space such that $AB+BC\z=AC$.
%Suppose that the there are lines $(AB)$, $(AC)$, and $(BC)$.
%Show that $((AC)\setminus[AC])\cup [AB]\cup [BC]$ is a line.
%\end{thm}
\section{Angles}
Our next goal is to introduce angles and angle measures;
after that, the statement \textit{``we can measure angles''} will become rigorous;
see (\ref{preaxiomIII}) in Section~\ref{preaxioms}.
An ordered pair of half-lines that start at the same point is called an \index{angle}\emph{angle}.
The angle $AOB$ (also denoted by \index{10@$\angle$, $\measuredangle$}$\angle AOB$) is the pair of half-lines $[OA)$ and $[OB)$; the point $O$ is called the \index{vertex!of angle}\emph{vertex} of the angle.
Intuitively, the angle measure tells how much one has to rotate the first half-line counterclockwise, so it gets the position of the second half-line of the angle.
The full turn is assumed to be $2\cdot\pi$;
it corresponds to the angle measure in radians.%
\footnote{For now, you can think of $\pi$ as a the size of a half-turn in specific units. Its numerical value, $\pi\approx 3.14$, is not essential at this stage.}
The angle measure of $\angle AOB$ is denoted as $\measuredangle AOB$;
it is a real number in the interval $(-\pi,\pi]$.
\begin{wrapfigure}{o}{25mm}
\vskip-0mm
\centering
\includegraphics{mppics/pic-4}
\end{wrapfigure}
The notations $\angle AOB$ and $\measuredangle AOB$ look similar;
they also have close but different meanings which better not be confused.
For example, the equality
$\angle AOB\z=\angle A'O'B'$
means that
$[OA)=[O'A')$ and $[OB)\z=[O'B')$;
in particular, $O=O'$.
On the other hand, the equality
$\measuredangle AOB\z=\measuredangle A'O'B'$
means only equality of two real numbers;
in this case, $O$ may be distinct from~$O'$.
Here is the first property of angle measure which will become a part of the axiom.
\textit{Given a half-line $[O A)$ and $\alpha\in(-\pi,\pi]$ there is a unique half-line $[O B)$ such that $\measuredangle A O B= \alpha$.}
\section[\texorpdfstring{Reals modulo $2\cdot\pi$}{Reals modulo 2·π}]{Reals modulo $\bm{2\cdot\pi}$}
Consider three half-lines starting from the same point, $[O A)$, $[O B)$, and $[O C)$.
They make three angles $A O B$, $B O C$, and $A O C$,
so the value $\measuredangle A O C$ should coincide with
the sum $\measuredangle A O B+\measuredangle B O C$ up to full rotation.
This property will be expressed by the formula
$$\measuredangle A O B+\measuredangle B O C\equiv \measuredangle A O C,$$
where \index{34@$\equiv$}``$\equiv$'' is a new notation that we are about to introduce.
The last identity will become a part of the axioms.
We will write $\alpha\equiv\beta\pmod{2\cdot\pi}$, or briefly
\begin{align*}
\alpha&\equiv\beta
\end{align*}
if $\alpha=\beta+2\cdot\pi\cdot n$
for an integer~$n$.
In this case, we say
$$\textit{``$\alpha$ is equal to $\beta$ modulo $2\cdot\pi$''}.$$
For example, $-\pi
\equiv
\pi\equiv 3\cdot\pi$ and $\tfrac12\cdot\pi
\equiv
-\tfrac32\cdot\pi$.
The introduced relation ``$\equiv$'' behaves like an equality sign,
but
\[\dots\equiv\alpha-2\cdot\pi\equiv \alpha\equiv \alpha+2\cdot\pi\equiv \alpha+4\cdot\pi\equiv\dots;\]
that is, if the angle measures differ by full turn,
then they are considered to be the same.
With ``$\equiv$'', we can do addition, subtraction, and multiplication with integer numbers without getting into trouble.
That is, if
$$\alpha\equiv\beta
\quad
\text{and}
\quad
\alpha'\equiv \beta',$$
then
$$\alpha+\alpha'\equiv\beta+\beta',
\quad
\alpha-\alpha'\equiv \beta-\beta'
\quad
\text{and}
\quad
n\cdot\alpha\equiv n\cdot\beta$$
for any integer~$n$.
However, ``$\equiv$'' does not respect multiplication with non-integer numbers; for example,
$$\pi
\equiv
-\pi
\quad
\text{but}
\quad
\tfrac12\cdot\pi
\not\equiv
-\tfrac12\cdot\pi.$$
\begin{thm}{Exercise}\label{ex:2a=0}
Show that $2\cdot\alpha\equiv0$ if and only if $\alpha\equiv0$ or $\alpha\equiv\pi$.
\end{thm}
\section{Continuity}
The angle measure is also assumed to be continuous.
Namely, the following property of angle measure will become a part of the axioms:
\textit{The function}
$$\measuredangle\:(A,O,B)\mapsto\measuredangle A O B$$
\textit{is continuous at any triple of points $(A,O,B)$
such that $O\ne A$ and $O\ne B$ and $\measuredangle A O B\ne\pi$.}
To clarify this property, we need to extend the concept of {}\emph{continuity} to functions between metric spaces.
The definition is a straightforward generalization of the standard definition for real-to-real functions.
Let $\mathcal X$ and $\mathcal Y$ be two metric spaces,
and $d_{\mathcal X}$, $d_{\mathcal Y}$ be their metrics.
A map $f\:\mathcal X\to\mathcal Y$ is called \index{continuous}\emph{continuous} at point $A\in \mathcal X$
if, for any $\epsilon>0$, there is $\delta>0$, such that
\[d_{\mathcal X}(A,A')
<
\delta
\quad
\Rightarrow
\quad
d_{\mathcal Y}(f(A),f(A'))
<
\epsilon.\]
(Informally it means that sufficiently small changes of $A$ result in arbitrarily small changes of $f(A)$.)
A map $f\:\mathcal X\to\mathcal Y$ is called \index{continuous}\emph{continuous} if it is continuous at every point $A\in \mathcal X$.
One may define a continuous map of several variables in a similar manner.
Assume $f$ is a function that returns a point in $\mathcal Y$ for a triple of points $(A,B,C)$
in~$\mathcal X$.
The map $f$ might be defined only for some triples in~$\mathcal X$.
Assume $f(A,B,C)$ is defined.
Then, we say that $f$ is continuous at the triple $(A,B,C)$
if, for any $\epsilon>0$, there is $\delta>0$ such that
\[d_{\mathcal Y}(f(A,B,C),f(A',B',C'))<\epsilon.\]
if $d_{\mathcal X}(A,A')<\delta$, $d_{\mathcal X}(B,B')<\delta$, and $d_{\mathcal X}(C,C')<\delta$.
\begin{thm}{Exercise}\label{ex:dist-cont}
Let $\mathcal{X}$ be a metric space.
\begin{enumerate}[(a)]
\item\label{ex:dist-cont:a} Let $A\in \mathcal{X}$ be a fixed point.
Show that the function
$$f\:B\mapsto
d_{\mathcal{X}}(A,B)$$
is continuous at any point~$B$.
\item Show that the function $g\:(A,B)\mapsto d_{\mathcal{X}}(A,B)$ is continuous at any pair $A,B\in \mathcal{X}$.
\end{enumerate}
\end{thm}
\begin{thm}{Exercise}\label{ex:comp+cont}
Let $\mathcal{X}$, $\mathcal{Y}$, and $\mathcal{Z}$ be metric spaces.
Assume that the functions $f\:\mathcal{X}\to\mathcal{Y}$
and $g\:\mathcal{Y}\to\mathcal{Z}$ are continuous at any point,
and $h=g\circ f$ is their composition;
that is, $h(A)=g(f(A))$ for any $A\in \mathcal{X}$.
Show that $h\:\mathcal{X}\to\mathcal{Z}$ is continuous at any point.
\end{thm}
\begin{thm}{Exercise}\label{ex:isom-cont}
Show that any distance-preserving map is continuous.
\end{thm}
\section{Congruent triangles}
\label{sec:cong-triangles}
Our next goal is to find a rigorous interpretation for statement (\ref{preaxiomIV}) in Section~\ref{preaxioms}.
To do this, we will introduce the concept of congruent triangles
so instead of \textit{``if we rotate or shift we will not see the difference''} we say that for triangles, the side-angle-side congruence holds.
An \textit{ordered} triple of \textit{distinct} points in a metric space $\mathcal{X}$,
say $A$, $B$, $C$,
is called a \index{triangle}\emph{triangle $ABC$}\label{page:def:triangle} (briefly \index{20@$\triangle$}$\triangle A B C$).
The points $A$, $B$, and $C$ are called \index{vertex!of triangle}\emph{vertices} of $\triangle ABC$.
Note that the triangles $A B C$ and $A C B$ are different.
Two triangles $A' B' C'$ and $A B C$ are
\index{triangle!congruent triangles}
\index{congruent!triangles}\emph{congruent}
(briefly \index{32@$\cong$}$\triangle A' B' C'\z\cong\triangle A B C$) if there is a motion $f\:\mathcal{X}\to\mathcal{X}$ such that
\[A'\z=f(A),
\quad
B'=f(B)
\quad
\text{and}
\quad
C'=f(C).\]
Let $\mathcal X$ be a metric space,
and $f,g\:\mathcal X\to\mathcal X$ be two motions.
Note that the inverse $f^{-1}:\mathcal X\to\mathcal X$,
as well as the composition $f\circ g:\mathcal X\to\mathcal X$,
are also motions.
It follows that ``$\cong$'' is an \index{equivalence relation}\emph{equivalence relation};
that is, any triangle is congruent to itself,
and the following two conditions hold:
\begin{itemize}
\item If $\triangle A' B' C'\z\cong\triangle A B C$, then $\triangle A B C\z\cong\triangle A' B' C'$.
\item If $\triangle A'' B'' C''\z\cong\triangle A' B' C'$ and $\triangle A' B' C'\z\cong\triangle A B C$,
then
$$\triangle A'' B'' C''\cong\triangle A B C.$$
\end{itemize}
If $\triangle A' B' C'\z\cong\triangle A B C$,
then $AB\z=A'B'$,
$BC=B'C'$ and $CA=C'A'$.
For a discrete metric, as well as some other metrics,
the converse also holds.
The following example shows that it does not hold in the Manhattan plane:
\parbf{Example.}\label{example:isometric but not congruent}
Consider three points
$A=(0,1)$, $B=(1,0)$, and $C\z=(-1,0)$ on the Manhattan plane $(\mathbb{R}^2,d_1)$.
Then
$$d_1(A,B)=d_1(A,C)=d_1(B,C)=2.$$
On one hand,
$$\triangle ABC\cong \triangle ACB.$$
Indeed, the map $(x,y)\z\mapsto (-x,y)$ is a motion of $(\mathbb{R}^2,d_1)$
that sends $A\z\mapsto A$, $B\mapsto C$, and $C\z\mapsto B$.
On the other hand,
$$\triangle ABC\ncong \triangle BCA.$$
Indeed, arguing by contradiction, assume that $\triangle ABC\cong \triangle BCA$; that is, there is a motion $f$ of $(\mathbb{R}^2,d_1)$ that sends $A\mapsto B$, $B\mapsto C$, and $C\mapsto A$.
\begin{wrapfigure}[6]{o}{33mm}
\vskip-5mm
\centering
\includegraphics{mppics/pic-6}
\end{wrapfigure}
We say that $M$ is a midpoint of $A$ and $B$ if
\[d_1(A,M)=d_1(B,M)=\tfrac12\cdot d_1(A,B).\]
Note that a point $M$ is a midpoint of $A$ and $B$ if and only if $f(M)$ is a midpoint of $B$ and~$C$.
The set of midpoints for $A$ and $B$ is infinite, it contains all points $(t,t)$ for $t\in[0,1]$ (it is the gray segment in the picture above).
In contrast, the midpoint for $B$ and $C$ is unique.
Thus, the map $f$ cannot be bijective, leading to a contradiction.
\begin{thm}{Exercise}\label{ex:ncong}
Consider a metric space with four points $A$, $B$, $C$, $D$ and a metric defined by $AB=AC=AD=BC=BD=1$, and
$CD=2$.
Show that (a) $\triangle ABC\cong \triangle BAC$, and (b) $\triangle ABC\ncong \triangle BCA$.
\end{thm}