Suppose we are trying to prove a statement $\forall n\forall k\varphi(n,k)$.
We fix $n$ and proceed to prove $\forall k\varphi(n,k)$ by induction. We show the base case $k=0$, we suppose it's true for $k-1$, but then when showing the inductive step of $k$ we appeal to $\varphi(n+1,k-1)$.
Is the resulting proof valid? Are we allowed to appeal to the inductive hypotheses of a different $n$? Could this be some kind of infinite dependence?
This line of argument is valid, but the justification isn't correct. $\forall n\forall k \phi(n, k)$ is logically equivalent to $\forall k \forall n \phi(n, k)$. The latter formula can be proved by induction on $k$, and then the inductive hypothesis will be $\forall n \phi(n, k - 1)$. So yes, you can appeal to the inductive hypotheses for any $n$ you like, provided you strengthen the statement you are trying to prove (from $\forall k \phi(n, k)$ to $\forall k \forall n \phi(n, k)$).