G∈/UHC. Then G has no Hamiltonian cycle. Let C be any Hamiltonian cycle in G^ (one exists, as G^ is complete). Since C is not a Hamiltonian cycle of G, it must contain an edge e∗∈/E, so w(e∗)=αn+1. The other n−1 edges contribute at least 1 each, so
w(C)≥(αn+1)+(n−1)=αn+n>αn.
This holds for every Hamiltonian cycle of G^, in particular the minimum one, so OPT(G^,w)>αn.
The approximation algorithm returns a feasible solution, and a feasible solution cannot be cheaper than the optimum, so w(A(G^,w))≥OPT(G^,w)>αn as well. So step 3 rejects — as required.
Note that both sides of the inequality were used. The forward direction used the "interesting" side (ALG≤αOPT); the backward direction used the trivial side (ALG≥OPT), which follows from the output being feasible. Without the feasibility requirement the second direction would collapse.
Conclusion. The algorithm decides UHC in polynomial time, so UHC∈P. But UHC is NP-hard, so every L∈NP satisfies L≤pUHC∈P, i.e. NP⊆P; with the trivial containment, P=NP.