I would greatly appreciate any help with the following problem. If there are existing references related to this, kindly provide them. If not, any help in this matter would be highly valued.
Problem: Let the profinite group $G$ be the inverse limit of the family of finite groups $\{G_i:i\in \mathcal{I}\}$, i.e., $G=\varprojlim G_i$. Let $C(X)$ denote the space of continuous complex-valued functions on $X$. Is it valid to conclude that $C(G)$ is the direct limit of $\{C(G_i):i\in \mathcal{I}\}$, i.e., $C(G)=\varinjlim C(G_i)$?
Yes, a version of this follows from Gelfand duality. Recall that the assignment $X \mapsto C(X)$ is a contravariant equivalence of categories between the category of compact Hausdorff spaces and the category of commutative (unital) $C^{\ast}$-algebras. Profinite sets embed fully faithfully into compact Hausdorff spaces (as the compact Hausdorff totally disconnected spaces, or Stone spaces), and they are the cofiltered limits of finite discrete spaces in this category (the group structure is irrelevant here). A contravariant equivalence of categories converts cofiltered limits into filtered colimits so we get the conclusion, in the category of commutative (unital) $C^{\ast}$-algebras.
How useful this is is unclear; personally I don't know what colimits look like in this category. Already it's not clear to me what finite coproducts look like. Maybe colimits here are the norm completion of the naive colimits?