Definition of Metric -- Let, $A$ be a non-empty set. A function $d:A\times A \to \mathbb R$ is said to be a metric on $A$, if the following conditions are satisfied,
- for all $x,y\in A$, $d(x,y)≥0 \land d(x,y)=0$ if and only if $x=y$ 【 Positiveness Property 】
- for all $x,y\in A$, $d(x,y)=d(y,x)$ 【 Symmetry Property 】
- for all $x,y,z\in A$, $d(x,y)≤d(x,z)+d(z,y)$ 【 Triangle Inequality 】
In graduation level, we have questions like,
'Check that the given function $d:A\times A \to \mathbb R$ is a metric on $A$ or not: $d(x,y)=.........$, for $x,y\in A$.'
The questions, which we usually get, holds the symmetry property & which are not metric, they either violate the Positivity property or the triangle inequality. Can you give me such an example where the function $d$ is not a metric, only due to the violation of symmetry property?
As a very simple example, let $A=\{a,b\}$ have two elements and define $d(a,a)=d(b,b)=0$, $d(a,b)=1$ and $d(b,a)=2$.