I am still an undergraduate student, and so perhaps I just haven't seen enough of the mathematical world.
Question: What are some examples of mathematical logic solving open problem outside of mathematical logic?
Note that the Ax-Grothendieck Theorem would have been a perfect example of this (namely, If $P$ is a polynomial function from $\mathbb{C}^n$ to $\mathbb{C}^n$ and $P$ is injective then $P$ is bijective). However, even though there is a beautiful logical proof of this result, it was first proven not specifically using mathematical logic. I'm curious as to whether there are any results where "the logicians got there first".
Edit 1:Bonus: I am quite curious if one can post an example from Reverse Mathematics.
Edit 2:This post reminded me that the solution to Whitehead's Problem came from logic (a problem in group theory). According to the wikipedia article, the proof by Shelah was 'completely unexpected'. It utilizes the fact that ZFC+(V=L) implies every Whitehead group is free while ZFC+$\neg$CH+MA implies there exists a Whitehead group which is not free. Since these two separate axiom systems are equiconsistent, hence Whitehead's problem is undecidable.
Edit 3: A year later, we have some more examples:
1) Hrushovski's Proof of the Mordell-Lang Conjecture for functional fields in all characteristics.
2) The Andre-Óort conjecture by Pila and Tsimerman.
3) Various results in O-minimality including work by Wilkie and van den Dries (as well as others).
4) Zilber's Pseudo-Exponential Field as work towards Schanuel's conjecture.