I'm reading these notes on groupoids and I'm struggling with example 1.4. I recall the relevant definitions below.
Definition: A groupoid $\mathcal{G}$ is a small category in which every arrow is invertible.
I will write the same character $\mathcal{G}$ for the set of morphisms and write $M$ for the set of objects, which I will call the base space of the groupoid. Given a groupoid $\mathcal{G}$, we have natural maps $u,s,t,i,m$ where
- $u: M \to \mathcal{G}: x \mapsto 1_x$ where $1_x:x \to x$ is the identity morphism.
- $s,t : \mathcal{G} \to M$ where $s$ sends an arrow to its source and $t$ to its target.
- $i: \mathcal{G} \to \mathcal{G}$ which sends an arrow to its inverse.
- $m:G_2 \to \mathcal{G}$ is the composition of arrows, defined on $G_2 = \{(h,g) \in \mathcal{G}^2: s(h) = t(g)\}$ by $m(h,g) = hg$.
Definition: A topological groupoid is a groupoid $\mathcal{G}$ with base space $M$ such that $\mathcal{G}$ and $M$ are topological spaces, $s,t,u,i,m$ are continuous and additionally $s$ and $t$ are open.
Fix a smooth manifold $N$. We can consider the groupoid whose objects are Riemannian metrics on $N$ which has an arrow from $g_1$ to $g_2$ if and only if there is a diffeomorphism $\phi: N \to N$ such that $g_2 = \phi_* g_1$.
It is claimed in the notes that the compact-open topologies on the space of metrics and diffeomorphisms respectively induce a topology on $\mathcal{G}$ such that $\mathcal{G}$ is a topological groupoid.
Definition: Given topological spaces $X,Y$, the compact-open topology on the space of continuous maps $C(X,Y)$ has subbase given by sets of the form $$V(K,U) = \{ f \in C(X,Y): f(K) \subseteq U\}$$ where $K$ is compact and $U$ is open.
It is not clear to me how the compact-open topology on $\operatorname{Diff}(N)$ induces a topology on $\mathcal{G}$. It is clear that for every $\phi \in \operatorname{Diff}(N)$ and $g \in M$, we have an arrow $\phi_g \in \mathcal{G}$ from $g$ to $\phi_*g$ and in fact all arrows are of this form.
How does the compact-open topology induce a topology on $\mathcal{G}$ and how do we see that this makes $(\mathcal{G},M)$ a topological groupoid?