Proof (existence of algebraic closure)
General case
Constructing algebraic $L/K$ where all non-constant polynomial in $K[X]$ has a root in $L$
Let $S$ be the set of all non-constant monic polynomials in $K[X]$. Define $$ \begin{align*} R := K[X_f \mid f\in S], \end{align*} $$ the ring of finite $K$-linear combinations of formal symbols $X_f$, and the ideal $$ \begin{align*} I := (f(X_f)\mid f\in S) \lhd R. \end{align*} $$
We claim $I\neq R$. Otherwise, $1\in I$, so there is a finite subset $T \subset S$ and coefficients $g_f\in R$ such that $$ \begin{align*} 1 = \sum_{f\in T} g_f f(X_f). \tag{*} \end{align*} $$ As $T$ is finite, let $L$ be the splitting field of $\prod_{f\in T} f(X)$ over $K$, and let $α_f$ be a root of $f\in T$ in $α$. Construct the $K$-algebra homomorphism $$ \begin{align*} ϕ: R &\to L[X_f \mid f\in S\setminus T] \\ X_f &\mapsto \begin{cases} α_f, &f\in T, \\ X_f, &f\in S\setminus T. \end{cases} \end{align*} $$ Then applying $ϕ$ to $(*)$, $$ \begin{align*} 1 = \sum_{f\in T} ϕ(g_f) \underbrace{f(α_f)}_{0} = 0, \end{align*} $$ which is impossible as $R$ is not a zero ring.
Therefore, by Zorn's lemma, there exists a maximal ideal $J$ of $R$ containing $I$. Define the field $L := R/J$.
Now we check:
-
Any non-constant polynomial $f\in K[X]$ (WLOG monic) has a root $α_f := X_f + J$ in $L$.
-
Since $L = K(α_f \mid f\in S) = \bigcup_{\text{finite }T\subseteq S} K(α_f\mid f\in T)$ and $K(α_f \mid f\in T)$ is finitely generated hence algebraic over $K$, $L$ is algebraic over $K$.
Algebraic closure of $K$
Repeating the above construction gives $$ \begin{align*} K \subseteq K_1 \subseteq K_2 \subseteq K_3 \subseteq \ldots \end{align*} $$ where each non-zero polynomial in $K_n[X]$ has a root in $K_{n+1}$.
If $f\in K[X]$ has degree $n\geq 1$, it has a root $α_1\in K_1$. Then $f(X)/(X-α_1)$ has a root in $K_2$ and so on, so $f$ splits into linear factors in $K_n$.
Let $\bar K = \bigcup_{n=1}^{\infty} K_n$. This is a field since it is a nested union of fields. Then every polynomial in $K[X]$ splits into linear factors in $\bar K$, and each element of $\bar K$ belongs to some $K_n$ so is algebraic over $K$. Hence $\bar K$ is an algebraic closure of $K$.
Special cases
$K\subseteq L$ where $L$ is algebriacally closed
Take $$ \begin{align*} \bar K = \sb{α\in L}{\text{$α$ is algebraic over $K$}}. \end{align*} $$ We showed $\bar K$ is a field extension over $K$, clearly algebraic.
If $f\in K[X]\setminus k$ is a non-constant polynomial, then $f$ splits in $L$. But each root is algebraic over $K$, so lies in $\bar K$. Therefore $\bar K$ is an algebraic closure of $K$.
$K$ is countable
Then the set $S$ of monic non-constant polynomials in $K[X]$ is countable. Enumerate $S = \set{f_1, f_2, \ldots}$.
Construct iteratively $L_0 := K$ and $L_{n+1}$ as the splitting field of $f_n$ over $L_n$. Then take $\bar K := \bigcup_{n\in \N} L_n$. This is an algebraic closure.