In the first step, it involves constructing a sequence of open sets $\{U_n \}$ indexed by some re-sequencing of rational numbers $\{P_i \}$ of a topological space $X$ with the property, when $p<q$, that :
$$ U_p \subset U_q$$
(1)For constructing these sets, we arrange the set of all rational numbers in the set $\left[0,1 \right]$ into an infinite sequence in with the first two entries being $1$ and $0$. Munkres' say this is done for convenience, but I don't understand how this is so. To clarify more, my doubt is why Munkre's went out of his way to make $1$ and $0$ the first two terms.
Now , another issue , (2)later $P_i$ is considered as consisting of the first $n$ rational number in the sequence. For the set $P_{n+1} = P_n \cup \{r \}$, it is said that $r$ has an immediate predecessor $p$ in $P_{n+1}$ and an immediate succesor $q$ in $P_{n+1}$. This defies my common sense, because, what if $r$ is larger than every other element in $P_n$ or small than? (Related)
Also, my last doubt is regarding how this proof helps us actually prove the proof of the statement of Urysohn lemma.
Urysohn's lemma: Let $X$ be a normal space, let $A$ and $B$ be disjoint closed subsets of $X$ . Let $\left[a,b \right]$ be a closed interval in the real line. Then there exists a continous map
$$ f: X \to \left[ a, b \right]$$
Such that $f(x)=a$ for every $ x \in A$ , and $f(x) = b $ for every $ x \in B$
Now here is the definition of function given in step-3:
$$ f(x) = \text{inf} Q(x) = \text{inf} \{ p | x \in U_p \}$$
(3)Now, the possible set of values for $p$ is actually rational number. So, how does the infimum help turn the function into a real valued one? Maybe this is trivial to understand if one had intuition for inf but I think some more details may help.
Btw I have linked every helpful MSE post on the Urysohn Lemma's proof based on Munkres onto this MSE post