So the question of why an abelian torsion-free group can always be embedded in a divisible group has already been asked on this site; but I'm looking for one using the compactness theorem.
I have what one may call leads, but not a full solution.
Here's my attempt : let $G$ be an abelian torsion free group, and let $L$ be the language of groups, to which we've added a constant symbol for each element in $G$. Let $T$ be the theory of abelian groups, with the tables of $G$ (i.e. if $g, h\in G$ and if $\underline{g}$ denotes the symbol added for $g$, then $T$ has the axiom $\underline{g}+\underline{h} = \underline{g+h}$). Then we consider, for each $n\in \mathbb{N}$ and $a\in G$, the following sentence $\Phi_{n,a} := \exists x, x+...+x = \underline{a}$ (where there are $n$ $x$'s).
Let $\Sigma := T\cup \{\Phi_{n,a}, n\in \mathbb{N}, a\in G\}$. Through compactness, it is easily seen that $\Sigma$ is consistent (indeed it suffices to show that for any abelian group $H$ and any $a\in H$, $H$ can be embedded in an abelian group with an "$n$th root of $a$", which is done by taking $H(x)$ a formal abelian group generated by $H$ and $x$, then taking the quotient of $H(x)$ by the subgroup $\langle n\cdot x - a\rangle$). But this is where I get stuck : what I now have is a group $H$ in which $G$ can be embedded, and in which every element of $G$ has an $n$th root. The first problem is that $H$ need not be torsion free and so the root in question may not be unique. This is a problem since my next idea was to take the intersection of all subgroups of $H$ which have roots for all elements of $G$, and then showing that this would work, but I can't..
Any indications ?