I solved one question in a book of analysis, and although I used an informal method to check it, I'd like to know more about what should be done. The question was the following:
$A\subset X$ and $ B \subset X$;
If $A\subset Y$ and $ B\subset Y$, then $X\subset Y$.
Prove that $X=A\cup B$.
Looking at the second line, we have an implication. If $Q$, then $P$. And it's truth table is the following:
$$\begin{matrix} {P}&{Q}&{}&{P\rightarrow Q}\\ {0}&{0}&{}&{1}\\ {0}&{1}&{}&{1}\\ {1}&{0}&{}&{0}\\ {1}&{1}&{}&{1} \end{matrix}$$
Then $Q\equiv A\subset Y, B\subset Y$ and $P\equiv X\subset Y$, to answer it, what line should I take from that truth table? I did by thinking that $P=1$ and $Q=1$, but there are other choices too. Is it possible to obtain the same answer with any choices of $P$ and $Q$? I've been thinking in the other ways but assuming that $P=1=Q$ seems more natural. I guess that it should be valid for every row, but I'm not sure.