While reading the HoTT book, I came up with the following (very) vague analogy: Consider $f(x) :\equiv \lambda y.x+y$ of type, say, $f: \mathbb{N} \to \mathbb{N} \to \mathbb{N}$. Also assume you already have $y: \mathbb{N}$.
Now, what you want is $f(y)$. But note that one has to change the local variable $y$. Otherwise you would get $\lambda y.y+y$.
I think this is quite obvious but also very similar to the idea of calculating intersections by means of the moving lemma - in particular self intersections.
So, is there more than just this intuition? I remember, that the proof for the moving lemma is pretty demanding. Maybe there is a proof approach with HoTT?
Thanks, Adrian