Suppose given a directed graph $G=(V,E)$ with positive weights and we try to find shortest path $d(s,t,\ell)$ from $s$ to $t$ such that we traverse at most $\ell$ edges ($\ell$ is even). Let $w(u,v)$ be weight of edge (u,v), so we use this recurrence, $$d(s,t,\ell)=\begin{cases} \min_{x \in V}\{d(s,x,\frac{\ell}{2})+d(x,t,\frac{\ell}{2})\},& \text{if } \ell\geq 2\\ w(s,t), & \ell=1\\ \infty, & \ell=0 \end{cases} $$
How we can prove by induction that the above recurrence find optimal solution?
I try to induction on $\ell$ so when we let $\ell=0$ the answer is $\infty$ so it's correct. Also for $\ell=1$ the correct answer is $w(s,t)$ so the recurrence is correct, but how we can extend this idea to show that whole recurrence is correct?