Pretentious distance (source code)

= Pretentious distance
{title2=$\mathbb D(f,g;x)$}

= Granville-Soundararajan distance
{c}
{synonym}

For <multiplicative functions> $f,g$ bounded in <modulus> by one, their pretentious distance up to $x\geq2$ is
$$
\mathbb D(f,g;x)^2=\sum_{p\leq x}\frac{1-\Re(f(p)\overline{g(p)})}{p}.
$$
It compares their values on <prime numbers>, weighting smaller <primes> more heavily. It need not be a <metric>: values away from <primes> are invisible, and $\mathbb D(f,f;x)$ can be positive when $|f(p)|<1$. For unit-modulus <prime> values it has the precise <prime-restriction metric for pretentious distance> interpretation.<Pretentious Multiplicative Functions and an Inequality for the Zeta-Function by Andrew Granville and Kannan Soundararajan>[pp. 206–208: the prime-weighted comparison and its mean-value interpretation]{ref}