I'm trying to solve the following exercise (from Smirnov's "Varieties of algebras"):
Problem:
Let $K$ be the universal class of $\Omega$-algebras, i.e. $K = Mod(\Sigma)$, where $\Sigma$ is the set of sentences which are the universal closures of some set of formulas of the form: $F_1 \vee \dots \vee F_k$, where each $F_i$ is the atomic $\Omega$-formula or its negation. If $\forall n \in \omega$ there exists $K$-free algebra $\mathfrak{F}_K(n)$ of rank $n$, then there exists $K$-free algebra $\mathfrak{F}_K(\omega)$ of countable rank.
Attempted solution:
Let $t_1, t_2, \dots, t_n$ be the generators of $\mathfrak{F}_K(n)$. For all $n \in \omega$ there is an embedding $i_n\colon F_K(n) \to F_K(n + 1)$, which is the identity mapping on the set of generators of $\mathfrak{F}_K(n)$. So we identify $\mathfrak{F}_K(n)$ with the subalgebra $i_n(\mathfrak{F}_K(n))$ of $\mathfrak{F}_K(n + 1)$, $\forall n \in \omega$.
My idea is to take $F_K(\omega) = \bigcup_{n < \omega} F_K(n)$ as a universe of $\mathfrak{F}_K(\omega)$ and for any $f \in \Omega_n$ we define: $$f^{\mathfrak{F}_K(\omega)}(a_1, \dots, a_n) = f^{\mathfrak{F}_K(m)}(a_1, \dots, a_n),$$ for suffiently large $m \in \omega: a_1, \dots, a_n \in F_K(m)$. Hence $\mathfrak{F}_K(\omega)$ is the $\Omega$-algebra.
Let $\phi \in \Sigma$ be some sentence of the form $\forall x_1 \dots \forall x_n(F_1 \vee \dots \vee F_k).$ Choose arbitrary elements $a_1, \dots, a_n \in F_K(\omega)$ and $m \in \omega: a_1, \dots, a_n \in F_K(m)$.
Since $\mathfrak{F}_K(m) \in K$ we have $\mathfrak{F}_K(m) \models \phi$, then $\mathfrak{F}_K(\omega) \models F_1(a_1, \dots, a_n) \vee \dots \vee F_k(a_1, \dots, a_n),$ hence $\mathfrak{F}_K(\omega) \models \phi$, which means that $\mathfrak{F}_K(\omega) \in K$.
Choose some $X = \{x_1, x_2, \dots, x_n, \dots\}$ and $i \colon X \to F_K(\omega), x_n \mapsto t_n \in F_K(n)$, an arbitrary algebra $\mathfrak{A} \in K$ and let $\psi \colon X \to A$ be some mapping. We need to show that there exists the homomorphism $\hat{\psi} \colon F_K(\omega) \to A$ such that $\hat{\psi}i = \psi$.
Let $x \in F_K(\omega)$, it means that $x = t(x_1, \dots, x_m)$, where $t(x_1, \dots, x_m)$ is some $\Omega$-term over $\{x_1, \dots, x_m\}$. Hence $x \in F_K(m)$ and since $\mathfrak{F}_K(m)$ is $K$-free there is a homomorphism $\psi_m \colon F_K(m) \to A$, which extends $\psi$. Set $\hat{\psi}(x) = \psi_m(x)$.
Questions:
Is this construction yields the desired result? Is my reasoning correct? I think I should also prove that all operations of $\mathfrak{F}_K(\omega)$ and $\hat{\psi}$ are well-defined or this is obvious in case of this construction?
Am I supposed to use the direct limit construction here and take $\mathfrak{F}_K(\omega) = \varinjlim \mathfrak{F}_K(n)$? Or this is not that case?
What are the weakest conditions on the class of algebras to be closed under taking the direct limits? I have used only the universality of sentences, but not the part about atomic formulas or its negations and it seems strange.
Thank you in advance!