Could someone please walk me through line by line what is going on in this proof.
The proof for a finite set having a finite subset has been shown to me as follows
Proposition: If $S$ is a nonempty finite set and $A \subseteq S$ then $A$ is also finite.
Proof: If $A = \emptyset$ there is nothing to prove (since the $A$ would be finite).
Since $S$ is finite there exists a bijection $f: S \to [n] $ for some $n \in \mathbb{N}$ consider the restriction of $f$ to $A$, $f|_A : A \to [n] $. This is injective since $f$ is injective. Let $S =\{k\in[n] : f(a) = k \text{ for some }a \in A\}$. Write $S$ in increasing order $s_1 , s_2 , s_3 , s_4 , \dots , s_m $. Let $a_1 ,\dots,a_m $ be elements of $A$ where $f(a_1) = s_1$ , $ f(a_2) = s_2$, $\dots$ , $f(a_m) = s_m$. Since $f$ is 1-1 these elements are unique and since $f$ is surjective, $A = \{ a_1 ,a_2 ,\dots,a_m\}$. Define $g:A\to [m]$ by $g(a_k) = k$ from above we see that $g$ is a bijection, so $A$ is finite.