I've seen claimed in several papers that, given a space $X$, if $map(S^0,X)$ is homotopy equivalent to $map(*,X)$, then $X$ is contractible. I don't know why this is so.
It is clear to me that $map(S^0,X)\simeq X\times X$ and $map(*,X)\simeq X$ and the homotopy equivalence $X\times X\simeq X$ induced by $map(S^0,X)\simeq map(*,X)$ is simply a projection -say, onto the first factor. So the questions boils down to prove that $X\times X\simeq X$ (given by the projection) implies $X\simeq *$. I'm not sure how to prove this fact.
My idea is to replace $X$ by $X\times *$ and consider the homotopy equivalence $X\times X\simeq X\times *$ given by $(x,y)\mapsto (x,*)$. From this I'd like to prove that its components are homotopy equivalences.
I've seen this question asking precisely if the components of a homotopy equivalence are homotopy equivalence but it doesn't have an accepted answer (and the existent answer doesn't satisfy me because since we don't know exactly what is $G$, I don't see how the equalities of compositions follow).
This is only true assuming $X$ is nonempty. Suppose $X$ is nonempty and the first projection $p:X\times X\to X$ is a homotopy equivalence, with homotopy inverse $f:X\to X\times X$. Fix a point $a\in X$ and let $i:X\to X\times X$ be the map $i(x)=(x,a)$. Since $pi=1_X$, $f=fpi\simeq 1_{X\times X}i=i$, so in fact $i$ is a homotopy inverse to $p$.
Let $H:X\times X\times I\to X\times X$ be a homotopy from the identity to $ip$, so $H(x,y,0)=(x,y)$ and $H(x,y,1)=(x,a)$. Now simply observe that if we define $h:X\times I\to X$ by $h(x,t)=q(H(x,x,t))$ where $q:X\times X\to X$ is the second projection, then $q$ is a homotopy from the identity map on $X$ to the constant map with value $a$. Thus $X$ is contractible.