So I want to prove that every non-empty subset of the natural numbers has a least element. I used induction but I'm not sure if doing that proves the statement for infinite subsets of $\mathbb{N}$. Here is my attempt at the proof please point out any errors.
Proof:
Let $X$ be a non-empty subset of $\mathbb{N}$
P(1): $X = \{x_1\}$, then $x_1 \leq x_i$ for all $x_i \in X$ - clearly.
Assume P(k): $X = \{x_1, \dots x_k\}$, then $\exists n\in X$ such that $n\leq x_i$ for all $x_i\in X$.
P(k+1): $X' = \{x_1, \dots x_k, x_{k+1}\}$, then by the induction hypothesis $\exists n\in X'$ such that $n\leq x_i$ for all $x_i\in X'$ and $1\leq i\leq k$
By trichotomy of order, it follows that $x_{k+1} > n$ or $x_{k+1} \leq n$.
If $x_{k+1} > n$, then $n\leq x_i$ for all $x_i \in X'$.
If $x_{k+1} \leq n$, then $x_{k+1} \leq x_i$ for all $x_i\in X'$.
I.) Does this prove the statement for a finite subset of $\mathbb{N}$?
II.) Do I have to do something different to prove it for an infinite subset?
Allow me to rewrite your proof in a slightly different way.
Base case: (singleton)
$$P(1): X=\{x\}\implies \min_{x\in X}(x)=x\in X$$ This is trivial.
Inductive step:
$$P(k)\implies P(k+1):Y=X\cup\{z\}\implies \min(\min_{x\in X}(x),z)=\min_{x\in X\cup\{z\}}(x)\in X\cup\{z\}$$
The minimum of the augmented $X$ is either the minimum of $X$ or the added element, in both cases an element of the augmented $X$.
Anyway the proof is not valid for infinite sets because no property of the underlying set ($\mathbb N$) appears and the same proof applied on $\mathbb Z$ would conclude wrongly.