For a fee-free constant-product pool with deposit (x0, y0) and a price move by the factor r > 0, the LP-to-HODL value ratio minus one, computed from the rebalanced reserves, equals IL(r) = 2 sqrt(r)/(1 + r) - 1 = -(sqrt(r) - 1)^2/(1 + r); hence IL(r) <= 0, with IL(r) = 0 if and only if r = 1. Fees are not modelled.
ℝ → ℝ → ℝ → ℝ
After the external price moves by factor r (new price = r times the price at deposit), a constant-product pool with invariant k = x0 * y0 and deposit-time price y0 / x0 re-balances to the reserves that keep k fixed at the new price r * y0 / x0. This is the new reserve of token X: solving x1 * y1 = x0 * y0 and y1 / x1 = r * y0 / x0 for positive reserves gives x1 = sqrt (x0^2 / r).