Brouwer's fixed point theorem states that a continuous map $f:B^n\to B^n$ ($B^n\subset\Bbb R^n$ being the $n$-dimensional ball) has a fixed point. It is clear that we can replace $B^n$ with a space $X$ homeomorphic to the ball.
Question: Is there a version of this fixed point theorem that only requires $X$ to be compact and contractible? Do we need more, e.g. locally contractible or something like this? I am happy to assume that $X\subset \Bbb R^n$ for some finite $n\ge 1$.
This question has a note about a contractible space for which the fixed point theorem does not hold, but it is unclear to me whether the counterexample stands if $X$ is required to be a subset of a finite-dimensional Euclidean space.
If $X$ is triangulable, then the Lefschetz Fixed Point Theorem can be used. If $X$ is contractible, then its rational homology $H_q(X; \mathbb{Q})$ is $\mathbb{Q}$ when $q=0$, zero otherwise, and any map $f: X \to X$ will induce an isomorphism (the identity, in fact) on $H_0$. Therefore the Lefschetz number will be 1: in degree 0, $f_*$ is represented by the $1 \times 1$ matrix $[1]$ and hence has trace 1, and in all other degrees, $f_*=0$ and so has trace 0.
Since the Lefschetz number is nonzero, then $f$ will have a fixed point, and $f: X \to X$ was an arbitrary map. In the setting where $X$ is triangulable, this generalizes the Brouwer fixed point theorem, because you don't need to know that it is contractible, just that its rational homology looks like that of a contractible space. For example, if its integral homology is $\mathbb{Z}$ in degree 0 and finite in all positive degrees, then the same argument works. Even dimensional real projective space $\mathbb{R}P^{2n}$ is a standard example: any self map of $\mathbb{R}P^{2n}$ will have a fixed point.