Let $P(k)$ be a well formulated mathematical statement (in the FOL language of ZFC) involving $k\in \mathbb{N}$. Suppose I want to show that $P(k)$ holds for all $1\leq k \leq m$ for some fixed $m\in \mathbb{N}$.
One approach is to use induction. To do this I can define $A=\{ k \in \mathbb{N} :1\leq k \leq m \wedge P(k) \}$ and $B=\{ k \in \mathbb{N}: n> m \}$. I can then show that $A\cup B = \mathbb{N}$ by mathematical induction and obtain the result.
But another approach (e.g. Induction on finite subset of natural numbers) says that we don't need induction in this case. The idea being that if you can show that $P(1)$ holds and that $P(k)\implies P(k+1)$ holds for all $1\leq k <m$ then you can apply modus ponens a finite number of times to obtain the result.
I know that the first proof can be written in formal language but am not sure about the second approach. The problem seems to be the sentence "apply modus ponens a finite number of times to obtain the result" because it is not clear to me how this can be formalized in FOL.
Is the second approach really valid?
EDIT. In fact using the second approach I can prove the PMI itself:
Suppose $P(1)$ holds and that $P(k)\implies P(k+1)$ for all $k \in \mathbb{N}$. Assume there exist $m \in \mathbb{N}$ such that $P(m)$ does not hold. Applying modus ponens $m$ times I deduce that $P(m)$ holds, a contradiction. Hence $P(k)$ holds for all $k \in \mathbb{N}$.