TITLE: Are definable sets in an o-minimal expansion of the real field locally analytic?
QUESTION [6 upvotes]: I have a strong suspicion that yes, but as I am not a specialist in o-minimal structures, I thought that I might have overlooked some corner case. 
The precise statement is as follows: let $X \subset \mathbb{R}^n$ be a set definable in an o-minimal structure. Then there exists a point $P \in X$ and an open neighbourhood $O \subset X$ of $P$ such that $O$ is a closed analytic subset of a real analytic manifold embedded into some open $U \subset \mathbb{R}^n$

REPLY [7 votes]: No.
In their paper Quasianalytic Denjoy-Carleman classes and o-minimality, J. AMS, vol. 16 (4), 2003, p. 751—777, Rolin, Speissegger and Wilkie show that there exists a function on $[-1,1]$ which belongs to an o-minimal structure but is nowhere analytic.
Their theorem 1 (p. 752) asserts that for appropriate choices of a sequence $M=(M_n)$, the class $\mathcal C_M$ of $\mathcal C^\infty$ functions $f$ such that $\mathopen|f^{(n)}\mathclose|\leq A^{n+1} M_n$ (for some $A$) generates an o-minimal structure. The precise condition is that $(M_n)$ satisfies the two conditions:

$\sum_{n=0}^\infty\frac{ M_n}{M_{n+1}}=+\infty$;
$(M_n/n!)^2 \leq (M_{n-1}/(n-1)!) (M_{n+1}/(n+1)!)$.

By theorem 2 (2), p. 752, there exists such a sequence $(M_n)$ and a function $f$ in the corresponding class which is nowhere  analytic. This furnishes an o-minimal structure without a real analytic cell-decomposition (Corollary, (2), p. 752).