The Ax-Lindemann theorem and its applications