I am considering homology and cohomology with integer coefficients.
For singular homology of a topological space $X$, we know that $H_0(X)$ is free on the number of path-components of $X$, and $\widetilde H_0(X)$ (corresponding to the homology of the augmented chain complex $\dots \to C_1(X) \to C_0(X) \to \mathbb{Z} \to 0$, where the map $\epsilon : C_0(X) \to \mathbb{Z}$ sends generators $\sigma$ to $1\in \mathbb{Z}$) satisfies the formula $H_0(X) \cong \widetilde{H}_0(X) \oplus \mathbb{Z}$.
My questions are regarding singular cohomology. First, is the group $H^0(X)$ always (or ever) a free abelian group? Maybe if $X$ has finitely many components it is free? What about $\widetilde{H^0}(X)$? (Where $\widetilde{H^0}(X)$ is the degree 0 cohomology of the dual of the augmented complex $\dots \to C_1(X) \to C_0(X) \to \mathbb{Z} \to 0$) Is $\widetilde{H^0}(X)$ ever (or always?) free?
My second question is whether the formula $H^0(X) \cong \widetilde {H^0}(X) \oplus \mathbb{Z}$ holds in general, or at least possibly for spaces $X$ with finitely many path components. I can show using a long exact sequence of homology that there is an exact sequence $0 \to \mathbb{Z} \to H^0(X) \to \widetilde{H^0}(X) \to 0$, but I am not sure if this sequence splits or not (since I don't know if $\widetilde{H^0}(X)$ is free).
Thanks for input on this, I think it is probably a dumb question, but I can't seem to figure it out. I think $\widetilde{H^0}(X)$ is "functions which are constant on path components, modulo constant functions", so intuitively it seems like $\widetilde{H^0}(X)$ could be free. On the other hand, I think $C^0(X) = \hom(C_0(X),\mathbb{Z}) \cong \prod \hom(\mathbb{Z},\mathbb{Z}) \cong \prod \mathbb{Z}$ may not usually be free, so it seems like $H^0(X)$ might not be free.