What makes induction (over natural numbers) a valid proof technique? Is $$ \dfrac{ P(0) \quad \forall i \in \mathbb{N}. P(i) \Rightarrow P(i+1) }{ \forall n \in \mathbb{N}. P(n)} $$ just taken for granted as a proof rule, or can it be derived from more foundational axioms?
Similarly, can the principle of induction over well-founded sets be derived from something more foundational, or does it have to be assumed to be a valid inference rule?
There is a property of the natural numbers called "well-ordering". It says that any non-empty subset of $\mathbb{N}$ has a smallest element. We can use this to prove induction.
Let $S = \{ n \in \mathbb{N} \mid \lnot P(n) \}$. Assume it is non-empty. Then there is a least element; call it $k$. Since $P(1)$ is true, we know that $k \ne 1$. Therefore*, $k > 1$, so $k - 1 \in \mathbb{N}$. But since $k - 1$ is less than $k$, which was the minimum element of $S$, we know $k - 1 \notin S$. Therefore, $P(k - 1)$ is true. But our other hypothesis tells us that $P(k - 1 + 1) = P(k)$ is also true. This is a contradiction, so our assumption that $S$ was non-empty must be false. This means that $P(n)$ is true for all $n \in \mathbb{N}$.
The proof for transfinite induction on a well-ordered set is nearly identical. The only difference is that once you have $k$, you state all elements less than $k$ satisfy $P$, not just $k - 1$. But that is exactly your inductive hypothesis, so you get the desired contradiction.
*We haven't shown that all natural numbers are $\ge 1$, but that can also be shown with well-ordering. Briefly: Take the set of all $n$ such that ($0 < n < 1$). Assume it's non-empty. We take the smallest element, $k$, and square it to make a smaller one. Since $0 < k^2 < 1$, this contradicts the minimality of $k$. Therefore, that set is empty, and there are no natural numbers less than $1$.