I'm doing a course on Topology and have been trying to make sense of the outline of a proof my professor gave during a lecture which went over my head at the time. I have attempted to fill in the gaps from my notes but wanted to ask whether I have done so correctly as I'm a not sure about my arguments.
I want to prove the following (as it was stated in my lecture):
Suppose $p:X'\to X$ is a covering space, then if $[\gamma]\in \pi_1(X,x_0)$ is such that $\gamma$ lifts to a non-closed path, then $\gamma$ is not null homotopic.
I seek to prove the contrapositive, that is, $\gamma$ null homotopic implies it lifts to a closed loop.
My Attempt
Fix $[\gamma]\in \pi_1(X.x_0)$ null homotopic. Let $F: I \times I \to X$ is this null homotopy so that $F(0,t)=\gamma(t)$ for all $t\in I$ and $F(1,t)=x_0 \in X$ for all $t \in I$ where $x_0$ is just some single point. Also, $F(s,0)=x_0=F(s,1)$ for all $s\in I$ as the base point is unchanged in the null homotopy.
The lifting lemma I have seen states the following:
Given a covering space $p:X'\to X$ and $f:I^n\to X$, then for any $x\in p^{-1}(f(0))$, there exists a unique lifting $\tilde{f}:I^n \to X'$ such that $\tilde{f}(0)=x$.
Pick any $x_0'\in p^{-1}(F(0,0))$. By the lifting lemma, $\exists ! \tilde{F}:I\times I \to X' $ with the property that $\tilde{F}(0,0)=x_0'$. Now, by definition of the lifting $p\circ \tilde{F}=F$. Whence, for any $s\in I$, $(p\circ \tilde{F})(s,0)=F(s,0)=x_0$ for all $s \in I$. Therefore, $\tilde{F}(s,0)\in p^{-1}(x_0)$ for all $s \in I$ so $\tilde{F}(I\times \{0\})\subset p^{-1}(x_0)$.
As $\tilde{F}$ is continuous and $[0,1]\times \{0\}$ is connected, $\tilde{F}(I\times \{0\})$ is connected. However, by definition of the covering map, $\exists U^{nbhd} \owns x_0$, and $\exists h_U :U\times \Delta \to X'$ with $\Delta$ a discrete space such that the projection $\pi_U:U\times \Delta \to U$ satisfies $\pi_U=p\circ h_U$. But then $p^{-1}\circ \pi_U = h_U$ so $(p^{-1}\circ \pi_U)(\{x_0\}\times \Delta) = h_U(\{x_0\}\times \Delta)$ so that $p^{-1}(x_0)= h_U(\{x_0\}\times \Delta)$. But then, as $\{x_0\}\times \Delta$ is a discrete space and $h_U$ is continuous, if $p^{-1}(x_0)$ has cardinality greater than $1$, it is necessarily disconnected. So, then since $\tilde{F}(s,0)\in p^{-1}(x_0)$, $p^{-1}(x_0)$ has exactly one element. So then $\tilde{F}(s,0)=x_0'$ for all $s\in I$. Likewise, we can show that $\tilde{F}(s,1)=x_0'=\tilde{F}(1,t)$ for all $s,t\in I$. So then $\tilde{F}$ is a homotopy between the lift of $\gamma$, given by $\tilde{\gamma}(t)=\tilde{F}(0,t)$ and the constant loop $\tilde{F}(1,t)=x_0'$ as $t$ moves over $I$.
I am the most uncertain about the argument involving the $h_U$ function. I think the argument should be obvious but it feels unintuitive the way I have done it. Also, doesn't this proof give us the stronger result that null homotopic paths lift to null homotopic paths?