in almost all proofs using the definition of compactness as the topological space in which every open cover have a finite subcover, there is a step that i can not understand and in my standpoint is not true
Let $\cal C$ be an open cover of $U_1\cup U_2$. Then $\cal C$ is an open cover of both $U_1$ and $U_2$.
This is for example the part that I am having trouble. I think $\cal C$ would not be an open cover of both what do you think? (this is part of the proof in proofwiki website and the same idea is used in a lot of other places)
My argument is that $\cal C$ may contain open sets that are not in the relative topology on $U_1$ or in $U_2$, so $\cal C$ would not be made only of open sets and then would not be an open cover for $U_1$ or $U_2$. If is not this, then what is the topology of the set of union that is used?