TITLE: Example of non-closed convex hull in a CAT(0) space
QUESTION [7 upvotes]: this is related to this question but is simpler, and hopefully is well-known. There are a number of references that say that the convex hull of a collection of points in a CAT(0) space need not be closed. I was wondering if anyone was aware of an explicit example ?

REPLY [4 votes]: There is a natural example if you don't ask the collection of point to be finite (but where it is closed): take the subset $A_1$ of the real Hilbert space $X=L^2(\mathbb{R})$ consisting of function taking at most one value beside $0$. Then it is easily seen that the geodesic segments between pairs of points in $A_1$ cover the set $A_3$ of function taking at most $3$ values beside $0$. The convex hull of $A_1$ is then the set of functions taking a finite number of values, and is dense in $X$.
For the story, this is a variation on an example I came across in optimal transportation: $X$ was the Wasserstein space of the real line with quadratic cost, which is isometric to the subset of $L^2([0,1])$ consisting of non-decreasing functions.